Wednesday, May 11, 2022

flatpak: cannot add flathub repo on kubuntu 20.04 LTS: TLS support is not available

error: Can't load uri https://flathub.org/repo/flathub.flatpakrepo: TLS support is not available
 

Fix: need to set env. var:

 GIO_MODULE_DIR=/usr/lib/x86_64-linux-gnu/gio/modules/ flatpak -v remote-add --if-not-exists flathub
https://flathub.org/repo/flathub.flatpakrepo

Sunday, May 8, 2022

XMP metadata manipulation

Add a new tag into existing subject tags in the .xmp sidecar:

exiv2 -M 'set Xmp.digiKam.TagsList my-new-tag'  mo xxx.JPG.xmp

exiv2 -M 'set Xmp.dc.subject my-new-tag'  mo xxx.JPG.xmp

 

Print specific tag:

exiv2 -g TagsList pr xxx.JPG.xmp
 

Sunday, April 17, 2022

dlang vs rust comparison (based on alimg)

Comparing dmd, ldc, rust based on the same algorithm implementation:

https://github.com/exhu/alimg/tree/master/dmd

https://github.com/exhu/alimg/tree/master/bufdither-rust


rust version is the fastest (2.5 s) vs dmd's 5 secs, ldc's 2.9 s.

rust version also consumes less memory:

Maximum resident set size (kbytes): 3716

Elapsed (wall clock) time (h:mm:ss or m:ss): 0:02.50
 

DMD: 

Maximum resident set size (kbytes): 5380

Elapsed (wall clock) time (h:mm:ss or m:ss): 0:05.28

LDC: 

Elapsed (wall clock) time (h:mm:ss or m:ss): 0:02.91

Maximum resident set size (kbytes): 8044

 

The D programming language version turned out to be easy and quick to implement as it was very close to Java/C++.

The Rust version took very long time to implement, as it required considerably more time to learn Rust's basics.

Monday, April 11, 2022

Ventoy: multiple ISO images from usb to boot

Install Ventroy on a usb, normally copy ISO files to the drive, boot.

https://www.ventoy.net/en/index.html

Sunday, February 20, 2022

ubuntu snap apps lacking proper fonts

 https://askubuntu.com/questions/1224125/font-characters-displayed-as-squares-in-ubuntu-18-04

rm -rf ~/.cache/fontconfig 
sudo fc-cache -r -v 
 
Delete every found fontconfig folder from the snap cache, e.g. 
find ~/snap/chromium/ -name 'fontconfig'
rm -rf ~/snap/chromium/common/.cache/fontconfig/  

 

Monday, November 15, 2021

TP-Link Archer T9UH v1 [Realtek RTL8814AU] driver

 TP-Link Archer T9UH v1 [Realtek RTL8814AU] driver is at https://github.com/aircrack-ng/rtl8814au.git

Monday, November 1, 2021

Thinkbook 13s ITL G2 headphones hissing sound, noise fix

Kubuntu 20.04 LTS

Problem: wired headphones reproduce constant hissing sound, noise changes with the cursor movement etc.

Solution:

 sudo hda-verb /dev/snd/hwC0D0 0x1d SET_PIN_WIDGET_CONTROL 0x0

 

Sources:

https://www.reddit.com/r/thinkpad/comments/8j8208/audio_crackling_through_both_headphone_jack_and/

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1805079/comments/20