Monthly Archives: November 2006

The adventure continues: New job, with Ruby

Kumputunturi Originally uploaded by sushipumpum. And Javascript. And all the rest a web developer does. Now I commute to Malmoe, Sweden, to do this. I love it. A great team, here at Polar Rose. I’ll post more on my progress and that when I get around to it. This [...]
Posted in General | Leave a comment

Ruby and libxml: Collect your XML::Node::Set

Use collect and map in Ruby says Lucas Carlson. Thanks for pointing out that code arthritis, Lucas. So, I was working with the libxml-ruby library (fast XML parsing) and found some loops in my code which could be converted. But, XML::Node::Set did not support collect. I mumbled something inaudible, grabbed the Pickaxe book, found the section [...]
Posted in Ruby on Rails | 2 Comments

Installing libxml-ruby for libxml2 with Ruby, on OS X

Just had an exciting package management adventure with Ruby and XML on OS X. I wanted Libxml2 wrapped in a Ruby gem. So, I ran sudo gem install libxml-ruby …and watched the software fail to build. Darn OS X not “just being Linux”. After complaining to Christoffer, I was kindly pointed to a MacPort: sudo [...]
Posted in Ruby on Rails | Tagged , | 2 Comments

Kiva microlending data point

Jonas says Kiva Works, and his first loan just got paid back. Great! (Previously, I introduced Kiva here at the blog.)
Posted in General | Leave a comment

irb with wirble

Using irb with your Ruby? Yeah, I thought so. If you want syntax coloring, ri inside irb and a shorter prompt, get Wirble: sudo gem install wirble And add an .irbrc file to your home directory, following Wirble’s advice on what to put there. Oh, and when you have one of those, you could add Ben Bleything’s command history [...]
Posted in Ruby on Rails | Tagged , | 3 Comments

Go snippet away, Rubyboy

Just started my morning with fixing a personal annoyance with the current Rails distribution I am using with Ruby 1.8.5: warning messages about deprecated syntax. All I did was heed the advice in the warnings and edit all the when and else control structures that were using colons to using semi-colons. After that, my Rails [...]
Posted in Ruby on Rails | Tagged , | Leave a comment