Monthly Archives: March, 2008
PHP strip non alphanumeric
On EveryDayFiction.com, in the titles of the posts our editors insisted on including a non alphanumeric character.
The little dot that separates the title from the author. This causes havoc with a lot of my scripts and is really freaking annoying.
This handy little function strips all the non alphanumeric character from the string.
function strip_non_alnum($str) {
$str = [...]
Last windows boot time, Install date
Do you remember the exact date or time when you last switched on the computer ?
Here’s a simple DOS command to help you out:
systeminfo | find /i “boot time”
This will show the time when you last rebooted the computer.
If you want to know when you stalled windows on your PC
systeminfo | find /i “install date”
The quick and dirty way of getting the size of a file up to 4GB.
I’m often surprised how many times this question has come up by beginner programmers.
How do you tell the size of a file in win32?
This method will fail on files greater then 4GB, and its slower then other methods but it quick and easy as long as you are not dealing with files greater then 4gb.
FILE [...]
403 – An arrogant initiative in defense of the web
I hate internet explorer, I hate it so much. At lest once a day I curse it to the pits of hell to be torched endlessly by a Richard Simmons kazoo band. My hate for internet explorer mainly comes from my own laziness, I just don’t want to spend the time to create the same [...]


