Live data from Hacker News

Spoilerwall: Respond to port scanning requests with movie spoilers

github.com

41–50 of 112 posts

Re: Spoilerwall: Respond to port scanning requests with movie spoilers

#42
post #40
post #39

Quick question: Why does 35: chosen = random.choice(movies) at https://github.com/infobyte/spoilerwall/blob/master/server-s... have a reference to 'movies'. I thought one had to explicitly pass it to the MyTCPHandler class using the server object? Or is this a special case because of __main__?

If the file gets executed as a script, then __name__ == "__main__", hence L43:53 get executed in the top-level scope, which is also available in the lower levels. This isn't very good writing, since this code will throw exceptions when __name__ != "__main__" (i.e. when import-ing the file as a module), which misleadingly defeats the purpose of having that conditional there.

Ok, thanks, that makes sense. I knew that top-level variables are global, but didn't know that variables in __main__ share this property (which is e.g. different in the C language).

Re: Spoilerwall: Respond to port scanning requests with movie spoilers

#43
post #35
post #10

A random mix of elevator pitches for various religions might be a better deterrent. Have you heard the good news?

{"walletPrivateKey": "5HueCGU8rMjxEXxiPuD5BDku4MkFqeZyd4dZ1jvhTVqvbTLvyTJIts-not-Too-Late-To-Be-Saved"}

{"walletPrivateKey": "31337nEv3RG0nNaG1iveYoUu7pNne4rGonN4l37Udwn"}

Re: Spoilerwall: Respond to port scanning requests with movie spoilers

#44
post #30

Earlier quoted context omitted.

> "New Mission: decline this mission" Is that a paradox? If you accept it or have it forced on you then depending on how you interpret the rules you either succeed or fail straightforwardly. If you don't accept it or have it forced on you then nothing happens. There's no loop of logic.

> > "New Mission: decline this mission" > Is that a paradox? If you accept it or have it forced on you then depending on how you interpret the rules you either succeed or fail straightforwardly. If you don't accept it or have it forced on you then nothing happens. There's no loop of logic. Good point! "New mission: fail at this mission" addresses the first point but not, I think, the second. It reminds me of Carlin's…

What happened is that the world is flat state, and you are free to displace models in violation of any perceived hierarchy because any such hierarchy is entirely artificial.

It's the same reason recursive function calls don't kill your computer in a puff of contradiction.

Re: Spoilerwall: Respond to port scanning requests with movie spoilers

#45
post #36

Earlier quoted context omitted.

Perhaps questions like "This statement is false", "New Mission: decline this mission", base64 encoded copies of René Magritte's 'this is not a pipe', "God is all powerful, can He make a rock so big that He Himself can't lift it?", "calculate the 2nd prime number", etc to prevent automated AI attacks.

"This is not a pipe" isn't a paradox. It's a painting of a pipe. https://en.m.wikipedia.org/wiki/The_Treachery_of_Images#Desc... The famous pipe. How people reproached me for it! And yet, could you stuff my pipe? No, it's just a representation, is it not? So if I had written on my picture 'This is a pipe', I'd have been lying!

[deleted]

Re: Spoilerwall: Respond to port scanning requests with movie spoilers

#46

Earlier quoted context omitted.

Perhaps questions like "This statement is false", "New Mission: decline this mission", base64 encoded copies of René Magritte's 'this is not a pipe', "God is all powerful, can He make a rock so big that He Himself can't lift it?", "calculate the 2nd prime number", etc to prevent automated AI attacks.

> "New Mission: decline this mission" Is that a paradox? If you accept it or have it forced on you then depending on how you interpret the rules you either succeed or fail straightforwardly. If you don't accept it or have it forced on you then nothing happens. There's no loop of logic.

If you accept the mission, you must decline the mission. If you decline the mission, you have successfully completed the mission. Either way, your final status is contradictory.

Re: Spoilerwall: Respond to port scanning requests with movie spoilers

#47

If you like this, you might like Lenny, the bot designed to waste telemarketers' time. https://toao.net/595-lenny https://www.youtube.com/watch?v=lryrm2CVaVg&list=PLduL71_GKz... https://www.reddit.com/r/itslenny/

Also Jolly Roger Telephone Company https://www.youtube.com/channel/UC3OxCWLEmoIhNMm-hnvBm9Q/vid...

Re: Spoilerwall: Respond to port scanning requests with movie spoilers

#48
post #42
post #40

Earlier quoted context omitted.

If the file gets executed as a script, then __name__ == "__main__", hence L43:53 get executed in the top-level scope, which is also available in the lower levels. This isn't very good writing, since this code will throw exceptions when __name__ != "__main__" (i.e. when import-ing the file as a module), which misleadingly defeats the purpose of having that conditional there.

Ok, thanks, that makes sense. I knew that top-level variables are global, but didn't know that variables in __main__ share this property (which is e.g. different in the C language).

if __name__ == __main__ is just a conditional on the top level scope.

Re: Spoilerwall: Respond to port scanning requests with movie spoilers

#49

Earlier quoted context omitted.

> "New Mission: decline this mission" Is that a paradox? If you accept it or have it forced on you then depending on how you interpret the rules you either succeed or fail straightforwardly. If you don't accept it or have it forced on you then nothing happens. There's no loop of logic.

If you accept the mission, you must decline the mission. If you decline the mission, you have successfully completed the mission. Either way, your final status is contradictory.

https://en.m.wikipedia.org/wiki/Catch-22_(logic)

Obligatory

Re: Spoilerwall: Respond to port scanning requests with movie spoilers

#50
You have to be very careful when running this on the telnet port.

I had a server set to spew a full color ANSI Nyancat at you when you telneted in. When the Mirai botnet was in full swing, I was pushing 5+ Mbps of Nyancat down to peoples infected webcams and killing my servers CPU.

Post reply on HN