Don't write resources :people, :concerns => :trashable Write resources :people do concerns :trashable end Why Writing a controller...

reddit.com

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

nginx.org

If you want to configure your nginx to drop connections to a specific location, you can do so by responding...

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

getpostman.com

Talking with APIs makes more fun using Postman. As an alternative you can also use command line tools like cURL...

makandra Operations
makandra dev
chrome.google.com

When you're facing a somewhat complex Google Analytics setup and want to find out what's happening, you can...

github.com

Uses FFI and works all relevant operating systems. If you'd try to do it yourself, you'd have to...

RSpec supports a one-liner syntax for setting an expectation on the subject: describe Array do describe "when first created...

If you expect method calls in RSpec 3, be aware that the argument matchers use very liberal equality rules (more...

makandra dev

Angular's directives have a transclude option, that allows for rendering an element's original content within the directive's...

A HTTP 302 Found redirect to PATCH and DELETE requests will be followed with PATCH or DELETE. Redirect responses to...

makandra dev

In JavaScript we often use Immediately Invoked Function Expessions (or IIFEs) to prevent local variables from bleeding into an outside...

stackoverflow.com

First, decide if you want to pull with rebase. There are some implications of changing this, so think before you...

To install gems Bundler needs to be able to talk to https://api.rubygems.org. If you are behind a proxy you...

There are a million ways to center s or text in CSS, horizontally or vertically. All the ways are unsatisfying...

During debugging you might pepper your code with lines like these: console.log('foo = ' + foo + ', bar = ' + bar) I recommend to use...

Don't use be_true to check if a value is true. It actually checks if it anything other than...

stackoverflow.com

From Rails 3.0.9, there is a method Hash#to_query that will turn a Hash into a query string:

I got this error when running Rails 2.3 tests for Rails LTS. More stacktrace: NoMethodError: undefined method `cache' for Gem...