If you have multiple monitors and want to share a given screen with your call partner, drag the caller window...

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

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

Use protocol independent URLs whenever possible so that the browser will choose the protocol related to the protocol which the...

fontawesome.io

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

Today I ran into trouble installing therubyracer on Ruby 1.8. The installation failed with *** extconf.rb failed *** Could not create Makefile...

If you need to enable NewRelic monitoring on certain machines within the same Rails environment, a simple solution is to...

Ubuntu has a package mysql-sandbox that lets you install multiple MySQL versions into your user home: Install mysql-sandbox...

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

developer.rackspace.com

Establishing a new SSH connection usually takes only a few seconds, but if you’re connecting to a server multiple...

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

| Chrome | CTRL+Shift+J | | Firefox / Firebug | CTRL+Shift+L |

makandra dev

The mysql2 gem in version 0.3.13 might break while compiling on older patch releases of Ruby 1.9.3 within rvm:

makandra dev

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

stackoverflow.com

I had some problems with Git and the file spec/fixtures/ČeskýÁČĎÉĚÍŇÓŘŠŤÚŮÝŽáčďéěíňóřšťúůýž. After pulling the latest commits, it would show that...

web.archive.org

Capistrano 2 brings the shell command which allows you to run commands on your deployment targets. There is also invoke...

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

tldp.org

$RANDOM on bash returns a random integer between 0 and 32767. echo $RANDOM 9816 echo $RANDOM 30922

makandra dev

Using CSS sprites for background images is a technique for optimizing page load time by combining smaller images into a...

makandra dev

Next time you have to do more than trivial CSS changes on a project, you probably want to have live...

Connect to your memcached host. (AWS elasticache is memcached) telnet foohost23.cs2631.0001.euw1.cache.amazonaws.com 11211 Once you're connected, find out which 'slabs...

1. Saving files to a directory that is not shared between deploys or servers If you save your uploads to...

linuxsa.org.au

Here is a good explanation for zombie processes. Quote: If you have zombie processes it means those zombies have not...