Posts
Thomas Stringer
Cancel

Change a Function's Output Based on Input Parameter Value in a Python Unit Test

When writing unit tests you always want to make sure you’re testing the smallest unit possible. Oftentimes the code that we want to test is reaching out beyond the software itself: The two common o...

Find the systemd Unit that Owns a Process

Recently I had to do a little troubleshooting and I was able to pinpoint a particular process ID from ps that I was interested in. In particular, I wanted to know which systemd unit was responsible...

Sorting Algorithm Stability - What it is and When it Matters

There are many sorting algorithms out there that are widely accepted: Insertion sort, quick sort, heap sort, merge sort, bucket sort… and so on and so forth. There are a lot of qualities of each so...

Be Good at Referencing, Not Remembering

My memory is awful. In all aspects of life. But as a software engineer, I don’t rely on my memory. In fact, it’s the opposite. I rely on my lack of memory. We live in a world where there is too muc...

Go's append Behavior and Potentially Unintended Side Effects

When working with Go, a very common operation is to add an element (or multiple elements) to a slice with append. But if you don’t know the true nature of append, it could surprise you! Appending ...

Find Which apiVersion to Use for Kubernetes Resources

When creating Kubernetes resource manifests, one of the first things that we need to specify for the resource is the apiVersion. For many of the common resources, you might be able to “guess” accur...

Azure Consumption Summary from the Command Line

I manage my own personal Azure subscription where I run workloads all the time. I like to keep a close eye on my consumption ($$$) to make sure I’m not overspending, and to see where the money is g...

Run Kubernetes Pods on Specific VM Types in AKS

When dealing with software that you run in Kubernetes, it is a common requirement to have your applications running on certain types of underlying infrastructure (virtual machines). Perhaps your so...

Make HTTP Requests to the Azure REST API from the Command Line

I live in the terminal, and I will do everything I can to avoid the GUI and my computer mouse. This applies to everything, including my interactions with Azure. For the msot part, the Azure CLI is...

Logging to Azure from an AKS Cluster

Logging is one of the most important aspects of working with production software. The complexity of Kubernetes doesn’t make that an easier task. There are really great open source cloud-agnostic s...