|
A LETTER FROM
Shri
How the heck do traffic lights work, and a small self-tracking
viz
The fifth installment in How The Heck? is out, and it’s
all about
traffic lights!
A 2D, canvas-based rendering of a 3x3 traffic grid
simulation.
Although the series is meant to be fairly cohesive as a whole,
I’ve noticed that each of these pieces demands something
a little unique: the
Shazam
piece required interactive audio components, the one on
solar panels
required me to dust off some introductory physics, etc.
What I really enjoyed about the new piece is that I got to
dive a bit deeper into history. There’s a certain amount
of humility that comes from learning about the origins of
things, and the countless failed experiments that led to
concepts which we accept today, almost self-evidently, like
that “red” means “stop”. I hope you
enjoy reading it as much as I enjoyed learning about it.
Alongside the traffic piece, I’ve been wanting to get
back into tracking and visualizing some data about myself. At
the same time, I’ve been wanting to write some more lower
level code “by hand”. It felt right to combine
these goals: write some code by hand, take my time, make a
chart about my life.
I decided to focus on a health goal. I set out a target for
myself at the beginning of May to finish the month with an
average of 10,000 steps per day. Here’s the month
visualized:
A scatterplot mapping Shri’s daily step count with the
temperature in May 2026.
I may have gone a bit overboard with the amount of variables
I’m trying to display with each dot in the scatterplot:
x-position for steps, y-position and color for temperature,
size for humidity, outline for precipitation, text for date.
But it works well for an audience of one! I can see the
stories of my month in this chart:
-
I tried to take advantage of the cooler and less humid days
as much as possible.
-
My Sunday output is low across the board because I play
pickup hockey every Sunday morning and don’t walk as
much the rest of the day.
-
The highest step count day, the 21st, was when we got some
much needed rain in DC after a few brutally hot days. I
realized my monthly average dipped, and the weather was
beautiful, so I took a couple of extended walks.
Maybe the collective theme of my newsletter update this week
can be summed as: stories are everywhere.
— Shri
|