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...
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. This 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...
If you migrate a Rails application from Sprockets to Webpack(er), you can either transpile your CoffeeScript files to JavaScript...
CSP hat zum Ziel einen Browser-seitigen Mechanismus zu schaffen um einige Angriffe auf Webseiten zu verhindern, hauptsächlich XSS...
We use Sentry to be informed about different kinds of issues. One of the key features is that you are...
"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...
Nokogiri is great. It will even fix invalid HTML for you, like a browser would (e.g. move block elements out...
FactoryBot allows to create traits from Enums since version 6.0.0 The automatic definition of traits for Active Record enum attributes...