If you run a Rails app that is using Turbo, you might observe that your integration tests are unstable depending...

Most of the time, when you are interested in any log output, you see the logs directly on your console...

developer.mozilla.org

The linked MDN article is quite informative of a neat feature supported by all major browsers: Unicode character class escape...

RSpec examples can get quite long, especially in feature specs. This makes them hard to read & understand. Also, when executing...

Modern CSS offers the field-sizing property to allow elements to automatically adjust size (width and/or height) to fit their...

When you repeat complex assertions in your tests multiple times, it might be a good idea to extract a custom...

We usually ship applications that self-host webfonts to comply with GDPR. Many popular web fonts are available as NPM...

Say you wrap your index view in a form to apply different filters like pagination or a search query. On...

To apply transparency to an element, you can use opacity in CSS. However, sometimes you don't want to make...

The currentColor CSS keyword references the current text color and can be used to apply an element's text color...

When you want to filter records in a model where a string column roughly matches a given term, you can...

You can check the maximum client Redis database size in Sidekiq with this command. Sidekiq.redis { |redis| puts redis.info.fetch('maxmemory_human...

Orca is a Linux screen reader. Since it is part of the GNOME project it should come preinstalled with Ubuntu...

developer.mozilla.org

Here is a workaround for when you want to use text-wrap: balance but must also render nicely for browsers...

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...

PostgreSQL can cosplay as a full-text search engine. It doesn't have the features or fidelity of ElasticSearch or...

There are several ways to run a single spec. I usually copy the spec file path with the line number...

haml.info

Haml renders HTML with indentation reflecting the nesting level of elements. When it comes to white-space preserving content, this...

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

w3.org

This decision tree describes how to use the alt attribute of the element in various situations. For some types of...

github.com

The new params.expect method in Rails 8 improves parameter filtering, addressing issues with malformed input and enhancing security. It provides...

makandra dev
impactahead.com

Also see the list of IRB commands. Switching the context Changes the "default receiver" of expressions. Can be used to...