Posts
Python Basics: Extract HTML Details with HTMLParser
A local HTML report may need a link inventory, a title, or a quick check for images without alternative text. HTMLParser exposes tags and text through callbacks, so a small script …
October 24, 2026
Python Basics: Coordinate Threads with Events, Locks, and Barriers
Starting a thread does not decide when another thread may read its result or change shared state. Three small coordination patterns solve different problems: an Event signals …
October 24, 2026
Python Basics: Build Focused Error Reports with traceback
A command-line tool may need a short validation error, while a diagnostic report needs the failing call path. traceback lets you choose which details to retain and format. These …
October 24, 2026
Linux Basics: Split Text at Section Boundaries with GNU csplit
Some files have logical sections rather than equally sized chunks. A diagnostic report might contain headings; a simple export might separate records with empty lines. GNU csplit …
October 24, 2026
Linux Basics: Save Pipeline Output Without Losing It with GNU tee
Sometimes you want to save a command’s output and continue processing it. GNU tee copies its input to named files while also forwarding it to standard output. Its position in a …
October 24, 2026
Linux Basics: Inspect Hidden Bytes and Binary Fields with GNU od
Two files can look identical in a terminal while containing different bytes. GNU od makes those bytes visible, which is useful for checking line endings, examining a small file …
October 24, 2026
Linux Basics: Convert Tabs and Spaces with expand and unexpand
A tab advances to the next tab stop; it does not always mean a fixed number of spaces. GNU expand and unexpand let you make that convention explicit when preparing plain-text …
October 24, 2026
Linux Basics: Compare Sorted Lists with GNU comm
When you have two inventories, the useful questions are often what they share and what appears in only one. GNU comm answers those questions for sorted text files. Unlike a …
October 24, 2026
JavaScript Basics: Serialize Local Data with Node V8
JSON is convenient for interchange, but a local Node.js cache may contain a Map, a BigInt, or repeated references. The node:v8 serialization API turns supported JavaScript values …
October 24, 2026
JavaScript Basics: Inspect Objects Without Losing the Useful Details
A debugging log can hide the field you need or print hundreds of unhelpful entries. Node.js inspect() gives you explicit control over how an object is presented. These examples …
October 24, 2026