Why Rails has multiple schema formats When you run migrations, Rails will write your current database schema into db/schema.rb. This...
DirectUpload allows you to upload files to your file storage without having to wait for the form to submit. It...
For long running scripts it is useful to show a indicator for the progress in the terminal. Alternatively you can...
Here is a bash script that I use to auto-configure displays on Ubuntu 24.04 with Xorg. Background
Hint If you are using our opscomplete.com hosting we can set all environment variables mentioned below for your deployment on...
Elements can be hidden and shown by toggling the display property. However, this is not animatable, so we often turn...
With Ubuntu 24.04 it's not longer possible to setup FDE with BTRFS The new installer won't offer you...
In development, we store files using ActiveStorage's disk service. This means that stored files are served by your Rails...
When setting up cronjobs, commands somtimes output something every time. If these commands don't support limiting their output to...
While the main goal always is to prevent long-running queries in the first place, automatic timeouts can serve as...
Ever needed to migrate data between Redis instances? Give RIOT - Redis Input/Output Tools a try. It supports migration to different...
You can improve your LIKE / ILIKE search queries in PostgreSQL by adding a GIN index with an operate class ("opclass...
This card shows an uncommon way to retrieve a file using selenium where JavaScript is used to return a binary...
As we're switching from PT to Linear, I've updated the existing bash script to work for commits that...
We are using assignable_values for managing enum values in Rails. Nevertheless Rails is adding more support for enum attributes...
jq is great when dealing with JSON data. Check out the official jq Manual. Content Select only specific keys
It's 2024 and we have tools like ffmpeg, imagemagick and GPT readily available. With them, it's easy to...
A common cause of non-accessible web pages are elements that were made interactive via JavaScript but cannot be focused...
I recently built a screen with a very high and wide table in the center. This posed some challenges:
The Web Animations API has great browser support, and you should be using it to animate DOM elements from JavaScript...
Tested on Ubunut 22.04 1. Opener script Create a file ~/.local/bin/coverage_zip_opener with: #!/bin/bash tmp_folder="/tmp/coverage-report-opener" if [ -z "$1" ]
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
Your development server is usually running on an insecure HTTP connection which is perfectly fine for development.