POV-ray Dice
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.
A Lazy Way to Collect Runtime Stats About Running Docker Containers
23 July 2020
So I was recently messing with Docker to keep up on my skills, and I
wanted to see how much resources were required by each container over a
given time period. So I came up with the following command to run in the
terminal to collect it.
Quick and Dirty I/O Benchmark for Linux
25 June 2016
A quick and dirty benchmark to see how much I/O bandwidth your machine has
is as follows. I created this because I just learned about pv, and I’m
sure its been done before.