Fork me on GitHub

code

Category Archives: Code

The occasional project to do something fun or to learn a new technology. Typically end up unfinished as they’re an “I’ll finish that when I get the time” type projects, and we all know how those go.

Excluding packages from MacPorts operations

As much as I’d like to jump whole hog on the PHP 5.3 bandwagon I just haven’t had the time to read up on the compatibility issues not work out what I’d need to do to maintain a PHP 5.2 and a PHP 5.3 environment on my computer. For now I’ll just be sticking with […]

July 14, 2009 | Code | 3 comments

Simple, but handy .htaccess tricks

These two have always been questions in my mind but until recently I’ve never had the need to actually put time in to satisfying my curiosity and as I look around I haven’t (easily) found any real world examples of these out there. So, we all know how to set up basic HTTP authentication, right? […]

July 10, 2009 | Code, Computers | 8 comments

Announcing the SP Source Code Highlighter plugin for WordPress

Maybe you noticed already, maybe you didn’t (I’ll wager on the latter 😉 ) that recently this site got new source code highlighting in posts. Or, should I say, that it GOT source code highlighting in posts. I had made a simple Script Source viewer a while back. Something simple and straight forward that I […]

July 7, 2009 | Code, PHP Scripting, Plugins | 1 comment

WordPress TextMate bundle updated for WordPress 2.8

The WordPress TextMate bundle has been updated for WordPress 2.8. New items include: quick access to esc_ functions. Mark Jaquith great writeup of the new escaping functions as well as the reasoning behind them new WordPress 2.8 widget templates. Head over to WP Engineer for a tutorial on the new widgets. The new OO structure […]

June 19, 2009 | Code | 1 comment

Announcing the WordPress TextMate Bundle

As the name implies this is a TextMate bundle to assist with WordPress development. Where I work we’re on WordPress almost every day doing this or that and it gets pretty tedious to not only remember the schizophrenia that is PHP syntax, but the schizophrenia that is my own code as well as the schizophrenia […]

April 29, 2009 | Code, Computers, Plugins | 1 comment

Client side pre- and post-svn hooks with Unix Aliases

Its probably nothing new but I came up with a way to do client side post- or pre-svn actions. Its nothing revolutionary but has already come in handy. The script is *nix only (though I don’t see why the same process wouldn’t work on Windows if it supports command line aliases like *nix does). I […]

April 23, 2009 | Code, Computers | 1 comment

XHTMLr (beta)

The name plays off the older Web 2.0 trends of funky names being copied from Flickr and constant beta status of a lot of emerging projects. The XHTMLr is the beginnings of an online companion to the Fuzzy Coconut XHTML Reference Widget. Designed to be clean and straight forward it still needs a database expansion to have […]

July 5, 2007 | Code | Comments Off on XHTMLr (beta)

Long Live the Image Map!

Oldie but Goodie Why should the image map be ignored? Its understood by every major browser around and is perfectly suited to do what some people insist on doing in flash. This sample shows a simple North American map divided up into regions and the rollovers controlled by some very simple JavaScript code. JavaScript was […]

March 16, 2007 | Code, Web Design & Development | Comments Off on Long Live the Image Map!