LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


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 693 Comments 0 Michael Uplawski is offline
Old

Email Filter With Procmail: Filter Received-Headers By IP-Range

Posted 07-12-2021 at 03:02 PM by Michael Uplawski
Updated 07-19-2024 at 03:39 AM by Michael Uplawski (Why not... edited 1 year after the actual edit... oops.)

A styled version of this text in French: http://www.uplawski.eu/articles/Linu..._Procmail.html
EDIT (25/04/2024): Example Output
EDIT (14/10/2023): Hint: go in favor of server-side filters
EDIT (27/09/2021): write positive test results to the procmail log-file

Introduction
I have not found much insight on the Web about the feasibility of an idea that I have had many years ago, but then had forgotten for a while:
Filter email by Received-header,
...
Senior Member
Posted in Uncategorized
Views 1299 Comments 0 Michael Uplawski is offline
Old

False statement

Posted 03-23-2021 at 12:57 AM by Michael Uplawski
Updated 12-06-2021 at 07:14 AM by Michael Uplawski

I just modified my comment to one of my own blog-entries but now feel that it is itself worth an entry.

If it sticks it may be sticky. Avoid.
This comment contained a false statement. I have to leave it here and mark it as false, because it is frequently repeated in a pseudo-scientific context, by right-wing political activists, by marketing-experts, by so-called “coaches”.

The story is that, around 1955, an American scientific formulated a hypothesis which was
...
Senior Member
Views 1056 Comments 4 Michael Uplawski is offline
Old

Handwritten Web-Pages

Posted 02-13-2021 at 05:28 AM by Michael Uplawski
Updated 01-05-2024 at 03:20 AM by Michael Uplawski (Updates and a comprehensive Howto in English (manuscript))

update 2024-01-05, new URL:
Manuscript: A Howto for the transformation of handwritten text to Hypertext in Inkscape


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 obey. My texts are more readable, since, but the process is too slow and cumbersome....
Senior Member
Views 728 Comments 2 Michael Uplawski is offline
Old

Validate OOXML

Posted 12-11-2020 at 10:27 AM by Michael Uplawski
Updated 12-15-2020 at 12:05 AM by Michael Uplawski (moved one paragraph, cosmetics, threads linked.)



Validate OOXML

Ensure the standard-conformance of OOXML-documents created from scratch.
See also the two Threads concerning this topic: A styled version of this document: http://www.uplawski.eu/articles/Linu...ate_ooxml.html
...
Senior Member
Views 654 Comments 0 Michael Uplawski is offline

  



All times are GMT -5. The time now is 12:06 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