linux – Multi user full disk encryption – larger than 8 user threshold. i.e. Not luks

I know Luks has a maximum of 8 I need something that does what LUKS does but allows multiple keys more than the maximum of 8.

All users will need to be able to access root.
It will be used regularly by multiple different users but not simultaneously.

I have looked at loads of different encryption tools but they do not seem to have any multi user system that does what I need, unless I’ve glossed over something.

magento2 – How to use the Out-of-Stock threshold option?

You can use a negative amount in order to have more salable items than you really have in stock.

Out-of-Stock threshold

Use a negative value for this threshold to set the maximum amount of products that can be backordered before the product is truly considered out of stock. This amount adds to the salable quantity. The value set at the product level overrides any value set at the global level.

The formula for the Salable Quantity is (Quantity – (Out-of-Stock Threshold)).

The following is an example:

Quantity: 25
Notify for Quantity Below: 10
Only X left Threshold: 5
Out of Stock Threshold: -50

The Salable Quantity for this product is 75 (25 – (-50)).

Magento 2 The Salable Quantity
Example Salable Quantity before backorders enabled

Magento 2 The Salable Quantity
Example Salable Quantity after backorders enabled

When customers purchase more than 25 products, new orders enter as backorders. As the product’s Salable Quantity reduces to 5 (70 items have been sold), the Product page will display a message Only 5 left on the storefront. When the Salable Quantity reaches 0, the product is displayed as Out of Stock in the storefront.

Reference: Magento 2 DevDocs – Out-of-Stock threshold

Can I defer levelling up after reaching the XP threshold?

As a rogue, I’ve gained enough XP to level up to level 3. However, I’m not yet ready to pick what archetype would fit best for me.

Despite having gained enough XP, can I wait until later to level up my character?

I’m looking for rules to back me up, especially if it explicitly states that I don’t need to level up immediately upon acquiring the XP threshold.

plugins – disabling big image threshold is also disabling image rotation

Recently I started getting the below error when uploading images to my media library on wordpress –

Post-processing of the image failed likely because the server is busy
or does not have enough resources. Uploading a smaller image may help.
Suggested maximum size is 2500 pixels.

As a solution I installed the plugin – Disable “BIG Image” Threshold. I use imageoptim for optimising my images on my laptop before uploading to wordpress, so I am ok with disabling the auto scaling of my images by wordpress.

Internally this plugin is doing the below –

add_filter( 'big_image_size_threshold', '__return_false' );

But I noticed that this is also disabling rotating of my images. The images that I clicked in portrait mode are not being rotated and shown in the media library. Did anyone else face the same issue and what was the solution for this?

trains – Speed and acceleration threshold for different transportation mode in urban area

I am working on machine learning and data science in relation to transportation system. Currently, I am working on transportation mode detection for people mobility in an urban area, essentially using people’s GPS traces.

So I need a scientific backing to what is acknowledged as the maximum threshold of speed, acceleration, and if possible jerk for these transportation modes: foot, bike, bus, car, metro.

I read in this papers where the authors, uses the following as the maximum values:

| transportation mode| maximum speed | maximum acceleration |
| walk               |             7 |                    3 |
| bike               |            12 |                    3 |
| bus                |            34 |                    2 |
| driving            |            50 |                   10 |
| train              |            34 |                    3 |

However, my supervisor did not agree with me using these values as a threshold in my current work because the authors did not mention explicitly the source of their reason for this decision, they just stated that

” Using several reliable online sources and the engineering justification (e.g., existing
speed limits, current vehicle and human’s power), the speed and acceleration thresholds are designated ..”

Can I have a pointer to some sources that suggest thresholds for these motion features with a city so I can back up my claim and explain it to my supervisor?

international travel – Self-isolate if my home country rises above threshold while I’m in Latvia?

The current regulations to enter Latvia from another EU country mandate that I have to self-isolate for 14 days on arrival if the country I am coming from has had more than 16 new Covid cases per 100k inhabitants in the past 14 days; the infection rates for each country are updated every Friday and are valid for the successive week.

