@munir@fedi.munir.tokyo
@munir@fedi.munir.tokyo avatar

munir

@munir@fedi.munir.tokyo

Hello, My name is Munir and I do programming as a hobby.
Programming Languages I know: JS/TS, Python, Rust, Java
OSes I know/use: Windows, ArchLinux, Fedora, FreeBSD
Languages I speak: English (learning Japanese)
Birthday: 31-08 (DD-MM)
Nicknames: Munna, Munmun, ITN
#nobot #noindex
Testimonies:
"He doesn't like C. A sacrilege, I say!" - @vocelia

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

merchantHelios, to random

❄️

munir,
@munir@fedi.munir.tokyo avatar
18+ kaia, to random
@kaia@brotka.st avatar

I'm really into the psychology behind people losing big sums with "investing".

without knowing too much yet, I think most comes from people knowing not enough either but discovering really risky strategies like options, using lent money.

they are hunting for that first rush of winning shown as the first spike. but with each loss they must win back more so choose riskier bets. it's a downward spiral.

don't do it fedifrens!

munir,
@munir@fedi.munir.tokyo avatar

@icedquinn @kaia @lucy I find it kinda disingenuous that people will look at gambler investors who have just entered the market and assume that everyone else is the same :02_shrug:

munir, to random
@munir@fedi.munir.tokyo avatar

Morning fedi :RaphyXD:

munir,
@munir@fedi.munir.tokyo avatar

@MK2boogaloo hi kero, how are you doing? :02_heart:

munir,
@munir@fedi.munir.tokyo avatar

@MK2boogaloo kinda excited, moving out very soon, I'll finally get my own room

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

munir,
@munir@fedi.munir.tokyo avatar

@mint @feld @rees @crunklord420 @i @NEETzsche @p @LukeAlmighty @caekislove @NEETzsche @lain @jeffcliff @sun > Having a separate field for arbitrary data that could be extended with anything to frontend's discretion sounds like a good idea to me

its not mint, its a good security hole :02_learn:

munir,
@munir@fedi.munir.tokyo avatar

@mint @feld @rees @crunklord420 @i @NEETzsche @p @LukeAlmighty @caekislove @NEETzsche @lain @jeffcliff @sun yeah but what if a frontend tries to evaluate it the wrong way? im no cybersec god but it sounds like a gateway for an exploit, almost like eval() in python iykwim

munir, to random
@munir@fedi.munir.tokyo avatar

I just downloaded husky and why does pleroma have such big tits wtf

why, to random
@why@shitposter.world avatar

my cat after jumping off my lap: "you know what sounds good right now? jumping on a lap"

munir,
@munir@fedi.munir.tokyo avatar

@lain @why we will never know

kaia, to random
@kaia@brotka.st avatar

I have a dumb question: Ubuntu is 4.7GB ISO. what makes it so big? one gigabyte is 1,600 books... how can it be that much code?

munir,
@munir@fedi.munir.tokyo avatar

@kaia
1 art (icons, wps)
2 large fonts (shit like nerd fonts with lots of those thingies)
3 unneeded applications/software so that it's compatible with all form of computing hardware

theorytoe, to random
@theorytoe@ak.kyaruc.moe avatar

So l am at Walmart scanning and bagging my almost $300 worth of groceries while the employee that wants $15 an hour "monitors" and then this happened.

Her - why are you double bagging all of your groceries?

Me - excuse me?

Her - you are wasting our bags!

Me - if you don't like the way I'm bagging the groceries, feel free to come on over here and bag them yourself.

Her - that's not my job!

Me - okay, then I will bag my groceries how I please if that's all right with you.

Her - why are you using two bags?!

Me - because the bags are weak and I don't want the handles to break or the bottoms to rip out.

Her - well that's because you are putting too much stuff in the bag. If you took half of that stuff out and put it in a different bag then you wouldn't need to double bag.

*10 seconds of me just staring at her.

Me - so you want me to split these items in half and put half of them in a different bag so that I don't have to double bag.

Her - exactly.

Me - so I would still be using two bags to hold the same number of items.

Her - no because you wouldn't be double bagging.
*me pressing two fingers to my left eye in an attempt to make it stop twitching.

Me - okay so here I have a jug of milk and a bottle of juice double bagged. If I take the milk out and remove the double bagging and just put the milk in the single bag and the juice in that single bag I'm still using two bags for these two items.

Her- no because you are not double bagging them so it's not the same number of bags.

munir,
@munir@fedi.munir.tokyo avatar

@TimeSpent @theorytoe @burner @bleedingphoenix doesn't paper decompose pretty fast though? takes like a week I think

thor, to random
@thor@berserker.town avatar

This restaurant has WiFi, but sadly, no dog.

munir,
@munir@fedi.munir.tokyo avatar

@thor I wanna make a joke but I don't wanna get cancelled so Hi, how are you doing?

hor32, to random

I achived the dream of my own home server

munir,
@munir@fedi.munir.tokyo avatar

@kaia @hor32 shoo. we all start somewhere

kaia, to random
@kaia@brotka.st avatar

> In the US, the average egg in the store is 8 weeks old

excuse me???

munir,
@munir@fedi.munir.tokyo avatar

@kaia i buy mine from the butcher (i dont live in amer*ca)

kaia, to random
@kaia@brotka.st avatar

single-person bunker in Mannheim, Germany

munir,
@munir@fedi.munir.tokyo avatar

@kaia arent bunkers supposed to be underground????

kaia, to random
@kaia@brotka.st avatar

passport (japan)

munir,
@munir@fedi.munir.tokyo avatar

@kaia passport (India)

thor, to random
@thor@berserker.town avatar

I had a good paycheque. This sort of thing would have interested me more. Maybe I'd still have a job. In terms of money, there was every reason to continue working as a programmer. Quitting was completely irrational if you just look at the money. I don't understand people who work for money alone. I mean, if you're in danger of starving or being evicted, it's understandable. But that's a pretty low bar. No expectation of job satisfaction? Sounds sad to me.

munir,
@munir@fedi.munir.tokyo avatar

@thor i love working because i can constantly harass my boss 24/7 (he's cool with it) and also get paid really well

kaia, to random
@kaia@brotka.st avatar

throwback to when the big GPU did not fit in my old case

munir,
@munir@fedi.munir.tokyo avatar

@kaia pee ess uuu not written correctly, disliked.

RadixVerum, to random
@RadixVerum@nicecrew.digital avatar

If you were doxed by any corporate media or "extremism experts," or "disinformation experts," I want to hear about how that negatively impacted your life for a piece I'm working on about coordinated targeted harassment campaigns.

munir,
@munir@fedi.munir.tokyo avatar

@RadixVerum let me read once your work is done!!

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