LinuxQuestions.org
Help answer threads with 0 replies.
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 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
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 90 Comments 0 Michael Uplawski is offline
Old

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
Iíve 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.

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

The Ultimate Linux System
Iíve called my different versions of ExTiX The Ultimate Linux System for many years...
ExTiX Admin
Views 259 Comments 1 exton is offline
Old

[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...
Member
Posted in Uncategorized
Views 121 Comments 0 the dsc is offline
Old

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...
Member
Posted in Uncategorized
Views 541 Comments 1 the dsc is offline
Old

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:

Code:
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
python2 get-pip.py
Then you'd use "pip2 install package"

From https://blog.emacsos.com/pip2-in-deb...-bullseye.html
Member
Posted in Uncategorized
Views 276 Comments 0 the dsc is offline

  



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