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.
CarrierWave attachments have two distinct methods #url and #path which appear to behave the same: document.file.url # => /storage/documents/4/letter.doc document.file.path # => /storage/documents/4/letter.doc
Modern IRB has time measurement built in. measure # Enable measure :off # Disable Custom Should your version of IRB not offer...
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...
Before Rails 3.2.14, when supplying an invalid locale to I18n, it would fall back to its config.i18n.default_locale (which is...
Goal Within before_* Within after_* Cancel later callbacks throw :abort throw :abort Rollback the transaction throw :abort raise ActiveRecord::Rollback...
If you're still working on ruby 1.8, you should know that using SimpleDelegator is often prohibitively slow. I have...
This error occurs when you already have a database.yml which defines the database for the cucumber environment instead of test...
Say you have a User with a Carrierwave attribute #avatar: class User < ActiveRecord::Base mount_uploader :avatar, AvatarUploader end
Rubymine supports keybinding to switch panes by hotkey like awesome window manager users are used to. Type "splitter" in the...
I've written about the problem with user stories before. At the time, I found it better to just have...
The mobile-friendly, responsive, and lightweight jQuery date & time input picker. Does not depend on jQuery UI, but currently does...
Note - This is not a tutorial on setup or configuration of Secure Shell, but is an overview of technology which...
FastClick is a simple, easy-to-use library for eliminating the 300ms delay between a physical tap and the firing...
Sometimes you need to monitor a connection from your machine to a specific, single host or network in order to...
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...
Usually our mysql queries are not case sensitive. In order to query case sensitive, you can use the mysql COLLATE...
After reading, you will know why and how runners.each(&:run) works. Here some tidbits: & can be quite confusing because it...
Font Awesome 4 has renamed all icons. What the fuck. Check the attached link for an icon list for the...
Weighttp is threaded and might exhaust resources of an application better than ApacheBench or httperf. You need libev installed.
I recently created a survey asking fellow designers about the problems they faced when creating fully responsive sites. This article...