BeautifulSoup scraping fixes - select vs select_one None crashes, urljoin for relative…
BeautifulSoup scraping fixes - select vs select_one None crashes, urljoin for relative links, get_text strip, parser differences, JS pages
BeautifulSoup scraping fixes - select vs select_one None crashes, urljoin for relative links, get_text strip, parser differences, JS pages
Count LLM tokens with tiktoken - chars vs tokens table, emoji and digits cost, chunk by tokens with overlap, prompt budget formula
Parse JSON from LLM output - fenced blocks, prose, trailing commas, single quotes, truncation; raw_decode extractor and validate-then-retry
Pick IDs correctly - uuid4 unsorted, uuid1 leaks MAC, ULID order within a millisecond, UUID parse forms, uuid5 deterministic, secrets tokens
Unicode in Python - NFC vs NFD equality, casefold vs lower, zero-width characters, Cyrillic lookalikes, slugify returning empty for CJK
dateutil.parser gotchas - ambiguous 10/11/12 and dayfirst, naive vs tz-aware, default fills, ParserError, relativedelta Jan 31 plus month
Ethereum address and amount safety - EIP-55 checksum, isAddress strict vs getAddress normalizing, parseUnits rounding, float vs Decimal USDC
Build and test a TypeScript MCP server - registerTool with zod, published inputSchema, -32602 validation errors, isError results, in-memory client
Use HTTP conditional requests - ETag and If-None-Match returning 304 with empty body, Last-Modified, Cache-Control max-age, If-Match 412
HTTP gzip behavior - Content-Length is the compressed size, requests decodes automatically, raw bytes with decode_content=False, Vary header
Cookies for API clients - Set-Cookie attributes, Path scoping demo, HttpOnly vs scripts, SameSite, redirects, requests.Session handling
Debug CORS errors - reproduce preflight OPTIONS with Origin and Request-Headers in curl or Python, allow-list echo with Vary, credentials rules
API pagination - offset duplicates and skips reproduced, keyset cursors without overlap, (ts,id) tuple tie-breakers, opaque next_cursor, client loop
OAuth PKCE in Python - S256 code_challenge without padding, RFC 7636 known-answer test, invalid_grant causes, state, MCP clients
Monitor TLS certificate expiry in Python - notAfter, TLS version, expired vs hostname vs self-signed errors via badssl, alert thresholds
DNS lookups in Python with dnspython - A, MX, TXT, NS with TTLs, NXDOMAIN vs NoAnswer vs Timeout, propagation, SPF and DMARC records
Linux disk full - df -h vs df -i inodes, du -x sorted, deleted files held open by a process (lsof +L1), truncating logs, ext4 reserved blocks
Fix address already in use errno 98 - find the owner with ss -ltnp or lsof, kill safely, TIME_WAIT and SO_REUSEADDR, bind port 0 in tests
Profile slow Python - cProfile ranking, timeit min-of-N, list vs set membership measured, join vs +=, tracemalloc and generators
Pytest fixtures explained - session/module/function order logged, autouse, module-scope state leak failing assert 2 == 1, --setup-show, fixture not found
Python packaging basics - pyproject.toml, src layout, pip install -e, console_scripts entry point, packages.find where error
JavaScript regex cookbook - matchAll named groups, /g lastIndex statefulness, replaceAll TypeError, lookbehind, u flag emoji and unicode classes, ReDoS
Bash cookbook run live - ${var##*/} and %% expansions, :- vs - defaults, quoted arrays, associative arrays, 010 octal, getopts errors
Handle SIGTERM and SIGINT gracefully in Python and Node - handlers, exit 143/130/137, KeyboardInterrupt, orphaned children, exec in scripts