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...
A very clever hack to parse a structured URL object is to create a element and set its href to...
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...
Hash#fetch is a great way to ensure that a hash key is present. The error message when a key...
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...
Since we are using LoDash instead of UnderscoreJS in recent/current projects, you should keep in mind that their syntax is...
Modern browsers natively suppport file pickers that allow the user to choose multiple files at once. To activate this feature...
The flip-flop operator is a hotly contested feature of Ruby. It's still struggling to find an idiomatic use...
# config/initializers/sidekiq.rb # Perform Sidekiq jobs immediately in development, # so you don't have to run a separate process.
Though nowhere to be found in the official docs, this works just fine. describe Facebook::Post do it_behaves_like...
Yesterday, Rails fixed a security issue (CVE-2014-3514) in Rails 4+. It was possible to use .where...
Microsoft Exchange service administrators can enable Exchange Web Services (EWS) which is a rather accessible XML API for interacting with...
Unfortunately, the hidden emoticons are some of the most expressive and useful ones. Hidden codes (skype) (ss) (call) (talk)
Due to network or hardware failures, it can happen that one of your cronjobs will not run at the time...
Customizable font for programming.
When you don't only have a favicon.ico in your project but also PNGs of different sizes and backgrounds, you...
Code snippet tested with Rails 2.3 def index # ... if request.xhr? html = render_to_string(:partial => "list", :layout => false) respond_to...