Tracking Brush Head Usage in a Memory-Constrained Device. Using Python to simulate a real embedded firmware design problem. Introduction Modern electric toothbrushes can remind users when it’s time to replace the brush head. While this seems like a simple feature, it raises an interesting question: How does the toothbrush know whether you’ve installed a brand-new […]
Category: Coding
Building a Dynamic System Font Catalog in Python
This post relates to Windows and Microsoft 365 fonts. If you’ve ever tried programmatically listing the fonts installed on a Windows machine, you’ve probably run into a wall. Standard libraries like Matplotlib’s font manager only scan system-wide directories (like C:\Windows\Fonts), and miss per-user and modern Microsoft 365 cloud-synced fonts registered under your user profile. To […]
Creating a Living City Skyline in Excel with VBA Animation
When people think of Excel, they typically think of spreadsheets, budgets, dashboards, and data analysis. But Excel’s grid can also be used as a surprisingly effective canvas for creating pixel art and simple animations. As a fun experiment, I built a nighttime city skyline entirely from Excel cells. The buildings are made of colored cells, […]
Excel…and Romance?
Is it possible to use Excel for romantic or sentimental purposes? Absolutely! While Excel is commonly associated with routine tasks in accounting, finance, and data analysis, its capabilities extend far beyond these uses. In this post, I will showcase another unusual application of Excel that taps into its potential for more heartfelt endeavors. I experimented […]
Creating A Game Timeline Chart in Excel
BONUS VERSION Added on July 2, 2024 on a Euro 2024 game at end of the post. Recently, while following the thrilling Premier League soccer (European football) matches, I came across an eye-catching visual representation of the day’s game scores and timelines on BBC Sports. The post appeared as follows (on my mobile app): It’s […]
Windows 11 Boot MicroAnimation and Wise Monkey using just text
Recently, an ex-colleague of mine brought to our attention the Microsoft font possibly used in creating the spinning dots in Windows 11 boot screen. The font is called “Segoe Boot Semilight” and is a true type font. So, I had to verify that this is true, and I wanted to try to create the animation […]
Calculating Euclidean Distance in Python
Euclidean distance is the length of the line segment between two points in Euclidean space. It can be calculated from the Cartesian coordinates of the points using the Pythagorean theorem. It is a simple formula enough to be calculated by hand but powerful enough to be used in Machine Learning and Artificial Intelligence applications for […]
UPDATED: Find out more about your birthday
Sometime ago, I shared my code on how to determined the day of the week of someone’s birthday based on the DOB. You can check the original post here: https://flyingsalmon.net/which-day-were-you-born/Today, however, I am extending it a little further and also showing additional information about the birthday. For example:The key news/historical events of that day!What generation […]
Word Connect Game
Recently, the game on New York Times has been getting a lot of attention and generating much excitement by the readers. While I don’t subscribe to the newspaper, my friends shared the game screens with me which prompted me to ponder if I could create my version of this in Python. So, after a few […]
Population, Procreation Simulation (Python)
In this post, I share my design and code for simulating some propagating organisms (you can think of them as humans, other creatures, cells, objects, whatever you like) with certain rules. And although I have a couple of other variations of this made in C/C++ in the past, I wanted to do it in Python […]