In rare circumstances, you want to use a websites full domain (say https://mywebsite.com) while testing in dev mode. This...

I use the Gemini web chat interface quite extensively. One thing that is tedious is giving it all the context...

If your rubocop run fails with a stack like rubocop-1.61.0/lib/rubocop/server/socket_reader.rb:36:in `ensure in read!': undefined method `string...

Event listeners are called in the order of their registration: button.addEventListener('click', () => console.log("I run first")) button.addEventListener('click', () => console.log("I...

The :test adapter doesn't respect limits_concurrency configuration. Switch to :solid_queue adapter in your test to verify blocking...

If you use the selenium-webdriver gem, it will sneakily phone home once every hour whenever you run a browser...

I recently had to update a few selective npm libraries in a project that uses pnpm to apply a CVE...

Finding changes When you're looking for a specific change in Git, there are multiple axes you can choose:

developer.chrome.com

The File System Access API is a new capability of modern browsers that allows us to iterate over selected folders...

Enable local logging for Sentry when: Debugging Sentry event capture locally Testing error handling without polluting production metrics Developing background...

unpoly.com

Quick reference for passing data from Rails to JavaScript via Unpoly compilers. Haml Attribute Syntax # Ising hash rockets and string...

GoodJob and ActiveJob rescue exceptions internally, preventing exception_notification from triggering. This can cause silent job failures.To get notified, subscribe...

prettier calls itself an opinionated code formatter. I recommend using it for your JavaScript and TypeScript code. prettier only concerns...

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

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

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

makandra dev
github.com

If you want to build a small CLI application, that supports more advanced inputs than gets, I recommend using the...

Even if you don't make any beginner mistakes like N+1 queries or missing DB indices, some requests can...

github.com

Use these snippets when you want to measure yourself. Currently available: Core Web Vitals Largest Contentful Paint (LCP) Largest Contentful...

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

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

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