makandra dev
robots.thoughtbot.com

Rails 4.0 introduced a helpful new method for ActiveRecord queries: where.not. It can make clunky queries easier to read.

dev.housetrip.com

Introducing Trailer from HouseTrip, a simple menu bar app that helps you manage your GitHub pull requests. It’s one...

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

css-tricks.com

Crazy hack. Might be useful one day. The code required has since been extracted into a library.

extensions.libreoffice.org

Colorizes code in LibreOffice Writer. Note that you need to create a paragraph style _code for this to work.

I had a huge MySQL dump that took forever (as in: days) to import, while I actually just wanted to...

pngquant.org

pngquant is a command-line utility and a library for converting 24/32-bit PNG images to paletted (8-bit) PNGs.

dev.mysql.com

A MySQL DECIMAL column is used when it is important to preserve exact precision. It takes two parameters, where...

Rbenv won't compile REE 2011.03 properly on Ubuntu 12.04, failing with an error in tcmalloc.cc. If you want to...

You might sometimes use self to capture the context of this before it is destroyed by some function. Unfortunately self...

makandra dev

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

If you want to test that a certain text is contained within the document title of your page, you can...

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!

Give the table a style table-layout: fixed Give the cells in the first row a width The same width...

confreaks.com

Opal is a source to source ruby to javascript compiler, corelib and a runtime implementation that currently passes 3000 rubyspecs...

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

If you want to sort a Ruby array with a primary, secondary, etc. criterium, use a sort_by that contains...

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