LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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

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

Posted 06-09-2022 at 02:41 PM by Michael Uplawski
Updated 06-18-2022 at 09:49 AM by Michael Uplawski (Code examples updated, comments are better, too.)

Work in Progress.
EDIT 18.6.2022: Today, I have learned three things:
  • What I want is called a “Bounding Box Calculator”.
  • I hate JavaScript a little more, now
  • My own solution, so far, is crap.


I need all nodes of all paths of a linked graphical object in an SVG file. As I work with handwritten text, those objects are combinations of several paths, sometimes grouped.

The following xpath findes the node definitions from the attribute “d” of the first path...
Senior Member
Views 104 Comments 1 Michael Uplawski is offline
Old

Ruby: reading from STDIN, if there is something to read.

Posted 09-25-2021 at 01:11 AM by Michael Uplawski
Updated 10-08-2021 at 11:49 PM by Michael Uplawski (Category)

The logic of ARGV and ARGF still escapes me, I am approaching perfection empirically by trial, error and surrender. Now I believe to do stuff the right way, which is highly unsatisfactory.

Today's sura goes like this:

To avoid a hanging program, when there are no data waiting at STDIN, thou shalt write
Code:
if !STDIN.tty?
  # do as you must
end
tty meaning “teletype-writer”, it stands for terminal/console/pseudo-terminal and the like....
Senior Member
Views 410 Comments 0 Michael Uplawski is offline
Old

Handwritten Web-Pages

Posted 02-13-2021 at 05:28 AM by Michael Uplawski
Updated 04-04-2022 at 11:31 PM by Michael Uplawski (Link to a published document)

-----> Edit Sat Mar 12 08:30:02 CET 2022: <-------

In German language: a howto for the transformation of handwritten text to Hypertext in Inkscape.


<------ END EDIT ------>
I have a dream...

My hand-writing suffers from not doing any. For some years already I try to compensate by forcing me to use a fountain pen, whenever possible. I even try to find new occasions to use it. The fountain pen obliges me to concentrate and to...
Senior Member
Views 418 Comments 1 Michael Uplawski is offline
Old

Word-Processor File-Types for Scripting

Posted 05-29-2019 at 06:30 AM by Michael Uplawski
Updated 09-19-2020 at 01:46 AM by Michael Uplawski (SoftMaker Office 2021 has improved xml standard-compliance)

The Big Unification
Current Word-processors read and write different XML-based file-formats. The standards which are more or less implemented by these programs, are OOXML and/or OpenDocument. I write “more or less”, because for diverse reasons, Office-suites differ in the way that they compose documents of one certain type. The variations can result in a completely valid document or one that diverts from the standard and the existing schema-definitions (xsd). There is always the risk that
...
Attached Images
File Type: png sc_document.png (76.3 KB, 21 views)
File Type: png abiword_generated_ooxml.png (9.6 KB, 19 views)
Senior Member
Views 119 Comments 0 Michael Uplawski is offline
Old

download radio broadcasts in mp3 format

Posted 01-26-2019 at 07:11 AM by Michael Uplawski
Updated 03-09-2019 at 01:44 AM by Michael Uplawski (remark on general interest)

Edit: I just mention that the procedure used in the below script is generally applicable in any situation where you want to get a piece of “Web” while avoiding a downright Web-Browser and wherever you can replace it by curl or wget.

No this is not spectacular.

When I try to listen to a precise broadcast on France Culture (www.franceculture.fr), because I have missed it in the morning, I am confronted with a page that wants to open more than 25 connections to sites external...
Senior Member
Views 94 Comments 1 Michael Uplawski is offline

  



All times are GMT -5. The time now is 09:45 PM.

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