Tuesday, January 12, 2010

Qpid Ruby Driver

We have been playing with Apache's qpid as an amqp broker and I was getting annoyed with the need to include ext/sasl to run anything that used it as a gem. They were 99% of the way there but they didn't make the gem spec correctly so that it would actually run the sasl extconf.rb file. All you need to do is add the following line to the gem specification definition. (Line 108 in qpid-0.5/ruby/Rakefile)

s.extensions << 'ext/sasl/extconf.rb'

Now you can just include "qpid" in your client code without having to get sasl on the path.

This is one of thoses cases where github would be good, I don't know the best way to push this change back to whoever manages this code. There was a github branch of this code (colinsurprenant-qpid) but it is over a year out of date and doesn't even run against the current 0-10 version of qpid. It's too bad because he had addressed the strange way the amqp protocol xml spec files were handled and stored. I may have too look at repatching in those changes and adding the protocol files to the gem.

Monday, December 21, 2009

Converting Rails Numeric Migrations to Time Stamp

I looked on the web and couldn't find a good script to rename numeric migrations to timestamp ones when upgrading an application to a more recent rails (in this case so I can make it an engine).

Sunday, January 4, 2009

Tyler Hansbrough Scoring Record

I have created a little google spreadsheet to calculate the average score Tyler will need to break that assclown JJ Redicks ACC scoring record this season. I'll update it after every game.

http://spreadsheets.google.com/pub?key=p3VWUoIhiNb3jO3uexzZ6Lg

Update: Here is an .xls of the spreadsheet. http://sites.google.com/site/mercenerycode/files

Monday, September 22, 2008

Open Id

I started posting on stackoverflow.com and since I didn't have an OpenId and none of my other crappy blogs really have much to do with coding I made a new one with a cool name. Maybe ill post the fun or intresting things I find here. Probably not though, I am too lazy and too bad a writer.