Archive of entries posted by gjvc
command dispatch via bash ${array[@]} notation, oh my!
“Programs must be written for people to read, and only incidentally for machines to execute.”— Harold “Hal” Abelson This highfalutin aphorism applies from the most cerebral application programming language of your choice, right down to the humble (or not-so-humble) bash script. Love or hate them, bash scripts are the primary method of launching processes on Linux …
Continue reading ‘command dispatch via bash ${array[@]} notation, oh my!’ »
hp Z240 SFF sound configuration redux
summary This is all the configuration required, on Linux 6.0.0-6-amd64 on an hp Z240 SFF PC. Put these lines in /etc/modprobe.d/snd_hda_intel.conf and reboot. options snd_hda_intel model=alc221-hp-micoptions snd_hda_intel power_save=0options snd_hda_intel power_save_controller=Noptions snd_hda_intel enable_msi=1 # /etc/modprobe.d/snd_hda_intel.conf problems With enable_msi set to 0 (the default), while happily playing sound for a random indeterminate period of time, the sound …
bash / ${APP_HOME}
During the production and deployment of any application larger than “hello world”, careful thought must be given to accommodating a likely set of changes. One of these is deployment location — the application must not have any hard-coded file system locations present, and must determine its location at runtime. Every bash script should start with …
JetBrains EAP apps now use JDK17-based JBR
This is great news. All JetBrains apps on Linux are now usable. Only on the EAP versions for now. The right thing to do is to remove all the tweaks put in with JDK11 and before and use the vanilla settings. However, one still might want to bump the JVM max memory -Xmx parameter up …
Continue reading ‘JetBrains EAP apps now use JDK17-based JBR’ »
making JetBrains IDEs run faster…
synopsis JetBrains’ IDEs suffer from awful interactive performance out of the box. This is unfortunate, and given the highly interactive nature of programming one would think it would be taken more seriously. This article gives instructions on how to change the “boot JDK” and compile the base classes of the JDK to binary form, so …
Debian 10 / hp Z240 SFF / audio setup
This is the minimal-but-complete setup required for Debian 10 onwards. Put the lines below into /etc/modprobe.d/snd_hda_intel.conf and reboot. # snd_hda_intel —————————— options snd_hda_intel beep_mode=0 options snd_hda_intel enable=1,0,0 options snd_hda_intel enable_msi=1 options snd_hda_intel model=alc221-hp-mic options snd_hda_intel power_save=0 options snd_hda_intel power_save_controller=N options snd_hda_intel probe_only=0,0,1 /etc/modprobe.d/snd_hda_intel.conf You should find that the audio behaves sanely from now on. My …
As I Walked Out One Evening
As I walked out one evening, Walking down Bristol Street,The crowds upon the pavement Were fields of harvest wheat. And down by the brimming river I heard a lover singUnder an arch of the railway: ‘Love has no ending. ‘I’ll love you, dear, I’ll love you Till China and Africa meet,And the river jumps over the mountain And the salmon sing …
A Psalm of Life
What The Heart Of The Young Man Said To The Psalmist. Tell me not, in mournful numbers, Life is but an empty dream!For the soul is dead that slumbers, And things are not what they seem. Life is real! Life is earnest! And the grave is not its goal;Dust thou art, to dust returnest, Was not spoken of the …
python 3 / venv
get the code github Get the code from GitHub at abstract There have been thousands of articles written about Python virtual environments. As of 2020-10-07, a quick search on Google for “python virtualenv article” returns “about 1,450,000 results”. In the majority of cases I have seen, they are partially filled with impractical advice. They gush …