[PLUG] Web animation screen tearing with Debian 12 Bookworm

2024-01-11 Thread Keith Lofstrom
Debian 12 Bookworm, plus Firefox, Chrome, or Brave browsers, works great on my desktop computers. Sadly, web animations often exhibit screen tearing (strips of animation pixels scattered vertically/randomly on the screen) on my ancient T60 Thinkpads with Bookworm. There is no screen tearing

Re: [PLUG] Extract only first line in each paragraph

2024-01-11 Thread Rich Shepard
On Thu, 11 Jan 2024, Michael Ewan wrote: I write a lot of Python, feel free to run your script by me for a code review or whatever. Send it direct email, michael.e...@acm.org Thanks, Michael. It was suggested to do it all in a bash script and that might be the most expedient way since the

Re: [PLUG] Extract only first line in each paragraph

2024-01-11 Thread Rich Shepard
On Thu, 11 Jan 2024, Tomas Kuchta wrote: Use semicolons not , between awk commands Tomas, Thank you. Rich

Re: [PLUG] Extract only first line in each paragraph

2024-01-11 Thread Rich Shepard
On Thu, 11 Jan 2024, Michael Ewan wrote: You can send mail directly from Python. Check https://realpython.com/python-send-email/ Michael, Since Python can do so many things I should have expected this. Wasn't aware of it before now. Many thanks, Rich

Re: [PLUG] Extract only first line in each paragraph

2024-01-11 Thread Rich Shepard
On Thu, 11 Jan 2024, Ben Koenig wrote: I came up with an extremely crude way to do this with bash/grep/sed. For your testfile.txt grep "^ *$" testfile.txt -A1 --no-group-separator | sed '/^ *$/d' The pattern "^ *$" matches empty lines. grep provides the -A$N to return N lines after the

Re: [PLUG] 'Linux devices are under attack by a never-before-seen worm' - ArsTechnica

2024-01-11 Thread MC_Sequoia
"TL;DR, this is using password guessing. Solution: use better passwords or urn off passwords altogether and use ssh authorized_keys." Indeed and this is probably obvious and easy for high level users, but not everyone is and also there might be folks who've setup rsync and/or use scp with

Re: [PLUG] Extract only first line in each paragraph

2024-01-11 Thread Michael Ewan
You can send mail directly from Python. Check https://realpython.com/python-send-email/ On Thu, Jan 11, 2024 at 11:55 AM Rich Shepard wrote: > On Thu, 11 Jan 2024, Michael Ewan wrote: > > > I write a lot of Python, feel free to run your script by me for a code > > review or whatever. > > Send

Re: [PLUG] Extract only first line in each paragraph

2024-01-11 Thread Ben Koenig
On Thursday, January 11th, 2024 at 1:01 PM, Rich Shepard wrote: > On Thu, 11 Jan 2024, Michael Ewan wrote: > > > You can send mail directly from Python. Check > > https://realpython.com/python-send-email/ > > > Michael, > > Since Python can do so many things I should have expected this.

[PLUG] Password guessing with a microphone

2024-01-11 Thread Keith Lofstrom
This shades towards plug-talk, except that it specifically involves how we configure and use our Linux computers. I use keyboards with clicky keys, sometimes in the same room as devices with microphones. I read the mostly excellent "A History of Fake Things on the Internet" by Walter

Re: [PLUG] Extract only first line in each paragraph

2024-01-11 Thread Michael Ewan
I write a lot of Python, feel free to run your script by me for a code review or whatever. Send it direct email, michael.e...@acm.org On Thu, Jan 11, 2024 at 11:21 AM Rich Shepard wrote: > On Thu, 11 Jan 2024, Michael Ewan wrote: > > > Perl for the win. > > Michael, > > As I thought more about

[PLUG] 'Linux devices are under attack by a never-before-seen worm' - ArsTechnica

2024-01-11 Thread MC_Sequoia
"For the past year, previously unknown self-replicating malware has been compromising Linux devices around the world and installing cryptomining malware that takes unusual steps to conceal its inner workings, researchers said. The worm is a customized version of Mirai, the botnet malware that

[PLUG] Short power glitch, partial firewall amnesia

2024-01-11 Thread Keith Lofstrom
Some emails were just sent to PLUG and PLUG-TALK three days after I wrote and hit "send" on this computer. Why? I haven't figured out the details, but finally I realized this happened after a 3 second PGE power outage. Probably a power flicker or two before permanent power. I just realized

