Sunday, May 29, 2011

ANNOUNCE: Hashtrack.js 0.2

Hashtrack.js 0.2 includes a number of bug fixes and enhancements, and I'd like to start doing official releases that really show off what the tool is capable of. I've been using this for a few years in projects both personal and professional, and I always merge improvements back into it. Hopefully, I can start making an effort to polish it up better, because in this day and age we all are finding ourselves in need of stateful web applications, and we need to handle this gracefully.

Take a look at the github repo for hashtrack if you like the sample code below, or take a look at the very sparse but informative docs.

 hashtrack.onhashvarchange("background", function (value) {
     $('body').css('background', value);
 }, true);

 -----

 <a href="#?background=green">Make the background green</a>

Sunday, May 01, 2011

ANNOUNCE: straight.plugin - A simple plugin loader for Python 2.7 - 3.2

Tonight I uploaded straight.plugin 1.1 to the Python Package Index. This release includes a new loader, straight.plugin.loaders.ClassLoader and adds an subclasses parameter to the simple load() API to invoke class loading, opposed to the default module loading. The classes are filtered by type and are looked up in the same modules that would be loaded by the ModuleLoader available in straight.plugin 1.0. This release has been testing on Python 2.7 and 3.2.

You can check out the source at github or the packages at PyPI.
I write here about programming, how to program better, things I think are neat and are related to programming. I might write other things at my personal website.

I am happily employed by the excellent Caktus Group, located in beautiful and friendly Carrboro, NC, where I work with Python, Django, and Javascript.