Suppose that my country of origin is below the threshold when I enter Latvia, but gets above the threshold in the next update the following Friday, while I am already inside Latvia.

Do I have to report myself to the authorities and self-isolate? Or is that requirement only checked when I enter Latvia?

algorithms – Get the maximum sum of n items below a threshold

Consider a modified Knapsack Problem where:

  1. The number of items to be included is fixed.
  2. The value of each item is equal to its weight.

Therefore, given a set of numbers, a threshold and the number of items to use (n), I want to get the subset of n numbers that produces the highest sum below the given threshold.

Having already asked this question a year ago and not being able to fully understand the given answers, this time I’m asking for something a little different. The dynamic programming solution to the 0-1 Knapsack Problem only became clear to me when I got to see the recursive approach first:

def knapsack(w, ws, vs, n):
    # if num of items or weight left is 0 value is 0
    if n == 0 or w == 0:
        return 0
    # if item doesn't fit return best val without item
    if ws(n - 1) > w:
        return knapsack(w, ws, vs, n - 1)
    # otherwise, return max of best vals with and without item
    include = knapsack(w - ws(n - 1), vs, w, n - 1) + v(n - 1)
    not_include = knapsack(w, vs, w, n - 1)
    return max(include, not_include)

So, if I were to solve my problem using a recursive approach (for educational purposes), what would that look like? And optionally, how would it be translated to a dynamic programming solution?

How to find the threshold of hash inequality at a given time?

For a miner to mine in bitcoin, he should find a nonce s.t the hash of block <= threshold. At a given time lets assume the total hash rate of the network be A hashes/sec and the mining rate be f blocks/sec. Is there way any to calculate this threshold from these parameters?

dnd 5e – Calculating the XP threshold for a party with “monster” companions

Encounter difficulty is not an exact science.

(Companions from spells and class features are considered in the power level of the characters. Do I include animal companions when calculating difficulty of an encounter?)

NPC allies or allied monsters that are gained in the story, i.e. not from the characters’ powers might be relevant.
This analysis concluded that there are very large differences between monsters of the same CR:

5e monster manual on a business card

The DMG (p. 83) says that the Encounter Building rules assume three to five PCs. Therefore, a few mounts that are much less powerful than the players will not significantly alter the difficulty. Even one or two NPCs can fall in this range if they are not a much higher level than the PCs.

If there are more than one or two NPCs of a similar power level as the PCs or at least one that is significantly more powerful than a single PC, that influence should be considered.

To gauge the power level, rather than calculate a level for the monster, you can calculate the CR of your player characters (DMG p. 274) and compare. I do this routinely in such situations.

If you use multiple monsters in an encounter, you can simply increase their number. E.g. when you planned using four goblins you can add a fifth and it will make the encounter a bit harder but not too much. Note that multiple monsters are more powerful than the sum of their hit points and damage output (due to the action economy, see also DMG p. 82). If you add one NPC and one opponent, this particular effect will be balanced however. I generally build encounters using groups of monsters which works well and can easily be adjusted. It is easier with self-built monsters however, which I will not go into detail here.

If you want to use a single monster, but stronger you need to be careful since it potentially be more lethal than anticipated (see Challenge Rating sidebar, DMG p. 82). The same considerations apply to monstrous allies such as golems. If the ally can easily slaughter all opponents the players can feel outclassed. Therefore, I use powerful allies sparingly.

When using more dangerous monsters, I prefer erring on the safe side since a slightly underwhelming encounter will have less of a negative impact on my game than dead player characters.

Download files from a sharepoint document library that has exceeded the listview threshold

I’m trying to download all documents from a SharePoint library that has more than 200K documents and has obviously exceeded the listview threshold and I haven’t been able to find a script that will allow me to download these files. Is there a way to download all of these files using Powershell to a file share?