makandra dev
stackoverflow.com

git rebase -i -> mark your commit with edit git reset HEAD~ (remove the marked commit, but keep its...

Our applications not only need to be functional, they need to be fast. But, to quote Donald Knuth, premature optimization...

ma.ttias.be

Article shows how to make a script that fakes one kind of content when printed with cat, but uses different...

stackoverflow.com

With ngAnimate, you can easily animate certain events (see directive support). We'll make use of ngClass animations to style...

Spreewald comes with a selector_for helper that matches an English term like the user's profile into a CSS...

Understand how asynchronous JavaScript works: Read Henning's presentation about asynchronous Javascript (there's also a German video presentation...

In a web application you often need to move data between the client (HTML, Javascript) and the server (Ruby, Rails...

To check which rubygems versions your different rbenv rubys are using, you can use this small bash script:

makandra dev

tig is a command line explorer for Git that is just awesome. Install via apt-get or brew. Handy commands...

makandra dev

CTRL + SHIFT + ALT + N Search for any symbol in your application, like CSS classes, Ruby classes, methods, helpers etc...

makandra dev
github.com

The Bullet gem is designed to help you increase your application's performance by reducing the number of queries it...

If you see a stacktrace beginning with lines like this: E, [2015-07-16T09:23:10.896146 #23308] ERROR -- : app...

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

Investigate why mails are frozen The exim documentation says: Freezing occurs when a bounce message encounters a permanent failure because...

When you want to UPDATE a table with information from an associated table, you can JOIN the associated table into...

If you want to sort values from an enumerable into two arrays based on whether they match a certain criteria...

When you are using the #selector_for helper in Cucumber steps, as e.g. Spreewald does, the following snippet will save...

tldr; Use git diff -M or git diff --find-renames when you've moved a few files around. Usage

makandra dev
draggabilly.desandro.com

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

api.rubyonrails.org

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

When using jQueryUI's Sortable plugin (either directly or via Angular's ui.sortable), you might struggle testing your nice drag...

makandra dev
linux.die.net

When connecting to multiple (i.e. > 4) servers to dive into logfiles or do security updates, terminator is what you want...

makandra dev
menuetos.net

MenuetOS is an Operating System in development for the PC written entirely in 32/64 bit assembly language. Menuet64 is released...

If you are using Angular and want something like Rails' simple_format which HTML-formats a plain-text input into...