Github Twitter 2 Delicious Linkedin Stackoverflow Google plus new 32px Rss

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 running ...

Read more2 comments

Switching to Sublime Text 2

Updated – 07/16/2012 Please see my updated post for current instructions on getting Sublime Text 2 up and running on your machine. 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 t...

Read more11 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 change i...

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 is t...

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 a...

Read more18 comments