Limit amount of posts made within a custom taxonomy

Is there a way to limit the number of posts that can be created within a custom taxonomy?

I have a custom post type called Preferred Agents and a custom taxonomy called Agent Location. I want to be able to limit the amount of Preferred Agents in an Agent Location to only 3. Is this possible?

Any help is appreciated! Thanks.

Why do memory dump sizes on some machines not correlate with the amount of RAM?

I’m using winpmem to do some memory dumps. I did a test run on my workstation and the files was about 32GB, exactly what I expected since I have 32 gigs of RAM. However, on other machines the output file (aaf4 format) is much larger. It does not seem to correlate to RAM + Pagefile either. What determines this file size? Some of these are VMs, if it matters.

What’s the maximum amount of lines from Sunbeam possible within a single round?

I noticed that sunbeam allows you to to create multiple lines within a single turn. What’s the maximum possible amount of sunbeam lines able to be created by a single caster within one turn?

For reference, the spell has a casting time of 1 action and states:

A beam of brilliant light flashes out from your hand in a 5-foot-wide, 60-foot-long line. Each creature in the line must make a Constitution saving throw. On a failed save, a creature takes 6d8 radiant damage and is blinded until your next turn. On a successful save, it takes half as much damage and isn’t blinded by this spell. Undead and oozes have disadvantage on this saving throw.

You can create a new line of radiance as your action on any turn until the spell ends.

Rules

  • Level 20 Character, any combination of multi-classing allowed
  • Only official material published by WOTC in book form is allowed. No Unearthed Arcana
  • Setup is allowed, including any magical items present in the Dungeon Master’s Guide or any other source-book. Items only present in campaign books are not allowed.
  • You may have 4 allies at level 20
  • Simulacrum is allowed

Limite the amount of Ram mathematica can use and still get sensible results?

The question is very similar to this one, however the solution proposed there doesn’t satisfy me because I don’t want mathematica to abort the evalution, but simply to do it with less ram.

Basically I’d like mathematica to think my machine has for example only 14 Gb of ram and let him use only those, and not abort the evaluation when it uses more than 14, like suggested there.

Is this possible?

If it is possible, can I trust the results obtained in this way or there’s an high chance of losing important pieces during the evalution, due to the fact that mathematica would use more ram to perform that evaluation?

Best way to represent dollar amount really close to $0.00

I’m working on an app that has to do with cryptocurrencies and there are times where I’m showing prices for very small amounts of almost worthless cryptocurrencies. For example, I’m showing the price for 0.002 GDB, which right now would be worth about $ 0.000040236. My problem is though, that currently the app simple shows $ 0.00, but to a user that doesn’t make sense, because it’s not actually $ 0.00. It’s just really close to $ 0.00. So, my question is how I should actually show it? I’ve thought about maybe doing something like ≈$ 0.00. Or maybe just ∼$ 0.00. I don’t have the option to show the whole amount, because the space it fits in is kind of small. What’s the best way to represent it?

EDIT 1: So, in response to a request about more information, we’re a company that generates tax forms and does other tax calculations. This is in a breakdown of cost basis line items. So, they’re probably expecting accuracy, but I don’t know how many will actually want to drill down and check all our calculations, if that makes sense.

What’s a good method of showing user progression of a dynamic questionaire with a varying amount of questions?

What are the best practices around showing the length and stage in a questionnaire, where the length of said questionnaire changes and branches dynamically based on answers? I’m going to create a questionnaire where the user sees one question at a time. I want the user to get some sort of sense of how much longer they have and their place in the process but without misleading them. I don’t want them to think a single questionnaire could have 50 questions to answer. But to give a tangible number, they could have have to answer 7 questions or it could have 15 questions for them to go through depending on their answers.

Schedule each entree so that all entrees are completed in the shortest amount of time

Lets say we have plenty people to dress up entrees, but only one chef to cook them. Each entree E_i, takes c_i time to cook and d_i time to “dress up”. The dressing up of entrees can occur while other entrees are being cooked and dressed up, but we can only cook one entree at a time. How would you go about creating an algorithm to schedule each entree E_i in a manner that they all get finished in the shortest amount of time?