It's generally not trivial to change a datetime's seconds, minutes, etc in SQL. Here is how it works...
Nested exceptions for Ruby: When you rescue an error and then re-raise your own, you don't have to...
Web applications can be used by multiple users at the same time. A typical application server like Passenger has multiple...
Clever hack using data-attributes to assign labels to cells. It's still a massive duplication of code (labels), but...
TL;DR You shouldn't call $scope.$apply() or $scope.$digest() inside a function that can be invoked by Angular...
Please don't simply copy line number links from Github. The URL usually contains a branch name like master which...
Webfonts are not always available when your JavaScript runs on first page load. Since fonts may affect element sizes, you...
The debate between using mixins or extends in Sass has been heating up recently. From the surface it appears they...
SELECT table_name, table_rows FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'your_database' order by table_rows;
jQuery doesn't store information about event listeners and data values with the element itself. This information is instead stored...
This guide shows how to create an AngularJS application that consumes more and more memory until, eventually, the browser process...
The linked article explains how to get a database-wide lock without creating table rows: This article explains how I...
When you are using the #selector_for helper in Cucumber steps, as e.g. Spreewald does, the following snippet will save...
When running migrations with rake db:migrate, there's the STEP and VERSION parameters that you can pass to nearly...
If you want to load an SQL dump from an ActiveRecord migration, you might find this to be harder than...
In this post, I'll walk you through the four phases of the typical journey into coding and what you...
Geordi 1.0 features a command line application geordi, that holds most of Geordi's previous commands. New features
Add gem 'database_cleaner' to your Gemfile. Then: Cucumber & Rails 3+ # features/support/database_cleaner.rb DatabaseCleaner.clean_with(:deletion) # clean once, now DatabaseCleaner.strategy = :transaction...
When a gem author releases a new version to Rubygems, usually a tag with the version number (e.g. v1.2.0) is...
If you paste multiple lines of text into a cell, Calc's AutoCorrect will change the first character of the...
Sequel is an awesome ORM such as ActiveRecord. The linked article describes how easily you can implement and use materialized...
Here is a Javascript function reloadUsers() that fetches a HTML snippet from the server using AJAX and replaces the current...
When testing code that uses pushState / replaceState, your browser will appear to navigate away from http://localhost:3000/specs (or wherever...
JavaScript objects can have getter and setter functions that are called when a property is read from or written to...