Matching the "space" character class For matching whitespaces in a regular expression, the most common and best-known shorthand expression...
rspec >= 3.1 brings a method and_wrap_original. It seems a bit complicated at first, but there are use cases...
When deleting a record in your Rails app, Carrierwave automatically takes care of removing all associated files. However, the file...
This card is a general reminder to avoid the short version of a command option in shared code. It's...
If a project ist configured to spawn CI runners for tests or deployment when pushing to the Repo, a habit...
To attach files to your records, you will need a new database column representing the filename of the file...
The attached article examines what the percent unit (%) is relative to in CSS The article does a great job of...
Ruby 3.0 introduced a breaking change in how it treats keyword arguments. There is an excellent blog post on the...
When your Rails application server raises error, Capybara will fail your test when it clears the session after the last...
When your application is open for public sign up and sends out transactional e-mails to a large number of...
In Ruby (almost) everything is an Object. While this enables a lot of powerful features, this concept might be confusing...
CarrierWave comes with a set of default configuration options which make sense in most cases. However, you should review these...
You can use git worktree to manage multiple working trees attached to the same repository. But why should I use...
When you repeat a subpattern with a *, + or {...} operator, you may choose between greedy, lazy and possessive modes. Switching modes...
bundle outdated [--filter-major|--filter-minor|--filter-patch] Example output for bundle outdated --filter-major Other examples
Insomnia is a GUI tool to help you communicating with an API. There are also other tools to do this...
By default, your terminal emulator (Gnome Terminal, Terminator, etc.) sets some kind of window title to reflect the shell type...
There are several tools for DNS debugging which offer you more or less information. Most of the time the more...
The Truemail gem (not to be confused with truemail.io) allows validating email addresses, e.g. when users enter them into a...
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...
The linked blog post contains some background information about the alt attribute and the figure / figcaption element. It is interesting...
Why improve your code reviews? Improving code review technique helps your reviewer, your team, and, most importantly: you.
Git diffs show the surrounding contexts for diff hunks. It does so by applying regular expressions to find the beginning...