News for hackers. Stuff that matters.
Re:UK Parliament petitions site crashes under traffic for pe... by europsucks on Thursday March 21, 2019 @06:27AM (#19450658)
Wouldn't it be meaningless, anyway, unless you compare it to the number of people who are opposed to the petition?
Re:UK Parliament petitions site crashes under traffic for pe... by franky47 on Thursday March 21, 2019 @06:38AM (#19450734)
I made a progress bar against the NoDeal counter-petition: https://brexit-petitions-count.now.sh

(Pending API availability)

Re:UK Parliament petitions site crashes under traffic for pe... by pmuk on Thursday March 21, 2019 @07:03AM (#19450897)
That's actually really cool. Who needs parliament to vote for a second referendum? We can run our own mini referendum using the two petitions :)

Brexit petitions in realtime:

710,563 signed for remain - 65.81% #RevokeArticle50 371,020 signed for no deal - 34.17% #NoDeal

https://twitter.com/paulmaunders/status/1108684812414533632

Re:UK Parliament petitions site crashes under traffic for pe... by lordlimecat on Thursday March 21, 2019 @08:12AM (#19451382)
That's a really terrible way to run a statistical study.
Re:UK Parliament petitions site crashes under traffic for pe... by europsucks on Thursday March 21, 2019 @08:54AM (#19451713)
It seems the NoDeal-petition is much older. It ends in April, and the Remain-petition ends in August. According to the web site, petitions run for 6 months. So it certainly isn't a counter-petition.

They were started with different context, and the remainer petition might only have traction atm because it is new.

Anyway - yeah, let's just decide everything with online petitions. Totally legit.

Re:UK Parliament petitions site crashes under traffic for pe... by pmuk on Thursday March 21, 2019 @07:06AM (#19450919)
Does your site cache the numbers? It could be really useful to take some of the load off the main petition's site, as people keep going there and refreshing the page which is overloading it.
Re:UK Parliament petitions site crashes under traffic for pe... by franky47 on Thursday March 21, 2019 @07:23AM (#19451014)
It refreshes every 5 seconds, and uses the data from the petition JSON API (just add .json to a petition URL).
Re:UK Parliament petitions site crashes under traffic for pe... by pmuk on Thursday March 21, 2019 @07:37AM (#19451107)
Do you store the results locally on your server so that it isn't making multiple requests for each visitor?
Re:UK Parliament petitions site crashes under traffic for pe... by pmuk on Thursday March 21, 2019 @07:19AM (#19450994)
I've just been sharing your site URL around on Twitter quite a bit, but it seems to have broken it! If it doesn't have caching already, would be good to add it!
Re:UK Parliament petitions site crashes under traffic for pe... by franky47 on Thursday March 21, 2019 @07:22AM (#19451007)
It relies on the JSON enpoints of the petition API to be up, and with all the load they are unstable at the moment.
Re:UK Parliament petitions site crashes under traffic for pe... by DyslexicAtheist on Thursday March 21, 2019 @07:03AM (#19450898)
nice! (minor nitpick: the numbers weren't visible in firefox and had to launch google-chrome to actually view the page).
Re:UK Parliament petitions site crashes under traffic for pe... by nutjob2 on Thursday March 21, 2019 @07:05AM (#19450911)
Not at all, the point is to have your voice heard.