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...
In development, we store files using ActiveStorage's disk service. This means that stored files are served by your Rails...
While the main goal always is to prevent long-running queries in the first place, automatic timeouts can serve as...
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...
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.
Getting an entire test suite green can be a tedious task which involves frequent switches between the CLI that is...
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...