Some insight into how browser rendering engines work. The article shows how the way you manipulate styles (and the DOM...
Sequel is an awesome ORM such as ActiveRecord. The linked article describes how easily you can implement and use materialized...
JavaScript objects can have getter and setter functions that are called when a property is read from or written to...
Capybara-screenshot can automatically save screenshots and the HTML for failed Capybara tests in Cucumber, RSpec or Minitest. Requires Capybara...
A CLI for working with Postgres databases. Ships with auto-completion and syntax highlighting.
Rails guide that covers PostgreSQL-specific column types and usages for Active Record. You should especially keep in mind the...
When accepting GIF images, you will also accept animated GIFs. Resizing them can be a time-consuming task and will...
A lot of the advice involves less separations of concerns in your code ("don't use $watch", "don't use...
A very clever hack to parse a structured URL object is to create a element and set its href to...
Have you ever opened a file with vim, edited it and when you wanted to save your changes it told...
Rails migrations allow you to use a change method whose calls are automatically inverted for the down path. However, if...
For our production servers we use Passenger as a Ruby application server. While it is possible to use Passenger for...
In addition to the {{ myValue }} two-way binding syntax, since Angular 1.3 there's a one-time binding syntax, prefixing...
Creating records in specs can be so fast that two records created instantly after one another might have the same...
class Document < ActiveRecord::Base scope :any_tags, -> (tags){ where('tags && ARRAY[?]', tags) } scope :all_tags, -> (tags){ where('tags @> ARRAY...
In Rails, you can very easily send emails with HTML and plaintext bodies. However, if you're trying to debug...
If you get an error like this: An error occurred while installing pg (0.17.1), and Bundler cannot continue.
Sometimes you need complex expectations on method arguments like this SomeApi.should_receive(:find).with(:query => '*foo*', :sort => 'timestamp ASC', :limit...
PDFKit converts a web page to a PDF document. It uses a Webkit engine under the hood...
require 'net/http' module Cheat extend self # the magic ingredient def host @host ||= 'http://cheat.errtheblog.com/' end def http @http ||= Net...
edge_rider is Power tools for ActiveRecord relations (scopes). Please note that some of the functions edge_rider provides have...
Directly from the MySql docs: There are three likely causes for this error message. Usually it indicates network connectivity trouble...
When connecting to multiple (i.e. > 4) servers to dive into logfiles or do security updates, terminator is what you want...
As you know, assignable_values does not invalidate a record even when an attribute value becomes unassignable. See this example...