justinfrench.com

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

makandra dev

The rubocop binary has a few interesting flags: rubocop (using the --parallel default ) scans the current repository for linting issues...

wiki.snom.com

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

makandra dev
draggabilly.desandro.com

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

github.com

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

developer.mozilla.org

Touch devices have their own set of events like touchstart or touchmove. Because mobile browsers should also work with with...

If you tried out Compiz on top of Xfce and found it to be a world of pain like me...

When you drag a file from a Nautilus window into a terminal window, the file's path will be pasted...

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

Give the table a style table-layout: fixed Give the cells in the first row a width The same width...

social.technet.microsoft.com

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

makandra dev
github.com

...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 {…}

github.com

Microsoft provides virtual machine disk images to facilitate website testing in multiple versions of IE, regardless of the host operating...

sheddingbikes.com

Programming is a deceptively damaging field to be in, partly because it doesn't seem like you're doing much...

tenderlovemaking.com

The linked article has a great explanation how to to deal with string encodings in Ruby. Furthermore you can check...

google.com

Currently, only up to 500 rows of Analytics table data can be exported at a time into CSV format. If...

forums.linuxmint.com

On my Ubuntu MATE machine, switching applications with ALT + TAB was impossible, because it took nearly 2 seconds. The culprit...

stackoverflow.com

A collection of code snippets which return a boolean value for a regex comparison. regexp.match?(string) # Recommended for Ruby >= 2.4...

makandra dev
github.com

DTAUS & DTAZV are formats for German bank transfers and is short for "Datenträgeraustausch". The format itself totally sucks because it...