Sometimes you might want to check a short link for it's destination before clicking on it. Additional you get...
Some modern Javascript APIs return iterators instead of arrays. In plain Javascript you can loop through an iterator using
To upload a file via AJAX (e.g. from an ) you need to wrap your params in a FormData object.
Angular's location provider stalls links to the current URL, i.e. window.location. As soon as the $location service is activated...
If you want to perform a failover on another haproxy backend server this is the way you should do it...
If you try to restart you may encouter the problem that your networking connection gets shutdown but not start again...
Brendan Gregg is the Linux performance god. Use the information in this link to find out what ways there are...
If you want to inspect the compiled code of your erb (or haml) templates, you can run the following code...
We want to make the following firewall rule to be applyable to different network interfaces (for e.g. different environments...
RSpec provides a nice diff when certain matchers fail. Here is an example where this diff is helpful while comparing...
This will give the target site full access to your Javascript environment through window.opener, if the target is on the...
Stackprof is a sampling call-stack profile for Ruby 2.1+. Instead of tracking all method calls, it will simply collect...
Don't write resources :people, :concerns => :trashable Write resources :people do concerns :trashable end Why Writing a controller...
Chrome has discontinued support for 32-Bit Linux builds and this might break your apt-get update.
If you are on a Linux shell and want to open a file with whatever default application is configured for...
Let's say you want to find the element with the text hello in the following DOM tree: hello
Imagine you have a list you want to render inline on large screens, but stacked on small screens. high
TL;DR There are three dimensions you can control when scoping routes: path helpers, URL segments, and controller/view module.
The following sums up all connections (ESTABLISHED, TIME_WAIT, FIN_WAIT, etc.) and sorts it: netstat -n | awk ' $5 ~ /^[0...
Talking with APIs makes more fun using Postman. As an alternative you can also use command line tools like cURL...
Uses FFI and works all relevant operating systems. If you'd try to do it yourself, you'd have to...
Our preferred way of testing ActiveRecord is to simply create/update/destroy the record and then check if the expected behavior has...
RSpec supports a one-liner syntax for setting an expectation on the subject: describe Array do describe "when first created...
Validations should be covered by a model's spec. This card shows how to test an individual validation. This is...