A page scanned upside down or sideways has the potential to confuse OCR engines and vision LLMs. While both are...

makandra dev

When an LLM model has vision capabilities, you can attach Base64-encoded images to chat messages, and it will load...

When testing Ollama vision requests with VCR, the recorded cassettes will contain the full base64-encoded image payloads. A single...

github.com

By default, Ollama produces non-deterministic output: The same prompt will yield slightly different results each time. To get reproducible...

I recently ran into this issue when processing a massive backlog of documents. The server completely stalled, sometimes taking up...

It's quite frustrating to come back to a coding agent after a while only to see that it needed...

Below is a strict, but still workable Content Security Policy for your Ruby on Rails project. Use this CSP if...

api.rubyonrails.org

When working with file uploads, we sometimes need to process intrinsic properties like the page count or page dimensions of...

If you need to implement newsletter sending, rapidmail is a solid option. Support is very fast, friendly and helpful, and...

makandra dev

Postgres supports multiple built-in range datatypes: int4range int8range numrange tsrange (range with timestamp without timezone) tstzrange (range with timestamp...

In some projects we have issues with flaky tests. The best default is to fix them all. But in some...

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

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

makandra dev
maketintsandshades.com

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

developer.chrome.com

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

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

Currently we often use geordi to run cucumber and rspec tests. Geordi takes care of installing a matching chromedriver for...

Frontend performance and user experience are orthogonal to feature development. If care is not taken, adding features usually degrades frontend...

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

To apply transparency to an element, you can use opacity in CSS. However, sometimes you don't want to make...

The currentColor CSS keyword references the current text color and can be used to apply an element's text color...

The :nth-child pseudo class is commonly used for targeting elements based on their position within a parent container, for...

DirectUpload allows you to upload files to your file storage without having to wait for the form to submit. It...