Category Archives: Development

Building MySQL for Python on Mac OS X Leopard (10.5)

Trying to get Django set up on 10.5, I noticed mysql-python needs a small patch to build properly on OS X.

I don’t know if this is required for every python/mysql install, but I know it was needed when building for MySQL 5 insalled from macports, and the system provided python libraries.

Simply fetch the patch, then apply:

patch -u -p0 -i /path/to/_mysql.c.patch

After that, make and make install as usual. That should do it!

Reentrant AutoHyperlinks & API changes

So, right now I’m working on AutoHyperlink’s thread safety.  Luckily for us, flex – the lexical analyzer AH uses to check a URI’s validity – allows us to create a reentrant lexer.

Combined with some API refactoring I’m doing (AHHyperlinkScanner works much like NSScanner now), it’ll be a nice slick little framework that’s thread safe and nice to work with.

I’m planning on committing the source post Adium 1.3 branch since it plays with API elements and I don’t want any surprise regressions to hold up release, but, if you’re curious, you can get a patch to apply to Adium’s svn trunk here.

[Update:] Just a quick edit to add that this version of the framework, which is included in Adium’s svn tunk and will be released alongside Adium 1.3, will be dubbed AutoHyperlinks.framework 1.0 and added to the maccode repository.

Developer Links Plugin for Adium

I just popped a plugin target to Adium’s trunk that will linkify the trac’s shorthand for changesets and tickets.  It’s still a bit janky, and not at all supported, but it makes things a bit easier when talking about tickets and the like.

It’s mostly recycled code from AutoHyperlinks, and for now it only supports Adium’s Trac.  However, if you find yourself working on or talking about Adium code a lot, you can find it here: Developer Links Plugin.

Eventually, it’ll have a preferences GUI so you can bind it to your own project management system – even several.  But for now, it just works for Adium.