makandra dev

I just finished migrating a project from the Asset Pipeline to Webpacker, this is what my diff to master looks...

In long diffs, it can become impossible to spot small changes in larger blocks of moved code. This may be...

Headless Chrome is a way to run the Chrome browser without a visible window. Configuring Capybara Configure the Capybara driver...

SSHKit 1.9.0 might fail with the following error, when trying to deploy a Rail application. Upgrading the gem to version...

Using Ruby 1.8.7 you will not be able to use the maximum versions Rubygems 1.8.30 and Bundler 1.17.3 with https://...

When deploying a Rails application that is using Webpacker and Capistrano, there are a few configuration tweaks that optimize the...

tekin.co.uk

Git diffs show the surrounding contexts for diff hunks. It does so by applying regular expressions to find the beginning...

github.com

Scroll and touch event listeners tend to be computationally expensive as they are triggered very often. Every time the event...

Here is a short summary of Cucumber hooks in Ruby taken from https://github.com/cucumber/cucumber-ruby. Note that the BeforeStep is...

Sometimes you want to find the inverse of an ActiveRecord scope. Depending on what you want to achieve, this is...

Ubuntu 18.04 uses systemd to manage services. There are basically two commands for listing all services and manipulating the state...

We currently test most of our gems on Travis CI, but want to migrate those tests to Github Actions. This...

If you're experiencing problems with your Google Chrome installation after an update, it might help downgrading Chrome to check...

On some of our older projects, we use the mysql2 gem. Unfortunately, versions 0.2.x (required for Rails 2.3) and...

Installing old Rubies (<= 2.3) with a standard rbenv + ruby-build is no longer possible on Ubuntu 20.04. This is because...

When loading a database dump created with pg_dump into your database, you might run into an error like

It sometimes happen that a database dump, that would want to insert into your development database, does not match the...

makandra dev

If you're using the webdrivers gem and VCR together, depending on your configuration, VCR will yell at you regulary...

To find a version containing the regular expression foo in the history of any branch: git grep foo $(git rev...

Sometimes new versions of software introduce new bugs. In this case you might not want the package to upgrade on...

In interactive commands, Git allows the user to provide one-letter input with a single key without hitting enter (docs...

If you want to prevent that two processes run some code at the same time you can use the gem...

"Open-source software (OSS) is great. Anyone can use virtually any open-source code in their projects." Well, it depends...