martinfowler.com

Great slide deck about various forms of refactorings.

We have released Modularity 2. It has many incompatible changes. See below for a script to migrate your applications automatically...

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!

If you have a FooController and also have a layout app/views/layouts/foo.html, Rails will use this without being told so.

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

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

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

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

Goal Within before_* Within after_* Cancel later callbacks throw :abort throw :abort Rollback the transaction throw :abort raise ActiveRecord::Rollback...

Say you have a User with a Carrierwave attribute #avatar: class User < ActiveRecord::Base mount_uploader :avatar, AvatarUploader end

stackoverflow.com

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

unixwiz.net

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

bitovi.com

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

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

When I upgraded from 0.5.4 PDFKit deadlocked or crashed when an ApplicationController::RouteError occured. If this error happens only because...

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

fontawesome.io

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

Whenever you create a table from a database migration, remember to add updated_at and created_at timestamps to that...

divshot.com

Motion is quickly becoming one of the most important emerging techniques in building a quality user experience on the web...

uxmatters.com

Advice for address forms that work with address structures from multiple countries.

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