To those amongst you who are active on Twitter (now known as X and colloquially to some as Xitter), even if you’re simply browsing and not actively posting/tweeting/xeeting, and who use browser bookmarks: today’s post ought to be right up your alley! First, some background. Note: I don’t use smartphone social media apps, so we’re […]
Category: Progging
Animated GIF showing Windows Explorer and a terminal window and the command being used and a video filename being updated with its duration. First, here’s a one-liner you can employ on Windows to add duration information to video filenames. It uses Powershell and assumes you’ve installed the command line version of MediaInfo for Windows. The […]
Date (as YYYYMMDD), time, and the preceding command’s run time. This is an animated GIF so that you can see how the time in the prompt updates when a command is run. Often, when I’ve been noodling around, or installing or updating software, or trying this or that at the command line, I select all […]
I wrote a userscript to get rid of YouTube’s notifications tally and irritating fly-out on-hover overlays and gray-out upcoming vids and shorts: YouTube-Subscriptions-Better-er.user.js […].
There may come a time when you need to know if a container being filled with liquid that flows at a slow, variable rate is nearly full so that you can empty the contents or do something else with the stuff inside. Such a need recently arose here and I put something together using an Arduino (Cloneduino) Nano, a couple of non-contact capacitive water level sensors, a WS2812 LED breakout board, and a piezo buzzer.
If there’s a one-step means of notifying Nightingale or Songbird that all of your media files have moved to a different location via the music players’ UIs, I didn’t see it, so I solved my problem with a short (~150-line) Python script [Python 3.6 (Windows, 64-bit)] that, with input via a few prompts, connects to […]
Today, I set up Flaskr (GitHub repository), one of the Flask demo apps, so that I could poke around Flask a bit. The only real speed bump was a ModuleNotFoundError for _sqlite3: Note that, to make the above lines from my flaskr error log more readable, I’ve removed the timestamps, process IDs, and requesting IP […]
So you’ve installed a later and greater version of Python (Python 3.6.1 in my case) in /usr/local/bin and would like it to be used instead of your server’s default (and presumably older) python version when you type python at the shell prompt after logging in? The solution is widely documented. Add the following to the […]
I set out to get WSGI going, with Python 3.x, on my CentOS 7.3 VPS. Initially, I began by trying to follow the path laid out in a 2011 blog post (Building mod_wsgi with EasyApache for WHM/cPanel) but with current equivalents of Python and mod_wsgi. That’s a very lucidly written article and it’s apparent from […]