engineyard.com

Nice tutorial about packaging Ruby bindings to your API in a Ruby gem, with tests using VCR casettes.

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

If you're using the :header_html option in PDFKit (or the corresponding --header-html option in wkhtmltopdf), and the...

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

So you want to organize your I18n using multiple .yml files but your Rails 4.1 application simply won't use...

There are different ways to run rake: On Rails 4.1+ projects, you have Spring and its binstubs which dramatically improve...

Capybara and most assistive technology will fail to find tags that are missing an href attribute. This will probably happen...

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

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

# config/initializers/sidekiq.rb # Perform Sidekiq jobs immediately in development, # so you don't have to run a separate process.

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

By default git diff highlights whole lines as changes. To diff on a word-by-word basis you can say...

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

stackoverflow.com

If you want to move an element inside an array, neither JavaScript/ES6+ nor libraries like LoDash offet that natively.

When using jQueryUI's Sortable plugin (either directly or via Angular's ui.sortable), you might struggle testing your nice drag...

blog.mailgun.com

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

Yesterday, Rails fixed a security issue (CVE-2014-3514) in Rails 4+. It was possible to use .where...

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