In Capistrano 2, directories in shared_children used to be symlinked to the shared directory during the finalize_update task...

Running projects parallel makes some trouble with PDF generation. Use geordi rspec spec to force sequential tests for the whole...

makandra Curriculum

Understand the differences between git diff and git diff --staged (or git diff --cached) Understand the difference between git...

makandra Curriculum

Learn Enough Command Line to be Dangerous (it's in our library => Google Drive) CLI tricks every developer should...

In this card we will learn to write code that scales with a large number of database records. We will...

makandra Curriculum

Understand why we use pagination Exercises Create 7500 movies in MovieDB (hint: Doing it in a single transaction is...

JavaScript is a scripting language supported by all browsers. Browsers don't speak Ruby, so if we want to implement...

makandra Curriculum

Git is our version control system. Goals Understand why we use git. Learn how to work with your local repository...

You might wonder about this request in your test.log: Started GET "/__identify__" for 127.0.0.1 at 2015-04-29 18:00...

edgeapi.rubyonrails.org

Starting from Rails 4.0, you can use a special form options helper called #collection_check_boxes. It behaves similar to...

There are some frontends available, but they all suck, are no longer maintained or are hard to install.

If you need to log to a file you can use Ruby's Logger class: require 'logger'

This guide shows how to create an AngularJS application that consumes more and more memory until, eventually, the browser process...

developer.mozilla.org

You can do so much more than console.log(...)! See the attached link for a great breakdown of what the developer...

If you want a class-like construct in JavaScript, you can use the module pattern below. The module pattern gives...

gist.github.com

A nice bookmarklet to analyze how many watchers have been registered on the current page. Good for keeping an eye...

makandra dev
github.com

PDFKit converts a web page to a PDF document. It uses a Webkit engine under the hood...

Open a MySQL root shell and use this command: PURGE BINARY LOGS BEFORE DATE(NOW() - INTERVAL 3 DAY) + INTERVAL 0...

This card describes how to pass an array with multiple element to a JavaScript function, so that the first array...

guides.rubyonrails.org

config.action_controller.action_on_unpermitted_parameters enables logging or raising an exception if parameters that are not explicitly permitted are...

github.com

quiet_assets helps with disabling asset pipeline log messages in the development log. When the gem is added, asset pipeline...

If you are trying to inspect timings in JavaScript, you can use console.time and console.timeEnd which will write to your...

When you are working with Backbone models and inheritance, at some point you want to overwrite inherited methods but call...

If you get this error while trying to resize an openstack instance: # nova resize fooinstance 16 --poll ==> /var/log/nova/nova-scheduler.log <==