Category Archives: Software
Country Seed Data for your Rails App
Never go looking for basic country seed data again:
[
{ :name => 'Afghanistan', :iso_two_letter_code => 'AF' },
{ :name => 'Aland Islands', :iso_two_letter_code => 'AX' },
{ :name => 'Albania', :iso_two_letter_code => 'AL' },
{ :name => 'Algeria', :iso_two_letter_code => 'DZ' },
{ :name => 'American Samoa', :iso_two_letter_code => 'AS' [...]
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 [...]
Also posted in Random 2 Comments


Rails Authentication with Devise and CanCan – Customizing Devise Controllers