This is just my temporary blog till I create my own on my site, one that actually counts statistics (posts, profile views, etc) correctly.

Location: Colombo, Sri Lanka

There's way too much to type.


Model: Turbo Toothbrush 2.5L

Have you ever wondered how fast the toothbrush must move when you're brushing your teeth with a toothbrush?

Think about it. When you're brushing, if your hand happens to slip by accident, the plastic portion of the brush sometimes jams against your gums and it really hurts. Who knows, we might be breaking speed records everyday in the morning as the first thing we do by habit, right in our mouths...WHOA!

You can argue that gums are very soft, but you have to admit it can really hurt sometimes, it must be quite fast.

heh heh, crazy thoughts


Never trust user input data (for PHP developers)

ugh! If your user ever enters any data via the POST or GET protocol, DO NOT ever trust it an ALWAYS validate it.

I just spent a few hours trying to figre out a problem where the root of the problem was user interference with input data.
He went directly into the database and manually edited some form data inserted via POST.
It was actually customer e-mails and so when I used the mail function to send e-mails (to some users who had a blank e-mail address thanks to customer interference in the database), I got a Internal Server Error - 500.
What made it worse was they they were using a CGI install of PHP and wouldn't let me look at their server logs.
I, now, validate all variables carrying data to any functions...ugh!


Just testing...

Just testing this out. Nothing much to say really....actually I have too many thoughts in my head to talk about...plus I have those college assignments :S