I found a guide how to build (compile) the most recent Python-versions on the Pi here. This guide still works on “Bullseye” and also with Python 3.11. However, I’d recommend to miss out the part with deletion of the symlink at /usr/bin though, but use the “update-alternatives”-tool instead. One just need some patience as the… Continue reading Update Python to 3.11 on Raspbian Bullseye
A reminder to myself: Do not use “empty” in PHP in conjunction with POST requests…
I just stumbled over a silly bug in my code that took quite I while until I at last found the cause. I had several if (isset($var) && (!empty($var)) { …. } to process input that came via HTTP POST requests. This worked quite well, but there was one case where the code block was… Continue reading A reminder to myself: Do not use “empty” in PHP in conjunction with POST requests…
New stuff @ soundcloud
A co-production between me and my old music fellow from “Individualdistanz”. We did some collaboration many years ago, so this work is some sort of musicial “re-union”. The original score is from ID, I re-arranged it, we both took new vocals and after mixing and mastering, here it is. Hope you like it, there’s more… Continue reading New stuff @ soundcloud
Initialize static arrays in Freepascal
…Just in case I stumble again over that nasty “Variable of a managed type does not seem to be initialized” message and forgot how to get rid of it: Create a type definition for the array you want to initialize, then use that defintion in “var”-section, too. By doing so, we can use the “Default”-function… Continue reading Initialize static arrays in Freepascal
Linux batch rename one-liner
Just in case I need it again and don’t remember: for f in <OLDPATTERN>; do mv “$f” “$(echo “$f” | sed ‘s/<OLDPATTERN>/<NEWPATTERN>/’)”; done And to batch-rename strings in all text-type files in a folder: for f in <FILEPATTERN>; do if [[ $(file “$f” | grep “text”) != “” ]]; then sed -i ‘s/<OLDPATTERN>/<NEWPATTERN>/g’ “$f”; fi;… Continue reading Linux batch rename one-liner
New stuff @ soundcloud
I recently thought “Is there a techno mix of the Jeopardy melody?” I didn’t find any… So, here’s something to fill this gap! 😀 The style I chose is called “Kirmestechno” here in Germany, because it used to be played at bumper car in amusement parks. It’s something like Hands Up, but more annoying. 🙂… Continue reading New stuff @ soundcloud
Get “yum” on old CentOS working again
If you have some older CentOS VMs for testing or cross-compiling, you may run into the problem that you can’t install or update the system via “yum” any more: # yum update Loaded plugins: fastestmirror, priorities Determining fastest mirrors YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/repo/arch combination/… Continue reading Get “yum” on old CentOS working again
Using command timeouts inside of bash scripts
Sometimes one needs to terminate a command after a period of time and this particular command does not offer a timeout function itself. This could be a real show-stopper when it’s about running commands synchronously inside of scripts. Somehow I didn’t manage to get “timeout” from the coreutils working correctly inside of a bash script… Continue reading Using command timeouts inside of bash scripts
New remix @ soundcloud
Yet another remix I just finished that had been lying around for far too long. This time it’s Tannengruen’s ode to the love called “Der Kuss” (the kiss). Downloads are enabled, enjoy!
OwnCloud: Fix ‘home storage for user not writable’ error
The popular problem… I recently went into trouble with an OwnCloud installation on one of our servers. A few users had problems accessing any files or even upload new ones with errors like “404 not found” or “Forbidden”… It figured out, that these problems must be connected to the move of the datastore-folder some time… Continue reading OwnCloud: Fix ‘home storage for user not writable’ error