Recent Articles

Generating v4 UUIDs in MySQL

Nov 13, 2020 · 3 min read

MySQL's UUID() function generates v1 UUIDs, which have a time component that make them unevenly distributed over short periods of time. We can define our own function to generate v4 UUIDs, which are random and therefore more evenly distributed.

Faking Sequences in MySQL

Nov 11, 2020 · 4 min read

MySQL doesn't have a concept of custom sequences that other databases such as PostgreSQL do, but they can be faked with a table and some clever queries.

Common Markdown Mistakes

Nov 9, 2020 · 4 min read

Markdown provides simple syntax for writing structure documents, but most written markdown would not pass a linter check. Here's a list of 11 common syntax mistakes and how to fix them.

Code Review Comment Prefixes

Nov 6, 2020 · 4 min read

Regardless of what style of code reviews you use, code reviews in general are an important tool to share expertise and improve quality, but sometimes the intention of comments can be lost.

Getting Started With minikube

Nov 1, 2020 · 4 min read

minikube is a tool for running a Kubernetes clusters for local development, and the setup of it is super simple.

Linting Dockerfiles with Hadolint

Aug 10, 2020 · 3 min read

Linters don't just enforce style guidelines, they also catch potential issues. hadolint (Haskell Dockerfile Linter) is the most popular linter for Dockerfiles, and it's incredibly easy to use.

What is a Docker Digest?

Aug 9, 2020 · 6 min read

Docker tags are mutable - they can be re-published over and over - so the most specific way an image can be referenced is by its digest.

Keep Docker Base Images Updated with Renovate

Jul 30, 2020 · 6 min read

Just like with libraries used in code, keeping your Docker base images up to date is a good security practice.

Keep npm Packages Updated with Renovate

Jul 19, 2020 · 5 min read

It's important to keep your npm packages updated for security reasons, and it's really easy to do automatically with Renovate.

Testing Docker Images with Container Structure Test

Jul 18, 2020 · 4 min read

Just because a Docker image builds successfully doesn't mean it will perform as expected. Google's container Structure Test tool helps you check images to make sure they're working as intended.

Restarting Deployments in Kubernetes Before v1.15

Jul 10, 2020 · 2 min read

Restarting resources such as deployments in Kubernetes is a fairly common task, but before v1.15 it wasn't very straight-forward.

Restarting Resources in Kubernetes v1.15+

Jul 9, 2020 · 1 min read

Restarting resources such as deployments in Kubernetes is a fairly common task, and starting with Kubernetes v1.15 there's an easy command for it.