Guides

Short fixes for problems I have hit, each checked against the versions it names.

Find a fix

Narrow the list: pick a technology, then a version, then the error you see. Pick any to skip a step. Or type after the cursor, paste an error, or try help.

Nothing here matches. cd / goes back to every guide.

Type to narrow the choices and the guides, or paste an error. Tab completes, ↑ ↓ choose, Enter opens, Backspace on an empty line goes back a step, Esc clears. Commands: cd .., cd /, cd <name>, clear and help.

Error or symptom

Matching guides

2 of 6

  1. stat -c %F reports the wrong file type under a non-English locale

    GNU stat translates its %F file-type field, so code that matches the English words regular file or directory misreads every path once the locale is, say, Swedish. Pinning LC_ALL=C on the stat call fixes it.

    one layer down checked GNU coreutils · Rust locale · stat · coreutils · ssh · rust

  2. Scraped text runs as HTML in a generated report

    My web scraper wrote scraped titles and links straight into its HTML report, so a page could slip its own markup or a javascript: link into the file. One shared escape function, plus a rule that only http and https addresses become links, fixed it.

    one layer down checked Rust · HTML rust · html · security · escaping