Creating records in specs can be so fast that two records created instantly after one another might have the same...

We upgraded a Rails 2 application to Rails 3.2 and Ruby 2.1, changed the mysql adapter from mysql to mysql2...

p ActiveRecord::Base.connection.indexes(:table_name)

This may be hard to find in the docs, but if you want CoffeeScript classes that instantiate their properties from...

github.com

A collection of useful filters for AngularJS, e.g. for fuzzy string searching, displaying numbers as percentages an more.

makandra dev
ankane.github.io

Create beautiful Javascript charts with one line of Ruby. Promising chart library for easily rendering charts with Google Charts.

makandra dev
github.com

A different take on what we're doing with ActiveType. Since it lives under the rails organization it might be...

In Thunderbird, you can set custom font faces and sizes for reading plain-text e-mails. However, Thunderbird sometimes "randomly...

api.rubyonrails.org

To avoid n+1 queries, you want to eager-load associated records if you know you need to access them...

Cookies without an expiration timestamp are called "session cookies". [1] They should only be kept until the end of the...

Capybara will fail to find tags that are missing an href attribute. This will probably happen to you every now...

When your system is not running on English, you may sometimes want to run some applications and not use your...

In Rails, you can very easily send emails with HTML and plaintext bodies. However, if you're trying to debug...

Use reorder to replace an existing order clause with a new expression.

ruby.about.com

The flip-flop operator is a hotly contested feature of Ruby. It's still struggling to find an idiomatic use...

makandra dev

We will be installing rbenv and ruby-build from our own fork, not from the Ubuntu sources. Installing rbenv

makandra dev
developers.facebook.com

For server-to-server requests to the Facebook Graph API you can skip requesting an Oauth token, an...

Getting rid of your old LibreOffice Remove your old LibreOffice: sudo apt-get remove libreoffice* You probably also want to...

List flavors to show the ID and name, the amount of memory, the amount of disk space for the root...

Let's say you have two screens: Show a given project Show a report for all projects Ideally you want...

makandra dev
github.com

PDFKit converts a web page to a PDF document. It uses a Webkit engine under the hood...

alexsquest.com

Talks about some basics of software complexity. Very nice illustrations.

blog.mailgun.com

Styling HTML email is painful. Tables, inline CSS, unsupported CSS, desktop clients, web clients, mobile clients, various devices, various providers...

Nearly all jQuery traversal functions ignore elements that are not HTML tags. To work with other type of nodes (like...