Blog

Custom Subversion Build on Mac OS X

A few weeks back I found myself having to build subversion from scratch on Mac OS X. I think the version that comes shipped on the mac is a few revs back and if I recall we were having trouble with unfuddle, and their recommendation at the time (though they subsequently fixed the issue) was to upgrade your subversion client to the latest version. As of this writing that was v1.6.6

There was a serious "gotcha" that I ran across when trying to build the subversion libraries (I was getting an obscure "symbol not found: _ne_set_connect_timeout" error), and it had to do with the LDFLAGS environment variable that the auto-generated Makefile created. Here are my notes on what I had to do in order to get this working. Note: this assumes that you have all of the Mac Developer tools already installed. There are lots of posts on the interwebs on how to do that. Read more


Tokyo Cabinet Install Ubuntu

If you run into this error:

checking bzlib.h usability... no
checking bzlib.h presence... no
checking for bzlib.h... no
configure: error: bzlib.h is required

It's because you need the bzlib devel package. On ubuntu, it's (obviously?) libbz2-dev...

Read more

Upgrading Rails 1.2.6 -> 2.3.4

Yes, it's pretty sad that I still have a few sites running on 1.2.6. There's been plenty of good articles out there about the various steps you need to take to upgrade your app. Here's a quick rundown of some of the gotchas I ran into during this most recent upgrade for an old client.

No More acts_as_list

This one is easy:

ruby script/plugin install acts_as_list

File Column

Back in the day this plugin was the shiznet. Sure there are lots of newer (and better) implementations (try Thoughbot's Paperclip). But if you are lazy (like me) the file column plugin still works. However, their code relies on what was just the plain vanilla Inflector module. You have to go in and replace all mentions of Inflector with ActiveSupport::Inflector. Read more


Sinatra, Passenger / Nginx, Wordpress

This blog uses this technology stack (at the time of this writing). I didn't want the basic content pages to running under Wordpress, for a couple of reasons - predominantly because I wanted to use Sinatra and try my hand at Haml. That and a rack config...

Read more

Google Analytics API Wrapper

I wrote this simple class last Friday as part of what was supposed to be my skunkworks day (I only got 20 minutes to myself… sigh). Time management for another post! In any event, I was messing around with the Google Analytics API - the majority of my company's domains use this app and that it would be good to prototype some functionality that could go grab visitors and bounces, could parse the responses and throw the result into an XML format that our Fusion Charts software could then display. Here's some mocked up code that could get you started.

Read more