Below is a strict, but still workable Content Security Policy for your Ruby on Rails project. Use this CSP if...
In rare circumstances, you want to use a websites full domain (say https://mywebsite.com) while testing in dev mode. This...
Leaving old unused DB columns around after a migration is confusing for other developers. However, dropping columns too eagerly might...
If you use the selenium-webdriver gem, it will sneakily phone home once every hour whenever you run a browser...
A simple web tool for generating lighter (tints) and darker (shades) versions of any HEX color value. Tip
Finding changes When you're looking for a specific change in Git, there are multiple axes you can choose:
Follow the installation guidelines at https://mise.jdx.dev/getting-started.html. Remove rbenv configuration Search for rbenv config in .bashrc and...
You want to prevent input to a form field, but all the solutions have side effects: The [readonly] attribute is...
The linked tool can be used to scan your CI/CD workflows for potential security issues and suboptimal defaults if they...
I had to modify the time for an application that I launch through Docker. Here is an approach that worked...
Orca is a Linux screen reader. Since it is part of the GNOME project it should come preinstalled with Ubuntu...
Why Rails has multiple schema formats When you run migrations, Rails will write your current database schema into db/schema.rb. This...
When debugging slow SQL queries, it’s helpful to understand the database engine's query plan. Whenever you execute a...
Hint If you are using our opscomplete.com hosting we can set all environment variables mentioned below for your deployment on...
Some key highlights and points from the linked article TestProf II: Factory therapy for your Ruby tests. The Problem with...
Rails' fragment caching caches subtrees of an HTML document tree. While constructing that tree though, it can be really hard...
YJIT is Ruby's default just-in-time compiler. It is considered production-ready since Ruby 3.2 (source).
Slow test suites are a major pain point in projects, often due to RSpec and FactoryBot. Although minitest and fixtures...
Why do we migrate? Due to a change in licensing, we cannot provide Elasticsearch versions >= 8.0. Version 7.17.x will...
It's 2024 and we have tools like ffmpeg, imagemagick and GPT readily available. With them, it's easy to...
If you want to system-wide disable the microphone of your external webcam in PulseAudio use the following one-liners...
The author describes his little journey in hunting down a memory leak. Maybe his approach and tooling may one day...
A Rails script lives in lib/scripts and is run with bin/rails runner lib/scripts/.... They are a simple tool to perform...
There are a few tools to combat the dreaded n+1 queries. The bullet gem notifies you of missing eager...