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

Screen overlays in Linux

I heavily customise my Linux desktop setups, which includes binding scripts to hotkeys. Occasionally a visual feedback is useful (eg. when changing the CPU frequency). I'm aware of the following ways to display some sort of overlays which I tried with Ubuntu 24.04: Notifications Notify-send notifications display as simple rectangles. notify-send "Volume" "80%" Although there … Continue reading Screen overlays in Linux