SkinList

joined 2 years ago
[–] SkinList@lemmy.world 2 points 1 month ago* (last edited 1 month ago) (1 children)

Basically solved! Code is as follows. This requires dataview and numerals add-ons for obsidian. I think there is some weird behaviour with the floor function that should be at the start of the g(x) function but i would guess that it is because it isnt a function that numerals supports perhaps? I haven't looked at this yet.

--- numerals: all

strsco: 10

consco: 16

dexsco: 16

intsco: 10

wissco: 12

chasco: 8

---

```math

# define ability modifier calculation function

g(x) = (x - 10)/2

# ability scores are specified in the properties

# calculate the modifiers using the ability modifier function g(x)

@[strmod::0] = g(strsco)

@[conmod::3] = g(consco)

@[dexmod::3] = g(dexsco)

@[intmod::0] = g(intsco)

@[wismod::1] = g(wissco)

@[chamod::-1] = g(chasco)

# calculate AC

@[ac::16] = 10 + conmod + dexmod

```

AC is `=this.ac`

References:

[–] SkinList@lemmy.world 2 points 1 month ago

I have made some progress! I found this video which shows off the Numerals plugin. This plugin allows variables to be functions of other variables as shown in the video. Reading through the plugin documentation it also looks like there is a way to make these variables into page properties using some kind of @[variablename] notation but I haven't been able to get this working yet...

 

I am trying to put together a D&D character sheet in obsidian using the dataview plugin. It is going well but I have run into the fact some stats which I want to display (e.g. AC) are a function of Ability Modifiers (e.g. Con of +3) which themselves are a function of the character's Ability Scores (e.g. Con of 16).

As far as I can see, dataview lets you define variables (properties) in the front matter of a page and then reference them on different pages, but I cant seem to find a way to define one of these variable as a function of other variables.

I have tried this kind of thing with no success:

---

con: 16

conmod: floor((number(this.con) - 10)/2)

ac: 10 + this.conmod

---

`=ac`

This video was super helpful but only got me so far... Any advice? Maybe this is just a limitation of dataview.

[–] SkinList@lemmy.world 4 points 1 month ago (1 children)

I believe that jellyfin has been transcoding using jellyfin-ffmpeg. I do have logs labelled "FFmpeg.Transcode-..." which seem to look fine. I have just turned on hardware acceleration though. Is that what you meant by "hardware transcoding"?

Ill check to see if the buffering is improved and will let you know how it goes! Thanks for the advice!

 

I currently have a jellyfin setup running on my pc which I access when away from home by tailscaling into my home network. This works great for my partner and I while we are away from home.

I have given my siblings access to my jellyfin setup as well, and I've added them to the tailscale network too. They live in a different country though and have had some latency issues (media buffering constantly) making it kinda suck to use.

I would love to be able to improve this performance but I dont really know where to start. Would this be a bandwidth issue somewhere between my pc, tailscale, my router, their router, and their device? Would this be caused by some setting in my jellyfin setup or in the jellyfin client on their device? I would really appreciate any advice on where I should start to troubleshoot to improve this performance.

[–] SkinList@lemmy.world 3 points 3 months ago (1 children)

Did you have a source for this? This sounds very interesting!

 

How are the roles of tipping and personal lines of credit similar and different in the modern day compared to their roles in the south in the US during the time of slavery?

I recently went on a tour of a plantation in the south that educated attendees about the history of slavery which was pretty eye opening. A couple of the interesting comments made were that:

  • Some skilled slaves (e.g. blacksmiths) would sometimes be "loaned" out to other plantations where they could earn tips.
  • On one particular plantation, after slavery was abolished and up to ~1960 there was an on-site store where workers would buy goods using credit from future wages. This was a means by which these "free" workers were prevented from leaving as, although they were paid, they were constantly taking on debt from their living expenses.

Both of these phenomena of tipping and individuals purchasing goods using credit are pretty foreign concepts to me as someone who grew up outside of the US. While these conditions were probably improvements to the baseline conditions of slavery, they also weren't as kind as they couldve been, and seem to still be systems that were intended to keep these people subjugated. These are also systems that continue to be used to take advantage of some of the most disadvantaged people in the US today.