Just because I could, last night I cobbled together a PHP script to generate randomized results for this year’s NCAA men’s basketball tournament. Though randomized, each game result is weighted in favor of the lower seed via some questionable mathematics.
Some day if I clean up the code so that it’s not too embarassing to be [...]
NCAA Tourney Results Generator
Stupid Windows Update Reboot
This has practically nothing to do with PHP, other than it could save you some grief should you be editing a PHP file when Windows finishes auto-installing an update and decides to automatically reboot. (What idiot at M$ decided that any upgrade could be so important that it should ever reboot a PC without the [...]
A Song In My Heart
Inspired by a PHPBuilder.com forum thread, I came up with this additional verse to Pete Seeger’s “Where Have All the Flowers Gone?“:
Where have all the programmers gone?
Long time parsing
Where have all the programmers gone?
Long time ago
Where have all the programmers gone?
Gone to Starbucks every one
When will they ever earn?
When will they ever earn?
Maybe you have [...]
Sub-Domains on Windows localhost
I find it useful when working on a web project to set up a sub-domain on my development PC’s “localhost” Apache installation. This allows me to test the project by accessing pages via that sub-domain, treating the directory being used as the root of that sub-domain as if it were the web document root directory [...]
Google Chrome Beta
Note: See the comments section regarding the change in the EULA.
As I posted at PHPBuilder.com, Ghrome, Google’s entry into the browser wars, now has a beta version available for public download (Windows XP/Vista only, for now).
My initial impression is that it works just fine and seems pretty “peppy”. For me it has one bug so [...]
Turning Off Wordpress “Smart Quotes”
I just realized today that Wordpress was converting my “straight” quotes into directional or so-called “smart” quotes. While this may be nice for nontechnical blogs, it’s a pain in a programming-related blog. It can make a block of sample code useless when you copy and paste it until you go through it and convert those [...]
Wordpress Upgrade
I just completed the upgrade to Wordpress version 2.5.1. (Wordpress is the application which runs this blog.) It was a relatively painless process, and as it includes an important security fix, I recommend anyone else out there using Wordpress perform the upgrade as soon as possible.
Get the latest version here.
So far everything appears to be [...]
