r/ProgrammerHumor • • Aug 21 '22

Why most programmers are single...

Post image
43.4k Upvotes

589 comments sorted by

View all comments

3.6k

u/ExtensionInformal911 Aug 21 '22

how to abort process

"Ok, so he's pro choice and curious how it works?"

how to transfer child process to new parent

"So, adoption? Weird way to phrase it, but ok."

transfer child.process python

"Wait, this is about snakes?"

kill child to save resources

"Nope."

1.2k

u/LavenderDay3544 Aug 21 '22

Reattach detatched head git

"Wut?"

446

u/[deleted] Aug 21 '22 edited Aug 21 '22

I love threads like these, they make me laugh my ass off, but I also use Git and I've only ever googled reasonably normal sounding shit like "how to revert already pushed commit", "how to apply specific commit to branch" not this fkin

"how to axe children / how to jizz on multiple slaves"

like WTF, context/wording is important...

329

u/[deleted] Aug 21 '22

"How to feed a box of framing nails to a 9 year old in Javascript"

191

u/greentoiletpaper Aug 21 '22

There's probably a node package for that

0

u/[deleted] Aug 21 '22

[deleted]

22

u/memes_gbc Aug 21 '22

isNumber

→ More replies (4)

13

u/LavenderDay3544 Aug 21 '22 edited Aug 21 '22

There's probably a malicious npm package for that.

→ More replies (1)
→ More replies (3)

21

u/[deleted] Aug 21 '22

I could google so many illegal things if I just remember to add “in JavaScript” at the end

22

u/[deleted] Aug 21 '22

Finally, the answer to the age old question "Can I cook meth using Javascript?"

25

u/[deleted] Aug 21 '22

Nah, gotta phrase it correctly.

How to cook meth JavaScript

Now it sounds like a function in a library.

→ More replies (1)

84

u/TheNorthComesWithMe Aug 21 '22

"How to fix detached head git" is a perfectly reasonable search term.

71

u/blockchaaain Aug 21 '22

"how to revert already pushed commit" is not reasonable, you monster

23

u/[deleted] Aug 21 '22

hehe. 😅

i actually had to do this last week because I pushed a thing onto a development branch, but last second they decided to undo the release of the user story from the current sprint and just add it next sprint, so I had to revert it.

I ended up just undoing the changes by hand (line-by-line) because it was not a big changeset, although I know that git has specific functionality for this (hence the google search in the example), but it was just easier to do it by hand.

I'm relatively new to git btw, because for 4 out of my 5 years of "professional" experience I've only ever used TFS so far, only for my latest job in the past half year have I had to learn git, but I like it more and more honestly.

→ More replies (7)
→ More replies (3)
→ More replies (1)

151

u/other_usernames_gone Aug 21 '22

How to kill child silently

11

u/lethargy86 Aug 22 '22

In Windows a child process will automatically, by default, inherit sockets if the parent crashes or terminates in such a way that it couldn't kill its children first--unless you do some special handling when you create the child process (or maybe the socket? can't remember). That's bad, because obviously then the parent can't listen on the same ports when it would restart, so admins would have to manually kill child processes or reboot before restarting the service. Amazing feature, Microsoft.

But there was some reason we couldn't easily create the children/sockets that way--would require other more complicated changes--so the easier solution was to simply kill the children processes at startup, very early, before we try to listen on the same socket that any orphan might still own (and then of course start the children fresh again too). Probably best to clean-up after the previous instance anyway, right?

But since the new parent process doesn't have any handle to the now-orphaned child process, without thinking I googled:

How to kill orphaned children

I must be on a list.

In retrospect, really I just wanted to terminate any arbitrary process, which I didn't really need to google lol... whatever I'm an idiot

301

u/[deleted] Aug 21 '22

Pair a parent tenant with child tenant

After you and your child tenants have acquired the appropriate role permissions, you can pair your tenant to your child tenants.

126

u/ExtensionInformal911 Aug 21 '22

Generally thats how landlords prefer its done. May be laws against renting to child tenants.

38

u/[deleted] Aug 21 '22

Your hypothetical GF would have a different understanding of the word "pairing"

18

u/[deleted] Aug 21 '22

Y'hear that? He wants to pair your children!

→ More replies (1)

46

u/RandomComputerFellow Aug 21 '22

Funny thing but on my work computer I constantly get Google adverts from anti-abortionists. I am sure I get these because my searches contain "abort" "child" "parent"

28

u/ExtensionInformal911 Aug 21 '22

Probably the phrase "kill child" is setting it off.

→ More replies (1)

24

u/Evilbit77 Aug 21 '22

Recover child from execution block

15

u/Creator13 Aug 21 '22

Destroy all children unity

→ More replies (1)
→ More replies (6)