I couldn't successfully execute a simple iptables command and got this error on an Ubuntu server: # /sbin/iptables -I INPUT...
Geordi 1.0 features a command line application geordi, that holds most of Geordi's previous commands. New features
Jonas Nicklas, the author of Carrierwave and Capybara, has released Refile, a gem for handling file uploads in Rails. It...
This jasmine plugin helps with testing DOM manipulation in two ways: It gives you DOM-related matchers like toBeVisible() or...
Rails includes a way to see what an e-mail will look like. Integration to RSpec All you need to...
It might happen that your Sidekiq queue gets stuck, hanging at 0% CPU load. When we inspected the process using...
If you have trouble updating something on FreeBSD you should always take a look in the UPDATING file.
Upgrading from Ruby 1.8.7 to 2.1.2 took me an hour for a medium-sized application. It involved hardly any changes...
Using this gem I could get JSON generation from a large, nested Ruby hash down from 200ms to 2ms.
To avoid n+1 queries, you want to eager-load associated records if you know you need to access them...
See attached link. The gist is: .element { position: relative; top: 50%; transform: translateY(-50%); } Works in all web browsers and...
Parses URLs of social networks to extract IDs or screen names. It does not get confused by child routes: you...
In whenever you can schedule Ruby code directly like so: every 1.day, :at => '4:30 am' do runner "MyModel.task_to...
An all-in-approach to fix the problem of pending AJAX requests dying in the browser when the server ends...
When your Rails controller action responds with only a simple text, render text: 'Hello' may not be what you want...
When using @media CSS queries, Internet Explorer 8 and below will fail to respect them. Though there are several options...
Sometimes you have a test expectation but actually want a better error message in case of a failure. Here is...
I had a huge MySQL dump that took forever (as in: days) to import, while I actually just wanted to...
In Ruby, classes and modules are called constants. This card explains how Ruby resolves the meaning of a constant.
Install and configure the AWS Command Line Interface Show existing certificates to test if the AWS Cli is working:
Search engines, such as Google and Bing are engineered to crawl static web pages, not javascript-heavy, client-side apps...
Ubuntu has a package mysql-sandbox that lets you install multiple MySQL versions into your user home: Install mysql-sandbox...
Rails has always included a scaffold script that generates a default controller implementation for you. Unfortunately that generated controller is...
So you client has asked you to implement a row of buttons to like the URL on Facebook, Twitter and...