Hash#fetch is a great way to ensure that a hash key is present. The error message when a key...

Rails migrations allow you to use a change method whose calls are automatically inverted for the down path. However, if...

Upgrading from Ruby 1.8.7 to 2.1.2 took me an hour for a medium-sized application. It involved hardly any changes...

For our production servers we use Passenger as a Ruby application server. While it is possible to use Passenger for...

makandra dev

Cucumber allows for prose in features and scenarios. Example: Feature: Cancel account There are several ways to cancel a user...

On your credit card summary, you will find order numbers of rides with Deutsche Bahn ("DB BAHN A-NR XYZ123...

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

If you make a gem with Bundler, you will get a rake release task that will instantly publish your gem...

makandracards.com

This is a problem when using Selenium with Firefox. We recommend using ChromeDriver for your Selenium tests. Firefox will not...

metricsgraphicsjs.org

MetricsGraphics.js is a library built on top of D3 that is optimized for visualizing and laying out time-series data...

github.com

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

By default, Twitter Bootstrap's print styles include printing links. /* Bootstrap's way of printing URLs */ @media print {

Restangular can make use of $http's built-in response cache. # Cache response for single request Restangular.one('accounts', 123).withHttpConfig...

makandra dev

Put the font files (e.g. ttf) into ~/.fonts Run fc-cache -v Or, if you prefer to use the GUI...

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

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

The asset pipeline changes the paths of CSS files during precompilation. This opens a world of pain when CSS files...

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

vitalets.github.io

Angular-xeditable is a bundle of AngularJS directives that allows you to create editable elements. Such technique is also known...

docs.angularjs.org

In addition to the {{ myValue }} two-way binding syntax, since Angular 1.3 there's a one-time binding syntax, prefixing...

api.jquery.com

Simply use one(...) instead of on(...). It takes the same arguments.

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' };