Share your knowledge at the LQ Wiki.
Go Back > Blogs
User Name



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

Posted 09-25-2021 at 01:11 AM by Michael Uplawski
Updated 09-25-2021 at 01:13 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 125 Comments 0 Michael Uplawski is offline

ExTiX Deepin 21.9 Live based on Deepin 20.2.3 (latest) with Skype, Spotify, Refracta Snapshot and kernel 5.14.2-exton :: Build 210914

Posted 09-14-2021 at 09:53 AM by exton (Exton's Blog)

NEWS 210914 ABOUT ExTiX Deepin
Ive released a new version of ExTiX Deepin today (210914). This ExTiX Build is based on Deepin 20.2.3 released by Deepin Technology 210816. Deepin is devoted to providing a beautiful, easy to use, safe and reliable system for global users.

I may add that there is no other live version of Deepin 20.2.3.

The Ultimate Linux System
Ive called my different versions of ExTiX The Ultimate Linux System for many years...
ExTiX Admin
Views 268 Comments 1 exton is offline

[solved] cluelessness preventing me from installing the dkms module for kelebek333's realtek driver for kernels after 5.9

Posted 09-14-2021 at 09:37 AM by the dsc (linux-related notes)
Updated 09-14-2021 at 09:45 AM by the dsc

I believe that in previous kernel upgrades I just had used what I think is the standard process with no error. But I had failed to upgrade to any sub-version of 5.10.

I don't remember what moderately crazy or nonsensical attempt I tried along the way, not that many, but finally I've solved it in a way I just didn't expect.

I simply backed up/renamed the source directory, and downloaded again with git, and did the two or three commands listed on the README. And it just...
Posted in Uncategorized
Views 124 Comments 0 the dsc is offline

Restoring the ability to mount local drives as a normal user, without password, in Debian 11

Posted 09-09-2021 at 01:20 PM by the dsc (linux-related notes)

I don't recall having tweaked any setting to have "udiskctl mount" working without password in the same exact situation, but whatever happened, after the upgrade from Debian 10 to 11, it no longer worked.

While there are quite a few examples of how to set up the correct "polkit" rule for it around, most of them refer to a newer version of polkit that uses a different syntax. Debian's pkaction version is still 1.105. And apparently the file needs to be in the correct...
Posted in Uncategorized
Views 545 Comments 1 the dsc is offline

Getting back some python-2 functionality (pip) on Debian 11/bullseye

Posted 09-07-2021 at 09:28 PM by the dsc (linux-related notes)
Updated 09-07-2021 at 09:29 PM by the dsc
Tags debian, python2

If you don't actually know python enough to rewrite old scripts you use for python3, you may want to restore some functionality:

Then you'd use "pip2 install package"

Posted in Uncategorized
Views 280 Comments 0 the dsc is offline


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