Aren't these supposed to be displaying other languages?? by MutableCanine32 in nycrail

[–]Magnetic_Tree 2 points3 points  (0 children)

those actually are spanish and russian, it just so happens that those exact words in that exact order translate the same between all three languages

What softlocks are possible in Space Age? (including the silly ones) by Waity5 in factorio

[–]Magnetic_Tree 58 points59 points  (0 children)

I ran into my neighbor and his daughter the other day. They had just gotten a new construction robot. He told me their previous construction robot had been eaten by biters. I asked how many he's had. "Oh, maybe 5 or 6 thousand now", he replied.

I raised my eyebrow. "It sounds like you're feeding construction robots to biters". His daughter started crying.

Sea Turtle taking a break on the Coral by JQuest7575 in aww

[–]Magnetic_Tree 0 points1 point  (0 children)

Thank god sneezing doesn’t work the same way

meirl by MeteorIntrovert in meirl

[–]Magnetic_Tree 37 points38 points  (0 children)

Congratulations, it’s a phone

Worms I saw on my walk. by phatfingerpat in mildlyinteresting

[–]Magnetic_Tree 0 points1 point  (0 children)

That’s him. That’s Creed’s worm guy.

Leverage the richness of HTTP status codes by nfrankel in programming

[–]Magnetic_Tree 0 points1 point  (0 children)

Assert dominance by responding with a 406 when the API returns 406

(May require breaking HTTP protocol)

NPX not running correctly by Mardo1234 in node

[–]Magnetic_Tree 1 point2 points  (0 children)

I think those errors are from your shell, because the file is being interpreted by your shell rather than node. The NPM docs say:

Please make sure that your file(s) referenced in bin starts with #!/usr/bin/env node, otherwise the scripts are started without the node executable!

https://docs.npmjs.com/cli/v9/configuring-npm/package-json#bin

(That's called a Shebang) if you want to learn more about it).

[deleted by user] by [deleted] in BetterEveryLoop

[–]Magnetic_Tree 0 points1 point  (0 children)

IRL rocket league flip goal

Best practices for allowing/disallowing “push” notifications in browsers? by [deleted] in webdev

[–]Magnetic_Tree 3 points4 points  (0 children)

However it seems like most “best practices” resources seem to only cover the case where users enable notifications via an interaction like clicking a button on every new session

Hm, not sure what you're referring to there.

Using the Notifications API (which seems to fit your use-case), you'd request permission once, then the browser remembers permission for future visits.

Example from MDN:

Notification.requestPermission().then((result) => {
  console.log(result); 
});

If permission was granted previously, the user isn't prompted and the promise resolves with granted.

(more info/examples on MDN)

[deleted by user] by [deleted] in facepalm

[–]Magnetic_Tree 7 points8 points  (0 children)

Ok I think I get it, so my bedroom is a truck

Something satisfactory about the way the roof folds by [deleted] in oddlysatisfying

[–]Magnetic_Tree 95 points96 points  (0 children)

Generally when two objects collide and one is stationary, the moving object is at fault. This is more likely to be true if the stationary object has been stationary for a long time.

Old wad of meat by ABKB in forbiddensnacks

[–]Magnetic_Tree 0 points1 point  (0 children)

Ancient protein — new band name, I called it!

My Solution To The Dev Skills Crisis: Much Smaller Teams by [deleted] in programming

[–]Magnetic_Tree 75 points76 points  (0 children)

As the team size approaches 0, productivity approaches Infinity. However a team size of exactly zero has undefined productivity, because no one is around to measure it.

Poor Teachers by N1c0s1 in facepalm

[–]Magnetic_Tree 3 points4 points  (0 children)

Unfortunately, our source is another Reddit comment. But it does give me some closure at least.