Live data from Hacker News

Spoilerwall: Respond to port scanning requests with movie spoilers

github.com

51–60 of 112 posts

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

#51
post #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. 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.

Drawing something silly on the map does not affect the territory.

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

#52
post #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.

I'm sorry, that's terrible, but this sounds hilarious

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

#54
post #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.

I laughed so hard. Sorry...

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

#55
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__?

> Quick question

I'm always wondering why people prefix a question with the statement "quick question". Now is my chance to ask. Is the question typed quickly? Should I imagine you speaking it in a quick manner? Is it meant as "off topic question"? Do you expect an answer quickly? What does it mean when you prefix your question with the words "quick question"?

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

#56
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).

Usually people write an actual function called main(), and call it from the global level conditional, to avoid this oddness. The actual function called main() has no special meaning in python.

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

#57
post #26

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.

You seem like the sort of person who says, "I always lie."

I like it. Because that's also not a paradox, it's just a lie.

It can be deceptively difficult to get the wording correct on a paradox.

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

#58

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.

If you decline it upfront, then you don't successfully complete it. You blocked it from ever becoming an active mission.

If you can't decline upfront, then we ask if you can 'decline' later despite already being in the mission. If yes you succeed. If no you fail.

It only seems paradoxical when you don't quite think the rules through.

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

#59
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__?

> Quick question I'm always wondering why people prefix a question with the statement "quick question". Now is my chance to ask. Is the question typed quickly? Should I imagine you speaking it in a quick manner? Is it meant as "off topic question"? Do you expect an answer quickly? What does it mean when you prefix your question with the words "quick question"?

It means that the asker believes the question is relatively short and thus won't be too much of a burden on the askee.

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

#60
post #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.

ok, I've stopped laughing now and and cleaned up the spilled drink. This is brilliant. You need to team up with a CDN and get them supply cats from the nearest available node.

"Unleash the Nyancat!" as they say...

Post reply on HN