photography
Porting to ๐๐ญ ๐.๐๐ – obey the ๐๐๐
At the end of September, Qt 6.12 was released into the wild. And since this is a much-anticipated LTS version (the last one was 6.8), I started to port my FOSS projects.
๐๐ฎ๐ฅ๐ฅ๐๐ง๐๐ฎ๐ฅ๐, since it is a tiny project but quite old (~8 years), went through a lot of changes. It is a helper to cull unwanted photos from a weekend session (aka: just filter the best ones out). Boring old-fashioned widgets with some C++ backend code: read the directory, load image files, move them to different directories, some UI themes and ๐ข๐๐๐ง, nothing fancy.
But that makes it an ideal candidate to try out new Qt releases.
The work was done in less than 30 minutes, thanks to guardrails like 98% test coverage and CI pipelines. This was supported by the use of modern dependencies like ๐๐๐๐ค๐ ๐.๐.๐, ๐++๐๐, etc., which prevented me from having to modernize not just Qt, but other things as well.
So what do we get now? An LTS release, which promises ๐ ๐ฒ๐๐๐ซ๐ฌ ๐จ๐ ๐ฌ๐ฎ๐ฉ๐ฉ๐จ๐ซ๐ญ, which means we should be well defended against cybersecurity vulnerabilities and software flaws (CVEs). Which is part of the CRA. To resolve the pending question what does CRA even mean: this is the ๐๐ฒ๐๐๐ซ ๐๐๐ฌ๐ข๐ฅ๐ข๐๐ง๐๐ ๐๐๐ญ, where the first major enforcement milestone took effect on 11th September 2026. Vendors of software-products are responsible to deliver maintenance
Again, two releases for Windows (๐๐ฑ๐๐๐ฎ๐ญ๐๐๐ฅ๐) and Linux (๐๐ฉ๐ฉ๐๐ฆ๐๐ ๐).
And a resulting ๐ฆ๐ข๐ ๐ซ๐๐ญ๐ข๐จ๐ง ๐ ๐ฎ๐ข๐๐, which is actually the more informative part for me – because I like to know what we have to change to ๐ฉ๐จ๐ซ๐ญ ๐๐ฑ๐ข๐ฌ๐ญ๐ข๐ง๐ ๐ฌ๐จ๐๐ญ๐ฐ๐๐ซ๐.
Fork the 2.6k LoC and 2.7k lines of tests at GitHub: https://github.com/marcelpetrick/Cullendula/
digiKam workflow for proper renaming
- Import the directories with the images. Takes usually several minutes for gigabytes of data.
- Press F2 for renaming. Use as scheme:
[date:yyyyMMdd-hhmmss]{unique:3}
Self-explaining and with a unique three digit suffix in case two identical filenames would appear.ย โ “20200216-141529_001.JPG”
robocopy: transfer huge repositories between PCs
Fatal error: Uncaught Error: Call to a member function id() on array in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php:36 Stack trace: #0 /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php(538): CrayonFormatter::format_code('', Array, Object(CrayonHighlighter)) #1 [internal function]: CrayonFormatter::delim_to_internal(Array) #2 /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php(516): preg_replace_callback('#()#msi', 'CrayonFormatter...', 'robocopy source...') #3 /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_highlighter.class.php(166): CrayonFormatter::format_mixed_code('robocopy source...', Object(CrayonLang), Object(CrayonHighlighter)) #4 /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_highlighter.class.php(186): CrayonHighlighter->process() #5 /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php(703): CrayonHighlighter->output(true, false) #6 /users/marcelpetrick/www/wp_solutionsnotcode/wp-includes/class-wp-hook.php(286): CrayonWP::the_content('<p>Average rate...') #7 /users/marcelpetrick/www/wp_solutionsnotcode/wp-includes/plugin.php(203): WP_Hook->apply_filters('<p>Average rate...', Array) #8 /users/marcelpetrick/www/wp_solutionsnotcode/wp-includes/post-template.php(240): apply_filters('the_content', 'Average rates o...') #9 /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/themes/clean-black/loop.php(7): the_content('Read more...') #10 /users/marcelpetrick/www/wp_solutionsnotcode/wp-includes/template.php(751): require('/users/marcelpe...') #11 /users/marcelpetrick/www/wp_solutionsnotcode/wp-includes/template.php(708): load_template('/users/marcelpe...', false) #12 /users/marcelpetrick/www/wp_solutionsnotcode/wp-includes/general-template.php(155): locate_template in /users/marcelpetrick/www/wp_solutionsnotcode/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 36
