The other day I came across this fantastic video on the veritassium youtube channel. It describes a mathematical treasure called the logistic map – a chaotic sequence that emerges from a simple formula. Visualizing it reveals detailed fractal images. In this post I’ll share some visualizations I made using p5.js which illustrate it. Disclaimer: I’m not a mathematician by trade, so if you are, please don’t hesitate to email me with corrections or suggestions.
While working on this year’s advent of code, I was reminded of gray code, something I hadn’t thought about for a few years. Gray code is a cool invention with some interesting uses. From Wikipedia: The reflected binary code (RBC), also known just as reflected binary (RB) or Gray code after Frank Gray, is an ordering of the binary numeral system such that two successive values differ in only one bit (binary digit).
The other day I was pairing with a colleague on a confusing bug with an nginx deployment. One of our proxy_pass directives was configured to point to the hostname of an AWS Application Load Balancer (ALB). After behaving normally in production for a few hours the nginx server started throwing 502s for all requests to a certain location block. It is documented that nginx will not re-resolve hostnames for proxy_pass entries that are set to static string values, so the first thing we confirmed was that the proxy_pass directive in question was configured with a variable value.