Tuesday, May 31, 2011

mc-settings: Gem created at ModCloth for managing configuration

We at ModCloth have been for a while focused on sharing some of the code we've written with the community, to give back to the open source.

MC-Settings is a cute little gem that provides smart ways of managing your multi-platform/per-deployment application configuration in a convenient set of YAML files, which are easily managed and activated using Capistrano.

For example, beyond configuration that is specific to Rails environment (such as production, development, etc), you may have configuration that is machine specific, or a cluster specific, etc. For example, if you run on multiple clusters, application servers on one cluster may need to use one set of MemCached servers, while your second cluster could have another set. How do you manage configuration in your deployments in such a way that allows sensible defaults, and per-system, cluster, environment overrides?

This is where MC-Settings gem comes in. Read up below on how to use the gem, and typical patterns that work with Capistrano.

Update, June 2012

While mc-settings is certainly great, it turns out this well maintained gem does very similar thing, but provides more flexibility:
Rails Config

Monday, May 30, 2011

RailsConf 2011 Best of Sessions

Below I put together my personal list of best RailsConf 2011 presentations that have online slides or PDFs. I put my comments next to each. Click on the link, then click on the "slideshow" or "PDF" links for each talk.

And if you are feeling sentimental, and added bonus:

  • 50 in 50 is a really zany presentation on computer science achievements in the last century. Great meditative presentation, and goes way over 1 hour. No relationship to ruby/rails, but everyone will get something out of it

Friday, May 13, 2011

mms-mime: MM7/MMS MIME parsing gem

https://github.com/kigster/mms-mime

This gem was written with a simple aim to parse MM7 wrapped binary and base64 encoded MMS messages received via MM7/XML HTTP post from an MM7 compatible gateway connection (such as OpenWave, OpenMarket, etc).

The gem provides a simple way to parse and access MMS message contents, such as from, to, subject and content parts (including image and text parts).