Warning: Because of (unclear) rounding issues and missing decimal places (see examples below), do NOT use this when dealing with...
If you want to switch to another ruby versions, you have several options, depending on what you want: Do you...
If your terminal has many tabs, you'll want to keep them organized. To change their title from the prompt...
I had a huge MySQL dump that took forever (as in: days) to import, while I actually just wanted to...
There seems to be no way to use therubyracer -v '0.11.4' and libv8 -v '3.11.8.17' on OS X Mavericks.
A MySQL DECIMAL column is used when it is important to preserve exact precision. It takes two parameters, where...
Rbenv won't compile REE 2011.03 properly on Ubuntu 12.04, failing with an error in tcmalloc.cc. If you want to...
Great slide deck about various forms of refactorings.
You might sometimes use self to capture the context of this before it is destroyed by some function. Unfortunately self...
We have released Modularity 2. It has many incompatible changes. See below for a script to migrate your applications automatically...
If you want to test that a certain text is contained within the document title of your page, you can...
Opal is a source to source ruby to javascript compiler, corelib and a runtime implementation that currently passes 3000 rubyspecs...
TLDR: This card explains which threads and processes interact with each other when you run a Selenium test with Capybara...
tl;dr: Using has_many associations with a :through option can lead to lost or duplicate records. You should avoid...
Setting the colorbox opacity by hash parameter when initializing doesn't work the way like the documentation tells you.
On recent/fresh installations of Ruby 1.8.7 you may encounter this error why calling any bundled binary (or just bundle exec...
We've since created ActiveType which has a restricted subset of Virtus' features. It might be enough for your needs...
Just a quick note that Virtus can coerce (auto-cast) structured values like collections or maps: class Klass include Virtus.model...
When a Ruby block or proc takes multiple parameters, and you call it with an Array, Ruby will unexpectedly splat...
An annoying part of using font icons is that the icons usually need to live in the DOM. This is...
In Ruby, classes and modules are called constants. This card explains how Ruby resolves the meaning of a constant.
"CronMaker is a utility which helps you to build cron expressions." Check it out at http://www.cronmaker.com/.
Modern IRB has time measurement built in. measure # Enable measure :off # Disable Custom Should your version of IRB not offer...
Assert rmagick provision ... Gemfile gem 'rmagick', '2.13.2' # at this moment the latest stable version config/initializer/carrierwave.rb require 'carrierwave/processing/rmagick' ... and define a...