Showing posts with label Website. Show all posts
Showing posts with label Website. Show all posts

Wednesday, July 1, 2009

Website Backups

Today I made a Website Backup. This post has nothing to do with the Server I'm currently working on. Unfortunately I didn't get time to work on it, as I promised myself that I would only work on it for an entire day at the minimum.

I made the site backup using the FileZilla FTP Client. Of course it runs on Linux, otherwise I wouldn't use it. It's quite convenient, here's a (huge) screenshot of it running:


And yes, the blurry parts are not some cool graphic effects of the program, they where added in by me using GIMP for security reasons.

The backup took me quite some time. After realising it was going to take longer than expected, I wanted to know what exactly was so space consuming on my server. My first guess was correct, the pictures where to blame. In dismay I realised I had forgotten to compress them before uploading. This obviously wasn't good, so I started GIMP and slowly re-saved every picture at a lower quality. Of course this could have been done using a macro but there weren't that many pictures and I was bored. As a result my site may (should) load quicker now.

And that's all for today, just a quick post about my site Backups =)

Friday, June 12, 2009

Exams Ended & Got tons to Do !

Those terrible terrible worthless ugly exams are over!
I have two months of free time now! YAY!
Jealous Much?

Here's all the fun stuff I'm planning to do:

(I'll strike them out as I finish them)

- Get my Site up to Date
-- Update Articles
-- Update Software Section
-- Maybe add a Login Section
-- Add Comment Section
-- Add a ToDo list
-- Finish of the CSS
- Create a New Blogger Style
-- Similar to Style of my Site
- Install SSH on an OLD laptop
-- Wipe HardDrive
-- Somehow get a Command Line Running
-- Note: Windows and X Window Server don't work
- Help a Friend finish psp.zirconcode.com
- Read a Book on the Linux Kernel
-- 19 / 19 Chapters Left to Read

Those are the things which I'm going to finish first. After that, I'm going to start on the more heavy stuff =D

Edit:
The ToDo list has moved to my sites ToDo section.

Monday, May 25, 2009

Exams coming up

Yup, that's right. I have exams in exactly two weeks. I apologise, I don't have much time at hand right now to do anything, I'm wasting using up all my time studying.

And guess what the good news is?

After that I get a 2 month vacation =D

Plans for Summer Break:
1. Finish of Website (remove bugs, update content)
2. Work on a MMORPG (hopefully finish Beta!)
3. Work on my Neural Net
4. Write tons of tutorials (AI/HTML/CSS/DOS/BASH/PHP/C/Java/Delphi/etc...)
5. Have Fun =D

I really can't wait =(

Sunday, May 10, 2009

Website Remake

Just a quick update since I don't have much time right now:

I just re-created my websites (www.zirconcode.com) style and it looks a lot better to me now. Maybe I'll Open Source my old style, it might help somebody. Next I'm going to update and organise ALL the content on it. I don't know yet what to do after that, probably work on one of my projects again.

Have a nice day =D

Saturday, January 31, 2009

Update

I finally finished the Exams and my reward is the next Semester =/.

Right before the Exams I got interested in Neuroscience. I kind of started thinking how easy it would be to simulate the brain if you would know how a neuron worked. You would just have to make many of them right? After watching this and this Goggle TechTalk I was really interested in the stuff. Unfortunately I had to study so I didn't have time to pursue the matter. However I did borrow some Psychology books from my schools Psychology guy.

I got pretty good semester and exam Grades, all of them above 90% except for French which was around 75% =(. Well I guess I can't complain since I never studied for anything except for the Exams. I'll just have to start studying =(.

After the Exams I got a 4 day break and I created a working model of a 100 neurons interacting together within a week (I think that's pretty good). Unfortunately the connections are random and static, something which I'm going to work on next. Also I'll have to implement some output and input 'neurons' so I can put the brain into a testing environment.

The negative aspect of me getting interested in Neuroscience is that I won't be able to work on my MMORPG as much. My excuse is that I probably won't have an entire day to work on it anyway. I will continue the work on my MMORPG as soon as I enter the next Holidays. I feel kind of bad about abandoning the MMORPG for now but I think Neuroscience is a lot more important to my career. I hate to make choices =(.

Since I don't have enough time to write more here's a List of things I have/want to do:
- Work on Brain (not mine)
- I'm developing a Twitter Application to save time
- I feel like making a Monster Hunter Portable 2G cheat which will make me start cooking in the middle of battle. Just to annoy my friends when we fight something important.
- Finish off an FTP Password Cracker
- Release some of my older Delphi Apps.
- Improve website and add more Social Networking Functionalities.
- Create a timeline of my life for various unexplainable reasons.

As you can see I have tons of things I want to do. Now I just have to fight my laziness and do them =).

Tuesday, December 30, 2008

MMORPG Day 9

On Day 9 of MMORPG development I turned the player into a grey box and allowed him to walk around. To do that I had to implement collision detection, which is easy to do for tile based maps.

The walking was handled by four methods in the Character class: walkUp, walkDown, walkLeft, walkRight. When a method was called (probably by a key press), it checked if the player would collide with the tile the player was about to walk on and then accordingly moved the player. The collision system looks something like this:


Each tile had four edges, each of which could be walk-through or not. To move the player the walk-methods had to check if the corresponding wall on the current tile was walk-trough and if the corresponding wall on the next tile was walk-through. If this was not the case, the player was not moved. In the above case the player (black dot) wants to move left. The tile the player is on allows that but the tile the player is going to move too doesn't so the player isn't allowed move.

I had to make an additional collision map for my current test map. The collision map stores the collision values of all four walls of each tile in the map. It was a simple arrays of 0's and 1's, where a 1 stands for collision and 0 stands for walk-through.

Each time the player moved his height he had too be properly adjusted so that if he moved to a higher tile, he doesn't sink into the floor and if he moved to a lower tile, he doesn't float above it. This was also handled by the four walk methods. The methods simply found the average of the tiles Vertices and used that as the players height. This has some disadvantages on very very steep tiles but I'm not planing to let the player walk on top of tiles with more than a 45 degrees slope.

It's kind of great to be able to walk around the small test world and I'm happy because the MMORPG is now a big step closer to being finished.

Monday, December 29, 2008

MMORPG Day 8

On Day 8 I totally restructured the Map class (object). I found my current Map class was going nowhere and I saw no way out. I had one of those "Java Revelations" where you suddenly think of a way a lot easier and elegant than the one you're currently using. I shrank the code for the Map by half and now it's a lot easier to alter and more open to different options.

What I basically did was to substitute arrays and loops for things I was doing in a totally different way. I'm pretty surprised that I hadn't thought about this stuff before but I probably didn't think it was necessary. I now have an array of tiles in my Map class. Each tile holds all the variables about itself and almost nothing gets stored in the Map class itself except very general things. A Tiles variables include: Walkability (collision of all four sides), Colour(s), Object (ex. thing on top), Heights (all four corners), Actions (some script of a scripting language I haven't created yet triggered by character moving near/on tile).

I thought of a way to determine an objects/characters height when on a Tile. I would simply take the four sides of a Tile and find the average (height1+height2+height3+height4/4). The Characters height would have to be altered accordingly when moving. I hope to interpolate between nearby tiles when the character is not standing on any to find the next best height.

Nothing else really happened on day 8 which is kind of disappointing but I hope twice as much is going to happen on day 9 as I kind of pre-worked.

Saturday, December 27, 2008

MMORPG Day 6

Merry Christmas Again!

The MMORPG became interactive on day 6 of it's development. I made it possible to move around the map and change the camera angle.

To move around the map I either had to move the Map itself or the Character and the Camera. I decided to move only the Map since it was harder to move the Camera and the Character. Every time the character "moves" a tile, the map gets translated by the TileSize to make it look like the character moved.

The camera angle can be moved freely which isn't so great yet. I'm going to have to find some proper camera restrictions so that the player can't rotate the map 180 degrees and look below it.

The MMORPG of day 6 can be found Here. You can move around by using the arrow keys. You can change the camera angle by holding down the control key and pressing an arrow key. Unfortunately you have to press the arrow key each time you want to change the camera angle by 0.5. I'm probably going to change that.

To finish the Map I need to be able to load Objects and add them on top of the height map. Then I need to be able to display everything in color, not in grey tones. Then I need to put the character class into the map at the proper height. Then I'm finished with a lot of the MMORPG and I will be happy.

Sunday, December 21, 2008

MMORPG Day 4

On day 4 I ran into many things I hadn't even thought about.

One of the many problems is Animating the Characters model. I think I might group together many polygons and bond them with a "bone" point and when I do anything to that point it impacts all the polygons tied to it. That way by moving one vertex I can be able to move an entire part of a character (ex. Left Leg, Right Arm). I will also have to find some way to record the movement of the "bone" points in a simple text file. As stated before I'm kind of stuck there.

I also hadn't considered the Item class properly. I forgot to add any way the Item could interact with another thing. When I realised I added 3 new methods to the Item class; useonCharacter, useonItem, and useonTile. This way the Item can interact with players, other items, and the surrounding area. I have to create some kind of scripting language to create the results of an interaction. This Scripting language could also be useful with map related events. The scripting language would have to be simple, something like this:


(item)Fish+(character)Player
> Player is less hungry
> Fish Disappears
(tile)Tree+(item)Axe
> Tree dissapears
> Player gains (item)Wood
> 50% chance axe may brake


I also forgot about any kind of Levels the character may have. I think a simple array of numbers will do but I'm still thinking about it.

The thing I mainly worked on on Day 4 is This Applet. It took quite some tweaking to get the Applet to load files from the server it was stored on. I may write an Article about it later on. When you view the applet you should see a green cube rotating representing the character. It's loaded from a file and treated as a character would be. I will improve the characters visual appearance later on so don't panic =). On the top of the applet it says "3D Engine (ZBuffer: False)" which means that ZBuffering is disabled in the 3D Engine (as you may have guessed). On the bottom of the Applet is a series of letters harder to decipher. They basically represent the players character.

I'm kind of stuck on all fronts with the Character so if I don't solve the problems I'll continue on to the Map class and return later.

Wednesday, December 17, 2008

Christmas Break

I have just entered Christmas break!

I have given up on the Hardest Logic Puzzle on Earth for now. My friend has told me that the answer can be found at Wikipedia so if you are curious take a look. I myself won't look until I think I found the correct answer, I'll keep trying every few weeks to see how much my brain has grown.



As I stated above Christmas break has just begin for me and I know have exactly 20 days of free time on my hands. Maybe take away one or two days for Christmas and after. I'm currently trying to think of a big project to start and finish during these days but I haven't thought of anything fun and exciting yet.



I have optimised the website layout further and my "Games and Applications" section is starting to take shape. It's still pretty bland but I have already uploaded my very first Java game. As you may have guessed, it's a Pong game. It's not the best game but it's certainly fun to play for 5 minutes or so (I hope). The sound magically vanished when I uploaded and I'm trying to fix it.



Have a Nice Christmas Break!

Sunday, November 23, 2008

The Hardest Logic Puzzle on Earth

Well first of you may have noticed (if you use I.E.) that the layout has changed drastically and is almost completely free of bugs. I have also lost all respect for Microsoft and am considering to create a website just to combat them. I am just so sick of them...

On a happier note I was being bored again and surfing through the net I found this: http://philosophy.hku.hk/think/logic/hardest.php. It's a very interesting website and I advise you to read through it if you haven't finished a course on Psychology and Critical Thinking yet. The website states that George Boolos states that this is the most difficult logical puzzle on earth:

Three gods A , B , and C are called, in some order, True, False, and Random. True always speaks truly, False always speaks falsely, but whether Random speaks truly or falsely is a completely random matter. Your task is to determine the identities of A , B , and C by asking three yes-no questions; each question must be put to exactly one god. The gods understand English, but will answer in their own language, in which the words for yes and no are “da” and “ja”, in some order. You do not know which word means which.
I thought I might give it a try.

First of I Organised My Data:
  • 3 Gods: A,B,C
  • True Names of 3 Gods: True, False, Random
  • I can ask 3 true and false questions.
  • The response is either da/ja which means either yes/no.

After that I used one of my favorite computer algorithms; Brute Force =)
I calculated all of the possible answers to the puzzle:


So once I knew the 6 different answers I couldn't do anything more on that part of the puzzle but wonder if it was even something useful I had done.

I moved on to another part of the puzzle: The Questions.
I would have to ask 3 true and false questions to find out which of the 6 answers was the correct one. Not only would I have to consider the questions I would ask but also to which God I would ask them to.

Lets look closer at "True and False Questions". The question would have to be answered by yes or no (da/ja). The types of "True and False Questions" I could think of are listed below:
  1. Asks weather dogs are animals (true)
  2. Asks weather dogs are stones (false)
Upon further thinking I also thought of these more personal questions:
  1. Asks: Are you True/False/Random
  2. Asks opposite of 1-3
  3. Asks: Are you "Insert a Double Combination of Questions 1-3"
  4. Asks opposite of 5
I wasn't really sure if the first pair of questions or the latter bunch of questions would help me more so I just wrote both down. I would probably have to ask a correct combination of the above questions to find out what da/ja meant. Once I know what da/ja means I probably could find out with ease which god lied and which one didn't, I'm not sure about the Random god yet.

Lets apply the Brute Force Method Again:
  • The different Questions I could ask is: 2+3+3+3+3=14
  • The amount of Questions I could ask is: 3 (given)
  • The number of Responses I could get is: 2 (da/ja)
The Total Different Routes I Could Take or be Chosen to Take: 14*3*2=84
I'm pretty much stuck there. I will analyse the routes more carefully in the Next Post and I hope I'll get a result.

Monday, November 17, 2008

Fighting Boredom

I'm not getting anything done lately since I'm very bored. I'm not so sure yet why I feel like doing nothing all day lately but I'm sure it's a severe case of boredom. I don't think it's laziness since I don't feel like doing fun stuff either, things like programming or writing random stuff are normally things I like to do but lately I just don't feel like doing them. I think I got bored by these things because they don't provide a challenge any more. Of course programming takes a lot of time and is something hard to do but I have the blueprints of how I'm going to do everything I want to do in my mind and there are no obstacles standing in my way. Except time of course, but that's not really an obstacle since I have more than enough of it. I hope I'll get over this total lack of enthusiasm soon.

Since I'm not going to get anything done due to boredom I've decided to make a list which I have to follow. Excuses about boredom are not accepted.

List:
- Make website Internet Explorer Capable
- Finish of Website Layout
- Create Help Files for my Website
- Add my E-Mail address and the likes under "Contact"
- Add one Game under "Games"
- Finish of Current Content
- Think of more ways to use up time:
- Maybe get Traffic?
- Put on more games?
- Create an Article Section?

Monday, November 3, 2008

Finally Website!

I have finally gotten a website: http://www.zirconcode.com/
This Blog will be integrated into that site but will still be available under: http://devediary.blogspot.com/

I'm currently just trying to get this site to work. For best results view it in Firefox (3 or above?). I'll get this site to look good for funnier browsers like IE too but that has to wait until I got everything set up.

The Site currently has the following categories:
Home = A Welcome Message + News Blog (this one)
Applications & Games = Anything Java for Computer Illiterate (it's also longer)
Help! = ...
Contact = a non-private e-mail and maybe comments?

I may be adding a forum later once I get more than about 350 hits a year =).
Also I'm not quite sure if I should add an "Articles" section (with polished blogposts, ex. Triangle Interpolation) but it would probably boost my hit counter.

On a more Boring note (location,location,location...):
Let me explain in a monotonous voice how I stumbled on the name ZirconCode because I know that you are just burning to know =/.
Well first I thought something with "Source" or "Code" or similar would be nice. Then I thought that maybe I could add some colour prefix like "red" or "blue" but for various reasons it didn't sound so good... (really, trust me)
Then I thought instead of colours I could add a precious metal like "diamond" or "ruby" or "gold" or "titanium" or...
Well I somehow ended up at ZirconCode and as it was the first name I came up with which wasn't taken I took it =).

Saturday, August 23, 2008

Splitting your Website Layout

Unfortunately we can't just tell the browser to take our little image and make a fully fledged website out of it. We have to tell him how to. To do this we first have to split our layout into boxes as the website will then be orderly and easy to realify.

Here's how I did it:

the website will have to be split so that each box can be represented by a box with the following attributes:
  • height (percent of screen/pixels/font size)
  • width (see above)
  • background color (any color represented by hex)
  • background image (any size and anywhere)
  • text or other content (tables/lists/links in any form of presentation)
Remember, keep the boxes to a minimum but still use enough of them to be able to produce neat code. A box for the header may include two other boxes, one for the title and one for a company logo or an add or something similar. Then you will need a box for the content (only one). Last but not least you will need a box for the footer which will display copyright information and the like. If you wrap all your boxes into one main box it will be easier to center ALL of the content. You can of course use one or two more boxes if you like, for example for an advertisement or new bar. All in all you should have 3-7 boxes.

Next we will start coding...
Bye...

Designing a Website Layout

The next step in creating a website is to draw up a quick sketch of how it's supposed to look like when finished. Later you will have to worry about how to realify your image but now let your artist sense roam free. If you have more than one idea go ahead and sketch them all, it's always good to have a backup plan. For designing the website you can use any simple painting program, it doesn't have to look good, remember, this is just so you know how your layout will have to be written. You could even use our trusty friend old pencil and paper.

So I've gone ahead and done 2 quick sketches in bitmap:

remember this sketch is designed for me by me (which means it's encoded in maniacode) but I'm going to explain it to you anyway. The bblahblah part is the text the user is viewing, this can be a game too or pictures. The scribble to the right of it is supposed to be a scroll bar (don't laugh). The title (at the top) is the title of the document the user is viewing. The red scribble in the top left corner is my company logo (it signalizes uniqueness and creativity). The curvy blue/purple/light-blue lines are going to look shiny and clear like plasma/water tentacles. The menu is the black scribbles below my great company logo.

Here's my second sketch:

I'm not going to explain this one, it's readable by average maniacs so yeah...

When drawing your sketches put yourself in your viewers shoes. Would you find it accessible? Interesting on first sight? Neat? Ugly? Too Pretty? Too Colorized? Too Bland? Take special care that he finds what he's searching for quickly without any hassle.

The next post will be about splitting up your image into boxes as those are easier to represent in CSS/HTML,

Until Then... Bye

Wednesday, August 20, 2008

Website Outline

The first thing I do is always to think and create an outline. The outline doesn't have to be the final outcome, just a rough draft so you now what you want.

My outline looks like this:

-Website
--Name
---Unknown (will think of later)
--Content
---Home
----Welcome message with blog below that
---Java
----Games
----Applications
---Contact
----Contact formula not showing my e-mail address (due to security reasons)
---About? (maybe...)
--Style of Website
---Either
----Dark background with light text (cool)
-----black background with almost white text
----Very Light background with dark text (clean)
-----Blue tones and white and maybe mix in some purple

those colors just randomly came to my mind because i think they fit nicely together:
dark theme (cool): lllllllllllllllllllllllllllllllllllllllllllllllllllllll
light theme (clean): lllllllllllllllllllllllllllllllllllllllllllllllllllllll

Color picking can be a very big deal but for my purpose I don't need to know what every color represents and stuff like that's since it will be a rather small website at the beginning. When the hit-count picked up some speed I might post about picking correct colors for correct occasions but that's going to take some (long) while unfortunately.

Well, the outline is finished and now I have to think about how I will accomplish my goals...