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

makandra dev
cronmaker.com

"CronMaker is a utility which helps you to build cron expressions." Check it out at http://www.cronmaker.com/.

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

stackoverflow.com

Before Rails 3.2.14, when supplying an invalid locale to I18n, it would fall back to its config.i18n.default_locale (which is...

What Rails version Within before_* Within after_* Cancel later callbacks Rails 1-4 return false return false Cancel later callbacks...

If you're still working on ruby 1.8, you should know that using SimpleDelegator is often prohibitively slow. I have...

github.com

# Attach a file # # Example: # # Company.new.logo = File.new… # # Given the file "…" was attached as logo to the company above # # # Example: # # class Gallery...

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

stackoverflow.com

When you want to find out the data type of an attribute, you can just use ActiveRecord's columns_hash...

alanklement.blogspot.de

I've written about the problem with user stories before. At the time, I found it better to just have...

unixwiz.net

Note - This is not a tutorial on setup or configuration of Secure Shell, but is an overview of technology which...

makandra dev
github.com

Rack::Attack is a rack middleware to protect your web app from bad clients. It allows whitelisting, blacklisting, throttling, and...

makandra dev
github.com

FastClick is a simple, easy-to-use library for eliminating the 300ms delay between a physical tap and the firing...

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

bitovi.com

Syn is a synthetic event library that pretty much handles typing, clicking, moving, and dragging exactly how a real user...

makandra dev
bradfrostweb.com

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

Sometimes you need to monitor a connection from your machine to a specific, single host or network in order to...

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

glyphsearch.com

A better way to search Font Awesome & Glyphicons.