Re: [PLUG] Extract only first line in each paragraph

2024-01-11 Thread Tomas Kuchta
Use semicolons not , between awk commands Tomas On Thu, Jan 11, 2024, 10:30 Rich Shepard wrote: > I have a file with two-line paragraphs and want to extract only the first > line of each paragraph to an output file. Sample input file: > line 1 > line 2 > > line 1 > line 2 > > line 1 > line 2 >

Re: [PLUG] 'Linux devices are under attack by a never-before-seen worm' - ArsTechnica

2024-01-11 Thread Paul Heinlein
On Thu, 11 Jan 2024, Russell Senior wrote: TL;DR, this is using password guessing. Solution: use better passwords or turn off passwords altogether and use ssh authorized_keys. Or, if some local operations rely on passwords but you want remote users to use keys instead, then add a Host

[PLUG] Giving away large lab work benches.

2024-01-11 Thread Mark Wattier
The company I work for will not be reopening a second office, so we are getting rid of the office furniture in a storage unit. There is apparently quite a surplus of office furniture out there and we have not been able to sell or donate some large items. The big item in question is 2 sets of

Re: [PLUG] 'Linux devices are under attack by a never-before-seen worm' - ArsTechnica

2024-01-11 Thread Russell Senior
TL;DR, this is using password guessing. Solution: use better passwords or turn off passwords altogether and use ssh authorized_keys. On Thu, Jan 11, 2024 at 12:13 PM MC_Sequoia wrote: > "For the past year, previously unknown self-replicating malware has been > compromising Linux devices around

Re: [PLUG] Extract only first line in each paragraph

2024-01-11 Thread Michael Ewan
Perl for the win. #!/usr/bin/perl -w $first = 1; while (<>) { chomp; if ($first) { print "$_\n"; $first = 0; } $first = 1 if (/^$/); } Then perl test.pl test.txt On Thu, Jan 11, 2024 at 7:29 AM Rich Shepard wrote: > I have a file with two-line paragraphs and want to

Re: [PLUG] Extract only first line in each paragraph

2024-01-11 Thread Rich Shepard
On Thu, 11 Jan 2024, Michael Ewan wrote: Perl for the win. Michael, As I thought more about my need I recognized that a more comprehensive scripting language than sed or awk was needed. I don't know perl, so I'm developing a python script that's more comprehensive. My end result is a

Re: [PLUG] Extract only first line in each paragraph

2024-01-11 Thread Robert Citek
Have a look at the IFS and RS variables in awk. IIRC, you can specify the RS as '\n\n' and the IFS as '\n'. So printing the first line in a record becomes ' { print $1 } ' once those variables are set. ChatGPT came up with a similar answer.

Re: [PLUG] Giving away large lab work benches.

2024-01-11 Thread Aaron Burt
Wow! I can find a use for those, if nobody else does. If they're disassembled, do you think they'll fit in a pickup with an 8' bed? Thank you, Aaron 503-789-5289 On 2024-01-11 15:32, Mark Wattier wrote: The company I work for will not be reopening a second office, so we are getting rid

Re: [PLUG] Extract only first line in each paragraph

2024-01-11 Thread Robert Citek
If your file structure is always groups of three lines, then you could create a tab delimited file like so: << 'eof' paste - - - line 1 line 2 line 1 line 2 line 1 line 2 eof If the file structure is not that consistent, awk works well: << 'eof' awk -v FS='\n' -v RS='' '{print $1 "\t" $2

Re: [PLUG] Web animation screen tearing with Debian 12 Bookworm

2024-01-11 Thread Tomas Kuchta
https://duckduckgo.com/?q=linux+intel+graphics+image+tearing=fpas=web On Thu, Jan 11, 2024, 06:26 Keith Lofstrom wrote: > Debian 12 Bookworm, plus Firefox, Chrome, or Brave browsers, > works great on my desktop computers. > > Sadly, web animations often exhibit screen tearing (strips > of

[PLUG] Extract only first line in each paragraph

2024-01-11 Thread Rich Shepard
I have a file with two-line paragraphs and want to extract only the first line of each paragraph to an output file. Sample input file: line 1 line 2 line 1 line 2 line 1 line 2 I thought the awk 'next' statement would do this but my attempts failed. For example: $ gawk '{ print $0, next, next