sharepoint designer – Creating a workflow which automatically runs a formula to assign customized number

I have created a list which uses a calculated column to assign a customized change control number. However, whenever a new item is created/saved, the formula is not applied.

It is only when I access through list settings and open the calc column and then save, does the desired outcome display.

I am new to workflows and need help getting started.

conditional – Using an if statement to assign a value to a variable

enter image description here

New Mathematica user here. I’m using some code from a colleague and editing it to give me more specific results in finding the zeros of a complex polynomial. I am attempting to find a way to assign a value to a variable A symbolically – i.e., give variable A an expression value that depends on other variables. It’s a quotient expression, and at one point the variable in the denominator equals zero. How can I use an if statement to say, “If this variable does not equal zero, the value of ‘A’ should be this expression?”

For clarity, in the picture included above, the line that I’m struggling with is the first line of the second code block, where I’m attempting to assign a value to A by way of an expression. I think the problem is that when I try to put Re[z] in the denominator, there’s one point where Re[z] is zero, and I need to somehow have a conditional statement that says ‘only assign A the value of this expression when Re[z] does not equal zero’

linear algebra – Assign elements maximize output

I have a list with a fixed length l of elements. All elements have 4 attributes, a,b,c,d. The attributes are between 0 and 1, exact one attribute is always 1.

(
  {
    a: 1,
    b: 0.7,
    c: 0.5,
    d: 0.2
  },
  {
    a: 0.2,
    b: 0.8,
    c: 1,
    d: 0.2
  },
  ...
)

Additionally I have 4 buckets, Ba, Bb, Bc, Bd. And how many elements should be in the buckets. LBa, LBb, LBc, LBd. LBa + LBb + LBc + LBd = l.

The attributes of the elements e.g. a descirbe how good they are fitting to the bucket e.g. Ba. Now I need to sort the elements, so the fitting is maximized for all buckets (Sum of attribute of all elements in the bucket), but the elements per bucket LBa etc. are correct.

How does Google/YouTube assign API key?

I’m writing a YouTube scraper and while writing it I decided to monitor what resources were being requested when playing/searching for a YouTube video.

To my delight, there were couple queries which contained key parameter with API key and could be used to make API requests. I wanted to know if by clearing site data/cookies + using a proxy would assign me a new API key but after several tries my API key stayed the same. Using a private window combined with proxy returned the same result even though I was suggested content based on IP region.

The next step was using another machine to find out what API key was assigned there and that is where I got puzzled. I’ve never used that machine myself, it belongs to my sibling and they were assigned the same API key as me.

Which kind of explains why I see the same recommendation of videos on all devices (TV, Phone, Laptop, Computer) even without logging in. But, what it doesn’t explain is:

  • Why is it when I use proxy I get suggested content based on the region but API key stays the same?
  • What information does Google/YouTube uses to assign API key (Router MAC address?)
  • Chances of getting banned from Google/YouTube if one were to make 1000’s of requests per hour?
  • Will all of the accounts get banned associated with API key?

contacts – Automatically assign names to Zoom dial in numbers

We are organizing a zoom convention with upwards of 300 people attending. We need a way to show names corresponding to dial in numbers. Though Zoom shows a guide to accomplish this here, there is no link to Phone Dial-in Contacts, as described, under our Account Management. It mentions that the feature needs to be enabled by Zoom. After two help requests with Zoom they have been the opposite of helpful.

Has anybody managed to do this successfully?

My organization is in Canada and we have a Pro account.

custom post types – Assign Woocommerce Product Category to Existing Taxonomy

I created a custom taxonomy named a custom post type Product and a taxonomy Product Category (product-category) prior using the WooCommerce plugin:
register_taxonomy( "product-category", array( "product" ), $args );

Now that I decided to proceed with the WooCommerce plugin, all contents are the same, its because the post type Product of WooCommerce has the same slug “product”. The only problem I’m stucked at, is that the Woocommerce default category named “Categories” (product_cat) isn’t the same with the taxonomy I registered above.

