Archive

Archive for the ‘Tutorials’ Category

Captcha

May 23rd, 2008

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

www. is deprecated

April 18th, 2008

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! :-)

Class B

Just wanted to share ;)

Popularity: 5% [?]

Miscellaneous, Web development

The fifteen sins of web design

April 17th, 2008

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 photoshop background colour

April 14th, 2008

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:

  1. Select your paint bucket tool
  2. Pick a nice foreground colour
  3. 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

CSS Sprites

April 13th, 2008

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 ,