When I click on lightning:button(Create), I am able to dynamically create lightning:input element from js controller but When I click on lightning:button(Set Value), I am not able to set value for the lightning:input by accessing its aura:id. I am getting error as " [Cannot read property 'set' of undefined]"...Even I tried the answer posted in() but there they have used ui:button but here I am using lightning:input.  &lt;aura:component&gt;      &lt;lightning:button label="Create" onclick="{!c.createElements}" variant="brand"/&gt; &lt;br/&gt;      &lt;div aura:id="createdynamicInputText"&gt;&lt;/div&gt;      &lt;lightning:button label="Set Value" onclick="{!c.setValue}" variant="brand"/&gt; &lt;br/&gt; &lt;/aura:component&gt;   js controller  createElements : function(component, event, helper){          $A.createComponent(                 "lightning:input",                 {                     "aura:id":"objectField",                     "label": "User Name",                     "type": "text"                 },                 function(msgBox){                                     if (component.isValid()) {                         var targetCmp = component.find('createdynamicInputText');                         var body = targetCmp.get("v.body");                         body.push(msgBox);                         targetCmp.set("v.body", body);                      }                }            );      },     setValue : function(component, event, helper){         component.find("objectField").set("v.value","Testing");     }   I have also tried the below code but not working for my thing,  setValue : function(component, event, helper){         //component.find("objectField").set("v.value","Testing");         var input = component.find({ instancesOf : "lightning:input" })[0];         input.set("v.value", "Testing");     }    can anyone please help me here to solve this issue, thanks in advance
Below is my code to create the component dynamically - The component is "ui:inputselect"  $A.createComponent(             RecoveryLineItem.Attributes[i].name,{                 "class" : "slds-input ",                 "aura:id" : 'ExampleId',                 "label" : RecoveryLineItem.Attributes[i].label,                 "multiple" : RecoveryLineItem.Attributes[i].multiple             }, ....   ..  console.log(component.find('ExampleId').get("v.value"))    Or console.log(component.find('ExampleId'))  is Giving as 'Undefined"  How to access the aura:id of the dynamically created components?
"Awesome" vs. "Awful" Biblatex + Xelatex does not display accents Why won't my follower follow me after the "A Night to Remember" quest line? At the end of the "A Night to Remember" quest line, my follower came with me when I was teleported to the Misty Grove. Once there, I told my follower to wait.  Now, when I was teleported back to the real world, my follower's not with me: presumably because he's still waiting at the Misty Grove. I've waited for some time and still he hasn't come back.  How can I get my follower back? Suppose that $f:\Bbb R\to \Bbb R$ is continuous and that $f(x)\to 0$ as $x\to \pm\infty.$Prove that $f$ is uniformly continuous. Suppose that $f:\Bbb R\to \Bbb R$ is continuous and that $f(x)\to 0$ as $x\to \pm\infty$. Prove that $f$ is uniformly continuous.   Since $f(x)\to 0$ as $x\to \pm\infty$ we have $|f(x)|&lt;\epsilon $ whenever $x&lt;-K$ and $x&gt;K$ where $K&gt;0$.  Also $f$ is uniformly continuous on $[-K,K]$ as the domain is compact.  Hence $f$ is uniformly continuous in $(-\infty,-K)\cup [-K,K]\cup (K,\infty)$.  But how to conclude that $f$ is uniformly continuous on $\Bbb R$ from above as I may chose $x\in (-\infty,-K);y\in [-K,K]$ ,how to conclude that $|f(x)-f(y)|&lt;\epsilon $ from above for a given $\epsilon$?  Please suggest the edits required. Execute command in remote active terminal Suppose you have a terminal emulator (T1) open with a PID of 6350.  From another terminal, type this command (C1):  echo "ls\n" &gt; /proc/6350/fd/0   This writes ls and the new line in T1 but does not execute it. Why?  I also tried using cat|bash with echo "ls\n" &gt; /proc/catid/fd/0 but it is still not executed.  How can I echo the command into another terminal and have the command executed?  possible answer :  $ mkfifo toto; $ bash &lt; toto; $ echo "ls" &gt; toto;   In this case you cannot write anymore directly in the terminal (everything is displayed the same way the command (C1) displayed thing in this terminal. I am getting a NoClassDefFoundError when I run my Java application.  What is typically the cause of this? LIGO flawed by the identical expansion of laser wavelength and arms in presence of a gravitational wave? , Laser Interferometer Gravitational-Wave Observatory, is a large-scale physics experiment aiming to directly detect gravitational waves. The device measures the phase shift laser beams.  If I understand this well, the measurement assumes that a suitable gravitational wave reduces and prolongs one of the tubes and the extension will take effect in the phase-shifting laser beams.  But I think if there's a gravitational wave that passes through it, it will affect everything, even the laser beam. This means that when the wave lengthens or shortens the tube, it also lengthens or shortens the wavelength of the laser beam.  In my opinion, therefore, this device does not work. Or am I wrong? Definition of the Pauli group and the Clifford group There seem to be two definitions of the Pauli group. In Nielsen and Chuang, the Pauli group on 1 qubit is defined as \begin{align*} \mathcal{P}_1 = \{\pm I, \pm iI, \pm X, \pm iX, \pm Y, \pm iY, \pm Z, \pm iZ\} = \langle X, Y, Z\rangle. \end{align*} But in other references, such as ,  \begin{align*} \mathcal{P}_1 = \{\pm I, \pm X, \pm iY, \pm Z\} = \langle X, Z\rangle. \end{align*} The second definition makes more sense in the stabilizer formalism, since we usually only consider the action of Pauli strings of $X$ and $Z$. What bothers me is that by the second definition, the phase gate $S$, which is an element of the Clifford group, results in \begin{align*} SXS^\dagger = Y \notin \mathcal{P}_1. \end{align*} I know that the prefactor $\pm i$ somehow doesn't matter, but can someone justify it from a more mathematical/group-theoretical perspective? Are all integers fractions? Can I levitate an object without using an electromagnet? Finding what's using all the space in *nix Which sequence of commands will tell me which files are the largest starting from a particular directory, including all sub directories? I want to know where all the space went.  Preferably just with regular unix'y commands.  If possible, try to keep it compatible with Sun OS 5.10 (perhaps in addition to regular Linux answers, not as a replacement, to keep it as general as possible.) I'm studying machine learning and every book I open I bump into chi-squared distribution, gamma-function, t-distribution, Gaussian, etc.   Every book I have opened so far only defines what the distributions are: they don't explain or give the intuition on where the specific formulas for the functions come from.   For example, why is chi-squared distribution the way it is? What is the t-distribution? What is the intuition behind the distribution? Proofs? etc.   I would like to have a clear and fundamental understanding of the most commonly used distributions so that every time later on when I see them, I truly understand what is a t-distribution, what is a Gaussian distribution and most importantly why are they the way they are.   It would be nice if the books / tutorials  can explain the concepts to a layman so that in order to understand them you don't already need to understand them x) Many books are like this, they don't fit for beginners :( I created a test MVC sharepoint app succesfully in a solution. Now I need to integrate this into a main solution project.   But when I added a SharePoint MVC App into the solution and hit F5, I am getting following error:  Error occurred in deployment step 'Install app for SharePoint':  Failed to install app for SharePoint. Please see the output window for details.   Detailed stack trace:  CorrelationId: 50583239-71cb-4b07-8bcb-4bbc51a22631      ErrorDetail: There was a problem with activating the app web definition.      ErrorType: App      ErrorTypeName: App Related      ExceptionMessage: Microsoft.SharePoint.SPException: Exception from HRESULT: 0x81070964 ---&gt; System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x81070964 at Microsoft.SharePoint.Library.SPRequestInternalClass.EnableModuleFromXml(String bstrSetupDirectory, String bstrFeatureDirectory, String bstrUrl, String bstrXML, Boolean fForceUnghost, ISPEnableModuleCallback pModuleContext) at Microsoft.SharePoint.Library.SPRequest.EnableModuleFromXml(String bstrSetupDirectory, String bstrFeatureDirectory, String bstrUrl, String bstrXML, Boolean fForceUnghost, ISPEnableModuleCallback pModuleContext) --- End of inner exception stack trace --- at Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionModules(SPFeaturePropertyCollection props, SPSite site, SPWeb web, SPFeatureActivateFlags activateFlags, Boolean fForce) at Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionElements(SPFeaturePropertyCollection props, SPWebApplication webapp, SPSite site, SPWeb web, SPFeatureActivateFlags activateFlags, Boolean fForce) at Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, SPFeatureActivateFlags activateFlags, Boolean fForce) at Microsoft.SharePoint.SPFeatureCollection.AddInternal(SPFeatureDefinition featdef, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean fMarkOnly) at Microsoft.SharePoint.SPFeatureCollection.AddInternalWithName(Guid featureId, Int32 compatibilityLevel, String featureName, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean fMarkOnly, SPFeatureDefinitionScope featdefScope) at Microsoft.SharePoint.SPFeatureCollection.AddInternal(Guid featureId, Version version, SPFeaturePropertyCollection properties, Boolean force, Boolean fMarkOnly, SPFeatureDefinitionScope featdefScope) at Microsoft.SharePoint.SPFeatureCollection.Add(Guid featureId, Boolean force, SPFeatureDefinitionScope featdefScope) at Microsoft.SharePoint.SPUserSolutionCollection.EnsureWebFeaturesActivated(SPUserSolution solution) at Microsoft.SharePoint.Packaging.SPUserCodeSolutionDeploymentGroup.ActivateSolution(SPWeb web, SPUserSolution solution) at Microsoft.SharePoint.Packaging.SPUserCodeSolutionDeploymentGroup.Deploy() at Microsoft.SharePoint.Administration.SPAppTask.DeployOperation() at Microsoft.SharePoint.Lifecycle.MonitoredTaskExecution.DoTask()      Source: AppWeb      SourceName: App Web Deployment   Can somebody shed a light on this issue? :) Troubleshooting "program does not contain a static 'Main' method" when it clearly does...? Can linear momentum be conserved before and after collision in the presence of an external force? I'm a physics tutor for 11th and 12th grade students. I taught my students that momentum is conserved only when the net external force on the system is zero. But in the books we are following, momentum was conserved in the following cases in spite of presence of an external force:   A body (mass m1) is dropped from a tower (height h) and another body (mass m2) is projected vertically upward with initial velocity u. Find the velocities just after collision. (Gravitational force is the external force) Two bodies projected towards each other on a rough table surface, with all required parameters given asked to find the velocities after collision. (frictional force is the external force) Body explodes in mid air. Momentum is conserved before and after explosion. (Again gravitational force is the external force)   I explained to my students in all these cases though an external force is present it has negligible effect. But I'm not satisfied with my answer.  EDIT: Thank you for the comments and answer. It is clear that contribution of external force to change in momentum is negligible. Can someone do the calculation of taking change in momentum into consideration and showing that it is negligible? Generating hatched filling using Region functionality What Hogwarts classes are taught to two houses at once? Is there a replacement for unistd.h for Windows (Visual C)? I'm porting a relatively simple console program written for Unix to the Windows platform (). All the source files include "unistd.h", which doesn't exist.  Removing it, I get complaints about misssing prototypes for 'srandom', 'random', and 'getopt'. I know I can replace the random functions, and I'm pretty sure I can find/hack-up a getopt implementation.    But I'm sure others have run into the same challenge.  My question is: is there a port of "unistd.h" to Windows? At least one containg those functions which do have a native Windows implementation - I don't need pipes or forking.  EDIT:  I know I can create my very own "unistd.h" which contains replacements for the things I need - especially in this case, since it is a limited set. But since it seems like a common problem, I was wondering if someone had done the work already for a bigger subset of the functionality.  Switching to a different compiler or environment isn't possible at work - I'm stuck with Visual Studio. True Ubuntu on Chromebook ARM How to split algorithm2e over two pages