Why uniq Misses Duplicates, and What Makes Two Lines the Same
Why uniq leaves repeats behind, how sort -u and order-preserving deduplication differ, and why Unicode forms, case and invisible characters decide when two lines match.
Les artikkelen →Korte veiledninger for hvert verktøy og lengre dypdykk for de nysgjerrige — hvordan konvertering, validering eller behandling faktisk fungerer.
Vitenskapen og historien bak et verktøy, med kilder — for den nysgjerrige leseren.
Why uniq leaves repeats behind, how sort -u and order-preserving deduplication differ, and why Unicode forms, case and invisible characters decide when two lines match.
Les artikkelen →Suetonius records Caesar's shift of 3 (D for A) and Augustus's B for A with AA for X. How shifted text is read without the key, where mod 26 came from, and why ROT13 undoes itself.
Les artikkelen →Why ‘ł’ becomes %C5%82, why decodeURI leaves %2F alone and why ‘+’ only sometimes means a space: the specifications behind percent-encoding, explained.
Les artikkelen →ß becomes SS, Σ has two lowercase forms and Turkish has a dotted and a dotless i. A look at the Unicode rules, style guides and code conventions behind letter case.
Les artikkelen →A JSON formatter parses your text and writes it out again. Here is what that round trip keeps and loses, from 2^53 and duplicate keys to escapes, key order and error positions.
Les artikkelen →Every version 4 UUID has six fixed bits and 122 random ones. What those bits mean, how unlikely a collision really is, and where random IDs become a cost.
Les artikkelen →A signed JWT's header and payload are Base64URL-encoded JSON that anyone can read. Here is what the signature covers, and why the token choosing its own algorithm led to attacks.
Les artikkelen →How MD5, SHA-1 and SHA-2 turn any input into a fixed-size digest, what the famous collision attacks actually broke, and why a 'broken' hash still cannot be reversed.
Les artikkelen →A URL has an IETF grammar and a browser parser, but neither says where it stops in a sentence, so every link extractor guesses whether a closing bracket or full stop belongs to it.
Les artikkelen →No image standard defines "quality 80". What the setting changes inside JPEG, PNG, WebP and AVIF, where blocking and colour smear come from, and why size is not linear.
Les artikkelen →Why JavaScript answers "cat" where grep answers "category", how automaton and backtracking engines run the same pattern, and why some patterns freeze a tab while others run in microseconds.
Les artikkelen →A Unix timestamp works like a calendar label more than a stopwatch. That explains dates stuck in 1970, the 27 missing leap seconds, the 2038 wrap and why an ISO date-time without Z can shift.
Les artikkelen →Vi respekterer personvernet ditt
Vi vil gjerne bruke valgfrie analysecookies for å forstå hvordan nettstedet brukes og forbedre det. Ingenting lastes inn før du velger, og du kan endre valget ditt når som helst. Personvernerklæring