July 14, 2024 2:06 PM   Subscribe

 
Check, please!
posted by GenjiandProust at 2:12 PM on July 14 [3 favorites]


I'll check it out.
posted by box at 2:14 PM on July 14 [2 favorites]


Lol this is very funny if you enjoyed the million checkboxes. The source code is refreshingly simple, why there's no frameworks at all! This is the core of the code.
g.socket = new WebSocket(...);
g.socket.addEventListener('message', (event) => {
	const parts = event.data.split(',');
	g.checkbox.checked = (parts[0] === '1');
	g.clientCount.innerText = parts[1];
	g.clientCountPlural.innerText = (parts[1] === '1' ? '' : 's');
});

g.checkbox.addEventListener('change', (event) => {
	if (g.socket) {
		g.socket.send(g.checkbox.checked ? '1' : '0');
	}
});
posted by Nelson at 2:23 PM on July 14 [3 favorites]


Back when I was in a band I had a sound engineer that was from Poland.

I had a Czech one too.
posted by lalochezia at 2:25 PM on July 14 [15 favorites]


I'll check it out.

Checkbox — check, box.
posted by GenjiandProust at 2:29 PM on July 14 [1 favorite]



posted by HearHere at 2:32 PM on July 14 [1 favorite]


Aww, there’s too many other people using it for me to successfully blink out a rude message in Morse code.
posted by aubilenon at 2:36 PM on July 14 [5 favorites]


I wrote the obvious code to try to keep the checkbox clear. Evidence of my dastardliness here. Not sure how low I can force it without being unreasonably aggressive.

I always think bots are the most interesting things in Internet toys like this. I'm fascinated by how /r/place over the years has been so shaped by algorithmic action.
posted by Nelson at 2:42 PM on July 14 [2 favorites]


Back when I was in a band I had a sound engineer that was from Poland.
I had a Czech one too.


I saw a man carrying a long stick. "Are you a pole vaulter?" I asked. "No, I'm German" he replied, "How did you know my name?"
posted by pipeski at 3:45 PM on July 14 [12 favorites]


This post checks all the boxes.
posted by Greg_Ace at 4:16 PM on July 14 [3 favorites]


Nothing to say here, just thought I'd check in.
posted by nfalkner at 4:30 PM on July 14 [1 favorite]


Unfortunately that site is all checks, no balances.
posted by Greg_Ace at 5:00 PM on July 14 [1 favorite]


also I don't look good in checks
posted by Greg_Ace at 5:00 PM on July 14 [1 favorite]


This thread is like a bowl of Chex Mix.

sorry i had to contribute and that was my best pitch.
posted by not_on_display at 5:43 PM on July 14 [3 favorites]




Someone asked me what I did with my dumb little bot to keep the checks clear. The first try I just had code to send a clear command every time I was told somebody checked. That works, but there's a little delay. The second time I just sent a clear command every 10 milliseconds. That pushed it down to about 15% before I turned it off.
posted by Nelson at 6:32 PM on July 14 [1 favorite]


This is cool, but warning for flashing image! Because there is one checkbox and it’s being checked/unchecked at great speed, it definitely activated thst flashing image trigger in my brain.
posted by epj at 6:58 PM on July 14 [1 favorite]


I'm pleased to see there seem to be similar numbers of people working to keep the box checked as unchecked. Maybe there are some checks in the system after all.
posted by dg at 7:15 PM on July 14 [2 favorites]


There are currently thirteen of us, all staring at a blank white box. Peace descends upon the collective.
posted by merriment at 7:30 PM on July 14 [2 favorites]


thank you for the entertainment, my uncheck squad homies. alas, i must go now, i leave it to you to defend our uncheckedness!
posted by donuy at 7:32 PM on July 14 [1 favorite]


This thread is like a bowl of Chex Mix.

With plenty of nuts in it!
posted by Greg_Ace at 7:41 PM on July 14 [1 favorite]


is it better to keep it checked or unchecked?
posted by crime online at 9:54 PM on July 14 [1 favorite]


I unchecked the box but feel guilt for some reason
posted by crime online at 9:55 PM on July 14 [1 favorite]


probs about how many people you've just ticked off
posted by flabdablet at 10:00 PM on July 14 [2 favorites]


You should only check the box if that section applies to you.
posted by dg at 10:02 PM on July 14 [4 favorites]


« Older Follow the Crypto   |   savoir faire Newer »


You are not currently logged in. Log in or create a new account to post comments.