Chances are you're seeing the warning repeated a lot of times, maybe thousands of times. Here's how to...
If you want a class-like construct in JavaScript, you can use the module pattern below. The module pattern gives...
If you have trouble updating something on FreeBSD you should always take a look in the UPDATING file.
A lot of the advice involves less separations of concerns in your code ("don't use $watch", "don't use...
When you run code inside a $watch expression that forces a repaint (e.g. by computing an element's width, or...
Option 0: Download from the official page (preferred) Open https://googlechromelabs.github.io/chrome-for-testing/ In Section "Stable" > chromedriver / linux64 > Download ZIP from...
The Angular ngSrc directive serves to properly set an image src via Angular. As anything in Angular, it updates the...
Starting Terminator with split screens is quite simple: Just store a layout and start Terminator with the --layout option.
When putting phone numbers into web pages, you should use tel: links so smartphone users can click those numbers to...
One of the many useful features of TextMate is autocompletion of words. If I were in TextMate right now, I...
Have you ever opened a file with vim, edited it and when you wanted to save your changes it told...
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...
Restangular can make use of $http's built-in response cache. # Cache response for single request Restangular.one('accounts', 123).withHttpConfig...
If you have issues with PDFs, fix them like this: pdftk .pdf output .pdf Background I had an issue where...
The asset pipeline changes the paths of CSS files during precompilation. This opens a world of pain when CSS files...
In addition to the {{ myValue }} two-way binding syntax, since Angular 1.3 there's a one-time binding syntax, prefixing...
Since we are using LoDash instead of UnderscoreJS in recent/current projects, you should keep in mind that their syntax is...
Creating records in specs can be so fast that two records created instantly after one another might have the same...
Modern browsers natively suppport file pickers that allow the user to choose multiple files at once. To activate this feature...
class Document < ActiveRecord::Base scope :any_tags, -> (tags){ where('tags && ARRAY[?]', tags) } scope :all_tags, -> (tags){ where('tags @> ARRAY...
Cookies without an expiration timestamp are called "session cookies". [1] They should only be kept until the end of the...
Use reorder to replace an existing order clause with a new expression.