Replies

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

sun, to random
@sun@shitposter.world avatar

Got my new keyboard, it's nice. the keys are silky smooth and make a satisfying clunk noise when they go down.

Yes I'm going to clean my mouse

i,
@i@declin.eu avatar

@sun @kaia you could add a serial connection and make it blink on desktop notifications

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

i,
@i@declin.eu avatar

@munir @feld @rees @crunklord420 @NEETzsche @p @LukeAlmighty @caekislove @NEETzsche @lain @mint @jeffcliff @sun we've already had XSS multiple times in pleroma-fe from fields being scrubbed in some versions and not in others, making people ship their own sanitizers

tedu, to random

The term "torment nexus" is pretty rapidly being enshittified into meaning anything that's mildly annoying.

Went to the grocery store, had the torment nexus beep at me during checkout because my lettuce shifted after I placed it on the scale.

i,
@i@declin.eu avatar

@lain @tedu they are unaliving speech right before our eyes

sun, to random
@sun@shitposter.world avatar

Where's Pernia

i,
@i@declin.eu avatar

@sun someone killed federation for 4 days diddling the admin-fe

alex, to random
@alex@gleasonator.com avatar

Google Drive Relay 👀

image/png

i,
@i@declin.eu avatar

@alex at least have the decency to use sheets, though the 400,000 publicly shared file limit should last someone a while

lain, to random
@lain@lain.com avatar

> tfw i'm getting joe biden posts via threads now

that's it i'm anprim now

i,
@i@declin.eu avatar

@lain ostatus never would have had this problem

anze3db, to random
@anze3db@fosstodon.org avatar

I feel like I need an ultra wide monitor to work with tailwind efficiently.

i,
@i@declin.eu avatar

@anze3db you can always rotate your monitor for maximal line length

coolboymew, to random
@coolboymew@shitposter.world avatar

I legit cannot sleep because it's driving me insane

I've been looking at some software at work and the boss suddenly drops a links with the cves (vulnerabilities) it had and.... there was nothing abnormal. A few a year, most of them didn't even affect the edition we will go going for and they were taken care of pretty much before they even appeared on said cve site

I'm feeling like there's a massive misunderstanding about vulnerabilities, how this all works and that the sole presence of them means that it's "bad"

Is this normal for a programmer to not be aware of this?

i,
@i@declin.eu avatar

@coolboymew kind of, CVE's used to be a big deal, now it's academic publishing wankery, so much so that now Linux recently it's own numbering authority, so it can pepper every single bug with a cve in an attempt to make them meaningless over time

lebronjames75, to random

ate three meals with onion today
Am in bed now

Why am i so stupid

i,
@i@declin.eu avatar

@lebronjames75 not enough onions

hj, to random
@hj@shigusegubu.club avatar

thinking about using .tar files for Themes 3 theme files

i,
@i@declin.eu avatar

@hj @lanodan pleroma is officially getting support for mp3's in json

18+ kaia, to random
@kaia@brotka.st avatar

Please contribute to Pleroma+Akkoma development :l_smile:

SUPPORT PLEROMA>
https://en.liberapay.com/Pleroma-euro/

SUPPORT AKKOMA>
https://en.liberapay.com/FloatingGhost/

i,
@i@declin.eu avatar

@kaia i wonder if anyone will ever take anything from https://opencollective.com/pleroma-euro 's saved up budget

lea, to random

i am now convinced the entirety of NPM is just an elaborate joke

is-even depends on is-odd

is-uneven depends on is-even

​:neocat_sob:​

i,
@i@declin.eu avatar

@lea the same guy has a package for every single ansi escape code, https://www.npmjs.com/package/is-jonschlinkert

sun, to random
@sun@shitposter.world avatar

I don't even try to understand ffmpeg, I just copy commands from stackexchange. I can't even get myself into the ffmpeg command mindset.

i,
@i@declin.eu avatar

@sun you can also pay someone else to do it for you https://ffmpeg.guide/

sim, to random
@sim@shitposter.world avatar

@lain Do you know who decides on the default pleroma settings for new instances? Would they be open to hearing my suggestion relating to mod settings?

i,
@i@declin.eu avatar

@sim @lain what do you propose, i can help make the issue/merge request to have it approved

tedu, to fediverse

Need to do some research, but anyone know off hand which implementations support shared inbox with a different hostname? (Or which go out of their way to reject that?)

I'm thinking about vhosting, so it would be possible to switch providers, but obviously if you're hosting 1000 fedi domains on a single server, you'd prefer one shared inbox to 1000.

i,
@i@declin.eu avatar

@tedu pretty sure only takahe really bothered with multiple domains, with webfinger domains that lead to centralized inbox domains (https://docs.jointakahe.org/en/latest/domains/#example)

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