I, [2024-01-21T06:22:17.484221 #2698200] INFO -- : [4cdad7a4-8617-4bc9-84e9-c40364eea2e4] test
There are a few tools to combat the dreaded n+1 queries. The bullet gem notifies you of missing eager...
Today I learned that you can animate HTML elements using the Web Animation API's method .animate(keyframes, options) (which...
Multiply by 1x the unit: $number = 13 $length = $number * 1px // => 13px Removing a unit
Ruby methods which load from a Yaml file, like YAML.safe_load or YAML.safe_load_file, support passing freeze: true to...
Your development server is usually running on an insecure HTTP connection which is perfectly fine for development.
It happens from time to time that a job in a GitLab pipeline fails. Sometimes, however, the error message is...
Here are some hints on best practices to maintain your tasks in larger projects. Rake Tasks vs. Scripts
You can use the config.x configuration in combination with config_for to configure global settings for your Rails 4.2+ application...
The linked article suggests an interesting way to speed up tests of Rails + Postgres apps: PostgreSQL allows the creation of...
Getting an entire test suite green can be a tedious task which involves frequent switches between the CLI that is...
This Capistrano task runs a command on all servers. bundle exec cap production app:run cmd='zgrep -P "..." RAILS_ROOT/log/production.log...
In the Gitlab settings the flag Auto-cancel redundant pipelines is enabled by default. This auto-cancels jobs that have...
A general overview about why and how we migrate can be found under Migrating from Elasticsearch to Opensearch
OpenAI is currently limiting the Audio generating API endpoint to text bodies with a maximum of 4096 characters.
Getting CSS (and JS) live reloading to work in a esbuild / Rails project is a bit of a hassle, but...
tl;dr You can use ordered to ensure that messages are received in a specific order. Example expect(ClassA).to...
When you find similar groups of expect calls in your tests, you can improve readability by extracting the group into...
The sprintf method has a reference by name format option: sprintf("% d : % f", { :foo => 1, :bar => 2 }) # => 1 : 2.000000
Apply Test Driven Development(TDD) to the process of building container images by defining test before writing code and automate...
Ruby has the class Rational which allows you to store exact fractions. Any calculation on these variables will now use...
Creating Nagios Config with puppet Let's have a look at the classic way of managing Nagios configuration with exported...
Every modern Rails app should have a Content Security Policy enabled. Very compatible default The following "default" is a minimal...
If you want to automatically delete old container images from your Elastic Container Registry, the solution is a quite simple...