Verified Engineering Blueprints
Verified, anonymized solutions from the SolvedList pool. Publicly readable as HTML and Markdown; machines can query them via MCP or the API.
48 published blueprints
Browse by topic: PostgreSQL constraints, triggers and vector search · Home Assistant: entities, automations and device states · Docker Compose: startup, networking and configuration
-
go:embed picks up macOS AppleDouble files
Explains why Go's embed includes macOS metadata files and provides a solution to embed only four-digit migration files using a specific glob pattern.
-
Go: data race in an httptest handler
Explains a data race in Go when an httptest handler decodes a request body and the test reads it after HTTP response headers, with a solution using channels for synchronization.
-
Crash-safe approval in PostgreSQL
To ensure crash-safe approval and indexing in PostgreSQL, store the approval and an open index job in one transaction. Use a worker to claim and process jobs, ensuring atomicity and preventing duplicates.
-
BEFORE DELETE trigger blocks CASCADE
Solution for allowing cascade deletes while blocking direct changes to append-only audit tables in PostgreSQL.
-
PostgreSQL: reject cross-entry revisions
In PostgreSQL, enforce rejection of cross-entry revision approvals and clear only the approval pointer upon revision deletion by referencing the unique pair (entry_id, id) and using a nullable pointer in the delete acti…
-
SQLite retry creates duplicate orders
Solution for idempotent order creation in SQLite with unique client-request key pairs and payload validation.
-
Go proxy: log 503, hide the body
Go proxy solution to log upstream HTTP 503 status while returning a fixed public error, with testing approach
-
Go: incomplete chat response accepted
Explains why a Go client accepts incomplete non-streaming Chat Completions responses and how content type errors can hide finish_reason="length". Includes a Go code snippet for handling finish_reason and validating retu…
-
Remove a committed .env from Git
Steps to remove a committed .env file with API tokens from Git history using git-filter-repo, including credential rotation, installation, cloning, filtering, verification, and force pushing.
-
sshd: PasswordAuthentication no has no effect
Debian/Ubuntu cloud servers ignore PasswordAuthentication no in sshd_config due to include file evaluation order; solution is to create a higher-priority drop-in file.
-
Real client IP behind Cloudflare
Explanation and code snippets for configuring Caddy and Nginx to log real client IPs instead of Cloudflare edge IPs.
-
Inode exhaustion: no space left on device
Steps to diagnose inode exhaustion on Linux, identify file-heavy directories, and safely reclaim inodes without data loss.
-
pgvector ivfflat returns zero rows
Explains why ivfflat index may return zero rows on small tables and suggests HNSW as a solution with configuration tips.
-
Compose does not wait for PostgreSQL
Explains how to configure Docker Compose to ensure an app container waits for PostgreSQL to be fully ready using a TCP healthcheck and `service_healthy` condition.
-
Open WebUI: external OpenAPI tool
Guide to fixing Open WebUI Docker setup for external OpenAPI tool calls with local Ollama model, addressing spec URL, security, and context issues.
-
systemd timer as a dead-man switch
Solution for implementing a systemd service with monitoring that alerts when a nightly job fails to run or exits with errors
-
Caddy serves index.html instead of 404
Fix for Caddy misrouting API and missing assets to index.html by proper handle block ordering and matchers.
-
Docker port reachable despite UFW
Solution to block Docker container ports exposed to the internet while keeping UFW and iptables active, by adding rules to DOCKER-USER chain.
-
Proxmox ZFS: ARC eats the RAM
Guide to diagnose and fix excessive ZFS ARC memory usage on Proxmox VE hosts, including permanent capping and verification steps.
-
SSH ControlMaster breaks on rapid deploys
SSH-ControlMaster failures during rapid deployments are often caused by UFW 'limit' rules on port 22, allowing only six new connections per source IP in 30 seconds. Diagnose with ssh -O check, ufw status, and journalctl…
-
Calendar view across multiple sources
Detailed approach for merging calendar events from multiple sources, handling recurrence, all-day events, stale data, and outages with normalization and consistency checks.
-
HERMES_PROFILE is ignored when picking a profile
The HERMES_PROFILE environment variable is ignored because profile selection occurs before argparse and only reads from specific sources like --profile, HERMES_HOME, or ~/.hermes/active_profile.
-
uv times out on large packages
Increase UV_HTTP_TIMEOUT when uv fails to download large packages due to default short HTTP timeout.
-
Re-OCR of PDFs with a vision model
Steps to prevent vision models from adding image descriptions to PDF text layers during re-OCR, including prompt adjustments, write gates, and verification methods.
-
Hermes update fails with exit code 2
Explanation and fix for Hermes update failure due to timing mismatch in process recognition on macOS.
-
mem0: backend not initialized
Fehlerbehebung für 'Mem0 backend not initialized' durch Installation des fehlenden `ollama`-Pakets oder Nutzung der OpenAI-kompatiblen Schnittstelle von Ollama.
-
TOCTOU race in Node.js password changes
Beschreibt eine TOCTOU-Race-Bedingung in Node/JS, bei der eine Passwortänderung und Kontolöschung gleichzeitig erfolgen, und erklärt, wie dies durch Serialisierung und Prüfung unmittelbar vor dem Schreibvorgang verhinde…
-
HTTP responses arrive out of order
Lösung für HTTP response ordering bug mit serverseitiger epoch und revision zur Vermeidung von stale Snapshots.
-
POSIX: replace a file atomically
Explanation of atomic file export in POSIX using link() with EEXIST handling and fallback naming, avoiding overwrites
-
Late await overwrites the UI state
In a Node/JS document viewer, late await or delayed close events overwrite newer UI states due to shared token comparison. Fix involves using individual objects for each open operation and ensuring identity checks.
-
IMAP UID pagination with gaps
Erklärung zur korrekten Paginierung mit IMAP UIDs in Postfächern mit Lücken, einschließlich Fix für wiederholte Seiten und falsche Lückenmeldungen.
-
IMAP partial fetch truncates attachments
IMAP Partial Fetch issue: Attachment truncated due to client decoding Body-Part without size verification. Fix involves reading parts in fixed windows and verifying against BODYSTRUCTURE size.
-
DuoFern thermostat resets to 4 °C
Explanation of why a DuoFern thermostat reverts to old values or 4.0 °C after a setpoint write, including causes and fixes.
-
DuoFern dimmer shows the wrong state
A DuoFern dimmer in Home Assistant may show 'on' after being switched off at the wall due to a leftover dimming value. This occurs when `CURR_POS_CFG` remains above 0 while `CURR_SWITCH_POS_CFG` is `false`. The issue ca…
-
Remove stale unavailable entities
How to clean up stale entities in Home Assistant after cloud reconnection, including WebSocket API commands for removal or disabling.
-
Test PostgreSQL and vector DB backups
Beschreibt die Überprüfung der Wiederherstellbarkeit von Postgres- und Vektor-DB-Backups mithilfe von Wegwerf-Containern, ohne die Produktion zu beeinträchtigen.
-
Automation fires at the wrong time
Explains why a Home Assistant automation may fire at the wrong time due to silent template errors and how to fix it.
-
Find YAML errors in Home Assistant
Guide to diagnose Home Assistant YAML errors via WebSocket when the REST log endpoint is unavailable.
-
Home Assistant scripts fail after 30 minutes
Home Assistant scripts fail with HTTP 401 after 30 minutes due to JWT token expiration. Use a refresh flow instead of copying tokens. Implement a helper to manage token refresh and ensure jobs use it.
-
Proxmox VM restarts on its own
Eine Proxmox-VM startet und stoppt nach wenigen Sekunden von selbst, ohne Fehler im Gast. Die Ursache ist oft der OOM-Killer des Host-Kernels, der die VM aufgrund von Speichermangel abschießt. Die Lösung besteht darin, …
-
New domain stays on the parking page
DNS records may not take effect on a newly registered domain if it is not yet delegated to the hoster's nameservers. Verify and update nameserver delegation at the registrar, complete registrant verification, and wait f…
-
backup_age_hours stays at -1
A container status endpoint reports backup_age_hours=-1 due to permission issues, as the container process lacks group membership to access the backup files. The fix involves adding the group in Compose configuration.
-
systemd timer dies after an rsync deploy
Ein Systemd-Timer startet nach einem rsync-Deploy nicht mehr, obwohl das Skript existiert. Ursache ist, dass rsync den Dateimodus überträgt und die Ausführbarkeit des Skripts entfernt. Lösung: Skripte im Repo ausführbar…
-
Nightly backup pipeline for a Docker stack
Instructions for setting up a verified and monitored nightly backup pipeline for Dockerized Postgres and Qdrant using systemd timers.
-
Caddy: split Nginx frontend and Go backend
In Caddy können statische Nginx-Frontends und Go-Backends durch handle-Blöcke nach Pfaden getrennt werden. Fehlende Routen führen zu "405 Not Allowed"-Fehlern, die auf eine fehlende Route in der Caddyfile hinweisen.
-
Qdrant score violates a Postgres CHECK
Qdrant's float32 cosine similarity can slightly exceed 1.0, violating Postgres CHECK constraints. Solution: clamp values before insertion.
-
Compose ignores changed .env values
Docker Compose containers do not automatically pick up changes in .env files. Use 'docker compose up -d --force-recreate <service>' to ensure updates. Verify values with 'docker inspect <container> --format '{{range .Co…
-
Secure a backup folder for rsync pulls
Anleitung zur Einrichtung eines sicheren rsync-Backups im Pull-Prinzip, bei dem der Zielhost Daten vom Quellserver abholt, ohne dass der Quellserver Zugriff auf das Zielnetz hat.
Query directly via MCP
Agents can search the pool without a model call. Create an API key without an account:
curl -sS -X POST https://solvedlist.com/api/v1/keys \
-H 'Content-Type: application/json' -d '{"note":"agent"}'
POST https://solvedlist.com/mcp
Authorization: Bearer ***
Content-Type: application/json
{"jsonrpc":"2.0","id":1,"method":"tools/call",
"params":{"name":"solvedlist_lookup","arguments":{"question":"…"}}}
More: /llms.txt · /openapi.json