github.com

Using this gem I could get JSON generation from a large, nested Ruby hash down from 200ms to 2ms.

When you need to check a value for presence, don't rely on JavaScript since it considers 0 or "0...

Firefox 5.0.1, which we were using for most Rails 2.3 projects, does not run on Ubuntu 14.04 any more. Here...

makandra dev
tex.stackexchange.com

tlmgr is the TeX Live Manager and responsible for the TeX installation on your (Linux) machine. If you're getting...

makandra dev
blog.idrsolutions.com

If you have issues with PDFs, fix them like this: pdftk .pdf output .pdf Background I had an issue where...

In a JavaScript console, type this: > 9112347935156469760 9112347935156470000 Ooops. And that's not a float! This occurs because JavaScript uses...

Browsers make this very hard. Even when you explicitely set the selection inside the textarea (e. g. using jquery-fieldselection...

marvin.soup.io

If you have this problem when you update your FreeBSD Ports: ===>>> Launching child to update ruby19-iconv-1.9.3.547,1 to...

JavaScript's NaN ("Not a Number") is hard to compare against. It never equals anything, not even itself:

Since we are using LoDash instead of UnderscoreJS in recent/current projects, you should keep in mind that their syntax is...

github.com

bower-rails is a great solution for managing vendored assets in your Rails app. It feels especially much more convenient...

github.com

JavaScript structures that include circular references can't be serialized with a"plain" JSON.stringify. Example: a = { name: 'Groucho' };

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

Modern browsers natively suppport file pickers that allow the user to choose multiple files at once. To activate this feature...

makandra dev
ankane.github.io

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

tl;dr: Use with_index ActiveRecord's find_each with index If you do not provide a block to find...

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

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

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

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