Trial for Ride the Ridges 2026 #1
Loading…
Reference in a new issue
No description provided.
Delete branch "fixed-site-tracker"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Will be testing this new idea for Ride the Ridges 2026
Overlays become the daemon's rather than the browser's. An operator drops files in KML_DIR, a scan every 30s picks up adds, edits and deletes, and every connected client is told over SSE. Blank KML_DIR disables the feature. The id is a hash of the filename, so it survives restarts and edits and changes only on rename. That stability is the whole point: the browser hangs each overlay's visibility and colour off this id, and a content-derived id would silently reset the user's choices every time a file was touched. A separate rev, from mtime and size, is what tells the client the bytes changed -- without it an edit in place would be invisible and the stale overlay would render forever. Three things the directory being operator-controlled does not excuse: Files are held back until two consecutive scans agree on size and mtime, so one still being copied in is never published, fetched, and failed to parse as truncated XML. Costs up to 30s of latency; worth it. Symlinks are skipped rather than followed. The directory's contents are trusted, but a link is the one way they could point elsewhere entirely. Nothing request-derived reaches the filesystem as a path. The id is matched against ^[0-9a-f]{16}$ before any lookup, resolved through a map the scanner built, and the file is then opened through os.Root so even a corrupted mapping cannot escape the directory. Verified live: a KML and a KMZ discovered and listed, the KMZ served byte-exact as a valid zip with the right media type, traversal-shaped and malformed ids all 400 without reflecting the input, an unknown but well-formed id 404, and adds and deletes propagating within one scan.