If you have some ice cream, I will give it to you. If you have no ice cream, I will take it away from you. It is an ice cream koan. Ruby Metakoans In software, koans are a form of kata, or practice. There are a number of these; one of the first I’d encountered …
Category Archive: Computers
Sep 30
From the vaults…. on Parentheses
To paren, or not to paren: that is the question: Whether ’tis nobler in the mind to suffer The bugs and errors of maintenance programs, Or to take arms against a host of typos, And by debugging end them? To hack: to slash; No more; and by a slash to say we end The heart-ache …
Sep 21
F5 LTM Monitoring and Wildfly
TL;DR The F5 BigPipe LTM uses HTTP/0.9 to send its HTTP monitoring requests by default. Wildfly 9.0 does not like this; moving to a monitor request of HTTP/1.1 fixed the problem. Caution: LTM 10.2.x and 11.x do not append a CR/LF to the end unless you are using Basic Authentication. This is contrary to previous …
Sep 18
OBS for Videos
I recently discovered a really interesting tool for producing videos of screen captures, optionally with webcam inserts. It’s called Open Broadcaster Software and it works on Linux, Windows, and there is a beta version for Apple OSX. It seems that it was originally intended for streaming to websites, but it has a lot more features …
Sep 07
Bulk Adding Hosts to a Pi Swarm
I’ve refreshed my stack and am rebuilding the cluster. I’m using Hypriot for the linux distribution, but I’m a smart sysadmin (read lazy) and don’t want to manually add them each time. Also, I want to make a script so that I can quickly rebuild. This is inspired by Let Docker Swarm all over your …
Sep 07
Getting the Docker Swarm Discovery Token
At the moment, docker swarm doesn’t have a self-discovery method. If you’ve mislaid or forgotten the discovery token you can’t add new elements. It just so happens that if you do a docker inspect $SWARM_AGENT_MASTER, the token will show up in the command line arguments.
Sep 07
Viewing Raspberry Pi Config Variables and More
Sometimes it’s helpful to see if a particular parameter is set or not on the raspberry pi. This is where vcgencmd. However, vcgencmd is useful for many other things.
Sep 07
Troubleshooting MicroSD Card Problems
The Computer employs Troubleshooters, whose job is to go out, find trouble, and shoot it. — Paranoia While re-imaging the MicroSD cards for my cluster, I ran into a few issues — nothing insurmountable, but I figured that I would share them to help others….. MicroSD cards generally come with an adapter to allow them …
Apr 19
Docker Containers: Smaller is not always better
Generally smaller Docker containers are preferred to larger ones. However, a smaller container is not always as performant as a larger one. By using a (slightly) larger container, performance improved over 30x. TL;DR The grep included in busybox is painfully slow. When doing using grep to process lots of data, add a (real) grep to …
Apr 12
Docker Commandline Arguments are Context Sensitive
TL;DR: Position of the commandline arguments matter. `-v` before `run` means something totally different than `-v` *after* `run`. More details below the link.