makandra dev

The Rails asset pipeline improves delivery of application assets (javascripts, stylesheets, images, fonts). Here are some basic facts about its...

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

Sidekiq::Client.push('class' => 'WorkerClass', 'args' => [11, 5, 1993]) is equivalent to WorkerClass.perform_async(11, 5, 1993)

tutorialzine.com

A very clever hack to parse a structured URL object is to create a element and set its href to...

If you get one of this errors: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: ( ): found...

One of the many useful features of TextMate is autocompletion of words. If I were in TextMate right now, I...

Settings -> Editor -> General -> Smart Keys -> Unindent -> To nearest indent position RubyMine 7.0: Settings -> Editor -> General -> Smart Keys -> Backspace...

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

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

github.com

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

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

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

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

Creating records in specs can be so fast that two records created instantly after one another might have the same...

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

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

This may be hard to find in the docs, but if you want CoffeeScript classes that instantiate their properties from...

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

github.com

A collection of useful filters for AngularJS, e.g. for fuzzy string searching, displaying numbers as percentages an more.