Click To Zoom Get Sinatra, Rubygems, and Passenger working for offline RDocs? Count me in. I saw this and new I had to have it. I’ve been on some long plane rides recently and I frequently find myself wanting to look up something from a gem’s documentation while I’m coding. You can use the gem [...]
Turning Off Webrat’s Automatic Browser Opening
by Jason on 18. Feb, 2009 in Ruby
If you’re using webrat for doing your integration testing with Rails and you’re on OS X you may notice that webrat opens an html version of the failing test every time you run it. This can be fairly annoying if you’re running autotest. I didn’t see how to turn it off in the documentation but [...]
Mepisto to WordPress Converter
by Jason on 11. Jan, 2009 in Ruby
As a recent experiment, I tried converting a blog from Mephisto to WordPress. After some quick Googling, I found out that Jason Gill had already largely solved the problem. Unfortunately, his solution didn’t completely work for me because I didn’t want to launch Mephisto to do it and I have an aversion with that much [...]
Leopard LoadError: no such file to load — sqlite3
by Jason on 24. Nov, 2008 in Ruby
I’m not quite sure why this happened, but I kept getting this error with Leopard and sqlite3: LoadError: no such file to load — sqlite3 I tried to gem install and uninstall sqlite3-ruby a few times but that didn’t work out. However, installing from source did. Head on over to the Rubyforge page and download [...]
Innovation in Ruby
by Jason on 08. Aug, 2008 in Ruby
Just got done doing a presentation with Gregg Pollack at the Ruby Hoedown. The talk was on Innovation in Ruby in the last year. You can grab a cheat sheet over on the Rails Envy web site.
Backpack Ruby Script
by Jason on 22. Jul, 2008 in Ruby
Each week I edit the Rails Envy podcast. We use Backpack to work together on the stories each week. Each story is a note in the Backpack page: Today while I was preparing the post, I remembered that Backpack had an API. A quick google turned up the Backpack API page with a link to [...]
Hpricot and utf-8
by Jason on 18. Mar, 2008 in Ruby
I tried to use Hpricot to parse a page with special characters in a utf-8 encoding. The docs tell you to do this: require ‘rubygems’ require ‘open-uri’ require ‘hpricot’ doc = Hpricot(open("http://url/")) However, this won’t give you the output you want. The open method on Open-URI leaves the output in the default character set [...]



