blog.saeloun.com

Rails' fragment caching caches subtrees of an HTML document tree. While constructing that tree though, it can be really hard...

On our Ubuntu machines we have nautilus file manager with nautilus-extension-gnome-terminal installed. This adds an entry to...

Starting with ChromeDriver 127, if your application displays a beforeunload confirmation dialog, ChromeDriver will immediately close it. In consequence, any...

I recently stumbled upon the Rails feature composed_of. One of our applications dealt with a lot of addresses and...

esbuild comes with a minifier that is good enough for most cases. If you're looking to squeeze out as...

You can improve your LIKE / ILIKE search queries in PostgreSQL by adding a GIN index with an operate class ("opclass...

Rails' default logger prefixes each log entry with timestamp and tags (like request ID). For multi-line entries, only the...

testing-library are widely used testing utilities libraries for javascript dependent frontend testing. The main utilities provided are query methods...

This card shows an uncommon way to retrieve a file using selenium where JavaScript is used to return a binary...

This cards describes an example with a Github Client on how to keep your Rails application more maintainable by extracting...

When you mocked method calls in RSpec, they are mocked until the end of a spec, or until you explicitly...

This card describes four variants, that add a more intuitive workflow when working with nested attributes in Rails + Unpoly:

makandra dev

Postgres works differently See PostgreSQL: Difference between text and varchar columns for PostgreSQL-specific info MySQL has 4 different column...

If you need to make an HTTPS connection to a host which uses an expired certificate, do not disable certificate...

It's 2024 and we have tools like ffmpeg, imagemagick and GPT readily available. With them, it's easy to...

developer.mozilla.org

A common cause of non-accessible web pages are elements that were made interactive via JavaScript but cannot be focused...

tpgi.com

These are the top ten accessibility errors as researched by TPGi, a company focusing on accessibility. See the linked article...

I recently built a screen with a very high and wide table in the center. This posed some challenges:

All browsers implement an event named beforeunload. It is fired when the active window is closed and can be used...

I recently noticed a new kind of flaky tests on the slow free tier GitHub Action runners: Integration tests were...

Any form fields where users enter numbers should be an . Numeric inputs have several benefits over : On mobile or tablet...

A Rails script lives in lib/scripts and is run with bin/rails runner lib/scripts/.... They are a simple tool to perform...

87.140.79.42 - - [23/Jan/2024:09:00:46 +0100] "GET /monitoring/pings/ HTTP/1.1" 200 814 "-" "Ruby" 87.140.79.42 - - [23/Jan/2024:09:00:46 +0100] "GET...

I, [2024-01-21T06:22:17.484221 #2698200] INFO -- : [4cdad7a4-8617-4bc9-84e9-c40364eea2e4] test