enter image description here

I have tried changing the Category base field in the Permalinks Settings but it doesn’t working.

Any recommended workaround with this?

beginner – To assign objects from array of objects to mulitple arrays in JavaScript

Suppose I have this array that contains objects:

       var purchasedSeats =( {
            FlightNumber: '1',
            Price: 25,
          },
          {
            FlightNumber: '1',
            Price: 10,
          },
          {
            FlightNumber: '2',
            Price: 25,
          },
          {
            FlightNumber: '2',
            Price: 25,
          })

purchasedSeats can be in any order any order
Also I have another array which is shown below:

 var Passengers=({SelectedSeats:()},{SelectedSeats:()});

my goal is to get the output as:

Passengers=(
  {SelectedSeats:({FlightNumber: '1',Price: 25},{FlightNumber: '2',Price: 25,})},
  {SelectedSeats:({FlightNumber: '1',Price: 10},{FlightNumber: '2',Price: 25,})}
)

Each SelectedSeats shouldn’t have same flightnumber.

Below is the code which I have implemented and is working.Is there a better way?

          for (let i = 0; i < Passengers.length; i++) {
          for (let seat = 0; seat < purchasedSeats.length; seat++) {
              console.log(seat)
              if (Passengers(i).SelectedSeats.length === 0) {
                  Passengers(i).SelectedSeats.push(purchasedSeats(seat))
                  purchasedSeats.splice(seat, 1);
              } else {
                  const flightExists = Passengers(i).SelectedSeats.some(function (el) {
                      return el.FlightNumber === purchasedSeats(seat).FlightNumber;
                  });
                  console.log(flightExists);
                  if (!flightExists) {
                      Passengers(i).SelectedSeats.push(purchasedSeats(seat));
                      purchasedSeats.splice(seat, 1);
                  }
              }
          }
      }

How to assign object to variable in Powershell

i am trying to assigned a variable from a search object :

$tes = $ListLookup.Items | where-object {$_.title -eq “TEST”} | sort Title | FT ID

So the above brings back the ID of the item l want but l want to assign that ID number “4” to a variable

So l can use it in $listLookup = $List.GetItemById(4) as l am trying to get information via that code

Hope that make sense

networking – How do I assign IPv6 addresses to the interfaces of my linux-based router?

I’m using a commodity PC running Ubuntu Server 18.04 as the router for my home network. This has been working great for me for years with IPv4, but I’ve been trying to make it dual-stack, and I’m struggling with how address allocation works in this scenario – all of the documentation I’ve found is oriented toward end users already behind a configured router, or enterprises with static addressing needs.

My ISP fully supports IPv6 without tunneling, and indeed has already assigned my router’s WAN interface a 2xxx global unicast address, with a subnet number of 0.

My LAN interface, however, has no IPv6 address other than the link-local fe80 address, which makes it impossible for me to set up packet forwarding for my LAN. How does this interface get an IPv6 address? It doesn’t seem appropriate to statically assign it an address, since it needs to be a member of the prefix that my ISP has dynamically assigned me, which could presumably change. And specifying iface $LAN inet6 auto in /etc/network/interfaces has had no effect.

It’s my (vague) understanding that DHCPv6 is usually unnecessary and inappropriate for home network scenarios, and regardless, I’d like to satisfy myself that I understand how SLAAC and router advertisement works before I set that up.

c# – Why don’t we assign a class for each gameobject type in unity?

I used to create games from scratch with C++. There, people would create a “class Bullet”, and add functionality to that class so that we can instantiate objects of class Bullet at runtime.

However, in Unity (which I’m new to), we need to create a Bullet GameObject in the editor, and then assign “class BulletBehaviourA : MonoBehaviour” to the Bullet GameObject. I don’t really grasp this logic. Why don’t we have a class for the Bullet in Unity?