Why rescue nil is bad

From time to time I see people write code and at the end of the line there will be: rescue nil. This is not good because it will rescue from any exception. I see people rescuing nil because they have a variable and they aren't sure if it is nil so they want to protect against run...

Read more0 comments

Switching to Sublime Text 2

Updated – 01/12/2012 I recently switched over to Sublime Text 2 for my primary development editor. I was waiting to see what TextMate 2 would be like, needless to say I didn't see much an improvement. Sublime Text 2 has got some nifty features like multiple columns, rows, or even gri...

Read more7 comments

Set OSX Snow Leopard to UTC

I was recently looking into a production issue that had to do with time zones. In order to accurately debug it I had to set the time on my machine to UTC. This is how I changed it on OSX Snow Leopard: $ sudo ln -sf /usr/share/zoneinfo/UTC /etc/localtime Once your done c...

Read more0 comments

EngineYard AppCloud Account Management

If you are working on several projects that are all deployed on EngineYard AppCloud managing deployments can be a bit tricky. When you first deploy an application using the engineyard gem you authenticate using your email and password. A file named .eyrc containing an API token ...

Read more0 comments

Video Encoding with Uploadify, CarrierWave and Zencoder

For a recent Rails 3.1 project one of the features requested was to allow users to painlessly upload videos and have them all look consistent. We choose Zencoder for our video encoding service and Rackspace Cloud Files for storage. We were already using the gem CarrierWave for attachments...

Read more9 comments

Inaugural Post

Welcome to my blog. I've been telling myself that I should create one for the past couple of years, it seems that every project I work on I end up with some bits of information that I think might be useful to others. I built this blog using the latest version of Ruby on Rails (3.1) and it is hos...

Read more2 comments