Archive for June 2012

PHP date validation

Validating a date using PHP is pretty straightforward and easy and there are plenty of methods out there of doing this, but I want to show you a few of my own methods. The function below takes two strings as parameters, $date (e.g.: 12/13/2012) and $format (valid […]

Read more

Highly optimistic PHP function

highly optimistic php function

The PHP function, checkdate, should be a lesson to all the pessimistic folks out there saying the world will end and such things! Here’s why: That’s the spirit, checkdate!

Read more

Javascript date validation

Working on a WordPress calendar plugin, I needed some kind of Javascript date validation. As JS doesn’t have a native date validation function, I googled a bit and came across various validation methods, from REGEX to some overcomplicated stuff, so I decided to write my own function. […]

Read more

Google Suggestions Tricks


Need to do a quick unit conversion or calculation without using any special tools? Well, if you happen to use Firefox or IE (having Google selected as a search engine), or, obviously, Google Chrome, then you can use the search box to do just that. Simply write […]

Read more

English fail

english fail

No comment =)

Read more