Setting Konsole title to $USER@$HOSTNAME

First: Settings -> Configure Konsole -> General -> Show window title on the titlebar (checked)

Then: System -> Configure Konsole -> Profiles -> [Default] -> Edit… -> Tabs:

  • Tab title format: %w
  • Remote table title format: %w

Then you need this config and these two shell functions in your .bashrc:

# 2023-12-29 jj5 - if not running interactively, don't do anything
case $- in
    *i*) ;;
      *) return;;

# 2023-12-29 jj5 - set the Konsole window title
echo -ne "\033]2;$USER@$HOSTNAME\007" >&2

# 2023-12-29 jj5 - intercept ssh and sudo commands to reset window title on exit:
ssh() {
    /usr/bin/ssh "$@"
    echo -ne "\033]2;$USER@$HOSTNAME\007" >&2
sudo() {
    /usr/bin/sudo "$@"
    echo -ne "\033]2;$USER@$HOSTNAME\007" >&2

Transferring large files with Salt file.managed

Well, this took me a few hours to figure out.

If you’re going to be transferring large files using file.managed in your salt state, make sure you specify show_changes: False, otherwise salt will start trying to boil the ocean and calculate the unified diff of your enormous files.

The clue that this is the problem you're having is if one of your CPU cores pegs at 100% and your state doesn't apply in a reasonable amount of time (minutes, I guess).

Also you probably want to make sure you're not trying to use your large file as any sort of template. By default file.managed will assume no template, which is what you want for large files that aren't templates. I've never used large files which are templates, but I suspect if you tried that you'd have a bad time.

Chromium bug fixed!

For the past month or so I’ve had this intermittent problem where chromium would start crashing and would keep crashing every time I tried to start it until I rebooted.

Today I ran chromium under strace and straightaway discovered that it was trying to use shared memory in /dev/shm and it couldn’t because there was no space left.

There was no space left because I had PHP’s xdebug writing dump files there. I’ve just disabled xdebug while I’m not using it and after clearing out its old files I can now run chromium again.

I added a note about this to my debugging notes for in case this or something like it happens to me again.

In The Lab With Jay Jay – December 24, 2023 – Demo Of The New Studio Cameras – Now In 4K!

This post is part of my video blog: In The Lab With Jay Jay.

Silly Job Title: Charge Charmer

Old Book: Vest Pocket Guide To Electrical Testing And Troubleshooting by John E. Traister published 1987 with 130 pages.

Support this channel on Patreon:

Today is just a quick video to demo my new camera setup made possible by my new studio workstation ‘verve‘.

In the video I demo the new mat/bench camera which supports various zoom levels. Then I demo the iPod touch camera for showing some of the bench equipment. Then I demo the HDMI system which supports two microscopes, the MSO5074 oscilloscope, and the AV switch which usually would show the Xbox among other things (but I couldn’t get the Xbox to work in this video, drats). Finally I demo the thermal cam.

Sorry for the dodgy audio in this video. I will try to make sure that doesn’t happen in future videos.

Here is a table of products I use which may appear in my video with affiliate links to vendors if you would like to buy. The link given here won’t necessarily have the best price so please do shop around to see if you can find a better deal. If you have thoughts or questions please feel free to let me know. Let’s go shopping!

Equipment Affiliate Link Notes

Rigol MSO5074 Mixed Signal Oscilloscope

OWON XDM1041 Bench Multimeter
Owon XDM1041/XDM1241 Digital Multimeter 55000 Counts High Accuracy Desktop Multimeters AC/DC Tester True RMS USB Multimeter notes

ANENG AN-999S Bench Multimeter
ANENG AN-999S Desktop Voice Multimeter Digital 19999 Counts Professional Bluetooth Tester True RMS AC/DC Voltmeter Current Tools notes

DigiTech QM1323 Multimeter
DigiTech QM1323 Multimeter – Grey/Yellow notes

DT830B Digital Multimeter
DT830B AC/DC LCD Digital Multimeter 750/1000V Voltmeter Ammeter Ohm Tester High Safety Handheld Meter Digital Multimeter notes

Brother P-Touch D210 Label Maker
Brother P-Touch D210 Handheld Label Maker TZe 3.5mm 6mm 9mm 12mm with Free Tape notes

‎OUSFANAM Capactior Discharge Pen
Portable Capacitor Discharge Pen Fast Discharging Tool Digital Sparkpen Discharger 1000V For Industrial Sparkpen Battery Capacitor Fast Discharge 1000V Repair Tool Discharger For Safety notes

ALKOY Capactior Discharge Pen
1000V Portable Capacitor Discharge Pen High Voltage Quick Discharging Tool Constant Discharge Pen Electronic Repairs Discharge Pen ALKOY notes

Kaisi Repair Mat
Kaisi Heat Insulation Silicone Repair Mat with Scale Ruler and Screw Position for Soldering Iron, Phone and Computer Repair Size:17.7 x 11.8 Inches notes

MMOBIEL Helping Hands
LED Light Helping Hand Magnifier Station for Soldering, Assembly, Repair,Modeling, Hobbies and Crafts – 2.5X /4X LED Light – Hands-Free Magnifying Glass Stand – Incl. Clamp and Alligator Clips notes

QWORK Helping Hands
QWORK Glass Stand notes

Legion Tools Mini Screwdriver Set
Precision Mini Screwdriver Set 11pc Jeweller Laptop Phone Watch Repair Tool notes

Sudake SDK07 test clips
10X Universal Chip clamp micro IC clamp SOP SOIC TSOP MSOP SSOP SMD IC Test Clip pin Socket Adpter Programmer for logic analyzer notes

Sudake SDK08 test clips
10pcs x Universal Chip IC clamp SOP SOIC TSOP MSOP SSOP SMD IC Test Clip Socket Adpter Programmer for logic analyzer notes

Victorinox Swiss Champ Red Swiss Army Knife

Scotch Titanium Scissors
3M Scotch Precision Ultra Edge Titanium 8″ Scissors Stay Sharp Smooth Cutting notes