Chromedriver (or selenium-webdriver?) will not reliably scroll elements into view before clicking them, and actually not click the element...

ImageMagick can automatically crop surrounding transparent pixels from an image: convert input.png -trim +repage output.png

...On the database level, you will see these queries (simplified; the number at the beginning of each line is the connection ID): 1 Connect 1 BEGIN 1 INSERT INTO foos...

...you might be doing stuff afterwards that could require to abort the transaction). A better approach As a general rule, never use ActiveRecord::Base.establish_connection and also don't use...

You are getting when connecting via SSH or deploying with Capistrano (which uses SSH): Too many authentication failures for username...

As an application exists, data accumulates. While you'll be loosely monitoring the main models' record count, some supportive database...

If you use a newer SSH key generated with the ED25519 algorithm instead of RSA (see Create a new SSH...

Instead of running all missing migrations on your test database with rake db:migrate RAILS_ENV=test you can also...

=> >> response.code => 422 FYI, the http gem is a great alternative to RestClient which behaves like that by default and has a well-designed API in general (much better than...

...Safari, ...) or Firefox, this is only the initial size -- users can resize textareas to become bigger. This is helpful to the user, but may be breaking your application layout in...

This note describes a Cucumber step definition that lets you say: Then "Mow lawn" should be an option for "Activity...

When you have many changes, and you want to spread them across different commits, here is a way to stage...

As attachments to this card you will find a Cucumber feature and supplementing step definition that you can use to...

...its version number, it is considered a pre-release: 1.0.0.rc1 2.3.0.alpha2 3.0.0.beta3 4.0.0.pre.rc2 Even if a pre-release gem has the highest version number, it is...

...Semantic versioning Converted RubyGems version 1.0.0-rc1 1.0.0.pre.rc1 2.3.0-alpha2 2.3.0.pre.alpha2 3.0.0-beta3 3.0.0.pre.beta3 Note that npm packages force you to use Semantic Versioning's naming convention...

I had a huge MySQL dump that took forever (as in: days) to import, while I actually just wanted to...

tl;dr: Avoid to memoize methods with default (keyword) arguments! When you are using Memoized with default arguments or default...

We recently decided to put static content for HouseTrip.com to Amazon Cloudfront for a faster user experience. This happens fully...

In case you want to use pry with an older version of Ruby, you can try the following configurations.

Do all of the above, and also Remove all blocks and hooks belonging to craken from your config/deploy.rb. Delete vendor/plugins/craken. Check if you have lib/tasks/craken.rb. If so, delete...

makandra dev

The Rails asset pipeline improves delivery of application assets (javascripts, stylesheets, images, fonts). Here are some basic facts about its...

When making cross-domain AJAX requests with jQuery (using CORS or xdomain or similar), you will run into issues with...

xaprb.com

The linked article explains how to get a database-wide lock without creating table rows: This article explains how I...

Browsers blocks abusable JavaScript API calls until the user has interacted with the document. Examples would be opening new tab...

redis.io

In production, you (or your ops team) should configure a maximum number of bytes that Redis can use to store...

...per group but only one value can be picked for the results. The default behaviour of MySQL prior to version 5.7 will not complain and arbitrarily choose a value. But...