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...
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...
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 |
The mysql2 gem in version 0.3.13 might break while compiling on older patch releases of Ruby 1.9.3 within rvm:
For all late night coders: The program "redshift" changes your monitors' white balance according to your position on the planet...
I had some problems with Git and the file spec/fixtures/ČeskýÁČĎÉĚÍŇÓŘŠŤÚŮÝŽáčďéěíňóřšťúůýž. After pulling the latest commits, it would show that...
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...
$RANDOM on bash returns a random integer between 0 and 32767. echo $RANDOM 9816 echo $RANDOM 30922
Using CSS sprites for background images is a technique for optimizing page load time by combining smaller images into a...
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...
Here is a good explanation for zombie processes. Quote: If you have zombie processes it means those zombies have not...
The Rails secret_token must be unique for each application and any instance of it. If not, someone could exploit...
Merge requests are often rejected for similar reasons. To avoid this, before you send a merge request, please confirm that...
Put the attached files into your home directory and enjoy. .irbrc defines interesting_methods, which is essentially all methods without...