Recently, I needed to implement a batch replace feature supporting both plain text and regex modes. Seemed simple, but I ran into some interesting …
Posts for: #Rest
REST API Documentation Generator: From Manual Maintenance to One-Click Automation
Every backend developer knows this pain: the API changed but the docs didn’t; new team members stare at outdated documentation in confusion; during…
Responsive Testing Tool: iframe Sandbox and Device Simulation
Testing responsive designs usually means switching devices in Chrome DevTools or opening multiple tabs. I built a responsive testing tool that cons…
Linux pwd Command: From System Calls to Symbolic Link Handling
The pwd command might be one of the simplest yet most frequently used Linux commands. But beneath its simplicity lies interesting implementation de…
Linux du Command Deep Dive: From Disk Usage Statistics to Directory Space Analysis
Last week, our server triggered a disk space alert. I needed to quickly identify which directories were consuming the most space. I used to rely on…
Linux diff Command: From Line-by-Line Comparison to Unified Format
During a recent code review, I needed to compare two config files. Staring at them side-by-side was painful. Then I remembered diff — a tool I’d …
Canvas Image Pixelation: The Two-Step Scale Down and Scale Up Approach
Recently, while building an image pixelation tool, I discovered something interesting: many implementations manually iterate through each pixel blo…
Building a GIF Maker from Scratch: LZW Compression and Median Cut Color Quantization
Written: 2026-04-30 12:39
Extracting Color Palettes from Images: A Practical Guide to Color Quantization
I was building a design tool recently that needed to extract dominant colors from user-uploaded images. After diving into color quantization algori…
The Encoding Principles Behind Barcodes: Building an Online Barcode Generator
Recently added a barcode generation feature to a project. Turns out those black-and-white stripes have some interesting encoding rules underneath.