Archive | Ruby RSS feed for this section
passenger-pref-pane.jpg

Offline Gem Server RDocs

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 [...]

Read full storyComments { 32 }

Turning Off Webrat’s Automatic Browser Opening

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 [...]

Read full storyComments { 0 }

Mepisto to WordPress Converter

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 [...]

Read full storyComments { 0 }

Leopard LoadError: no such file to load — sqlite3

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 [...]

Read full storyComments { 10 }

Innovation 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.

Read full storyComments { 1 }
Backpack Ruby Script

Backpack Ruby Script

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 [...]

Read full storyComments { 4 }

Hpricot and utf-8

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 [...]

Read full storyComments { 8 }