Sax Mapper: SQL batch inserts from XML with SAX parsing in Ruby
As part of my work with IMS Global on educational data specifications, I’ve been working on a REST binding of the Learner Information Services (LIS) protocol, that I call Simple LIS. I wrote the reference implementation with Hpricot DOM parsing and ActiveRecord, so it had speed and memory issues when run in production.
A Google Wave robot container in Sinatra
Since I got a Google Wave account at Google IO, I felt like I should try to do something Ruby-ish in it. I got talking to Charles Nutter, and he suggested a Sinatra template for Wave Robots. So here it is. I stole shamelessly from Tim Morgan (http://github.com/seven1m) and Sam Ruby (http://github.com/rubys) to make this [...]
Invitation-bot: A Google Wave Robot in Python
Google Wave opened its doors to Google IO attendees yesterday, and I’ve been playing with it a bit since then. We had the usual problem with a new communications system: no one knows anyone else. And so a thread was started on the google groups list, where people were listing their email addresses so people [...]
Mongrel Cluster Charts using god and munin
I wanted a way to get graphical histories of my Rails app’s behavior, and I decided the easiest way to do that was to create a munin-node plugin for god. So I did that in a fork of god here: http://github.com/MikeSofaer/god/tree/master
Rails on App Engine: A Cold Start
I’m at RailsConf ’09 and I want to get a “Hello World” style Rails app running on Google App Engine, from a totally cold start, without any dependencies. A lot of this is available in various places on the net, including Dan Kubb’s sample Datamapper Rails app, and Ola Bini’s Rails on GAE post.
Finding the Biggest Group
An interesting undocumented piece of ActiveRecord I bumped into today is “count_all”. You can use this inside ActiveRecord count calls to do sorts and limits based on the count when you’re doing GROUP BY. I came across this because I was having a bit of trouble recently finding the Rails way to find the biggest [...]






