When a gem author releases a new version to Rubygems, usually a tag with the version number (e.g. v1.2.0) is...

github.com

Jonas Nicklas, the author of Carrierwave and Capybara, has released Refile, a gem for handling file uploads in Rails. It...

github.com

Want to find that repo you've starred some time ago again? Here's where to search for it.

stackoverflow.com

Just run git show branch:file. Examples: git show HEAD~:bin/command git show origin/master:../lib/version.rb

Here is a Javascript function reloadUsers() that fetches a HTML snippet from the server using AJAX and replaces the current...

Run bundle update cucumber capybara cucumber-rails to update to the newest versions. Backup your features/support/path.rb to be able to...

When accepting GIF images, you will also accept animated GIFs. Resizing them can be a time-consuming task and will...

makandra dev
mailru.github.io

A set of javascript tools for working with files. It offers different kinds of things: A cross-browser JS API...

svnweb.freebsd.org

If you have trouble updating something on FreeBSD you should always take a look in the UPDATING file.

When using git diff, you might encounter weird characters where umlauts (or any other UTF-8) characters should be. It...

Option 0: Download from the official page (preferred) Open https://googlechromelabs.github.io/chrome-for-testing/ In Section "Stable" > chromedriver / linux64 > Download ZIP from...

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