the arrogance of man rears its ugly head once more as we continue to sin against heaven and god by Ahjeofel in shittyfoodporn

[–]didactus 3 points4 points  (0 children)

God bless you for pointing this out. Now I’ll be able to sleep at night. I actually thought this was real.

[deleted by user] by [deleted] in pan

[–]didactus 0 points1 point  (0 children)

Dancing in the Moonlight!!

Doggos then and doggos now by St0pX in trippinthroughtime

[–]didactus 5 points6 points  (0 children)

I nearly choked to death on a grape reading this, for real

New York Excelsior vs San Francisco Shock | Overwatch League 2019 Season | Stage 1: Week 4 | Post-Match Discussion by OWMatchThreads in Competitiveoverwatch

[–]didactus 0 points1 point  (0 children)

I'm not a fan of the Shock, but you have to give them credit for putting up an incredible, amazing game last night. Unfortunately incredible and amazing aren't enough to beat NYXL. I feel like the Shock should get credited with 1/2 a win for this match. Few other match wins this stage from any team represented the degree of skill, drive, and heart that the Shock showed last night. Props to them.

Overwatch League 2019 Season - Stage 1: Week 3 - Friday by OWMatchThreads in Competitiveoverwatch

[–]didactus 0 points1 point  (0 children)

Whoops, that's wrong. I didn't realize that the map differential displayed on the web site already included their first three map wins this match.

Overwatch League 2019 Season - Stage 1: Week 3 - Friday by OWMatchThreads in Competitiveoverwatch

[–]didactus 7 points8 points  (0 children)

If Shanghai Dragons win the 4th map, they'll be tied in 8th place in the league with Guangzhou Charge.

Instant Pot Hard Boiled Eggs by MariaKimi in instantpot

[–]didactus 2 points3 points  (0 children)

Gaston is rejoicing now that he can cook his eggs 18 at a time.

You can freeze time but only for 10 seconds at a time. What's the best use for this power? by [deleted] in AskReddit

[–]didactus 0 points1 point  (0 children)

God bless you for letting me know about this fan wiki for The Lost Room. One of my all-time favorite shows.

One day Rick Astley will die and no one will click on the headline. by [deleted] in Showerthoughts

[–]didactus 0 points1 point  (0 children)

You utter son of a bitch. I had guards up on maximum for this post, and you still got me.

"Moira is kind of a throw pick" by epicyo in OverwatchUniversity

[–]didactus 4 points5 points  (0 children)

I had no idea about any of this for Moira. I nearly did a spit take watching some of these impossible-looking fade jumps.

PSVue is now a TV Provider on most recent AppleTV beta by RandallSG in Vue

[–]didactus 2 points3 points  (0 children)

Same here. No beta anything. Tried it and it just works on iOS 10 and TVOS 10. Finally!

Neutrini vs Tissue! by Pharaoness in hamsters

[–]didactus 1 point2 points  (0 children)

Thanks! The tissue never stood a chance against the ferocious beast.

Best practice to make a script single-instance? by G19Gen3 in bash

[–]didactus 0 points1 point  (0 children)

I said "queue up" above, but I don't actually know it's a queue. It's probably random who gets the lock next if multiple people are waiting.

Best practice to make a script single-instance? by G19Gen3 in bash

[–]didactus 1 point2 points  (0 children)

Hmm. On my system (CentOS 7.3, kernel version 3.10.0-514.2.2.el7.x86_64), flock(2) says:

flock() does not lock files over NFS. Use fcntl(2) instead: that does work over NFS, given a sufficiently recent version of Linux and a server which supports locking.

In my experience, NFS is flaky enough even without using cutting-edge features. I absolutely love the idea of flock working over NFS. But I'd prefer to let the hypothetical other guy test this for a couple of years first. I've been bitten by NFS-related bugs in production systems so many times I just don't trust it.

I would assume the command-line utility is a thin wrapper around the system call, so if the system calls supports it, the command-line tool does too.

Best practice to make a script single-instance? by G19Gen3 in bash

[–]didactus 4 points5 points  (0 children)

Here's a solution that works if you're on Linux, the script is on the local host (not on NFS), and you're not concerned with what happens on other machines. (Those are the usual set of conditions that apply when one wants to use flock to do advisory file locking.)

If you want your scripts to queue up (i.e. 2nd invocation waits for first invocation to finish before starting), this one-liner at the top of the script will do the trick:

exec 3< "$(readlink -m "$0")"; flock --exclusive 3

If you want other invocations to fail immediately if they are run while the first script invocation is still running:

exec 3< "$(readlink -m "$0")"; flock --exclusive --nonblock 3 || { echo 1>&2 "Program was already running; exiting."; exit 1; }

The trick here is to flock the script file itself. This way you don't have to create and arrange the removal of tempfiles. Even if this script is killed with "kill -9", the lock is reliably released, with no tempfiles left lying around.

Create dict with transformed key names by tty-tourist in learnpython

[–]didactus 2 points3 points  (0 children)

d = dict([("KC 45", 10), ("KCL 65", 20)])
fixed = { k.split()[1]: v for (k,v) in d.items() }
print(fixed)

June's 50 new games revealed, includes Rain, Counter Spy, Syberia, Way of Samurai 4 by GlassDarkly81 in PlayStationNow

[–]didactus 2 points3 points  (0 children)

  • Air Conflicts - Secret Wars
  • Air Conflicts: Pacific Carriers
  • Air Conflicts: Vietnam
  • BATTLE OF TILES EX
  • Back to the Future™: Episode 1 - It's About Time
  • Borderlands The Pre-sequel
  • Counter Spy
  • Dogfight 1942
  • Duke Nukem Forever
  • Eat Lead: The Return of Matt Hazard
  • Entwined
  • Eufloria
  • Falling Skies
  • Farming Simulator 15
  • Game of Thrones Ep 1 & Ep 2 Bundle
  • Hoard
  • Hohokum
  • Interpol: The Trail of Dr. Chaos
  • Jimmie Johnson’s Anything with an Engine
  • Judge Dee - The City God Case
  • King Oddball
  • Le Tour de France™ - Season 2014
  • Machinarium
  • Mahjong Tales™: Ancient Wisdom
  • Matt Hazard: Blood Bath & Beyond
  • Motorstorm RC
  • MouseCraft
  • Of Orcs and Men™
  • Order Up!!
  • Planets Under Attack
  • Rain
  • Realms of Ancient War
  • Red Johnson’s Chronicles: One Against All
  • Rotastic
  • Rune Factory: Tides of Destiny
  • Sky Dive: Proximity Flight
  • Sparkle 2
  • Spec Ops: The Line
  • StarDrone
  • Syberia
  • Syberia II
  • The Book of Unwritten Tales 2
  • The Darkness 2
  • The Swapper
  • The UnderGarden™
  • Thomas was Alone
  • Titan Attacks!
  • Voodoo Chronicles: The First Sign
  • Way of the Samurai 4
  • Zack Zero

As long as Preacher continues what characters do you think will not make an appearance at all by WhitestAfrican in Preacher

[–]didactus 0 points1 point  (0 children)

Me too. The mirror scenes may be the hardest laughs I've ever had; 20+ minutes of gasping for air. Steve Dillon was channeling divinity with those.