All browsers implement an event named beforeunload. It is fired when the active window is closed and can be used...
Up until Chrome 120, scrollbars could only be styled using the various -webkit-scrollbar-* pseudo elements, e.g. to make the...
I recently noticed a new kind of flaky tests on the slow free tier GitHub Action runners: Integration tests were...
Sometimes you have a file that is related to a project, while not actually being part of it. You'd...
The linked table shows the support lifecycle for Firefox Extended Support Releases (ESR) which we sometimes need to support for...
tl;dr We recommend configuring Selenium's unhandled prompt behavior to "ignore". When running tests in a real browser, we...
To show your key inputs on screen, e.g. for a screencast or screen sharing, you can use screenkey.
A Rails script lives in lib/scripts and is run with bin/rails runner lib/scripts/.... They are a simple tool to perform...
There are a few tools to combat the dreaded n+1 queries. The bullet gem notifies you of missing eager...
Multiply by 1x the unit: $number = 13 $length = $number * 1px // => 13px Removing a unit
Ruby methods which load from a Yaml file, like YAML.safe_load or YAML.safe_load_file, support passing freeze: true to...
Here are some hints on best practices to maintain your tasks in larger projects. Rake Tasks vs. Scripts
Version 3.7.0 broke some things in complex forms. Sorry for that. Concurrent user input is hard. 3.7.1 This change fixes...
If you have an element with significant border-radius (e.g. 50% for a circle) and you want inline content (i.e...
...The config/settings.yml might look as follows: shared: &shared email: info@example.com google_analytics: container: UA-123456-12 test: <<: *shared development: <<: *shared production: <<: *shared email: production@example.com Keys under the shared namespace are...
I recently did a quick research on how to better write down multiline statements like this: # Dockerfile RUN export DEBIAN...
A list of clever debugging tricks. TOC: Advanced Conditional Breakpoints monitor() class Calls Call and Debug a Function Pause Execution...
RubyMine has a collaboration feature called "Code With Me". Using it, you can invite someone into your local editor to...
You can ignore certain commits when using git blame with the --ignore-revs-file option. This is handy to ignore...
The linked article suggests an interesting way to speed up tests of Rails + Postgres apps: PostgreSQL allows the creation of...
Getting an entire test suite green can be a tedious task which involves frequent switches between the CLI that is...
In the Gitlab settings the flag Auto-cancel redundant pipelines is enabled by default. This auto-cancels jobs that have...
In Capistrano 3, your Capfile requires 'capistrano/rails/migrations', which brings two Capistrano tasks: deploy:migrate and deploy:migrating. The former checks...
#pluck is commonly used as a performant way to retain single database values from an ActiveRecord::Relation Book.pluck(:title, :price...