Live data from Hacker News

One Million Checkboxes

onemillioncheckboxes.com

151–160 of 320 posts

Re: One Million Checkboxes

#151

// ==UserScript== // @name Check All Unchecked Checkboxes // @namespace http://tampermonkey.net/ // @version 1.0 // @description Check all unchecked checkboxes on the page // @author MechanicalFish // @match https://onemillioncheckboxes.com/ * // @grant none // ==/UserScript== (function() { 'use strict'; function checkAllCheckboxes() { var checkboxes = document.querySelectorAll('input[type="checkbox"]'); checkboxes.f…

This ain't gonna work for 1,000,000 checkboxes. You could try using requestAnimationFrame or querying only non-checked checkboxes querySelectorAll('input[type="checkbox"]:not(:checked)') or not calling checkAllCheckboxes for all mutations. Edit: or just call querySelector('input[type="checkbox"]:not(:checked)') and do them one by one in some kinda while(true) loop

[deleted]

Re: One Million Checkboxes

#152
post #59

Earlier quoted context omitted.

Would be fun to read a writeup of how you implemented it.

it's a tiny flask server, a bitset stored in redis, updates broadcast (too frequently! but i don't want to change it now) via websockets, and react-window to only render the checkboxes that are in view. I'll do a writeup when i finish putting out fires!

But how did you do this without (ab)using a blockchain? You'll never get get funding like this...

Re: One Million Checkboxes

#153
post #126
post #8

(developer here) this is....more popular than i expected. the server's gonna be having some problems for a while

You announced it on the FediVerse, where it has already been boosted almost 700 times as I write this 4 hours later, and it spread to Reddit within 2 hours of that, as you know because you replied to the Reddit post. There is definitely going to be an initial spike of activity, given those. (-:

Out of curiosity, what’s the Reddit thread?

Re: One Million Checkboxes

#154
post #8

(developer here) this is....more popular than i expected. the server's gonna be having some problems for a while

Is it ok if I try to write a script to uncheck all the boxes? I don’t want to spam your server and ruin it for everyone if there’s no rate limiting.

(I wince mentioning this publicly; still have flashback trauma from when some HNer wrote a script to download as much data as possible from our Firebase and got a $1k bill overnight.)

Re: One Million Checkboxes

#156

// ==UserScript== // @name Check All Unchecked Checkboxes // @namespace http://tampermonkey.net/ // @version 1.0 // @description Check all unchecked checkboxes on the page // @author MechanicalFish // @match https://onemillioncheckboxes.com/ * // @grant none // ==/UserScript== (function() { 'use strict'; function checkAllCheckboxes() { var checkboxes = document.querySelectorAll('input[type="checkbox"]'); checkboxes.f…

This ain't gonna work for 1,000,000 checkboxes. You could try using requestAnimationFrame or querying only non-checked checkboxes querySelectorAll('input[type="checkbox"]:not(:checked)') or not calling checkAllCheckboxes for all mutations. Edit: or just call querySelector('input[type="checkbox"]:not(:checked)') and do them one by one in some kinda while(true) loop

Just write data to the underlying API. No need to interact with the browser UI at all.

Re: One Million Checkboxes

#157
post #8

(developer here) this is....more popular than i expected. the server's gonna be having some problems for a while

Is it ok if I try to write a script to uncheck all the boxes? I don’t want to spam your server and ruin it for everyone if there’s no rate limiting. (I wince mentioning this publicly; still have flashback trauma from when some HNer wrote a script to download as much data as possible from our Firebase and got a $1k bill overnight.)

Stop that script, I'm watching you ruin the board!

Re: One Million Checkboxes

#158
Great stuff. Little jealous, because I'd love to work on quickly scaling such experiment seeing how many people are playing with it. Sad, but having my head too burned out by corpo bullshit and my creativity level is in the basement :(

Are there any companies hiring where you can still work and not waste 90% of time on meetings and docs?

Probably too many clicks and my mind is just spitting out here instead of just dying in pain in silence :D

Re: One Million Checkboxes

#159

Earlier quoted context omitted.

Is it ok if I try to write a script to uncheck all the boxes? I don’t want to spam your server and ruin it for everyone if there’s no rate limiting. (I wince mentioning this publicly; still have flashback trauma from when some HNer wrote a script to download as much data as possible from our Firebase and got a $1k bill overnight.)

Stop that script, I'm watching you ruin the board!

I haven’t opened my laptop yet. But it’s inevitable someone will write one.

Re: One Million Checkboxes

#160

Great stuff. Little jealous, because I'd love to work on quickly scaling such experiment seeing how many people are playing with it. Sad, but having my head too burned out by corpo bullshit and my creativity level is in the basement :( Are there any companies hiring where you can still work and not waste 90% of time on meetings and docs? Probably too many clicks and my mind is just spitting out here instead of just d…

Early stage startups, or starting your own company from scratch. That seems to be the case these days. I’m in the same boat, but side projects help cope!
Post reply on HN