Switching to Sublime Text 2 Updated

Since I wrote my original post on switching to Sublime Text 2 a lot has changed. The final version was released just a few weeks ago. I also got a new computer and had to reinstall it; what I had originally written is a bit out of date so here is an updated post. Command line Tool ...

Read more10 comments

File Uploading over AJAX using HTML5

Using the HTML5 File API to upload files over AJAX is a great way to to add file upload capabilities and not resort to using a flash based solution or iframe hacks. It's easy to use and works with most modern browsers. This example use the Data URI Scheme to transfer the file over AJAX. ...

Read more2 comments

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 - 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, n...

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

Read more0 comments