OAuth requires a set of params to be carried along requests, among which a nonce. Some libraries pass these along...
jQuery's deferred objects behave somewhat like standard promises, but not really. One of many subtle differences is that there...
Current webkit browsers like Chrome and Safari have a special variable in their consoles that refers to the selected DOM...
You can find out about disk space usage of all tables within your database by running this: SELECT table_name...
The attached Coffeescript helper will let you create mouse events: $element = $('div') Trigger.mouseover($element) Trigger.mouseenter($element) Trigger.mousedown($element) Trigger.mouseup($element...
To upload a file via AJAX (e.g. from an ) you need to wrap your params in a FormData object.
When full text search is overkill and like queries do not deliver this might be an approach you could try...
Stackprof is a sampling call-stack profile for Ruby 2.1+. Instead of tracking all method calls, it will simply collect...
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
TL;DR There are three dimensions you can control when scoping routes: path helpers, URL segments, and controller/view module.
Our preferred way of testing ActiveRecord is to simply create/update/destroy the record and then check if the expected behavior has...
Validations should be covered by a model's spec. This card shows how to test an individual validation. This is...
Angular's directives have a transclude option, that allows for rendering an element's original content within the directive's...
In JavaScript we often use Immediately Invoked Function Expessions (or IIFEs) to prevent local variables from bleeding into an outside...
From Rails 3.0.9, there is a method Hash#to_query that will turn a Hash into a query string:
Geordi is now (partially) tested with Cucumber. Yay! geordi cucumber supports a new @solo tag. Scenarios tagged with @solo...
Using Scenic, you can bring the power of SQL views to your Rails application without having to switch your schema...
Dashboard (Marvel Kibana) and query tool (Marvel Sense) for Elasticsearch. Once installed you can access Kibana and Sense at these...
Ever wondered how you can create a simple table output in bash? You can use the tool column for creating...
SELECT pg_database.datname as "database_name", pg_database_size(pg_database.datname)/1024/1024 AS size_in_mb FROM pg_database ORDER...
PostgreSQL offers a really handy field type: json. You can store any JSON there, in any structure. While its flexibility...
rack-mini-profiler is a powerful Swiss army knife for Rack app performance. Measure SQL queries, memory allocation and CPU...
There are cases when you need to select DOM elements without jQuery, such as: when jQuery is not available