makandra dev

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

makandra dev

Most of our CI pipelines don't use the --retry flag for Cucumber and instead build their own retry via...

Short reference on how to quickly debug the vanilla Rails job adapters. Queue Adapters by Environment Environment Adapter

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

Sometimes you have a maintenance script where you want to iterate over all ActiveRecord models. Rails provides this out of...

When creating a database table for a join model without further importance, you can use Rails' create_join_table:

When you query the browser for DOM elements, there are some footguns you should know about. Some lists are synchronized...

makandra dev
maketintsandshades.com

A simple web tool for generating lighter (tints) and darker (shades) versions of any HEX color value. Tip

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

When your Rails application is using Redis as its cache store, this is how you can list existing keys:

When you replace parts of the DOM with new HTML, using .innerHTML = newHtml is usually the simplest and fastest option...

developer.chrome.com

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

Most of the time, it's a good default to add a unique index on the foreign key when using...

makandra dev

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

Full-text search can reach its limits in terms of flexibility and performance. In such cases, trigram indexes (pg_trgm...

unpoly.com

Quick guide for frequently used compiler selector patterns of Unpoly. 1. BEM Component Pattern When: Reusable UI components with multiple...

docs.zizmor.sh

The linked tool can be used to scan your CI/CD workflows for potential security issues and suboptimal defaults if they...

In Rails 8 the behavior of the rails db:migrate command has changed for fresh databases (see PR #52830).

makandra dev
unpoly.com

This release adds asynchronous compilers and many other features requested by the community. We also fixed a number of performance...

Note Compiling Sass is probably the slowest part of your build, so this is worth a try if you're...

I had to modify the time for an application that I launch through Docker. Here is an approach that worked...

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

There's a method Integer() defined on Kernel, that typecasts everything into an Integer. Integer("2") # 2 Integer("foo") # Invalid...

makandra dev

Rails log files rotate automatically when they reach approx. 100MB: $ ls -lh log/ -rw-r--r-- 1 user group 55M...