@lain@lain.com
@lain@lain.com avatar

lain

@lain@lain.com

So schön, schön war die zeit

This profile is from a federated server and may be incomplete. Browse more on the original instance.

lain, to random
@lain@lain.com avatar

let me be brutally honest kills you

cell, to random
@cell@pl.ebin.zone avatar

what does it mean to be „typisch deutsch“

lain,
@lain@lain.com avatar

@cell calling something typisch deutsch is typisch deutsch

lain, to random
@lain@lain.com avatar

Endlich wieder richtige Führungskräfte in der deutschen Politik

NEETzsche, to random
@NEETzsche@iddqd.social avatar

So, I wrote the first thing for Balormo's backend tonight. I wanted to do dice rolls, or really RNG (random number generation) broadly, and in this case I wrote the simplest form of it in the TTRPG space: rolling XdY, take the sum.

I did not write an FE for this yet. That's because I want to discuss the way I designed it. Now would be the time to refactor things or change around how it's structured. This is backend proof of concept phase.

For the time being, you can use curl to try it out once you have an account on dev.iddqd.social:

curl -X POST "https://dev.iddqd.social/api/v1/statuses" 
    -H "Authorization: Bearer REDACTED" 
    -H "Content-Type: multipart/form-data" 
    -F "status=Rolling CON for AD&D 2e style" 
    -F "source=Pleroma FE" 
    -F "visibility=public" 
    -F "content_type=text/plain" 
    -F "balormo[rng][system]=dice_sum" 
    -F "balormo[rng][denomination]=6" 
    -F "balormo[rng][quantity]=3"

You can find my commit for it here: https://gitgud.io/thestranjer/balormo/-/commit/483800ea9c2e5f913ecc5f1523625c9ad535917d

Unfortunately, Soapbox and Pleroma seem to drop the balormo object in federation. However, quite fortunately, it delivers the Object URL, which does retain that information:

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    "https://dev.iddqd.social/schemas/litepub-0.1.jsonld",
    {"@language": "und"}
  ],
  "actor": "https://dev.iddqd.social/users/NEETzsche",
  "attachment": [],
  "attributedTo": "https://dev.iddqd.social/users/NEETzsche",
  "balormo": {
    "rng": {
      "denomination": 6,
      "quantity": 3,
      "results": [1,1,6],
      "sum": 8,
      "system": "dice_sum"
    }
  },
  "cc": ["https://dev.iddqd.social/users/NEETzsche/followers"],
  "content": "Rolling CON for AD&amp;D 2e style<br/><i>Rolling 3d6, taking the sum.</i><br/><b>Results:</b> 1, 1, 6<br/><b>Sum:</b> 8",
  "context": "https://dev.iddqd.social/contexts/c2ceeca0-5369-41b9-8be7-2d0a647a7907",
  "conversation": "https://dev.iddqd.social/contexts/c2ceeca0-5369-41b9-8be7-2d0a647a7907",
  "id": "https://dev.iddqd.social/objects/48f97fc0-5a63-406f-8822-3ea4493713d9",
  "published": "2024-05-10T09:13:21.883623Z",
  "sensitive": null,
  "source": {
    "content": "Rolling CON for AD&D 2e style",
    "mediaType": "text/plain"
  },
  "summary": "",
  "tag": [],"to": ["https://www.w3.org/ns/activitystreams#Public"],
  "type": "Note"
}

The way I wrote this is you just add more fields to the /api/v1/statuses endpoint and give it extra fields. In this case, the system field can be changed and the pattern matching will pick up on the right one and then generate dice rolls etc in the right fashion. For example, I might write a Shadowrun dice roller that rolls d6s given only a pool value and re-rolls 6s until you don't get anymore.

The reason to bake this into the protocol is so that you can manage the data better and change the way it's displayed in the future. The appended roll text to the status will be put in a <div> with a class on it that's invisible for the FE.

Thoughts on how to improve this before I move on to the FE?

