r/thebutton • 9s • Apr 08 '15

[Plot] Evolution of the rate of button presses

Post image
196 Upvotes

61 comments sorted by

View all comments

Show parent comment

3

u/[deleted] Apr 08 '15

HA! Like I should believe /u/remez! You're probably one of the 10,000 accounts the "Button" designers set up in advance to push at strange times to drive people nuts!

(Thanks for your input... do you know what an "outer clock ring" blink means? Maybe that is the computer reset - though some think it is coincidence. A 41s click with a nearly exactly timed reset is pretty good evidence that you did indeed reset the clock.)

3

u/remez 41s Apr 08 '15

Your tinfoil hat rather suits you :)

I don't know, but I will attempt to find out. The change of color happens on client side, I should look into the code.

1

u/[deleted] Apr 09 '15

Not the change of color - the blink in the outer ring.

1

u/remez 41s Apr 09 '15

The blink is a change of color: light grey to dark grey and back.

1

u/[deleted] Apr 09 '15

OK - what does it signify - is there a way to track blinks?

1

u/remez 41s Apr 09 '15

I've checked the client side code that makes the button blink. There are two cases:

  1. when you click the button
  2. when the new countdown value is higher than the one you have currently

The first case is trivial. The second happens only when you receive an update from the server after the timer was reset. The updates should happen every second. But internet doesn't work perfectly, so it can be half a second or more than two seconds apart. That's why the timer sometimes resets to 58.xx

The button blinks only on timer reset, all resets come from the server. If there is any manipulation at all (which I doubt), it happens on the server.

Another interesting thing I've found: the code that handles button expiry. It doesn't restart the timer, and it disables the button.

Again, the server side can start sending increasing update times, and we will see the timer going backwards. But part of the client-side code, like the blinks, won't work well then. So I am quite sure this won't happen.

1

u/[deleted] Apr 09 '15

Thanks - something to think about.

1

u/[deleted] Apr 10 '15

I've been thinking about this...perhaps too much.

If I haven't pushed the button, ie. a grey flair, how would I ever see the color change? (outer ring flash)

Thanks for checking out the code - where do you recommend I can get a copy?

2

u/remez 41s Apr 10 '15

View source on the main page of this sub; find the javascript link (something.js), click on it - you'll get a javascript file. Search for "thebutton" - there's the chunk of code that deals with the button.

And you see the outer ring flash when somebody else resets the timer.

1

u/[deleted] Apr 10 '15

And you see the outer ring flash when somebody else resets the timer

But only sometimes - do you know why?

2

u/remez 41s Apr 10 '15

I see it every time there is an update from the server - which should happen every second, but because of connection lags and server busyness they happen at irregular intervals.

→ More replies