Git diffs show the surrounding contexts for diff hunks. It does so by applying regular expressions to find the beginning...
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...
Fix: downgrade net-ssh to version 2.9.1.
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...
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...
Important If your railscomplete-deployment uses the net-ssh-gem please ensure you use version 5.2.0 or newer to ensure...
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...
FactoryBot allows to create traits from Enums since version 6.0.0 The automatic definition of traits for Active Record enum attributes...
# Basic HTML example # Javascript API (notable methods and properties) video = document.querySelector('video') video.play() video.pause() video.load() // Reset to the beginning and...
RubyMine has a HTTP Client that can be useful to test web APIs. Just create a .http scratch file an...
Select2 is a fantastic library for advanced dropdown boxes, but it depends on jQuery. Alternatives Tom Select
If you render markdown from user input, an attacker might be able to use this to inject javascript code into...