22 February 2022
I saw a captcha with dice thread on hacker news. The general idea
of the captcha was to find the picture of dice with the right sum on it.
I was wondering how hard it would be to generate several thousand of
these dice images, and how long it would take using POV-ray.
POV-ray is the Persistence of Vision Ray Tracer. It takes a text based
description of the scene built using various primitives like spheres and
boxes to produce a ray traced image. The POV-ray language is Turing
complete and allows some really advanced programming features, such as
macros, loops and conditionals, which I take full advantage of for this
scene. The dice are even transparent.
Finding Jekyll Posts to Update With Cover Images
10 January 2021
I recently updated my site to make use of cover images on the post
listing. I wanted to make sure that I got all of the posts that need to
be updated. I used grep to find posts which had an image in them, but no
cover attribute in their front-matter.
Inspecting All Running Docker Containers
29 October 2020
I just discovered how to run inspect on all running docker containers.
Incrementing a Semantic Version String in Bash
30 April 2019
I wrote a bash function that takes a semantic version string and bumps
the version number. It supports all 3 layers. I needed it for the deploy
script I was working on. It’s fairly trivial, I just thought I would
Calculating the Size of Your Video Library
07 December 2016
This command will calculate the size of your movie and video library in
days. You can modify the awk command as you see fit to calculate the time