A technique to vastly reduce the number of join model records that need to be stored in the database.
If you’re testing the behavior of deprecated code in your Ruby project, the warning messages littered throughout your spec output is incredibly noisy. You could silence all warnings with...
...Präferenzen). There is the seemingly harmless setting for Ringer Device from Headset (German Klingeltonausgabe bei Kopfhörer). Choose one: "Headset" or "Speaker". Do not select both, otherwise the ringtone volume will...
Rails also autoloads classes on demand during development. This means every request begins with none of your models, controllers, loaded. Whenever Ruby encounters a constant name it doesn...
Javascript library for drag'n'drop that seems to have more options than native HTML5 drag'n'drop.
Go to Settings Manager / Keyboard / Application Shortcuts Add a shortcut for the Print key that calls xfce4-screenshooter -f
...styling advice that's mainly taken from SMACSS. Although at makandra we're using BEM instead of SMACSS, here's my favorites. Do not use ID's in CSS Selectors...
...a page so do not use ID's for CSS. Id's are much better used as javascript hooks so use them for this instead. .list {…} instead of #list {…}
Use Traim to build a RESTful API for your ActiveRecord models with very little code. Traim assumes your API resources...
It can be useful to have a Ruby expression like condition ? positive_case : negative_case in MySQL queries:
Until May 2011 our gems have been created with Jeweler, which is a helper library to package code into a...
Add the following to /etc/rc.local: (sleep 3 && echo disable > /proc/acpi/ibm/bluetooth)& Bluetooth icon will be active for a few seconds, then...
If you tried out Compiz on top of Xfce and found it to be a world of pain like me...
The linked article has a great explanation how to to deal with string encodings in Ruby. Furthermore you can check...
When you drag a file from a Nautilus window into a terminal window, the file's path will be pasted...
Give the table a style table-layout: fixed Give the cells in the first row a width The same width...
Let's say you have an Explorer window showing a directory and want a cmd terminal to be opened there...
This will install a printer called "PDF": sudo apt-get install cups-pdf Files will be put into ~/PDF/ without...
Microsoft provides virtual machine disk images to facilitate website testing in multiple versions of IE, regardless of the host operating...
Programming is a deceptively damaging field to be in, partly because it doesn't seem like you're doing much...
Currently, only up to 500 rows of Analytics table data can be exported at a time into CSV format. If...
On my Ubuntu MATE machine, switching applications with ALT + TAB was impossible, because it took nearly 2 seconds. The culprit...
A collection of code snippets which return a boolean value for a regex comparison. regexp.match?(string) # Recommended for Ruby >= 2.4...
DTAUS & DTAZV are formats for German bank transfers and is short for "Datenträgeraustausch". The format itself totally sucks because it...
When writing a story description in Pivotal Tracker, there is now a tiny button at the bottom of the description...