architecture – Predicted ability edge case issue

I am in the process of creating an ability system with client prediction akin to Unreal Engine 4’s Gameplay Ability System.

I found an edge case where the client’s tags that are applied from effects become out of sync with the server.

The prediction method I use is the same as detailed here.

Here is a scenario that illustrates this:

The player has 2 abilities, an ability to unsheathe their weapon, and an ability to sheathe their weapon. Each ability requires a specific tag to activate. For the unsheathe ability, it is the “Sheathed” tag. For the sheathe ability, it is the “Unsheathed” tag.

There also exist two effects that apply these tags. The UnsheatheEffect applies the “Unsheathed” tag and the SheatheEffect applies the “Sheathed” tag.

The unsheathe ability lasts for 1 second and at the end applies the UnsheatheEffect and removes the SheatheEffect. The sheathe ability does the same thing but applies the SheatheEffect and removes the UnsheatheEffect.

In this scenario, the player has a static ping of 1 second.

0 seconds: The client activates unsheathe ability. Tags {"Sheathed"}

1 second: The server activates unsheathe ability.

1 second: The client finishes unsheathe ability. Tags {"Unsheathed"}

1 second: The client proceeds to activate sheathe ability. Tags {"Unsheathed"}

2 seconds: The server finishes unsheathe ability and starts the sheathe ability.
2 seconds: The client finishes the sheathe ability. Tags {"Sheathed"}
2 seconds: The client activates the unsheathe ability. Tags {"Sheathed"}

3 seconds: The client reconciles with what happened on the server as a result of the unsheathe ability. Tags {"Unsheathed", "Sheathed"}.

The issue is that the client has already gone through the process of removing tags after abilities, but they are soon added back because of the reconciliation with the server. I am really not sure what to do about this, because the client should be in sync with the server, but it ends up just messing up the whole system.

list manipulation – Build Table of Edge Weight Sums

Is there a convenient way to build a table as generated by the code below where a 5th column (at the far right) could be added to the table that is the sum of the edge weights for the nodes in a given row. Then also be able to sort that table from smallest edge weight sum to largest edge weight sum?

Clear(edges,g)
edges={N1->N2,N1->N3,N1->N4,N2->N5,N3->N5,N3->N6,N4->N6,N5->N7,N6->N7};
g=Graph(edges,VertexLabels->"Name",EdgeWeight->{1,2,3,4,5,6,7,8,9},EdgeLabels->{"EdgeWeight"},EdgeLabelStyle->Directive(Red,20))
WeightedAdjacencyMatrix(g)//MatrixForm
TableForm(FindPath(g,N1,N7, Infinity,All))

enter image description here

javascript – Scrolling on webpage I’m working on works wonkly in Edge Beta and Edge Dev

Could someone explain to me, why the scroll wheel in Edge Beta and Edge Dev on this page https://epat.xyz/lt works only when hovering over that white bar on the middle of a page?

It works fine on Firefox, Chrome, and stable version of Edge

I tried it on 2 PCs.

I didn’t overwrite the scroll event in any way, and used is only to create some parallax effect, because I wasn’t able to make it in CSS.

From what I tried it seems like the whole event isn’t thrown outside that bar and I don’t know if I did something wrong in some way or not

screenshot of a page

screen – Quarter circle with self-filling edge when mouse pointer is near the corner in Big Sur

I am new to Big Sur. While setting it up, I noticed a feature I had not seen before. Whenever the cursor got close to one of the four corners of the screen, a quarter-circle-like shape appeared adjusted to the specific corner and the edge of the quarter circle was gradually being filled up with color.

In the meantime, I have changed a lot of settings in Big Sur and I can no longer reproduce this phenomenon. As a result, I cannot post a screenshot/video and must rely on the verbal description above. If this description sounds familiar to anyone, I would be grateful for the identification of this feature. The closest match I could find is hot corners, but this quarter-circle thing definitely seems to be a distinct feature.

