Christopher Craig

Entries for the ‘Development’ Category

Versions - A Subversion Client for OS X

Versions, a Subversion client for Mac has finally been released in beta form after a year of development. I’d completely forgotten about it, until they emailed me. In fact, I don’t even remember signing up for any development notices. Anyway, it’s free to download, but it expires on July 1st. I [...]

Leave a Comment

IE innerHTML Bug

I’ve been back doing web development in PHP for a week or so now, and I’ve been trying to use AJAX to update one SELECT element with a new set of values when the value of a different SELECT element changes. I don’t see the need to reload the whole page just for this, [...]

Comments (1)

PHP: Automatically Include Class Definitions

I’ve been doing some PHP development lately, and I just came across a handy little magic function for PHP 5 called __autoload. If you’re like me and have each class definition stored in its own file, then you can use this function to automatically include class definition files whenever they’re needed. For example, consider [...]

Leave a Comment

PHP Ultimate Getter Setter Methods

PHP doesn’t offer much in the way of read-only member variables, so when you need one, you have to make the variable private, and define a getter method. This is all well and good, but what if your class has dozens of member variables? The class size grows quite quickly.
To solve [...]

Comments (2)

Daily Delicious for Wordpress

For those of you who are regulars of my site, you may have noticed some posts (mainly in your RSS feeds) that were blank. A major pain, I know. Well, this should be fixed now. I was troubleshooting a new Perl script that integrated del.icio.us into my site.
The Perl script I was working on [...]

Leave a Comment

SQLite Boolean — True or False?

For the past few months I’ve been working on a desktop application for a client that required a version for Mac and one for PC. I chose to write it using REALBasic 2007 because I don’t particularly like Java, and REALBasic allowed me to write source code once, and compile for OS X, Windows, [...]

Comments (5)

Web Development with Coda

I’ve been using Panic’s Coda for all of my web development for about 6 months now, and it’s fantastic. Check out the review from Shawn Blanc via TUAW.com to find out why Coda is such a great product.

Comments (7)

Canadian Email Weather Warnings

Environment Canada makes all weather data shown on their website freely available for anybody to use as long as credit is given to them, and no affiliation is assumed. I wrote this script because I wanted to get emails whenever a weather warning was issued in my area, and as far as I could [...]

Comments (2)

PHP Configuration Class

Lately, I’ve been trying to tighten up my PHP coding practices. I already had a naming convention and a commenting convention defined, but the one thing I was missing was a practical, consistant, and elegant way to manage script configuration variables.
Previously, I had just been using a file called config.inc.php to hold variables like [...]

Comments (4)

Subversion on Leopard

Just a quick note. I just discovered that OS X Leopard comes with Subversion already installed. Great news. The sooner Subversion replaces CVS, the better.
Also, check out ZigVersion if you’re looking for a SVN client. It’s free for non-commercial use, and it’s leaps and bounds better than SVNx.

Leave a Comment