LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Blogs > Michael Uplawski
User Name
Password

Notices


Programming and creativity I need a category for a blog-entry. It is about programming, but as I am beginning to fall foul of technology, have to append something useful to the title.
Old

Web-Scraping and src-attribute : change absolute to relative

Posted 10-26-2024 at 04:48 AM by Michael Uplawski
Updated 10-26-2024 at 04:52 AM by Michael Uplawski

I consider this a recurring task:

After having downloaded HTML and all the images or other files, needed, the absolute links in the HTML-file are no longer working and must be shortened to point at the location of the downloaded files.

In the most simple cases you can use your preferred line-editor to quickly eliminate any path that is preceding file-names in the src-attributes.

Whatever ... I prefer Ruby (and I do not care to bother with sed). Nokogiri...
Senior Member
Views 31 Comments 0 Michael Uplawski is offline
Old

Avif support for Qt – How it appears to work

Posted 01-20-2024 at 03:58 AM by Michael Uplawski
Updated 01-20-2024 at 03:39 PM by Michael Uplawski (Too many $ and stuff)

0.) Install libavif-dev
1.)
Code:
young_preacher@elysee:~/where_your/git_repos/are$ git clone https://github.com/novomesk/qt-avif-image-plugin.git
2.)
Code:
young_preacher@elysee:~/where_your/git_repos/are$ cd qt-avif-image-plugin/
3.)
Code:
young_preacher@elysee:~/where_your/git_repos/are/qt-avif-image-plugin$ ./build_libqavif_dynamic.sh
If you do not get a
Quote:
SUCCESS! in order to install libqavif.so type as root:
make install
, then do whatever is necessary before...
Attached Images
File Type: jpg sc.jpg (83.9 KB, 10 views)
Senior Member
Views 171 Comments 0 Michael Uplawski is offline
Old

Post processor script for flnews

Posted 04-15-2023 at 04:14 AM by Michael Uplawski
Updated 03-30-2024 at 04:47 AM by Michael Uplawski (new Ruby-Gem as of november 2023)

flnews_post_proc-1.39.gem


The page describing the current Ruby-Gem: http://www.uplawski.eu/div/flnews/ge...post_proc.html
The Download-page for the current Ruby-Gem for the post-processor which includes the configuration-file:
https://www.rubygems.org/gems/flnews_post_proc

30/03/2024:
The Ruby-Gem has advanced a lot, recently and what follows, is the equivalent of the man-page for version 1.39, transformed to markdown...
Attached Images
File Type: jpg lq_sc_flnews.jpg (183.7 KB, 19 views)
File Type: png lq_th_sc_flnews.png (16.2 KB, 115 views)
Senior Member
Views 776 Comments 0 Michael Uplawski is offline
Old

Qt: Embedding Translations in the program-file

Posted 03-29-2023 at 03:41 PM by Michael Uplawski
Updated 03-30-2024 at 05:49 AM by Michael Uplawski (German version, French version)


Embedding translations in Qt-programs



Introduction

Several techniques allow the internationalization of Qt -program.
I have worked out the procedure explained on this page, to embed translations in an executable file, so that they will be immediately available without having to keep
...
Attached Images
File Type: jpg lq_sc_upsslideshow.jpg (199.1 KB, 10 views)
File Type: png lq_th_sc_upsslideshow.png (10.9 KB, 117 views)
Senior Member
Views 354 Comments 0 Michael Uplawski is offline
Old

Obsolete: xpath / Nokogiri: Find all nodes in a SVG path.

Posted 06-09-2022 at 03:41 PM by Michael Uplawski
Updated 11-25-2023 at 12:44 AM by Michael Uplawski (Code examples updated, comments are better, too, French2English (this is awkward – am I losing my German?))

In an attempt to render Hyperlinks in SVG more comfortable, I had begun to enlarge the mouse-sensitive area around a linked content by creating a transparent rectangle around the link.

In the meantime, other techniques are swifter applied and probably easier used in a scripted routine.

This is historical, now. For your inspiration, the original blog-post:
------------------------------------------------------------------------------

Work in Progress....
Senior Member
Views 730 Comments 1 Michael Uplawski is offline

  



All times are GMT -5. The time now is 07:18 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration