-
Posts just written
Me reacting to web stuff
Pages
Archives
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005
- April 2005
- March 2005
- February 2005
- January 2005
- December 2004
- November 2004
- October 2004
- September 2004
- August 2003
Monthly Archives: November 2006
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 [...]
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 [...]
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 [...]
The adventure continues: New job, with Ruby