Category Archives: Geek Stuff

Getting Your Cheap Chinese USB Foot Pedal Doing Useful Things on Linux

UPDATE 2024-03-14: Just use xremap. It can remap or keybind things at the evdev level with only/except device filtering and, if you’re on X11 or supported Wayland compositors, it also supports applying only/except application filtering for your remaps/keybinds. UPDATE 2021-04-18: … Continue reading

Posted in Geek Stuff | 5 Comments

Home-made tamper-evident security seals for kids and adults alike

Suppose you need to keep siblings, roommates, children, or even friends with wandering hands out of something, but you can’t use a lock. Maybe you’re worried they’ll find the key, maybe you need something that has no metallic parts, or … Continue reading

Posted in Geek Stuff | 4 Comments

How To Extend A JavaScript API Based On Promises/A+

I was writing a little unsigned “dump my tabs”  WebExtension for my Firefox Developer Edition when I realized that, outside the jQuery world, I’d only ever used old-style callbacks before. “No biggie”, I thought. It shouldn’t be too hard to … Continue reading

Posted in Geek Stuff | Leave a comment

A couple of simple proofs, made easier to grasp

I’ve always felt a certain undercurrent of awe at how elegant and beautiful the idea of a mathematical proof is. Don’t get me wrong, I’m not a math geek, but I can’t help but admire the beauty of the proving … Continue reading

Posted in Geek Stuff | Leave a comment

Things You Might Not Know About robots.txt

While bringing one of my old sites up to spec, I realized that I’d never actually looked into robots.txt beyond copy-pasting ready-made directives. So, without further ado, here’s a list of everything I could find about it which isn’t obvious … Continue reading

Posted in Web Wandering & Opinion | Leave a comment

Checking if daemons have been restarted

TL;DR: Use this script. I’ve been working on an ansible script to set up web hosting (because cheap VPSes are cheaper than cheap shared hosting for the features I want) and, since I don’t like having to put in effort … Continue reading

Posted in Geek Stuff | Leave a comment

Watching For Changes in Window Focus Under X11

TL;DR: Here’s some example code. (backup copy) UPDATE: It now also has the code to watch for the active window’s title changing without the window having to lose and regain focus. I needed to explain to someone the proper way … Continue reading

Posted in Geek Stuff | Leave a comment