Engineering Notes
Most people assume n*log(n), but pivot selection matters. A look at median-of-three partitioning and how to avoid the deadly worst-case scenario in production systems.
I've been analyzing the randomness of encrypted packets versus compressed data. It's fascinating how high-entropy noise resembles perfectly encrypted traffic. Here is a Python script to visualize the histogram of your /dev/urandom.
Humans are terrible at probability. Why switching doors increases your win rate to 2/3, explained with a simple simulation code.
Revisiting the legendary Quake III Arena code. How bit-level manipulation of floating-point numbers works, and why we don't really need it anymore in modern CPUs.
Deconstructing a square wave into infinite sine waves. A visual guide to FFT (Fast Fourier Transform) and its applications in signal processing.