It is good programming practice to Don't Repeat Yourself (or DRY). In Ruby on Rails we keep our code...

So you client has asked you to implement a row of buttons to like the URL on Facebook, Twitter and...

When writing Rails migrations to convert a string column to an integer you'd usually say: change_column :table_name...

I recently experienced the error ActiveRecord::StatementInvalid: Mysql2::Error: closed MySQL connection. Apparently this happens when there is a timeout...

There may be reasons to change the locale of your Postgres cluster. A popular one is your development system's...

Working with lists in Javascript is painful because the native Array class is so poorly designed. One way to reduce...

makandra dev
docs.google.com

Presentation about awesome changes we can look forward to.

So you're switching to PostgreSQL from MySQL? Here is some help... General hints on PostgreSQL \? opens the command overview...

makandra dev

For all late night coders: The program "redshift" changes your monitors' white balance according to your position on the planet...

We sometimes send calender data or tasks using iCalendar (ICS) via eMail as specified in RFC 5545. Recently, a customer...

In contrast to RSpec's included allow_value matcher, the attached matcher will also work on associations, which makes it...

bundler.io

bundle open BUNDLED_GEM will open the BUNDLED_GEM's source code in your default editor.

In order to keep the controllers directory tidy, we recently started to namespace controllers. With the :controller option you can...

apidock.com

When you're writing migrations that do more than changing tables (like, modify many records) you may want some output...

When two classes implement the same behavior (methods, callbacks, etc.), you should extract that behavior into a trait or module...

Custom matchers are a useful RSpec feature which you can use to DRY up repetitive expectations in your specs. Unfortunately...

Shared example groups are a useful RSpec feature. Unfortunately the default directory structure generated by rspec-rails has no obvious...

When you have files in your .gitignore they won't be considered for changes, but still you might want to...

Exception notifications contain a lot of information: Backtraces, HTTP headers, etc. exception_notification tries its best to format this wall...

smartinez87.github.io

The new exception_notification has awesome options like :ignore_crawlers => true and :ignore_if => lambda {...

...}. These options should be helpful...

We tend to use database transactions as a magic bullet to get rid of all our concurrency problems. When things...

Consul 0.9 comes with many new features to optimize powers that only check access to a given record. e.g. Power.current.post...

For websites that don't do JavaScript rendering on the client, it's best practice to put script tags at...

jimneath.org

The linked page lists and explains global Ruby "dollar" variables, such as: $: (load path) $* (ARGV) $? (Last exit status) $$ (PID)