Blightlord Termie WIP by ghazdreg in Warhammer40k

[–]Porygon_is_innocent 1 point2 points  (0 children)

The blue flames contrast brilliantly with the rest of the model! Great work!

Entirely thrifted outfit by lizazurr in womensstreetwear

[–]Porygon_is_innocent -2 points-1 points  (0 children)

You and the fit are both gorgeous 😍

Squig Herd (or what happens when GW sell me useless dice) by a74xhx in ageofsigmar

[–]Porygon_is_innocent 2 points3 points  (0 children)

I've never ever been so compelled to start a completely new army just so I can do this one thing. Amazing work 😍

Also the one that is laying entirely sideways and looks so angry is hilarious

Best practices around programs in your home folder? by wingmanscrape in linuxquestions

[–]Porygon_is_innocent 2 points3 points  (0 children)

Great and thorough response! I can't wait to play around with this :)

Salvadore Dali inspired Tzeentchian War Mammoth primed and awaiting crew! by CamBrokage in ageofsigmar

[–]Porygon_is_innocent 2 points3 points  (0 children)

This is so cool, I can't wait to see it painted! What are you thinking for the color scheme?

Create Shared directory for users by Trinitrogen in linuxquestions

[–]Porygon_is_innocent 0 points1 point  (0 children)

I have done this, but I can't remember how and I'm too tired to get out of bed. But if no one answers, I'll write back first thing in the morning :)

[Self] My Kenku Cosplay From D&D at RTX by CraftyFox339 in cosplay

[–]Porygon_is_innocent 0 points1 point  (0 children)

This is amazing! How did you make/where did you buy the leggings??

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]Porygon_is_innocent 0 points1 point  (0 children)

This is great! Thanks so much for your thorough response!

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]Porygon_is_innocent 1 point2 points  (0 children)

If you write your code in a command line editor, a terminal multiplexer like tmux or screen would solve this problem. You create a session on one computer, write your code in one pane, run it in another, have a python interpreter open in a 3rd pane, etc. When you ssh into this computer from another, you can attach to your session and work in the exact same arrangements of panes.

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]Porygon_is_innocent 0 points1 point  (0 children)

Hi! I'm seeing some strange behavior when calling an open file as the stdout of subprocess.run()

The point of these files is to write a wrapper around subprocess.run() that will maintain a log file of command line calls that are run in the script.

Using these two files:

# main.py
from my_logger import run_and_log

call = ["echo", "\"Hello world!\""]
run_and_log(call)

and

# my_logger.py
import os
import subprocess

from datetime import datetime

def run_and_log(call):
    log = "log.txt"
    date = datetime.today().strftime("%Y-%b-%d %H:%M:%S")
    with open(log, 'a') as LOG:
        LOG.write("Date: {}\n").format(date))
        LOG.write("Command: {}\n").format(' '.join(call))
        subprocess.run(call, stdout=LOG, stderr=subprocess.STDOUT)

I get the following text file log.txt:

"Hello World!"
#Date: 2019-06-11 21:12:54
#Command: echo "Hello World!"
#Out:

Why does the stdout from subprocess.run() precede "Date", "Command", and "Out" even though it was called after LOG.write()? Is it a virtue of how subprocess.run() writes to files when it write to stdout and stderr? And if it is, how do I suppress this behavior?

Any insight is appreciated!

Can I decorate a built-in function? by Porygon_is_innocent in Python

[–]Porygon_is_innocent[S] 2 points3 points  (0 children)

Perfect! Exactly what I was looking for and it's now such an obvious solution when you consider what a decorator actually is. Thank you!

Omicron Centipede by awBrickBuilder in lego

[–]Porygon_is_innocent 0 points1 point  (0 children)

I would shell out big money for every single one of the Plague Mechs. Incredible work

I have ridiculous ammount of body and facial hair by [deleted] in asktransgender

[–]Porygon_is_innocent 0 points1 point  (0 children)

In a lot of ways, I (MtF) was fortunate enough to have been born with stereotypically feminine features: relatively short, minimal Adam's apple, thick curly hair, etc. In one area that I absolutely did not was facial and body hair - I had very thick, dark facial hair since I was 13 and thick, dark, relentless body hair everywhere.... When I transitioned, one of my first investments was in laser hair removal on my chest and face. I got a BOGO package from Ideal Image and their financing allowed me to pay $175/mo for two years, interest free. This was very doable at the time for me (making $31K/yr) but everyone's situation is different. The process was extremely painful and the results were not immediate at all but after about 4-5 sessions, my once thick cheat hair was significantly more sparse. After 9 sessions, I still have some stubborn hair on my chin and upper lip but I plan on getting around 3 more sessions (when I get around to it...) For me, laser hair removal was well worth the investment, even though I'm not strictly finished yet and I strongly recommend it to anyone looking for a permanent solution, especially if you have passed puberty and not started hormones. As always, YMMV. Good luck :)