Javascript – Dynamic SharePoint master page navigation, but scope problem for navigation dropdown

I have a scope issue and I do not know why. I dynamically create a navigation with dropdown. It is created, but the drop-down menu is not rendered even though the caret is displayed. I think it is a matter of scope. I use the REST API to get data from my list, but I can not populate the global variable. Any help would be appreciated.

                var subList=(); //global scope

                function getInfo(){
            $.ajax({
              url:endPointUrl,
              type:"GET",
              headers: headers,
              success: function success(data) {
              var results;
                if(lName == "Navigation"){
                    buildNavBar(data.d.results);
                }else {
                    subList = data.d.results;
                    console.log(subList); //<-------CONTAINS data
                }
              }
            });

                  }


                            function buildSubNavBar(subNavID){
                    //More code missing

                var subList = getData("Sub Navigation");
                console.log("Sublist");
                console.log(subList); //<-------CONTAINS no data

                for (var i=0; i

macos – How do I create a custom dynamic wallpaper in Catalina?

I tried to set a custom dynamic wallpaper in Catalina, as I did in Mojave (which worked well), but my dynamic wallpaper displays the following option because you can see the image (broken).

Enter image description here

and if I want to change it the "Dynamic" option is not there!

Enter image description here

I tried to find the path of the default dynamic backgrounds and I could not paste the ".heic" files where the background image of Catalina is located. I also tried setting a default dynamic background image first and in dynamic mode. Then I switched to the custom wallpaper and did not work.

Has the dynamic background image format changed in Catalina OS?

How can I set a custom wallpaper in Catalina?

Link to the custom wallpaper

Dynamic Systems – Question of Measure-preserving Transformation and Approximation

To let $ (X, mathcal {A}, lambda) $ be a probability room and $ T $ is a scale-preserving transformation. Is it true that if $ A in mathcal {A} $ and $ lambda (T ^ {- 1} (A) triangle A) = 0 $ then there is an invariant set $ T ^ {- 1} (A) = A $ so that $ lambda (A & # 39; triangle A) = 0 $?

I know that it would be true if ours $ T $ would be ergodic, but I'm a bit confused with this case.

Javascript – Dynamic value appended to the dynamic text box using the Angular template reference

I have the following HTML code, when I click the button, the same row text field value must be changed. My question is how to reference the input field and append the value?

app.component.html

app.component.ts

export class AppComponent {
myEvent(i) {
if(i == 0) {
// textField0 append a new value to the text field
}
}
}

Thank you all

Example demo here

Curated Data – Cloud Provide dynamic country selection on a map

This is a follow-up question based on Lukas Lang's answer. The original question is here. How can I change the code to deploy it in the cloud? Or if this method applies only to the desktop: How can I replicate this idea for cloud deployment?

CountrySelector(c_, opts : OptionsPattern()) := 
 iCountrySelector(#, c, opts) &
CountrySelector(Dynamic@var_, c_, opts : OptionsPattern()) := 
 iCountrySelector(Dynamic@var, c, opts)
iCountrySelector(Dynamic@var_, c_, opts : OptionsPattern()) :=
 DynamicModule(
  {
    control = Panel@Row@{
      "Loading country selector...",
      ProgressIndicator(Appearance -> "Percolate")
     }
   },
  Dynamic@control,
  Initialization :> SessionSubmit(
    control = DynamicModule(
      {active, countries = c},
      GeoGraphics(
       {
        MapIndexed(
         EventHandler(
           Style(
            Annotation(Polygon@#, ""),
            TagBoxOptions -> {
              BaseStyle -> FEPrivate`Which(
                FEPrivate`SameQ(active, #2((1))),
                {Lighter@Red, EdgeForm@{Thick, Red}},
                FrontEnd`CurrentValue@"MouseOver",
                EdgeForm@Lighter@Red,
                True,
                {}
                )
              }
            ),
           {
            "MouseClicked" :> (FEPrivate`Set(active, #2((1))); var = #)
            }
           ) &,
         countries
         )
        },
       opts,
       GeoBackground -> "CountryBorders",
       ImageSize -> Medium
       )
      )
    )
  )
Manipulate(
 Dynamic@country,
 {{country, None}, CountrySelector@EntityList@EntityClass("Country", "Europe")}
 )

I am looking for advice or just one point in the right direction.

Probability distributions – zero-sum game, dynamic programming, repetition, probabilities

Hello people, I have to solve this problem and am fixated on a repetition formula. I could really use help. It's a two-player zero-sum game and we're trying to find an optimal strategy:
Two players duel with dice. The goal of this game is to be the first to reach a certain score (eg N).
In each round of the game, a player chooses to throw six-sided dice between 1 and D (for example, he has decided to roll "d" dice). If at least one of the "d" cubes is 1, the number of points scored in that round is equal to 1, otherwise (if none of the "d" cubes is 1) the number of points scored in that round is equal to the sum of Cube. We are interested in a sequential variant of this game in which the two players play alternately (the first one begins to have an obvious advantage).

Suppose we have the P (d, k) s, the probability of getting k points when we throw the dice:
Suppose that (i, j) is the state in which the first player has collected i points and the second player has accumulated j points and it is up to player 1 to play. EG (i, j) is the expectation of winning player 1 in this condition provided that both player 1 and 2 play optimally.
What is the recursion formula to compute the expectation of the gain EG (i, j) in a state (i, j)?

dynamic – To dynamically select a country on a map with the cursor

Suppose I have a map of Europe with a locator in progress

Manipulate[ GeoGraphics["Europe", GeoBackground -> "CountryBorders"], {{p, {150, 150}}, Locator}]

Enter image description here

Currently I can use the locator to navigate aimlessly on the map. My goal would be to pick the country the mouse clicks on. There I can edit the selected country and it will be highlighted. It is not necessary to have a locator, it was the only method known to me.

I am aware that this is an extensive question and I appreciate any advice.

Strongly typed dynamic proxy for invoking dynamic objects

GitHub and NuGet

I want to use DynamicObject-derived types to execute REST API / NodeJS module calls. It would also help to capture the API form in a strictly typed way. So here's an interface proxy that hides low-level machines that do tricks like this:

(TestMethod)
public void Call()
{
    dynamic c = new ExpandoObject();
    c.Add = (Func)((a, b) => a + b);

    ICalculator proxy = Proxy.Create(c);
    Assert.AreEqual(3, proxy.Add(1, 2));
}

public interface ICalculator
{
   int Add(int a, int b);
}

Library code is:

using Castle.DynamicProxy;
using Dynamitey;
using System;

namespace Dynoproxy
{
    public static class Proxy
    {
        public static T Create(this object source) where T : class
        {
            var proxyGenerator = new ProxyGenerator();
            return proxyGenerator.CreateInterfaceProxyWithoutTarget(
                ProxyGenerationOptions.Default,
                new Interceptor(source));
        }

        class Interceptor : IInterceptor
        {
            public Interceptor(object target) => Target = target;
            object Target { get; }
            public void Intercept(IInvocation invocation) =>
                invocation.ReturnValue = Dynamic.InvokeMember(
                    Target, invocation.Method.Name, invocation.Arguments);
        }
    }
}

Combo Box – Value selected by default in the Power BI dynamic combo box

Sometimes you have a selection box or a drop-down list in a Power BI dashboard that appears in descending order every month of the year, as shown in the following figure.

image01

Therefore, the first combination value must be selected by default. In this case, this is the last month. However, the first combination value changes month by month as the order of months decreases and all months are displayed by all of the years

How do I always set the default value to the last (the first value of the combo)? The problem is that if I currently have "October 2019" selected by default then "November 2019" or "December 2019" etc. "October 2019" remains selected and that is not desirable.

Thanks in advance!