Tag Archives: ruby

Quick Hits: Setting the User Agent Header in Webrat

If you’ve read the new PragProg beta e-book on RSpec, you may have read that you can set HTTP headers for your Webrat request like so: Given /^I am browsing the site using Safari$/ do header "User-Agent" , "Mozilla/5.0 (Macintosh; … Continue reading

Share
Posted in Rails, ruby, Testing | Tagged , , , , | 1 Comment

Playing with JRuby, Part 1A

First, thanks to Lopex, Charles/Headius, and Thomas for their well-coordinated effort to alleviate some of my JRuby ignorance in my earlier post. And for not going out of their way to make fun of my janky “benchmarks” – like I … Continue reading

Share
Posted in Programming | Tagged , , | Comments Off

Playing with JRuby, Part 1

As part of a new project, I’m experimenting with JRuby, to see (a) if the alleged performance gains are all that and (b) see how far the Java integration – especially interface implementation – can be pushed. On the performance … Continue reading

Share
Posted in Programming | Tagged , , | 8 Comments

Hadoop Streaming for Rapid Prototyping of Distributed Algorithms

Note: This article assumes that you know a little about MapReduce, or that if you don’t, you might skim the enclosed links so you know what I’m talking about when I get to the examples, or check out the Hadoop … Continue reading

Share
Posted in Programming | Tagged , , , , , , , , | 20 Comments

Quick and Dirty Messaging

Our Rails Rumble 2008 entry, Great Minds (you can have a look at the latest version or the original Rumble version), required a messaging system. Such systems are easy to do wrong, and we knew we’d need something that would … Continue reading

Share
Posted in Great Minds, Javascript, Programming, Rails | Tagged , , , , , , , , , , | 3 Comments