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...
RSpec 3 has verifying doubles. This breed of mock objects check that any methods being stubbed are present on an...
If you need to log to a file you can use Ruby's Logger class: require 'logger'
Dusen (our search gem) is now capable of excluding words, phrases and qualified fields from search. E.g. search for
If you are using Coffeescript, it is likely to be the culprit. Since Coffeescript always returns the value of...
What if a complicated component comes along that is naturally modeled by multiple directives? This group of directives, as a...
TL;DR You shouldn't call $scope.$apply() or $scope.$digest() inside a function that can be invoked by Angular...
You can hook into Slack when using Capistrano for deployment. The slackistrano gem does most of the heavy lifting for...
Often times you want to give a bunch of elements the same style, except for the last. For example borders...
If you're on Ruby 2.3+ there's a <<~ operator to automatically unindent HEREDOCs: str = <<~MESSAGE Hello Universe!
Webfonts are not always available when your JavaScript runs on first page load. Since fonts may affect element sizes, you...
When a CSS3 animation makes the animated element flicker, it may well be due to pixel fragments being handled differently...
Be careful when using buttons without a type attribute, since browsers will consider them the default submit button of a...
If you want to sort values from an enumerable into two arrays based on whether they match a certain criteria...
SELECT table_name, table_rows FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'your_database' order by table_rows;
To achieve this goal you have to setup the session store like the following example: MyApp::Application.config.session_store( :cookie_store...
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...
Obviously, you only can do this for your own sites. You need to authenticate a domain you want to remove...
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...