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

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

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

unpoly.com

Version 3.7.0 broke some things in complex forms. Sorry for that. Concurrent user input is hard. 3.7.1 This change fixes...

makandra dev
alan.norbauer.com

A list of clever debugging tricks. TOC: Advanced Conditional Breakpoints monitor() class Calls Call and Debug a Function Pause Execution...

Getting an entire test suite green can be a tedious task which involves frequent switches between the CLI that is...

makandra dev

Getting CSS (and JS) live reloading to work in a esbuild / Rails project is a bit of a hassle, but...

github.com

In my career, I have consumed hundreds of REST APIs and produced dozens. Since I often see the same mistakes...

Every modern Rails app should have a Content Security Policy enabled. Very compatible default The following "default" is a minimal...

While upgrading CarrierWave from version 0.11.x to 3.x, we encountered some very nasty fails. Below are the basic...

All direct child directories of app are automatically added to the eager- and autoload paths. They do NOT create a...

selenium.dev

I recently stumbled over a problem that my feature tests broke in CI because of a mismatching chromedriver version.

thegnar.com

View specs are a powerful tool to test several rendering paths by their cases instead of using a more costing...

ruby-doc.org

Do you remember finding where a method is defined? I recently learned from a senior colleague that Method objects are...

The git doc states on the difference of these two commands: git-restore[1] is about restoring files in the...

makandra dev

There are multiple ways to redirect URLs to a different URL in Rails, and they differ in small but important...

Rails' url_for is useful for generating routes from a Hash, but can lead to an open redirect vulnerability.

Rails' Strong Parameters enable you to allow only specific values from request params to e.g. avoid mass assignment.

You can tell npm to install a package globally with npm -g install @puppeteer/browsers. However, it seems that its not...

Rails offers several methods to manage three types of different cookies along with a session storage for cookies. These...

Splitting up commits makes the process of reviewing often easier, since you can create several merge requests or review every...

TL;DR Still has caveats. Code splitting is a feature of JavaScript bundlers that can keep huge libraries out of...

makandra dev

As we are slowly switching from Cucumber scenarios to RSpec feature specs, you might be tempted to write assertions like...

makandra dev
gist.github.com

Context and further resources Even though you can get 90% of debugging done with up to 5 basic byebug commands...