Lightfire228
I've been running Linux for 4 years, but this still hurts to read
Always copy what you have written, so you can paste it and continue typing where you left off
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"
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
What about quaternions?
Cats are toddlers that can reach the ceiling
Can we never joke about sensitive topics?
Isn't humor like, our primary coping mechanism for dealing with dark topics?
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
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'))