When putting phone numbers into web pages, you should use tel: links so smartphone users can click those numbers to...

Google Calendar integration into Thunderbird suddenly did not work any more for me. Thunderbird kept asking me for my password...

github.com

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

makandra dev

Confusingly, RVM installs the bundler gem into the @global gemset, which is available to all gemsets and Rubies.

makandra dev
draggabilly.desandro.com

Javascript library for drag'n'drop that seems to have more options than native HTML5 drag'n'drop.

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
blog.idrsolutions.com

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

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

github.com

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

Returning an empty scope can come in handy, e.g. as a default object. In Rails 4 you can achieve this...

api.rubyonrails.org

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

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

makandra dev

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

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

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

makandra dev
github.com

edge_rider is Power tools for ActiveRecord relations (scopes). Please note that some of the functions edge_rider provides have...

makandra dev
feedjira.com

Great gem to consume RSS feeds. I was missing some features on Ruby's RSS::Parser that I found in...

makandra dev
stackoverflow.com

So you erased a whole day's work? There is hope! The linked article tells how to recover from an...

Run this command to list the authors of the most recent commit of each branch: git for-each-ref --format...

makandra dev
github.com

Automagically makes XHR requests work cross-domain by tunneling all communications through an IFRAME on your page.

makandra dev
github.com

The debugger gem does not seem to be properly working on Ruby 2. Use byebug instead! Byebug is a simple...

makandra dev
gist.github.com

The attached RSpec matcher allows for comfortably testing delegation. Examples describe Post do it { should delegate(:name).to(:author).with...