The raspberry pi applications says MagicMirror is a nodejs application that uses the electron rendering engine. But I looked it up, and Electron is just a javascript rendering engine based on Chrome. MagicMirror just generates javascript, whcich renders a DomDocument…
(Continue Reading →)
This is a Fantastic Failure article. Did you know that the EXPOSE port declaration in Dockerfile is practically useless. Not declaring it, you can still forward a host port to any port number to the container. Not declaring it, doesn’t…
(Continue Reading →)
I put a python program in cron and it starts behaving different. #!/usr/bin/env python3 import sys import os import stat from os import isatty #https://python-forum.io/thread-10606.html print(“stdin”) print(“isatty”, isatty(sys.stdin.fileno()) ) mode = os.fstat(0).st_mode print(“ISFIFO”, stat.S_ISFIFO(mode) ) print(“ISREG”, stat.S_ISREG(mode) ) print(“ISLNK”, stat.S_ISLNK(mode)…
(Continue Reading →)
TLDR: I can’t think of a practical reason to do this, until the day I can instruct docker swarm, to never put these 2 containers on the same physical host. Even then, I hear volumes over NFS has horrid performance.…
(Continue Reading →)
MySQL and MariaDb has a cool feature called master-slave replication by log shipping. This is where you can always keep a near identical copy of a live database, on another. The master ships all changes to the slave server. And…
(Continue Reading →)
This should’ve been the first of the series “Fantastic Failures”, b/c it feels this way. But the only failure is me unable to Google and filter for the Hunt-McIlroy algorithm, before I got frustrated and tried to free-lance write the…
(Continue Reading →)