Hi! I'm Avdi Grimm, and this is my software development blog. More...
Books and Screencasts
Small plates of gourmet Ruby code.
Watch me build an app from scratch.
Objects on Rails
A developer notebook on applying classic Object-Oriented principles to Ruby on Rails projects.
The definitive guide to exceptions and failure handling in Ruby.
Monthly Archives: November 2009
If you’ve used the RightAWS tools to talk to Amazon Web Services, you’ve probably seen this warning before: warning: peer certificate won’t be verified in this SSL session No one likes warnings cluttering up their output, and this one indicates … Continue reading
The only way to retrieve multiple items at a time, along with their attributes, from Amazon SimpleDB is with the Select operation. Typically, you query for some property of the items which you want to retrieve, not by item name: … Continue reading
(Also posted to Superuser) Hi there lazyweb. A non code-related question today: The last time I built a PC the tricky parts were knowing the difference between ISA, VLB, and PCI cards; juggling IRQs; and getting IDE master/slave right. Now … Continue reading
I often find myself wanting to perform some kind of transform on a Ruby Hash which results in another Hash. For instance, converting all keys to strings. Ruby’s built-in Hash methods make this a little inconvenient, because all the standard … Continue reading
So I was profiling our app the other day and discovered it was spending a significant amount of time in REXML. “REXML?” I thought. “Who uses REXML in 2009?” For anyone who doesn’t know, REXML is Ruby’s standard pure-Ruby XML … Continue reading
Trust, but verify Self-confident code does not ask questions about the data given to it. It enforces validity, asserts that its expectations are met, or ignores data which isn’t up to its standards. Previously we’ve looked at some methods for … Continue reading
Over the past couple weeks I’ve been updating the DataMapper SimpleDB adapter for DataMapper 0.10, an effort which yesterday culminated in the release of version 1.0.0. Testing against Amazon SimpleDB can be an excruciatingly slow process – not only can … Continue reading