Alternative to Dictionary serialization

I am working on a set of ScriptableObjects that represent base stats for characters in my game. Think Strength, Speed, Intellect, etc. A whole laundry list of em (about 20 stats). I’d like to later be able to reference these specific stats via an enum. Therefore, the easiest way to store them in the object seemed to initially be a Dictionary<StatType, int>. These then get linked to sliders in a custom editor (which works fine).

However, Unity appears to have no idea how to serialize a Dictionary, so between sessions all my finely tuned values get removed.

I need some sort of workaround for this. Either I need another data structure Unity will serialize (but see below), OR I need to find a way to force Unity to serialize my data some other way.

Requirements for an alternate data structure: Integer values should be able to be read and written through reference to the enum value alone. It should be possible to check whether an enum key has been added to the structure or not. It should not allow duplicate enum keys, but duplicate values are fine. Obviously, Unity should be able to serialize it.

Alternative CSS tags to “display:none;” for SEO [duplicate]

I have always made my pages "by hand". just coding them, a bit of javascript here and there.

And because I like to experiment with designs, i use a lot of popup divs, which means i use "display:none" tags for those divs.

I’ve been told that this could be hurting my searchability. The pages have been online for a long time. does anyone have some advice on this?

Someone has been mentioned that I will have difficulty with SEO and that I need to use a CMS like wordpress.

what do you think my next move should be?

Is there something in my CSS I can change, or do I go the CMS route?

thanks!

Alternative approaches to Iframes for content distribution via json api

I am currently working on a project that uses iframes to distribute content to customers. Going ahead we would like to switch to a json based rest api to deliver the content. Api access would need a token to which specific content could be exposed and traffic limits set.

To replace the frontend appearance of the iframe I am thinking about writing a reusable bundle using a lightweight react alternative like preactjs. But this would mean exposing the raw api and the specific token to the end user. Simply routing user requests via the customers server would conceal the token but still allow raw api access to the enduser.

What would be a good architecture for such a use case?

Are there server side rendered solutions that can easily be implemented across a variety of backend frameworks, without rewriting everything for each customer that is?

Thanks for any advice

Is there an alternative word to be used in place of Humanoid?

I find the term Humanoid to be (obviously) human centric, and am looking for a more generic term to use in place of it to define all intelligent creatures that exist in standard society of these fantasy worlds. A few examples of what I’m looking for:

  • A small hamlet town consisting mostly of gnomes, halflings, dwarves, and a small spattering of humans likely wouldn’t refer to themselves as "humanoids," so what would they call themselves?
  • A human player character is new in town and walks up to an elven resident, the elf would find it quite rude to be asked "What humanoids make up the general population here?" I suppose ‘races’ or ‘species’ might work here, but I think those would also be taken offensively.
  • A Beholder looks down on the intelligent residents of the realm and laughs at "those pitiful humanoids!" What if the beholder had never met a human, only the more rare races; where did it get the term ‘humanoid’ then?

My campaign is DND 5e set in Eberron, but any term from any setting or TTRPG or otherwise would work.

How to encrypt /home directories in Ubuntu 20.04 with an alternative to eCryptfs?

I have a specific use case in which there are multiple users and I only need the Home folder for each encrypted using something like eCryptfs – https://www.howtogeek.com/116032/how-to-encrypt-your-home-folder-after-installing-ubuntu/ – but it is buggy and under-maintained and many have reported does not work with Ubuntu 18.04+ and even sometimes stuck in a login loop. Any alternative to eCryptfs? Thanks

Bloom filter alternative supporting deletion without false negatives

There are several alternatives to bloom filters that support deletion from the set, for example Cuckoo filters or Counting Bloom filters.

However, deleting an element from these data structures assumes that the element really is in the set. Deleting an element that is actually not in the set might introduce false negatives.

Is there a data structure that avoids this problem, trading it off against something else?

Can a Wizard select an alternative capstone?

More specifically, I’m building a Wizard and I’d like him to have the Perfect Body, Flawless Mind capstone (+8 Int).

I’m planning for him to be a diviner, specialized: Foresight, with the Pact Wizard (HH) archetype (that, as far I can tell, does not replace a wizard’s capstone, since a wizard does not have one to begin with), and wonder if it’d still be legal to get the alternative capstone.

Does the natural 20 from Forewarned (Divination school) count as a capstone?

At 20th level, anytime you roll initiative, assume the roll resulted in a natural 20.

If so, am I able to select the alternative capstone in its place (since it’s not an archetype)?

If not, could I do it as an universalist?

Relevant reference:

Alternative Capstone Ability

When a character reaches the 20th level of a class, she gains a powerful class feature or ability, sometimes referred to as a capstone. When a character reaches 20th level in this class, the following new ability can be selected instead of the standard 20th level class ability which would normally be gained. In some cases, a capstone specifies what ability it replaces. A character can’t select an alternative capstone if she has previously traded away her class capstone via an archetype. Clerics and wizards can receive a capstone at 20th level, despite not having one to begin with.