Windows 10 (October 2020, 20H2, 2009) Possible to uninstall Edge?

I searched Google and did setup --uninstall --force-uninstall --system-level, but that only uninstalled the Chrome-based Edge and restored the old EdgeHTML Edge. Now, I tried to uninstall that with remove-appxpackage Microsoft.MicrosoftEdge_44.19041.423.0..., it failed with

remove-appxpackage : Deployment failed with HRESULT: 0x80073CFA,
Removal failed. Please contact your software vendor. (Exception from
HRESULT: 0x80073CFA) error 0x80070032: AppX Deployment Remove
operation on package Microsoft.MicrosoftEdge_44.19041… from:
C:WindowsSystemAppsMicrosoft.MicrosoftEdge… failed. This app is
part of Windows and cannot be uninstalled on a per-user basis. An
administrator can attempt to remove the app from the computer using
Turn Windows Features on or off. However, it may not be possible to
uninstall the app.

Since Microsoft is keep changing Windows 10 and Edge, the information on Google seems to have been outdated. Is it possible to uninstall Edge? Or is it now impossible?

If you would say “Why uninstall? Just don’t use Edge.”, it is annoying because Windows File Explorer launches Edge when I click the blue question mark icon accidentally when I tried to click the close button, and once launched Edge seems to be keep running or even start on its own from the next system reboot.

mathematical optimization – Optimizing the edge lengths of a graph(again)

This is a follow up to my previous question posted here

The code below is from the answer provided here

