Harry’s Blog
Notes on building software and things I learn from side projects.
- Networking
GB, GiB, Mbps, and MB/s: What's the Difference?
A drive is sold as 1 TB, but your computer shows about 931 GiB. Your internet plan advertises 300 Mbps, yet downloads top out at a few dozen MB per second. These numbers can look inconsistent, but they usually come from using different units.
- Linux
systemd, systemctl, and Linux Service Management
When installing or troubleshooting a service on a Linux host, you will often see the terms systemd, systemctl, and .service. They are related, but they are not the same thing: systemd is the system and service manager, systemctl is the command-line tool used to interact with it, and a service unit describes how systemd manages a service.
- Python
Managing Python Versions and Virtual Environments with pyenv
While setting up a new computer, I needed to install Python. I used to run python -m venv venv for each project. This time I tried managing Python versions and virtual environments with pyenv and pyenv-virtualenv, so I wrote down the setup.
- GitHub
Setting Up Two GitHub Accounts on macOS
I got a MacBook Pro M4 at my new job. Setting up a new machine is already a project, and I also needed to juggle a second GitHub account. Here is how I set up SSH and Git so the machine can pick the right identity.
- macOS
Keyboard Shortcuts for YouTube Music on macOS
I installed YouTube Music as a PWA because I wanted a separate app on macOS. I blurred my playlist in the screenshot, which makes it look a little odd.
- React
How React memo and useCallback Work Together
useCallback lets React reuse a function reference across renders while its dependencies remain the same. This can matter when a child component or another hook compares that reference with its previous value.
- Python
Concurrency vs. Parallelism in Python
A comparison of concurrency and parallelism, with Python examples using threading, multiprocessing, and asyncio.
- TLS
What Is a TLS Certificate? The Chunghwa Telecom Case
Google's 2025 announcement about Chunghwa Telecom certificates raised a question: why does a browser trust one certificate chain and reject another? Central News Agency · Yahoo Taiwan · iThome
- Go
Golang Learning Journey
I've been learning Terraform, which got me interested in Go. These are my notes from the first part of that journey.
- Python
Pydantic for Data Validation and Type Conversion
Unexpected input and type errors can turn a small Python script into a lot of defensive code. Pydantic uses type hints to validate and convert data for you.