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 a model inherits from others or uses many concerns / traits, it might be hard to see in the code...
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...
This is an extract from the linked article. It shows an approach on how to implement encrypted passwords with the...
Rails 5.2+ supports "verbose query logs" where it shows the source of a query in the application log.
Learn how to create offline applications with service workers. The amazing power of service workers Writing your first service worker...
When you use Sentry to monitor exceptions, an important feature is Sentry's error grouping mechanism. It will aggregate similar...
Chrome has a built-in utility to check performance and accessibility (and more) of your web app: Lighthouse.
Rails middlewares are small code pieces that wrap requests to the application. The first middleware gets passed the request, invokes...
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...
GoodJob is a new background worker gem. It's compatible with ActiveJob. We're huge fans of Sidekiq for its...
"Open-source software (OSS) is great. Anyone can use virtually any open-source code in their projects." Well, it depends...
If you have a :string or :text field, you should pair it with a model validation that restricts its length...
FactoryBot allows to create traits from Enums since version 6.0.0 The automatic definition of traits for Active Record enum attributes...
PostgreSQL offers three character types for your columns: character varying(n) (also called varchar or just string): Contents are limited...
In a web application you sometimes have tasks that can not be processed during a request but need to go...
Select2 comes with AJAX support built in, using jQuery's AJAX methods. ... For remote data sources only, Select2 does not...