Unix Timestamps and Timezone Handling
A Unix timestamp counts seconds since 1970 UTC. Learn seconds vs milliseconds, UTC vs local, ISO 8601, and the accurate Year-2038 problem.
A Unix timestamp counts seconds since 1970 UTC. Learn seconds vs milliseconds, UTC vs local, ISO 8601, and the accurate Year-2038 problem.
How percent-encoding works, reserved vs unreserved characters, encodeURIComponent vs encodeURI, %20 vs +, and the double-encoding bugs that break URLs.
Regex quantifiers *, +, ?, and {n,m} are greedy by default. Learn how adding ? makes them lazy, how backtracking works, with worked examples.
Apache RewriteRule and Redirect versus nginx rewrite and return: 301 vs 302, regex backrefs, flags, and testing before you deploy.
How to read a unified diff: the @@ hunk header, + and – lines, context lines, line-level vs word-level diffs, and when to ignore whitespace.
How JWT expiry claims (exp, nbf, iat) work, why access and refresh tokens are split, and the security mistakes that keep breaking auth.
MD5 is 128-bit and broken for security; SHA-256 is 256-bit and sound for integrity. When each is fine, when it is dangerous, and what to use instead.
An honest comparison of JSON, YAML, and TOML: syntax, readability, gotchas, and which format fits APIs versus config files.
A clear guide to JSON syntax and data types, plus the parse errors that trip everyone up and exactly how to fix each one.
Why you never store plaintext, why fast hashes like MD5 are wrong for passwords, and how salts and slow KDFs (bcrypt, scrypt, Argon2) protect them.