I've kinda written a CAPTCHA image file :) Code after the jump.
Code explanation is right behind it; (Please view full).
< ?php
session_start();
$numlines = 4; // 4 lines/rectangles
$numcrap = 15; // 15 bullcrap letters behind it.
$str = md5(microtime());
$crap = base64_encode(md5(sha1(microtime())));
$str = substr($str,0,5);
// Str = the string shown in the captcha
$_SESSION['captcha'] = $str;
Up until here, we've just initialized some variables. They kinda speak for themselves. $crap is merely some random nonsense to be displayed behind the actual text. Also, we've already registered the captcha string in the SESSION.
Read more...
Popularity: 14% [?]
PHP, Tutorials
You may have noticed that www.kalkran.com redirects to kalkran.com, I did this out of a silent protest against the uselessness of www. But I found out I'm not the only one.. And I got a tag for it! :-)

Just wanted to share ;)
Popularity: 5% [?]
Miscellaneous, Web development
Today, on Kalkran.COM: The fifteen (+one!) sins to designing a webpage.
- Animated GIFs
Animated GIFs are soo 1990's. I remember using them on my geocities website! And that, my dear reader, is almost prehistorical.
- Slow download times
Nothing makes me stop browsing a website as slow load times. Waiting for the server to respond, takes up valuable time of your reader. Nobody likes waiting.
Read more...
Popularity: 6% [?]
Miscellaneous, Web development
Change the background colour
Ever wondered if you could get rid of the boring gray colour behind your canvas in photoshop? Of course you can! Ever since PS 4 you're able to change the background-colour:
- Select your paint bucket tool

- Pick a nice foreground colour

- SHIFT+Click on the background to change it's colour.
Oh, and this might be useful.. At least it is to me!
Hide the toolbar, layer palette and all other windows
Ever tried pressing TAB? It hides all the windows.. They always get in my way when I'm messing around in photoshop.
Popularity: 21% [?]
Graphical, Miscellaneous
Since this seems such a "hot" topic these days, I figured I might as well spend a couple of minutes and write a quick tutorial on what they are and how to make them work.
The finished result will look like this Arrow
Read more...
Popularity: 12% [?]
Graphical, Tutorials
css, sprite
Recent comments!