mastodon.ar.al is one of the many independent Mastodon servers you can use to participate in the fediverse.
This is my personal fediverse server.

Administered by:

Server stats:

1
active users

So given it’s Saturday night, I thought I’d have a little fun with Kitten and make a tiny collaborative drawing toy.

You have a 20×20 grid and only black and white to draw with and everyone shares the same canvas.

draw-together.small-web.org

Have fun + looking forward to seeing what we all, umm, draw together.

:kitten:💕

PS. It took about 60 lines of code.

View source: codeberg.org/aral/draw-togethe

Aral Balkan

@Adrian @aral I probably did.

I might have played with the Websocket a bit too much

@paillp @Adrian Haha, I’ll take a look in a second :)

@paillp @Adrian Haha, well it took almost 12 hours ;)

@paillp @Adrian Added data type and bounds checking on the row and column index values. That should avoid that issue.

If you find anything else, please do let me know (or file an issue at codeberg.org/aral/draw-togethe if you get a chance). Appreciate it :)

Codeberg.orgdraw-togetherA very simple Kitten toy in ~60 lines of code for drawing together on a 20×20 grid.

@aral @Adrian Maybe the HEADERS dic should be validated too, the server crashed when inserting CRLF to split underlying request.

@paillp @Adrian Ah, interesting, that looks like it’s an htmx issue. I’ll raise it over there, thank you.

@paillp @Adrian Hmm, or might still be on my end, will check there first :)

@paillp @Adrian So I found a huge old hole in Kitten where it was just assuming that the data sent over was valid JSON and not handling the error if it wasn’t.

Fixed that, deployed a new version Kitten and a new version of the site.

Are you getting the same issue now? :)

(And thank you, by the way, really appreciate you poking it.)

@aral @Adrian Seems to be fixed from what i can see right now.

@paillp @Adrian Thank you :) Very much appreciate your help.

:kitten:💕