While driving the other day through a mountain pass the radio kept alternating between two stations which broadcast on the same frequency. It would play one station, loud and clear and after a few seconds switch to the other station. To me that's surprising, as I would have expected to listen to a mash of … Continue reading ICA Demo
Author: George Georgovassilis
Disabling file input field cancels upload
An interesting little "feature" I stumbled across: when the file input field of an HTML form is disabled right before a submission, that field will be empty. Some pseudo code which illustrates the setup: ... <script> function submitForm(){ var form = document.getElementById("form"); var file = document.getElementById("file"); file.disabled = true; form.submit(); } </script> <body> <form id="form"> … Continue reading Disabling file input field cancels upload
HOI4 right-click border selection fix
On some of my (many) Ubuntu desktop installations, Hearts of Iron 4 has an annoying bug, in that right-clicking for partial border selection selects the entire border and borders can't be edited. It seems to be caused by a weird combination of Gnome session, Wayland/Xorg and using a touchpad. This command fixes the issue for … Continue reading HOI4 right-click border selection fix
Ubuntu video thumbnails in file manager
Gnome's file manager Nautilus doesn't display video thumbnails under Ubuntu 24.04. Thankfully this solution still works: https://askubuntu.com/questions/1034595/thumbnails-not-showing-in-video-in-ubuntu-18-04 sudo apt install ffmpegthumbnailer sudo apt install gstreamer1.0-libav rm -r ~/.cache/thumbnails/fail Reboot Done!
Trim on LUKS encrypted LVM root volumes
I noticed that fstrim wasn't working on my new Ubuntu 24.04 desktop installation, failing with "fstrim: /: the discard operation is not supported". In that setup, Ubuntu is installed into an LUKS encrypted LVM volume, so the ext4 file system, LVM and LUKS need to play nicely together for flash discard to work. That's how … Continue reading Trim on LUKS encrypted LVM root volumes

