Like I promised yesterday, here's the tutorial for creating little fancy graphs.
Actual result:

SOURCE
First things first. Figure out what offsets you will need to display the graph in. Easiest way is to do this by drawing up a little box on a piece of paper or in paint. If you're too lazy for this, there's one after the jump:
Read more...
Popularity: 1% [?]
Miscellaneous
After giving up on my second attempted college study, due to a lack of interest and challenge, I am now desperately looking for a job.
The study in question was of a Math Teacher, what was I thinking? Ever since the first day, no challenge whatsoever. I'm not a genius, but this was highschool all over again. I managed to pass the first math test without ever going to college. And then the other things I had to learn about.. Who cares what stages teenagers go through to reach adulthood? Although we did have some laughs about babies, when they have no sense of 'object permanence', so when you take something away from them, they think it's actually gone for good. Or when you put two rows of five pieces of candy in front of a seven or eight year old and he'll pick the row of candies which takes up the most space, because he thinks there are more..
Anyway, my qualifications aren't very impressive, I have to admit. I should be able to find a job nonetheless you'd say. A young guy, who is a fast learner and manages to go from having no work experience to running a shop in approx. six months. If I see all them people doing nothing and being able to afford a house, why can't I be like that? :( I'm lazy, yes. Sue me.
I've really been applying everywhere I can, from receptionist or police officer to a temporary job as a web developer. But hardly anyone even replies to say they've received my application.
Wish me luck.
Popularity: 1% [?]
Miscellaneous
Right,
Instead of having this website hosted at a company, I'm now hosting it from the electricity cupboard thing :).
The hosting computer is running some kind of Linux called BusyBox. It's processor is of some brand nobody has ever heard about but it's running great.
Inside are 2x 1 TB Western Digital Green harddisks, of which one is currently in hibernation mode all the time, because I'm still trying to fill up the first disk with movies and games.
It's a Synology 210j, which I can really recommend to anyone who wants to have their own NAS. It's a download center, a PHP/MySQL server and it's hosting my movies and music through DLNA so my father can watch it downstairs on his television. Other features these NAS'es have are third party packages, so you can install pretty much anything you want on them. For example, I've installed a package called SABNZBD which serves as a download center for downloading from newsgroups and will also unpack and repair the archives, unlike the built-in download center.
Unfortunately, due to my internet - which likes to die about 4-5+ times per day - the site will have some more downtime, although, it can't be much worse than the previous host. Back when I still used WeBBuddy site monitoring, I got mail from them every day saying they couldn't connect to my website. Usually during off-hours, but still...
Of course, site performance will suffer a little, but it shouldnt be too bad. Only moments when the site should be loading slow is when it's unpacking / repairing archives or between 0.00 and 9.00 CET in the morning when I set it to download at full speed (30 Mbit internet and getting about 26 Mbit download speeds during the night).
Kalkran out,
PS Yes, I'll try update some more. Even if it's just about the games I play or made something new in php :).
Popularity: 1% [?]
Miscellaneous

Would you try and break open the local bank vault?
Here's just quick post in between.
I've been thinking about this a lot for the last couple of days/weeks. What would I do if suddenly everyone disappeared, I mean everyone. Would you shoot yourself? Would you rob the stores? Would you try to fly an airplane and head to warmer climates? Would you do the same thing, but by car?
What I would probably do, is take my parents car, and drive as far south as I can get, then refuel for free (nobody there to stop you from stealing petrol) and just keep on driving until I got somewhere warm. Then I would probably just chill out there for a while. But wouldn't this get boring (read: lonely)?
So, what would you do?
Popularity: 37% [?]
Miscellaneous
No, I'm not dead yet =)
I've still been working on the WP Theme Generator, which nobody is using. I found that my webhost has the php setting for adding slashes turned on by default. My code relied on having no slashes. To fix this, I had to write a short recursive function, which I'll share here, and then explain.
Recursion, it's just a fancy word for a function, in which it calls to itself. Like function a() { a(); }. That would provide an infinite loop, but it's the most simple recursive function.
So, my situation, the $_GET and $_POST vars had slashes added. And I wanted to strip them out, but I would like my function to accept both strings and arrays, for sake of convenience and consistency (always use my function, instead of sometimes stripslashes()). What I wrote was this:
function ss_($in) {
if (is_array($in)) {
// It's an array, loop through all the keys and strip them.
foreach ($in as $key => $value){
$in[$key] = ss_($value); // <= Reference to itself, recursion!
}
return $in;
}elseif(is_string($in)){
// Regular stripslashes
return stripslashes($in);
}else{ return null; }
}
Comments say it all, really.
Just another quick example would be a countdown function:
function countdown($num) {
echo $num, '<br/>';
if ($num == 0) return false; // Stop countin at 0.
countdown(--$num); // --$num subtracts the one from $num before the value is read. $num-- does it after.
return $num;
}
countdown(20);
That all for now, folks.
Popularity: 22% [?]
Miscellaneous
Recent comments!