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?

Filtering Sharepoint Server 2013 list with multiple “OR” column view filters above the 5000 item threshold

I have a list that’s butting up against the 5000 item threshold and I’ve added a couple dummy items so I can experiment with the threshold before I cross over with real data. My list is structured so that each item is unique (enforced) but can be assigned to multiple projects. Then I create a view filter for each project number which displays (and lets me manipulate) only the items assigned to that project.

The 256 character limit on “single line of text” columns has forced me to create several “project” columns over the years and many of my items have entries in each column. Each project view uses a filter on all project columns, so “Project1 contains (project number), or Project2 contains (project number), or Project3 contains (project number), etc”. Each view returns about 50-100 items, so it should work fine with Sharepoint’s large site rules.

This scheme works perfectly under 5000 items, but as soon as I cross over it errors out. I’ve indexed all project columns but it still doesn’t work. I think it may have to do with using multiple “or” conditions on the view, but I haven’t found any official guidance or workarounds yet.

Does anybody have any suggestions on how to handle this? It seems like I either need a new way to filter the list or some way of combining all of the project columns into one. I’d love to consolidate all project numbers into a multi line column, but apparently those can’t be used for filtering.

I still have the nuclear option of opening up the threshold to some number that I’ll probably never hit, but I would prefer to do it correctly. I’m the only user of this list, so I really don’t care about the resource hit as long as the list still functions.

Thanks.

sharepoint online – Querying document library (which contain more than 5,000 documents) using FolderServerRelativeUrl will raise error “exceeds the list view threshold”

I have a document library which contain 6,000 ++ items, and i wrote the following code inside a remote event receiver to get the documents which are inside certain folder using FolderServerRelativeUrl, as follow:-

ListItemCollectionPosition position = null;
 do
{
      CamlQuery camlQuery6 = new CamlQuery();
      camlQuery6.ViewXml = @"<View Scope='Recursive'><Query></Query><RowLimit>5000</RowLimit></View>";//string.Format("<View Scope="RecursiveAll"><Query><Where><Neq><FieldRef Name='ID' /><Value Type='Text'>{0}</Value></Neq></Where></Query><RowLimit>{1}</RowLimit></View>", "0", "3000");
      camlQuery6.ListItemCollectionPosition = position;
      camlQuery6.FolderServerRelativeUrl = context.Web.ServerRelativeUrl + "/ArchDocs/" + currentFilingSystemItem("DealName").ToString();

      ListItemCollection collListItem6 = context.Web.GetList(context.Web.ServerRelativeUrl + "/ArchDocs").GetItems(camlQuery6);
      context.Load(collListItem6, items => items.Include(
                                                  item => item.Id,
                                                  item => item("FileDirRef"),
                                                  item => item("Title"),
                                                   ), items => items.ListItemCollectionPosition);
      context.ExecuteQuery();
      position = collListItem6.ListItemCollectionPosition;

              foreach (ListItem listItem in collListItem6) // collect the items we found in this chuck of searched items
                  {
                       foundListItems.Add(listItem);
                  }
}
while (position != null);
foreach (ListItem item in foundListItems)
                  {



                  }

but my above code will raise this error, although i am using paging which should allow me to query large document libraries :-

The attempted operation is prohibited because it exceeds the list view threshold enforced by the administrator.

any advice on this please? Thanks

Windows 10 – Send email only when disk drive is below threshold

I have researched on Google and tried several different options and none of them provide the result I am looking for. This script produces the email with the data I'm looking for, but it sends the email regardless of the threshold. I would appreciate help in knowing what to change so that the script only sends the email when the reader is below the threshold.

$freeSpaceThreshold = 5GB
#$computerName = "mycomputer"
$drive = "C:"

$driveData = Get-WmiObject Win32_LogicalDisk -ComputerName $Computer -Filter DriveType=3 | Select-Object DeviceID, @{'Name'='Size (GB)'; 'Expression'={(math)::truncate($_.size / 1GB)}}, @{'Name'='Freespace (GB)'; 'Expression'={(math)::truncate($_.freespace / 1GB)}}

if ($driveData.FreeSpace -lt $freeSpaceThreshold)
    {
        $from = "user@domain.com" 
        $to = "admin.user@domain.com" 
        $subject = "Low Disk Space!" 
        $body = "Free Space Remaining: " + "$($CDisk.FreeSpace)GB" + " Drive" + $_.deviceid 
        $smtpServer = "smtp.domain.com" 
        $smtp = new-object Net.Mail.SmtpClient($smtpServer) 
        $smtp.Send($from,$to,$subject,$body) 
    } 

REST API threshold error in Designer Workflow but works on a page using Javascript

Note: My document library contains 5500 items (the threshold limit is 5000. So it has already exceeded the threshold limit).

I am trying to get the ID of a folder using the rest API in the SharePoint 2013 designer workflow. I get an error from threshold.

Below my URL –

_api/web/GetFolderByServerRelativeUrl('/sites/mysite/Request%20Library/REQ-1')/listitemallfields/id

But when I tried the same REST URL in a page using Javascript, it works perfectly and I get the ID.

I know what the threshold limits are and how to increase them. But my concern is, here it works in the Javascript REST API but gives a threshold error in the Designer workflow.

According to my understanding, this should give errors in both approaches or it should work in both approaches.

Can someone please explain to me the reason for this behavior.

Also, if anyone has an idea on how to get the folder ID using the folder name without increasing the threshold limit, please suggest me.

Thanks in advance.