February 3, 2015 gsub(pattern, hash) → new_str
In Ruby's String#gsub method, if the second argument is a Hash, and the matched text is one of its keys, the corresponding hash value is the replacement string.
ALTS = { "cat" => "man", "hat" => "mirror" }
"The cat in the hat".gsub(/.at/, ALTS)
=> "The man in the mirror"
See the Ruby docs for more.
January 22, 2015 Rather than running the normal bundle install command, you'll need to specify the path to pg_config and then build the bundle:
bundle config build.pg --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.4/bin/pg_config
January 17, 2015 Why ORM Divides Us
The argument is fundamentally about choosing what's in charge of your system, the system being composed of your databases, your applications, and your supporting infrastructure (your scripts, your migrations, etc.) ... Read the full article >
January 16, 2015
Read Uncle's Bob's post on The Clean Architecture >
September 29, 2014 "...using many weak predictors will always be more accurate than using a few strong ones."
- Vladimir Vapnik