creating a list of tuples (x, y) from a string
Converting string to tuple and adding to tuple
How do I mimic Pathauto transliterated output for an alias in my custom PHP code? When writing my custom function I need to manually append node name to a taxonomy term link. To get the taxonomy term part done I use:    $link_uri = taxonomy_term_uri($term);   $path_alias = drupal_get_path_alias($link_uri['path']);   This works ok, now - I want to append node name ("/" . $node_name), but instead of raw string, I want the Pathauto transliterated output, as set in the URL alias configuration, for that node context.  What function should I use to mimic that output? I looked at hook_pathauto_alias_alter(&amp;$alias, array $context) but I'm not sure that's what I need. component.set not working for picklist field I have a number of lightning:inputField that i'm setting based on certain criteria, these all work except for picklist field types. The code below shows how i am setting the fields. The country field is the picklist and the 2 alerts have the correct value in them, however the value is not getting set on country. Is there a different method for setting picklist fields?  var address = res.getReturnValue(); var country = component.find('Country__c'); var pcodeFld = component.find('Postcode__c');  if(country != undefined){  alert(country);  alert(address.Country);  country.set('v.value', address.Country); } if(pcodeFld != undefined){  pcodeFld.set('v.value', address.Postcode); }   EDIT: I can set a default value whilst using $A.createComponents using .set("v.value", "United Kingdom");  it just seems that i can't set it after the component has rendered based on some user action.  Reproduceable Example:  I just can't seem to set the value of any picklist fields when using lightning:inputField.  Component  &lt;aura:component implements="flexipage:availableForRecordHome, force:hasRecordId"&gt; &lt;div class="slds-p-bottom_large slds-p-left_large" style="width:500px"&gt;     &lt;lightning:recordEditForm aura:id="recordViewForm"                                   recordId="{!v.recordId}"                                  objectApiName="Contact"&gt;         &lt;lightning:messages /&gt;         &lt;lightning:inputField fieldName="FirstName" /&gt;         &lt;lightning:inputField fieldName="LastName" aura:id="lastname"/&gt;         &lt;lightning:inputField fieldName="Birthdate" /&gt;         &lt;lightning:inputField fieldName="Phone" /&gt;         &lt;!--Picklist--&gt;         &lt;lightning:inputField fieldName="Country__c" aura:id="Country__c"/&gt;         &lt;lightning:button label="Update" variant="brand" onclick="{!c.update}"/&gt;     &lt;/lightning:recordEditForm&gt; &lt;/div&gt;     &lt;/aura:component&gt;   Controller  ({         update: function(component, event, helper) {         //alert(component.find("Country__c"));        component.find("Country__c").set("v.value", "Ireland");     },  }) How are constraint forces represented in Lagrangian mechanics? Are there any organised resources available from where I can begin my quantum computing studies? Passing a varible from jQuery to PHP Why is a ConcurrentModificationException thrown and how to debug it Examples of infinite groups such that all their respective elements are of finite order. I am in need of examples of infinite groups such that all their respective elements are of finite order. "Which" vs. "what" — what's the difference and when should you use one or the other? Most of the time one or the other feels better, but every so often, "which" vs. "what" trips me up.   So, what's the exact difference and when should you use one or the other? No surname in my passport Could the granting lag for each badge be added to the FAQ? In terms of UX what do you guys think is the best approach when integrating a trial period for subscriptions?  My application offers a 15 day trial, at the minute the user can sign up without providing any payment information (Paypal Subscription). The account is then set to trial status and after 15 days the user will be redirected to an upgrade page.  Do you think this is the best approach? I am unsure whether or not to let Paypal manage the trial, this however means that the user will need to go through the Paypal payment system during signup. I think this may put some people off signing up.  On the other hand this approach may increase the number of conversions to a full account. How to make document custom page dimensions? What do they do with all the plates and cups in Star Trek? Whenever someone in Star Trek creates food or drink in the replicator it is generated in the bowl, plate, or cup. It seems like after a few months they would have piles of used dishes from replicator food while making more for every meal. What do they do with all the dishes? ConcurrentModificationException Woes How can I switch between starting a coroutine vs running the routine all at once? I'm generating a level, and I have an optional delay to show the steps level generation one by one.  If my generationDelay boolean is true, I want to use StartCoroutine to spread the generation out over time. If it's false, I want to call the same method but without StartCoroutine.  The problem is that the method is type IEnumerator.  I can make two methods one type of IEnumerator and one not. But I wonder if there is a way to use one method.  In the first script top i did:  public bool generationDelay = false;   Then in a method:  private void BeginGame()     {         mazeInstance = Instantiate(mazePrefab) as Maze;          if (generationDelay == true)         {             StartCoroutine(mazeInstance.Generate(generationDelay));         }         else         {             mazeInstance.Generate(generationDelay);         }     }   Then the other script where the method Generate is: In the top:  public float generationStepDelay = 0.01f;   Then the method Generate:  public IEnumerator Generate (bool generationDelay) {          if (generationDelay == true)             WaitForSeconds delay = new WaitForSeconds(generationStepDelay);         cells = new MazeCell[size.x, size.z];         List&lt;MazeCell&gt; activeCells = new List&lt;MazeCell&gt;();         DoFirstGenerationStep(activeCells);         while (activeCells.Count &gt; 0) {             yield return delay;             DoNextGenerationStep(activeCells);         }     }   I'm getting an error on the line:   WaitForSeconds delay = new WaitForSeconds(generationStepDelay);      "Embedded statement cannot be a declaration or labeled statement"   And an error on the line:  yield return delay;      "The name 'delay' does not exist in the current context"   The reason I want to use a bool variable is that when i'm using StartCoroutine it's kind of slow, even if I change the value of generationStepDelay to 0 it's kind of slow. And if I'm not using StartCoroutine and not using the Generate method as IEnumerator it will work fast.  So i wonder what should I do and how? The wavefunction $\Psi(x,t)$ for a free particle is given by  $$\Psi(x,t) = A e^{i(kx-\frac{\hbar k}{2m}t)}$$  This wavefunction is non-normalisable. Does this mean that free particles do not exist in nature?  Why then do we use free particles $\psi(\vec{x}) = e^{ikz}$, for example, in scattering theory? How can I disable a tab inside a TabControl? Is there a way to disable a tab in a ? Quantum entanglement for faster-than-light (FTL) network communication? Quantum entanglement is 2 atoms that are paired together and when you stop one from spinning the other also stops with the same spin. Can you use these pairs to have faster-than-light (FTL) communication between 2 computers? how to *completely* turn off automatic updates in Windows 10 I have disabled the services &quot;Windows Update&quot; and &quot;Windows Update Medic Service&quot; in using services.mcs. Furthermore, I made changes to the registry, creating a key HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU with a DWORD (32-bit) Value &quot;AUOptions&quot; with value set to 2. I still see frequent queries to ctldl.windowsupdate.com sent to my DNS server. Which services need to be disables to completely shut this down? CSV for Excel, Including Both Leading Zeros and Commas