Posts
C++: Parse a complete finite decimal value
Combine floating-point from_chars, full-consumption checks, and isfinite for decimal settings.
November 11, 2026
C++: Normalize path spelling without claiming filesystem safety
Use lexically_normal for path spelling and distinguish it from existence, symlink resolution, and containment checks.
November 11, 2026
C++: Mark graph nodes when adding them to a BFS queue
Use a queue for breadth-first traversal and mark nodes on enqueue to avoid duplicate work in cycles.
November 11, 2026
C++: Inspect the keys left behind by map merge
Transfer non-conflicting map entries and handle duplicate keys that remain in the source.
November 11, 2026
C++: Deduplicate names in first-seen order
Use unordered_set insertion results to build a stable list of unique names.
November 11, 2026
C++: Continue a vector loop after erasing an element
Use the iterator returned by vector erase to inspect the next remaining element safely.
November 11, 2026
C++: Check nested brackets with a stack
Match bracket types in nesting order and handle unexpected closing brackets before accessing top.
November 11, 2026
SQLite: Handle Write-Lock Contention Explicitly
Reproduce SQLITE_BUSY with two Python connections, inspect transaction state, and retry after the writer releases its lock.
November 10, 2026
Python: Reject Ambiguous JSON Settings
Reject duplicate JSON keys, non-finite numbers, and invalid retry settings before using configuration data.
November 10, 2026
Python: Limit Expanded Bytes When Reading gzip
Read a small gzip payload with an explicit expanded-byte limit and reject oversized or damaged input.
November 10, 2026