Sam Pierson's blog



Sam PiersonSam Pierson
Standup 9/24/2009: Hiring a Sysadmin, Rails Security Patches
edit Posted by Sam Pierson on Thursday September 24, 2009 at 01:40PM

Help

Interesting

  • Mouseophobics - Ctrl-Enter on the RubyMine Commit Changes dialog will commit without you having to grab your mouse.

  • Rails Security Patches - The Rails team recently came out with 2.3.4 featuring security patches to fix the recently discovered vulnerabilities. Apparently the plan was to also upgrade 2.2.2 to 2.2.3 with these patches, but they forgot to push the gems. They should be coming to a gem server near you soon.

Sam PiersonSam Pierson
Standup 9/23/2009: Multiple Rubygems Versions, Abstract AR Classes
edit Posted by Sam Pierson on Wednesday September 23, 2009 at 09:14AM

Help

How do you deal with an old, soon to be retired codebase that requires old versions of rubygems and rake, and a new codebase that requires new version of rubygems and rake, on the same machine?

Suggestions:

  1. Have two separate Ruby installations (each with its own gems).
  2. Don't. Use two machines. Optimize for developer resources rather than hardware, the former being much more expensive than the latter.

ActiveRecord Abstract Class doesn't work with validations?

AR allows you to set abstract_class = true. The makes the class uninstantiable, i.e. you can't create instance of the class, you have to create a subclass of it and create an instance of that.

However, if you create an abstract class that contains validations, then subclass it, the subclass produces errors when attempting to validate. This features does not seem well thought out.

Has anyone used Capistrano to deploy to a load balanced EC2 cluster?

Suggestions:

  • Follow the "deploy to localhost" path.
  • Use Cap for bootstrapping and Chef for configuration.

Sam PiersonSam Pierson
Standup 9/21/2009: Cabulous
edit Posted by Sam Pierson on Monday September 21, 2009 at 01:36PM

Interesting

  • Cabulous is going into beta: UpStart Mobile, makers of Find my Friend are releasing the beta of Cabulous: "A mobile application that gives cab drivers and their passengers the peace of mind of seeing exactly where each other are from hail to pick-up.". Now that's what I call handy. The Cabulous beta is being held in San Francisco, California in November/December 2009.