We usually ship applications that self-host webfonts to comply with GDPR. Many popular web fonts are available as NPM...
If you need dummy data to play around with in development, it's often faster to reuse your existing factories...
Important wkhtmltopdf is deprecated and shouldn't be used anymore. Please consider switching to another tool We can install wkhtmltopdf...
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...
ActiveStorage does not provide any built-in way of implementing authentication for the available DirectUpload endpoint in Rails. When using...
There are several ways to run a single spec. I usually copy the spec file path with the line number...
Sometime we've seen this error when executing e.g. bundle exec rake asset:precompile: double free or corruption (out)
The key to unlocking the full potential of LLMs in coding lies in crafting precise prompts. The main challenge is...
Here is a bash script that I use to auto-configure displays on Ubuntu 24.04 with Xorg. Background
Also see the list of IRB commands. Switching the context Changes the "default receiver" of expressions. Can be used to...
With Ubuntu 24.04 it's not longer possible to setup FDE with BTRFS The new installer won't offer you...
tl;dr When a cookie includes an Expires attribute or an HTTP response includes caching headers like Expires or Cache...
When Ruby objects are inspected in any modern IRB, some objects (like ActiveRecord instances) are rendered with neat colors and...
Capistrano 3 has a doctor task that will print information about Environment: Ruby, Rubygems and Bundler versions List of Capistrano...
YJIT is Ruby's default just-in-time compiler. It is considered production-ready since Ruby 3.2 (source).
When using Rails credentials, you will edit the encrypted credentials for staging or production environments from time to time. To...
While the main goal always is to prevent long-running queries in the first place, automatic timeouts can serve as...
The ActiveSupport::BroadcastLogger allows you to log to multiple sinks. You know this behavior from from the rails server command...
Terser is a really good minifier ("compressor") for JavaScript code. I'm often surprised by the thoughtfulness of its compressed...
sudo gitlab-rails console Note This takes some minutes to start Send a mail Use the following...
There are different kind of memory measurement metrics in Linux. These are the differences: Code Name Description vsz virtual memory...
While most Rails Apps are tied to at least one external REST API, machine-to-machine communication via GraphQL is...
Some rubygems come in platform-specific versions (i.e. "x86_64-linux") in addition to the usual "ruby" platform. This is...