Tuesday, February 9, 2021

Thoughts on photo/video files organizing

Directory structure pattern: "YYYY/YYYY-MM-DD-tag1-tag2/xxxxx.jpg"

Should the files be renamed on copying from the camera? If necessary rename only once -- before working with the files, importing them into darktable/digikam.

Do not use stars, flags, color labels, use text tags instead, store tags in .xmp files.

Use two tags like "edit" and "edit-TIMESTAMP" when tagging photos for a special temporary/one-time task like "print" and "print-20200109"... Keep those tags to track history.

Tag photos as "printed", "shared", "published", and with a the same word but with a timestamp "printed-20200109" etc. 

Tag photos to delete with "delete" tag, rather than using digikam's delete function.

Put videos into a subdirectory.

Mark for culling: 

Certain to keep: "pick-best" > "pick-good" > "pick-keep" 

Tentative: "pick-uncertain" > "pick-bad" > "pick-delete"

Sunday, February 7, 2021

Julia programming language notes

 julialang.org

https://docs.julialang.org/en/v1/manual/unicode-input/

https://benlauwens.github.io/ThinkJulia.jl/latest/book.html

 

Documentation is not clear,  big memory footprint (125MB RAM), slow to start first time on Windows.

The language is dynamic, no way to specify exactly function arguments and return value for a type (e.g. as a type of an argument to another function, or a type of a variable holding a function object).

An error can be spotted only during execution, e.g. if the return type does not match the type of the expression returned from the function.

Manjaro/archlinux drive encryption notes

https://wiki.archlinux.org/index.php/Dm-crypt/System_configuration

Need to have normal ext4 boot partition, vfat EFI partition, and an encrypted partition. 

Kernel boot image must have dmcrypt support:

/etc/mkinitcpio.conf

...

HOOKS=(base udev autodetect keymap modconf block encrypt filesystems keyboard fsck)

...

/etc/default/grub:
GRUB_CMDLINE_LINUX="cryptdevice=UUID=88.-..888:cryptroot:allow-discards"


/etc/fstab: 

# /dev/mapper/cryptroot
UUID=111-11-...       /               ext4            rw,noatime      0 0

# /dev/nvme0n1p6
UUID=222-22-...       /boot           ext4            rw,relatime     0 0

# /dev/nvme0n1p2
UUID=333..          /boot/efi       vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro
      0 0