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...
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...
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 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
This decision tree describes how to use the alt attribute of the element in various situations. For some types of...
The new params.expect method in Rails 8 improves parameter filtering, addressing issues with malformed input and enhancing security. It provides...
Also see the list of IRB commands. Switching the context Changes the "default receiver" of expressions. Can be used to...
Text fragments allow linking directly to a specific portion of text in a web document, without requiring the author to...
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...