Warning: Because of (unclear) rounding issues and missing decimal places (see examples below), do NOT use this when dealing with...

I had a huge MySQL dump that took forever (as in: days) to import, while I actually just wanted to...

coderwall.com

There seems to be no way to use therubyracer -v '0.11.4' and libv8 -v '3.11.8.17' on OS X Mavericks.

You might sometimes use self to capture the context of this before it is destroyed by some function. Unfortunately self...

If you want to test that a certain text is contained within the document title of your page, you can...

On recent/fresh installations of Ruby 1.8.7 you may encounter this error why calling any bundled binary (or just bundle exec...

In Ruby, classes and modules are called constants. This card explains how Ruby resolves the meaning of a constant.

When you print something from within your .bashrc file you will run into trouble when copying something onto your machine...

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...

If you get a Quota error with OpenStack, it doesn't have to be what it tell. For example, I...

makandra dev
bradfrostweb.com

A clever way to have inline labels ("placeholders") that don't disappear when the user enters text.

When I upgraded from 0.5.4 PDFKit deadlocked or crashed when an ApplicationController::RouteError occured. If this error happens only because...

Ubuntu 12.04 LTS x64, Ruby 1.8.7, Rails 2.13, PDFKit 0.5.4, Phusion Passenger Apache 2 I ran into this, when I...

makandra dev
ablogaboutcode.com

After reading, you will know why and how runners.each(&:run) works. Here some tidbits: & can be quite confusing because it...

fontawesome.io

Font Awesome 4 has renamed all icons. What the fuck. Check the attached link for an icon list for the...

makandra dev
magnus-g.github.io

Awesome Sass plugin to experiment with Subtle Patterns based textures. It automatically removes the base color from the pattern, leaving...

Rails has always included a scaffold script that generates a default controller implementation for you. Unfortunately that generated controller is...

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...

stackoverflow.com

If you want to have routes that are only available in tests (e.g. for testing obscure redirects), you can use...

askubuntu.com

If your XFCE renders text with overly hard, thin lines instead of smooth anti-aliased lines, you might need to...

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

Using text-transform: uppercase - especially on form labels - can cause you serious headaches in Selenium tests. Sometimes the web driver...

tjvantoll.com

Did you know you can color your line-throughs or underline, or make them wavy like spell-checkers do?