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...
While debugging a SPF record I found spf-record.de to be very helpful. it lists all IPs that are covered by...
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...
The sidekiq-rate-limiter gem allows rate-limiting Sidekiq jobs and works like a charm. However, it needs to be...
If you're using the webdrivers gem and VCR together, depending on your configuration, VCR will yell at you regulary...
Good reference how to build bootstrap forms with simple_form.
When logging in Rails, you can use the log_tags configuration option to add extra information to each line, like...
ActiveRecord provides the ids method to pluck ids from a scope, but what if you need to pluck Global IDs...
If you want to get the path of a file relative to another, you can use the expand_path method...
Google Chrome disables Notifications for insecure origins (i.e. those using HTTP). Only http://localhost is considered secure.
CSS variables are very different from preprocessor variables. While preprocessors use variables to compile a static piece of CSS, CSS...
When you use Sentry to monitor exceptions, an important feature is Sentry's error grouping mechanism. It will aggregate similar...
In Ruby on Rails, all the routes of a given application can be found within the config/routes.rb file.
When writing some logs to a file, that don't use Ruby's logger utility, it is often useful to...
Here is an example with the --tags option. You need to wrap them inside --cucumber-options option of parallel_cucumber...
Rails middlewares are small code pieces that wrap requests to the application. The first middleware gets passed the request, invokes...
Ruby's File class has a handy method binary? which checks whether a file is a binary file. This method...
If you want to prevent that two processes run some code at the same time you can use the gem...
grep is the go-to CLI tool to accomplish tasks like filtering large files for arbitrary keywords. When additional context...