Author Archives: James Badger

Rails 3: Rack-Throttle your Rack API

Sometimes, you will want to decouple your Rails app and place your API in its own special folder in lib. You could be using Sinatra, Grape, or even your own Rack app. The advantage is you can separate out your … Continue reading

Posted in Ruby on Rails | Tagged , , | Leave a comment

Play Sound (Universal)

I received some requests to update the Play Sound Automator action to work with newer Macs, so I went and posted the source to Github. Upon restoring the source code from a backup, it was quite a surprise finding out … Continue reading

Posted in Cocoa, Development, Local Talk | Leave a comment

Passenger and nginx Maintenance Page

I recently had the pleasure of moving a Rails app from Apache/Passenger based system to an nginx/Passenger system, deployed by Capistrano. In Apache, I had a setup where I could take a production site down for maintenance by touching ‘tmp/stop.txt’ … Continue reading

Posted in Development, Ruby on Rails | Tagged , , , | 1 Comment