Did i mention that i like Blender?
Two Paintings19. Januar 2023 in Graphics, Multimedia, Other.
Two Worlds, one Reality19. Januar 2023 in Graphics, Multimedia, Other, Technology.
16. Dezember 2022 in Society, Technology.
Nach einer Weile hört man immer mal wieder gewisse Sprüche über das Funktionieren irgendwelcher Produkte, Technologien, Techniken, Lösungswege, Praktiken oder Konfigurationen X:
Lösungen für drängende Probleme müssen gefunden werden, und es gibt Situationen, da müssen Nägel mit Köpfen gemacht werden. Zuweilen muss ich aber auch mal auf die Bremse treten, so etwa, wenn ich erkenne, dass ein Lösungsvorschlag X (vielleicht) momentan eine Lösung darstellt, auf Dauer aber zum Problem werden wird.
Die Geisteshaltung “was funktioniert, ist gut” ist mitreißend, und die Sprüche sind eingängig, also habe ich mir für den Fall, dass ich dagegen halten muss, eine ähnlich eingängige Gegenbemerkung zurechtgelegt:
“X ist total super, solange es funktioniert.”
Es gibt auch eine universelle Form:
“Alles ist total super, solange es funktioniert.”
27. August 2022 in Programming.
Should you – as i did – wonder why WordPress renders a bucket of inline CSS into the HTML output (such as --wp--preset--font-size--normal in <html> or --wp--preset--color--white in <body>): This is done to accomodate frontend editing with Gutenberg. If you – as i do – are not using Gutenberg frontend editing, then the following PHP code can be included in the functions.php of a custom theme or the php file of a custom plugin. Sorry, Gutenberg folks – no means no. 🙂
2. Februar 2024 in Programming.
This is an update to my previous article on determining the common prefixes of a set of strings (passed a sequence of lines) and printing them in common prefix notation (CPN). The problem of reconstructing strings from the original input that are complete prefixes of other input strings is addressed.
The code is now in a Git repository:
Project information not readable.3. November 2024 in Administration, GNU/Linux.
Update Nov 3 2024:
For an application given by “application name” or “executable name”, output the corresponding .desktop file, if any:
#!/bin/sh
IFS=":"
xdg_data_dirs=${XDG_DATA_DIRS:-/usr/local/share:/usr/share}
search=$1
for i in $xdg_data_dirs ; do
a="$i/applications"
[ -d $a ] && for d in "$a"/*.desktop ; do
grep -q -e "^Name=.*$search" -e "^Exec=.*$search" "$d" && {
echo "# $d:"
grep -Ev '^(Comment|GenericName|Keywords|Name\[)' "$d"
}
done
done
To try this code out, save it to /usr/local/bin/xdg-desktop-search, make it executable and test it, for example, as follows:
xdg-desktop-search gnome-terminal