makandra dev
tech.taskrabbit.com

At TaskRabbit, we have gone through a few iterations on how we make our app(s). In the beginning, there...

When you are working with Backbone models and inheritance, at some point you want to overwrite inherited methods but call...

relishapp.com

Sometimes you have a test expectation but actually want a better error message in case of a failure. Here is...

If you want to switch to another ruby versions, you have several options, depending on what you want: Do you...

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

Modern IRB has time measurement built in. measure # Enable measure :off # Disable Custom Should your version of IRB not offer...

makandra dev
github.com

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

makandra dev
fontcombiner.com

Font Combiner offers a way to tweak and adjust any TTF or OTF font (license permitting), by bringing in font...

creativebloq.com

I recently created a survey asking fellow designers about the problems they faced when creating fully responsive sites. This article...

stackoverflow.com

You're better off using debugger-ruby_core_source: gem install debugger-ruby_core_source If you can't do...

So you client has asked you to implement a row of buttons to like the URL on Facebook, Twitter and...

makandra dev
skillsmatter.com

With Rails 4, Concerns have become the “official” solution to the big-models problem. However, there’s a fair amount...

github.com

The asset pipeline (which is actually backed by sprockets) has a nice feature where templates ending in .jst are compiled...

We tend to use database transactions as a magic bullet to get rid of all our concurrency problems. When things...

This card shows how to upgrade a Rails 2 application from Rails 2.3.8 through every single patch level up to...

github.com

Backbone plugin to override getters and setters with logic.

To reset the position of split dividers, drag all the dividers out of the screen. Then turn off splitting and...

You have multiple options: Just don't have a type column. All STI magic will be disabled automatically.

When you need to find out in which kind of spec you are during run-time, it's definitely possible...

railway.at

Note: These instructions are for a quick per-project setup and may require you to change code. If you generally...

We have often felt the pain where our models need to serve too many masters. E.g. we are adding a...

Caution when using .where to exclude records from a scope like this: # Fragile - avoid User.where("id NOT IN (?)", excluded_ids...

The way Rational#to_s works on Ruby has changed from Ruby 1.9 on. Here is how to get the...

Unfortunately, Capybara does not offer a switch to disable cookies in your test browser. However, you can work around that...