Clear(solution3d);
solution3d(uedges_, edgeweight_) := 
 Module({ew, graph, dmat, newcoords, vcoords3, newLayout, vars, 
   weights, objective, min, vals, newercoords, xyz, 
   DistanceMatrixDimensionReduce}, 
  ew = KeyMap(UndirectedEdge @@ # &, edgeweight);
  graph = 
   Graph3D(Keys(ew), EdgeWeight -> Normal(ew), 
    VertexLabels -> Placed("Name", Center), 
    EdgeLabels -> {e_ :> Placed("EdgeWeight", Center)}, 
    VertexSize -> .3, VertexStyle -> Red);
  dmat = GraphDistanceMatrix(graph);
  DistanceMatrixDimensionReduce((dmat_)?MatrixQ, dim_ : 3) := 
   With({len = Length(dmat)}, 
    Module({diffs, dist2mat, onevec, hmat, bmat, uu, ww, vv}, 
      onevec = ConstantArray({1}, len);
      hmat = IdentityMatrix(len) - onevec.Transpose(onevec)/len;
      dist2mat = -dmat/2;
      bmat = hmat.dist2mat.hmat; {uu, ww, vv} = 
       SingularValueDecomposition(bmat, dim); uu.Sqrt(ww)) /; 
     dim <= Length(dmat((1))) && MatchQ(Flatten(dmat), {_Real ..}));
  newcoords = DistanceMatrixDimensionReduce(dmat);
  newLayout = 
   Graph(Keys(ew), VertexCoordinates -> newcoords, EdgeWeight -> ew, 
    VertexLabels -> Placed("Name", Center), 
    EdgeLabels -> {e_ :> Placed("EdgeWeight", Center)}, 
    VertexSize -> .3, VertexStyle -> Red);
  vars = Array(xyz, {VertexCount(graph), 3});
  weights = Normal(WeightedAdjacencyMatrix(graph));
  objective = 
   Sum(If(weights((i, j)) > 
      0, ((vars((i)) - vars((j))).(vars((i)) - vars((j))) - 
        weights((i, j))^2)^2, 0), {i, Length(weights) - 1}, {j, i + 1,
      Length(weights)});
  {min, vals} = 
   Quiet@FindMinimum(objective, 
     Flatten(MapThread(List, {vars, newcoords}, 2), 1));
  newercoords = vars /. vals;
  vcoords3 = MapIndexed(#2((1)) -> # &, newercoords);
  newLayout = 
   Graph3D(Keys(ew), VertexCoordinates -> vcoords3, EdgeWeight -> ew, 
    VertexLabels -> Placed("Name", Center), 
    EdgeLabels -> {e_ :> Placed("EdgeWeight", Center)}, 
    VertexSize -> .3, VertexStyle -> Red);
  Return(<|"newcoords" -> newcoords, "error" -> min|>))

For the edges and ew specified below the code works well for repositioning the nodes of the network
to meet the distance requirements provided as edge weights.To create a layout that meets the distance requirements, an inital layout, which created using multidimensional scaling, is used for optimization via FindMinimum.

edges = {{1, 2}, {1, 3}, {1, 4}, {2, 5}, {2, 6}, {5, 6}, {3, 4}, {3, 
     7}, {6, 7}, {7, 8}, {2, 9}};
 ew = <|{1, 2} -> 49.6, {1, 3} -> 74.4, {1, 4} -> 49.6, {2, 5} -> 
     37.2, {2, 6} -> 74.4, {5, 6} -> 49.6, {3, 4} -> 37.2, {3, 7} -> 
     24.8, {6, 7} -> 62, {7, 8} -> 37.2, {2, 9} -> 24.8|>;
result = solution3d(edges, ew)
Print(result);

But the error for the following input (added externally due to the limitation in characters that can be added here) is really large. I’d like to know if there are other methods to create better initial layouts that can be supplied to FindMinimum.

Error returned from the code for the below edges and ew is error->4.53978*10^11.

edges, ew (also shared here)

My Sharepoint wikipage does not show the same in Internet Explorer as in Edge

Below i have a picture of a Sharepoint Blog shown with Internet Explorer.
enter image description here

Now i have created to same layout on a Sharepoint Wikipage using the component Table.
When I display my wikipage in Microsoft Edge i get to see the border and the shade of the layout
Just like i wanted it. But when i use Internet Explorer, I see the border of the layout but not the shade. While the orginal Sharepoint Blog does show the border and shade in Internet Explorer.
What am i missing here? Does someone one know the solution? Thank uou in advanced. Gr. P.

This is my CSScode which is linked to the Sharepoint wikipage:

.ms-rteTable-default {
 box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.47); //works in EDGE but not in IE
}

.ms-rteTable-default > tbody > tr > th, .ms-rteTable-default > tbody > tr > td  {
  border: 1px solid #a6a6a6;  //works in EDGE and IE
}

.ms-rteTable-default > tbody > tr > th {
  border-top-right-radius:5px;   //works in IE but not in EDGE
  border-top-left-radius:5px;    //works in IE but not in EDGE
}

.ms-rteTable-default > tbody > tr > td  {
  padding: 35px 70px 35px 35px;
  border-bottom-right-radius:5px;  //works in IE but not in EDGE
  border-bottom-left-radius:5px;   //works in IE but not in EDGE
}

Greetings P.

image – Edge detection in grayscale

I would like to identify the white spots in a greyscale image and calculate the area among other things.

enter image description here

EdgeDetect throws out something a little strange.

I have tried to identify the white spots with:

markers = MaxDetect[GaussianFilter[img01, 60], Padding -> 1];

HighlightImage[img01, markers, Method -> {"DiskMarkers", 5}]

enter image description here

Is there a way to find the edge and calculate the area?

I would also like to scale it up to a larger picture with many spots, which seems to bring a lot of problems

Thanks

mnemonic seed – How to access a wallet in bitcoin core using raw key export from edge wallet?

I have a wallet in the Edge Wallet app. When I view “Raw Keys”, I see this json:

{
"format": "bip49 ",
"bitcoinKey": <seed phrase>,
"coinType": 0,
"dataKey": <dataKey gobbledygook>,
"syncKey": <syncKey gobbledygook>
}

How do I use this information to access/reconstruct this wallet in bitcoin core?
A set of exact steps to follow would be nice.