Notebook since 2001

Blog, page 59

page 59 of 76

Continuing through the writing archive.

Tips · 1 min

PHP strip non alphanumeric

A small PHP function that strips every non-alphanumeric character out of a string with preg_replace and ereg_replace.

#Code#PHP#Tutorial
Read post
Tips · 1 min

Last windows boot time, Install date

A one-liner using systeminfo and find to print the last Windows boot time or install date.

#Tutorial#Code
Read post
Tips · 1 min

The quick and dirty way of getting the size of a file up to 4GB.

A short fseek and ftell snippet for grabbing a file size in win32 when the file is under 4GB.

#C#Code#Tutorial
Read post
Development · 5 min

403 - An arrogant initiative in defense of the web

A rant on Internet Explorer and an experiment with the 403day.org script that nags IE users to switch browsers.

#Web#Code#Review
Read post
Self · 1 min

Leap Year post!

A note on leap day plus the if-mod-4-and-100-and-400 check for detecting leap years in code.

#Journal#Code
Read post
Tips · 3 min

Open DNS

Review of OpenDNS, with notes on how its NXDOMAIN redirects break utilities that depend on a real not-found reply.

#Review#Web#Tutorial#Security
Read post
Tips · 1 min

How to disable AVG 7 temporarily.

Steps to turn off the AVG 7 Resident Shield from the Free Control Center when you need to.

#Tutorial#Security
Read post
Tips · 1 min

Tom Kha Gai

Recipe for Thai coconut chicken soup with galangal, lemongrass, lime leaves, and chiles.

#Recipe#Tutorial
Read post
Junk · 1 min

Links to torrent sites

A short list of regularly-used torrent search sites and the uTorrent client.

#Bookmark#Web
Read post
Development · 1 min

VS6 SP6

A mirror of the Visual Studio 6 Service Pack 6 installer for anyone still stuck on VS6.

#Code#Bookmark#C++
Read post