mastouille.fr est l'un des nombreux serveurs Mastodon indépendants que vous pouvez utiliser pour participer au fédiverse.
Mastouille est une instance Mastodon durable, ouverte, et hébergée en France.

Administré par :

Statistiques du serveur :

645
comptes actifs

#theworkshop

2 messages2 participants0 message aujourd’hui

I wouldn't call myself a workaholic, but today I ran into such an interesting problem that I *had* to stay up to figure it out. :neofox_laugh_nervous:
The gist of it is that we need to generate *short* IDs for error messages in a YAML so we can add messages in parallel without having lots of conflicting PRs.
And I think I figured it out! You can feed the number of pending PRs (assume that each adds only one ID) into the birthday problem formula and choose a collision probability that you're comfortable with, then solve for the number of "days". There is probably a nice equational way to do it, but I did it by just brute forcing it in Python.
The trick then is to also consider gaps among the already assigned IDs.
With a 1% collision probability and 10 PRs, a range of about 2500 is enough. And the ID size grows slowly enough that even after allocating 2000 new IDs randomly, they still stay below 5 digits. And since the rate of additions should gradually slow down, such a slow increase is even less of a worry.
But, I might be wrong about this whole thing, after all, I did completely fuck up the combinatorics calculations on my first attempt, so #mathematics folx, if anyone wants to poke holes in my model, please feel free to do so in the replies. :neofox_uwu:

#theWorkshop #theWhiteboard (<- can we use this tag for like, math-y logics-y stuff?)

Around the end of last year, I started playing around with some ideas for building a text-based, low-code life-logging/personal archive platform. In rare form, I stuck with it and am now nearing a usable prototype. Exciting! I'll share and document it soon. ("Soon" on mom-coding-in-her-spare-time time, so maybe by early next year.) #theWorkshop

Restoring our 2017 project "Vicious Circles" to run on an Intel NUC. (Despite the "next" in the acronym what I really love about these things is the ability to run a really wide range of old art--native, browser, VM all well supported.) #theWorkshop

A répondu dans un fil de discussion

I finished soldering together all the custom cables I needed for our live rig, things got much easier after 2-3 of them and I'm glad to report that they were all working! You can also see the beginning of some cable organization in there.

Suite du fil

The next step in building our live rig was making the case that would hold the rack. I decided to go with a road case style construction with 1/4" ply and aluminum extrusions for weight and sturdiness reasons. This was definitely a measure twice cut once kind of situation in order to get everything fitting nicely but it's definitely doable with hand tools and a drill :)