Latest LQ Deal: Latest LQ Deals
Go Back > Blogs
User Name



Works – Is Cool – Don't worry: WebP Image format for the Web

Posted 12-05-2021 at 06:31 PM by Michael Uplawski
Updated 02-04-2023 at 01:03 AM by Michael Uplawski (cosmetics & faults)

31/1/2022 Addition: SVG – last paragraphs added

Related thread on the AVIF format and conversions with ImageMagick.

Just when I decided to give up JPEG for storing photos on my hard-disk and upon converting some folders with Nikon raw photos (*.nef) to JPEG2000, I stumble upon a variety of new image formats which all claim to be successors of the old JPEG. But although the “Joint Photographich Expert Group” is behind most of the effort, their work has – for the time...
Senior Member
Views 1899 Comments 0 Michael Uplawski is offline

[vim] avoid accidental maro recording (@q)

Posted 11-06-2021 at 07:02 AM by Michael Uplawski
Updated 11-13-2021 at 01:42 AM by Michael Uplawski

in ~/.vimrc I note
nnoremap Q q
nnoremap q <Nop>
and no longer end up in macro-recording mode, when I forget the colon before 'q'.

Copied & pasted from Stack Overflow (see there).
Senior Member
Views 153 Comments 0 Michael Uplawski is offline

Unbuffered shell-input

Posted 10-16-2021 at 02:46 AM by Michael Uplawski
Updated 11-13-2021 at 01:43 AM by Michael Uplawski (Wrong title, much misunderstanding and ill-chosen search criteria.)

There are solutions on the Web.

Having read some of these, I prefer a Ruby-Oneliner “readNB” which returns the 1 character that the user has had a chance to enter on the keyboard, before readNB returns.

---------------------- In the meantime -------------------------
GazL has – in the very first comment on this blog, below – presented a better solution with the shell built-in command read: read accepts some parameters and a call like
read -r -s -N1 [VARIABLE]
Senior Member
Views 1859 Comments 4 Michael Uplawski is offline

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

Posted 09-25-2021 at 02:11 AM by Michael Uplawski
Updated 10-09-2021 at 12:49 AM 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
if !STDIN.tty?
  # do as you must
tty meaning “teletype-writer”, it stands for terminal/console/pseudo-terminal and the like....
Senior Member
Views 589 Comments 0 Michael Uplawski is offline

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

Posted 07-12-2021 at 04:02 PM by Michael Uplawski
Updated 10-14-2023 at 01:12 AM by Michael Uplawski (Why not)

A styled version of this text in French:
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

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, if the IP-address in
Senior Member
Views 1044 Comments 0 Michael Uplawski is offline


All times are GMT -5. The time now is 06:19 PM.

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