## [DRAFT] "Direction" of time?

Something to think about: The general perception is that time flows or moves "from" the past and "to" the future. It's not clear what this "motion" actually is, though. At least, I think, we can all agree that "the place memories represent" is the past (and the "from", if anything is,) and that "the place plans represent" is the future (and the "to", if anything is). Some hold that "causality" …

## [DRAFT] "PROTON_USE_WINED3D" explained

You might have seen many people online talking about how entering the following infamous Steam launch option boosted their game's framerate: PROTON_USE_WINED3D=1  %command% I'll answer the following questions What does this environment variable do? Do I need to apply it to my system? Why is it needed at all? What does PROTON_USE_WINED3D=1 do? It signals to Proton to use Wine's Direct3D driver instead of its own. (If you're not …

## Old-school new-school: Optical Tape Archives

I had come up with this "cursed technique" a while back at work, when I needed to transfer a ~1GB file onto a quite old Linux machine that, for "security reasons" had USB mass storage access as well as the UDF kernel drivers disabled (and I was unable to access it over the network)…

## Switching to Picom (Compton) on the MATE desktop

You may have read some convoluted (and outdated—Compton was abandoned in 2017) tutorials on the matter like MakeTechEasier's, or perused the excellent Arch Wiki article's page on it to some despair, but if you are just a layperson who installed the MATE desktop for e.g. Ubuntu 20.04 (Fossa) and wants a slightly faster (i.e. GPU-accelerated) environment, there is a workaround that doesn't take too long to set up: …

alias mcrcon='env MCRCON_PASS="${MCRCON_PASS=$(sed -n -e '\''s/^rcon\.password=$$.\+$$/\1/p'\'' < server.properties)}" mcrcon'

## Python: Using XOFs for general-purpose Random

As always, one's own stack overflow answers make the best blog posts. In this case, we craft a version of random.Random with a few modifications: Pulls its data from an arbitrary stream (in our case, a DRBG such as a hash function or deterministic CSPRNG) Wastes noticeably fewer bits when generating random integers Has fixed code for .shuffle, on the offchance CPython ever changes theirs, and to make it …

## Javascript: Parsing query parameters

There are at least 2×5×7×3×3×1=630 different things you might unambiguously mean by "parsing" a query string in Javascript: …

## Converting SVG to .ico with Python

Just a super rudimentary script that I made which hooks CairoSVG up to Pillow because apparently Firefox doesn't support SVG-formatted browserAction images

## Python: "with epoll"

If you're using Python 3.4+, select.epoll already supports context — you're clear to just write with epoll() as E: … and everything will be OK. If not, here's how to shim it: