For long running scripts it is useful to show a indicator for the progress in the terminal. Alternatively you can...

haml.info

Haml renders HTML with indentation reflecting the nesting level of elements. When it comes to white-space preserving content, this...

The key to unlocking the full potential of LLMs in coding lies in crafting precise prompts. The main challenge is...

w3.org

This decision tree describes how to use the alt attribute of the element in various situations. For some types of...

In development, we store files using ActiveStorage's disk service. This means that stored files are served by your Rails...

In FactoryBot factories, Rails' file_fixture is not available by default. To enable it, include a support module from rspec...

developer.mozilla.org

Text fragments allow linking directly to a specific portion of text in a web document, without requiring the author to...

When Ruby objects are inspected in any modern IRB, some objects (like ActiveRecord instances) are rendered with neat colors and...

github.com

When handling nested hashes the RSpec output is often hard to read. Here the gem super_diff could help.

github.com

I was recently asked to optimize the response time of a notoriously slow JSON API endpoint that was backed by...

shoelace is a library of web components. Here is a proof of concept how a integration (slightly different as the...

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

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:

Up until Chrome 120, scrollbars could only be styled using the various -webkit-scrollbar-* pseudo elements, e.g. to make the...

makandra dev

Usually our code lives on GitLab, therefore our documentation for CI testing is extensive in this environment. If you are...

Tested on Ubunut 22.04 1. Opener script Create a file ~/.local/bin/coverage_zip_opener with: #!/bin/bash tmp_folder="/tmp/coverage-report-opener" if [ -z "$1" ]

If you have an element with significant border-radius (e.g. 50% for a circle) and you want inline content (i.e...

makandracards.com

A general overview about why and how we migrate can be found under Migrating from Elasticsearch to Opensearch

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

Most of our applications use CarrierWave for file uploads. CarrierWave has an integrated processing mechanism for different file versions with...

Besides Plotting graphs in Ruby with Gruff, which comes handy for many uses cases, you sometimes might need configuration for...

github.com

For my computer science bachelor's thesis I programmed and evaluated a CLI Test Case Prioritization (TCP) tool for makandra...

In CI test runs I noticed that string sorting order changed after switching from a debian-based PostgreSQL docker image...