@sun @p @jeffcliff @rees @crunklord420 @caekislove @mint @LukeAlmighty @lain

lain,
@lain@lain.com avatar

@NEETzsche @rees @crunklord420 @NEETzsche @p @LukeAlmighty @caekislove @mint @jeffcliff @sun i'm out of te loop on this one, what's this supposed to be for? where does the name come from?

lain, to random
@lain@lain.com avatar

one can fascinate a cell with a piece of cheese

kaia, to random
@kaia@brotka.st avatar

need $1m quick?

lain,
@lain@lain.com avatar

@kaia be careful, you might not get any money but become prime minister of canada instead

kaia, to random
@kaia@brotka.st avatar

so annoying :angry_cirno:

lain,
@lain@lain.com avatar

@kaia ... there are shops that close at 5?

deadsuperhero, to mastodon
@deadsuperhero@social.wedistribute.org avatar

As a fun little experiment, @damon and I worked together to get a instance up and running that stores media on ! It was an interesting learning experience.

I don’t think we’re ready to announce anything yet, as this was in service of another project in development. But, there’s an increasing number of ways to host content on an IPFS node service, and tie it back to platforms like Mastodon using an S3-compatible API for Object Storage and some proxying.

This is all pretty rudimentary, but the big-brain realization is that a more robust version could be done by pairing Minio to s3x if we wanted to self-host an IPFS node with those specific features.

lain,
@lain@lain.com avatar

@deadsuperhero @damon i would love to see this

lain, to random
@lain@lain.com avatar
lain, to random
@lain@lain.com avatar
lain, to random
@lain@lain.com avatar

actual german bedtime stories

image/png

lain,
@lain@lain.com avatar
lain,
@lain@lain.com avatar

@wishgranter14 no, but it's close

lain, to random
@lain@lain.com avatar

I am human, still.

mono, to random

german bedtime story

video/mp4

lain,
@lain@lain.com avatar

@mono classic

lain, to random
@lain@lain.com avatar

first science... now xbox... what else will follow?

image/png

lain,
@lain@lain.com avatar

@6EQUJ5 her videos are the safe-horny equivalent of anti-establishment science these days

lain,
@lain@lain.com avatar

@thendrix @6EQUJ5 no, we have specialists for that

video/mp4

oshy, to random
@oshy@ak.kawen.space avatar

@lain What do you think of the ROG Ally X!!

lain,
@lain@lain.com avatar

@oshy making it easier to replace the ssd is a good move, although i just bought one of those l-brackets and can use normal length ssds in the old ally

lain, to random
@lain@lain.com avatar
lain, to random
@lain@lain.com avatar

what were they thinking

lain,
@lain@lain.com avatar

@Erpel i wonder if that worked out

kaia, to random
@kaia@brotka.st avatar

two guys on fedi became Freemasons thanks to me and I won't stop until there's a third (for reasons) :hehe:

lain,
@lain@lain.com avatar

@kaia @grillchen what's the point then

lain,
@lain@lain.com avatar

@kaia @grillchen @antmetsa also, doing spiritual / magic stuff is cool

lain,
@lain@lain.com avatar

@grillchen @kaia @antmetsa
> Grandmas were the best hunters of the village.

lain,
@lain@lain.com avatar

@grillchen @kaia @antmetsa i can totally imagine that you can totally imagine that

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • everett
  • magazineikmin
  • hgfsjryuu7
  • vwfavf
  • mdbf
  • ethstaker
  • Youngstown
  • slotface
  • ngwrru68w68
  • rosin
  • PowerRangers
  • kavyap
  • DreamBathrooms
  • normalnudes
  • khanakhh
  • thenastyranch
  • osvaldo12
  • tacticalgear
  • Durango
  • cubers
  • InstantRegret
  • GTA5RPClips
  • tester
  • cisconetworking
  • modclub
  • Leos
  • provamag3
  • All magazines