If you’re getting a failure from ‘rvm install rbx’ during the ‘Configuring rbx’ stage, and your logfile looks like: [2011-05-20 23:22:41] /Users/austinmills/.rvm/wrappers/ruby-1.8.7-p302/rake install /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:827:in `report_activate_error’: Could not find RubyGem rake (>= 0) (Gem::LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:261:in `activate’ from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:68:in `gem’ from /usr/bin/rake:18 Then you just need to make sure that rake is installed in your global [...]
Archive for the ‘Coding Tips’ Category
RVM: Could not find RubyGem rake when installing Rubinius
Posted in Coding, Coding Tips on May 20, 2011 | Leave a Comment »
Using Tsung for Load Testing Rails or Web Apps
Posted in Coding, Coding Tips on September 12, 2008 | 14 Comments »
After trying some other load-testing tools, I found Tsung, a load-testing application written in Erlang to take advantage of that language’s concurrency support. It scales well (it’s been used to simulate tens of thousands of users), it supports forms and HTTP sessions, and includes some niceties like proxy recording, ‘thinktime’ support, and a choice of [...]
Problems with Siege, Sessions, and Rails 2
Posted in Coding, Coding Tips on September 10, 2008 | Leave a Comment »
So, if you were going to do some load-testing on your Rails app, you might think, hey, Siege is pretty cool. It supports load-testing multiple URLs at once (either sequential or in random order), with a delay in-between, with lots of options for setting the duration and characteristics of the load. Plus, there’s a tool [...]
Transferring an EC2 Image (AMI) from one account to another
Posted in Coding Tips on December 20, 2007 | 2 Comments »
Thought I’d put this out there in case anyone was interested in doing this, as I had to recently. The short version is: there is no shortcut, you’ll have to re-bundle it from a running instance. So, we had some EC2 images (Amazon Machine Images, or AMIs) that had been stored under a developer’s personal [...]
“Unfortunately, a crappy schema is database-agnostic.”
Posted in Coding, Coding Tips on October 19, 2007 | Leave a Comment »
A friend of mine said this on the way back from lunch today and I had to preserve it for posterity.
Nifty JUnit 4 trick – parameterized tests
Posted in Coding Tips on April 16, 2007 | Leave a Comment »
Test Early points out a nice feature of JUnit 4 that I had overlooked — parameterized tests. If you’ve ever found yourself writing multiple repetitive test methods just so you could call the same method with various combinations of arguments, you should check it out.
Text decorators in Subclipse
Posted in Coding Tips on March 30, 2007 | Leave a Comment »
So, if you’re like me and reinstalling Eclipse and Subversion (or switching to Subversion from the built-in CVS plugin), you’ll find yourself thinking, “Hey… something’s missing. I just edited a file, but why doesn’t it look right?” Eventually, you’ll remember, “Hey… I used to see a greater-than sign (>) in front of all my edited [...]
Using vi to edit binary files in hex
Posted in Coding Tips on November 13, 2006 | 2 Comments »
While I’ve used many windows-based hex editors over the years, I never needed to do it from a Linux environment before, and so I wanted to see if there was a way to do it with a tool that would be included in most default distros. Some brief searching turned up this method with vi, [...]


