RVM aliases

Problem: I recently upgraded RVM, and now every time I cd into a directory with a .rvmrc file that has ruby_string="ruby-1.9.3", I get this warning: ruby-1.9.3-p392 is not installed. To install do: 'rvm install ruby-1.9.3-p392' Unfortunately, I’m too busy to install the newer patch level Ruby right now. Solution: Create a RVM alias that points...

Use SSH agent forwarding to deploy via Capistrano

Setting up and maintaining deploy keys in github can be annoying. If you’re looking for a workaround, follow github’s instructions to deploy using your own personal SSH key. Moving forward, we’ll assume you’ve generated SSH keys on your local machine. Step 1: add a few lines to the ~/.ssh/config file on your local machine. We’re...

Serving @font-face fonts to Firefox from an S3 bucket

I’m building a Rails site that uses the excellent asset_sync gem to push my assets up to an S3 bucket on deploy, and I ran into an issue where @font-face fonts were rendering fine in all browsers except Firefox. After a little googling, I found that it’s an issue with Firefox’s “file uri origin” policy. http://stackoverflow.com/questions/2856502/css-font-face-not-working-with-firefox-but-working-with-chrome-and-ie http://stackoverflow.com/questions/5008944/how-to-add-an-access-control-allow-origin-header The...

Upgrading to Lion

I just upgraded to Lion and ran into a few issues trying to compile Ruby via RVM. Turns out you need to update Xcode and manually install the Command Line Tools. Makes sense, but I got hung up for a few minutes trying to figure out why it didn’t “just work.” UPDATE I also had...