Lightfire228

joined 1 year ago
[–] Lightfire228@pawb.social 3 points 3 months ago

I've been running Linux for 4 years, but this still hurts to read

[–] Lightfire228@pawb.social 7 points 3 months ago

Always copy what you have written, so you can paste it and continue typing where you left off

[–] Lightfire228@pawb.social 5 points 3 months ago

I've had no issues with @pawb.social and Voyager

[–] Lightfire228@pawb.social 9 points 3 months ago

Once in Uni, I had a class switch rooms, but I was still using the old schedule

It wasn't until the wrong prof came in and started talking about math that I realized "this isn't my CompSci 210"

[–] Lightfire228@pawb.social 4 points 3 months ago* (last edited 3 months ago)

Any time you feel that sinking feeling especially while browsing c/all or such, close the app and do something else

Doomscrolling is not worth your sanity


This is the reason I recently unsubed from a bunch of meme threads on Lemmy. They were a non-stop barrage of political doom posting.

Understandable, given current events. But it was too much for me

[–] Lightfire228@pawb.social 2 points 3 months ago (1 children)

What about quaternions?

[–] Lightfire228@pawb.social 21 points 3 months ago (2 children)

Cats are toddlers that can reach the ceiling

[–] Lightfire228@pawb.social 8 points 3 months ago (3 children)

Can we never joke about sensitive topics?

Isn't humor like, our primary coping mechanism for dealing with dark topics?

[–] Lightfire228@pawb.social 18 points 3 months ago* (last edited 3 months ago) (2 children)

Maybe the light in the dash was shorting, causing the light to turn on on its own

And screaming was juuuust enough to cause the short to break connection?

It's either that or ghosts

[–] Lightfire228@pawb.social 1 points 4 months ago* (last edited 4 months ago)

that is a little more complicated

p.communicate() will take a string (or bytes) and send it to the stdin of the process, then wait for p to finish execution

there are ways to stream input into a running process (without waiting for the process to finish), but I don't remember how off the top of my head


from shutil import which
from subprocess import Popen, PIPE, run
from pathlib import Path

LS   = which('ls')
REV  = which('rev')

ls   = run([LS, Path.home()], stdout=PIPE)

p = Popen([REV], stdin=PIPE, stdout=PIPE)
stdout, stderr = p.communicate(ls.stdout)

print(stdout.decode('utf-8'))
view more: ‹ prev next ›