When you do something like this in your code: def var_value @var ||= some_expensive_calculation end

visualpharm.com

Icons Sizes for Windows, MacOS X, iOS, Android and Linux. It's a mess!

TLDR: This card explains which threads and processes interact with each other when you run a Selenium test with Capybara...

tl;dr: Using has_many associations with a :through option can lead to lost or duplicate records. You should avoid...

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

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

We've since created ActiveType which has a restricted subset of Virtus' features. It might be enough for your needs...

Just a quick note that Virtus can coerce (auto-cast) structured values like collections or maps: class Klass include Virtus.model...

When a Ruby block or proc takes multiple parameters, and you call it with an Array, Ruby will unexpectedly splat...

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

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

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

alanklement.blogspot.de

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

makandra dev
amsul.ca

The mobile-friendly, responsive, and lightweight jQuery date & time input picker. Does not depend on jQuery UI, but currently does...

unixwiz.net

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