It's 2024 and we have tools like ffmpeg, imagemagick and GPT readily available. With them, it's easy to...
The author describes his little journey in hunting down a memory leak. Maybe his approach and tooling may one day...
Any form fields where users enter numbers should be an . Numeric inputs have several benefits over : On mobile or tablet...
87.140.79.42 - - [23/Jan/2024:09:00:46 +0100] "GET /monitoring/pings/ HTTP/1.1" 200 814 "-" "Ruby" 87.140.79.42 - - [23/Jan/2024:09:00:46 +0100] "GET...
There are a few tools to combat the dreaded n+1 queries. The bullet gem notifies you of missing eager...
Ruby methods which load from a Yaml file, like YAML.safe_load or YAML.safe_load_file, support passing freeze: true to...
Here are some hints on best practices to maintain your tasks in larger projects. Rake Tasks vs. Scripts
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.
If you ever need to restore exact records from one database to another, Marshal might come in handy. Marshal.dump is...
The sprintf method has a reference by name format option: sprintf("% d : % f", { :foo => 1, :bar => 2 }) # => 1 : 2.000000
Ruby has the class Rational which allows you to store exact fractions. Any calculation on these variables will now use...
All direct child directories of app are automatically added to the eager- and autoload paths. They do NOT create a...
On the Rails console, assigning an object to a variable can lead to this strange error (without stacktrace): irb > recipient...
In the discussion of the difference between include and extend in Ruby, there is a misconception that extend would add...
Do you remember finding where a method is defined? I recently learned from a senior colleague that Method objects are...
The linked rbenv plugin rbenv-each is very helpful to keep QoL gems up to date that are not part...
You don't want sensitive user data in your logs. Background Rails per default filters sensitive data like...
Besides Plotting graphs in Ruby with Gruff, which comes handy for many uses cases, you sometimes might need configuration for...
For my computer science bachelor's thesis I programmed and evaluated a CLI Test Case Prioritization (TCP) tool for makandra...
When you write your next CarrierWave uploader, consider processing your images with libvips instead of ImageMagick. Reasons for libvips
alias_method makes a copy of a method. This works fine until the same method is overridden using prepend. If...
It most cases it's not necessary to add a version constraint next to your gems in the Gemfile. Since...
With this Ruby script you can print all values in a Redis database to your console (derived from this bash...