Author Archives: Tony
Simple Quarter Select – Rails plugin for Q1,Q2,Q3,Q4 selector
Have you ever wanted a select component for Quaters of the Fiscal Year (Q1,Q2,Q3,Q4)? The Simple Quarter Select Ruby on Rails plugin does it for you. It’s highly configurable and maps to the month of any datetime attribute in your model.
Why map the quarter to a datetime attribute?
I think the answer is obvious but [...]
Posted in Software Tagged datetime, helpers, plugin, rubyonrails, simple-quarter-select Leave a comment
Scaling a Rails Application – Thinking About the Full Stack
I found a great presentation about scaling web applications that I wanted to share with the world. Enjoy!
Scaling a Rails Application from the Bottom Up
If you enjoyed this post, make sure you subscribe to my RSS feed!
Install MySQL on Mac OS X 10.6 and add StartupItem
Installing MySQL on Mac OS X 10.6 took a bit of digging around. Here is a consolidated tutorial. I am leaving out sudo commands for convenience. Use them where you don’t have permission.
# create the directory where you will keep your MySQL binary distribution
mkdir ~/src
cd ~/src
# download mysql binary distribution from http://dev.mysql.com/downloads/mysql/
# [...]
Recovering off screen windows in Mac OS X
I constantly lose windows on OS X. I think it’s because sometimes I am connected to an external monitor so OS X gets confused when I am not. I found a great solution online that I would like to re-post here so that I never have to look for it again and I [...]
Posted in Random, Software 2 Comments
Converting Table Data to YAML for Testing in Ruby on Rails
One of my clients has a huge application with no test suite. I am helping the company migrate to Rails 2.3 as well as remove some bottlenecks from their code. I needed to convert around 10 look-up tables to YAML’s so that I could load the data as fixtures and test the application [...]
Posted in Software Tagged database, rails, rake, rubyonrails, tasks, testing, utilities, yaml 2 Comments
Getting jQuery, Rails, and Authenticity Tokens to play nice
For anyone that uses the jQuery AJAX library to send POST requests to their Rails application, you have probably found that the built in Rails CSRF protection does not play nice with your jQuery POST requests. By the way, if you don’t know what CSRF is, check out my Ruby on Rails security presentation. [...]

Country Seed Data for your Rails App