Archive | Ruby RSS feed for this section

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 { 8 }

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. Delicious Digg This Post Facebook Reddit This Post

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 { 2 }

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 }