How can I set up a parameter as an attribute drop down menu on a script tool? I have built a script tool in ArcGIS Pro and I would like to set up one parameter as a drop down menu (the options in the drop down menu should be all the attribute values of one of the map layers).   I can't seem to find the right 'Data type' to pick up. If I choose 'Layer' as 'Data Type' and I run the tool I get a drop down menu with all map layers. I'm looking for something similar but specific to a layer field. If I choose 'field' in 'Data Type' and I run the tool absolutely nothing happens. What is this 'field' referring to? How could I achieve what I'm looking for?
Deriving input based on other parameters in Python script tool? I have a folder and it contains two feature classes, e.g., a.shp and b.shp. The script tool created has two parameters. The first one is the model location, and the second one needs a feature class (a.shp), as shown in the below picture.  What I really want is every time when I set up the model location for the first input, the second input will automatically find the a.shp as the input rather than the user needs to choose a.shp from that folder. I noticed that the dependency is probably what I really need, but there is no code example. Any suggestions?   I am using ArcGIS 10.3.1 Advanced License.
Formal basis for variable substitution in limits Is there a specific purpose in terms of efficiency or functionality why the k-means algorithm does not use for example cosine (dis)similarity as a distance metric, but can only use the Euclidean norm? In general, will K-means method comply and be correct when other distances than Euclidean are considered or used?  [Addition by @ttnphns. The question is two-fold. "(Non)Euclidean distance" may concern distance between two data points or distance between a data point and a cluster centre. Both ways have been attempted to address in the answers so far.] I am working on an iGoogle-like application. Content from other applications (on other domains) is shown using iframes.   How do I resize the iframes to fit the height of the iframes' content?  I've tried to decipher the javascript Google uses but it's obfuscated, and searching the web has been fruitless so far.  Update: Please note that content is loaded from other domains, so the  applies. Is there a thumb-rule for designing neural-networks? I know that a neural-network architecture is mostly based on the problem itself and the types of input/output, but still - there's always a "square one" when starting to build one. So my question is - given a input dataset of MxN (M  is the number of records, N is the number of features) and a C possible output classes - is there a thumb-rule to how many layers/units should we start with? How can i find the python triggered by the GUI? I want to fully automatize some of my blender processes, an i run into a lot of problems not finding the correct commands, not using the correct args...  Can i just "see" in a log somewhere what were the commands blender ran ?  To be very precise, i want to load a gltf file, and export it to stl.  No problem through the gui, but i'm stuck with that bit of code :   import bpy import sys import os  file = open(r"C:\Users\theo1\Documents\GitHub\Hackathon2020\map&amp;mapdata\mini.gltf")  bpy.ops.import_scene.gltf(file) bpy.ops.export_mesh.stl(filePath=r"C:\Users\theo1\Documents\GitHub\Hackathon2020\map&amp;mapdata\mini.stl")   Which gives me this :   Traceback (most recent call last):   File "&lt;string&gt;", line 1, in &lt;module&gt;   File "C:\Users\theo1\Desktop\impExp.py", line 7, in &lt;module&gt;     bpy.ops.import_scene.gltf(file)   File "C:\Program Files\Blender Foundation\Blender 2.81\2.81\scripts\modules\bpy\ops.py", line 198, in __call__     C_dict, C_exec, C_undo = BPyOpsSubModOp._parse_args(args)   File "C:\Program Files\Blender Foundation\Blender 2.81\2.81\scripts\modules\bpy\ops.py", line 151, in _parse_args     raise ValueError("1-3 args execution context is supported") ValueError: 1-3 args execution context is supported   thanks. Eclipse Scala IDE - class file needed by X is missing How can one derive Schrödinger equation? The  is the basis to understanding quantum mechanics, but how can one derive it? I asked my instructor but he told me that it came from the experience of Schrödinger and his experiments. My question is, can one derive the Schrödinger equation mathematically? Evaluate the limit of $\lim_{n\to\infty}\frac{1}{n^2}\left(\frac{2}{1}+\frac{9}{2}+\frac{64}{9}+\cdots+\frac{(n+1)^{n}}{n^{n-1}}\right)$ Disk space usage doesn't add up with df & du The limit is   $$\lim_{x\rightarrow0} \frac{x-\sin_n(x)}{x^3},$$  where $\sin_n(x)$ is the $\sin(x)$ function composed with itself $n$ times:  $$\sin_n(x) = \sin(\sin(\dots \sin(x)))$$  For $n=1$ the limit is $\frac{1}{6}$, $n=2$, the limit is $\frac{1}{3}$ and so on.  Can we define a recurrent relation upon that given hypothesis? Also, how do I involve $n$ into calculation, because the final limit will depend on it?  Any suggestions on how to tackle this?  Thank you! EJB Transactions in local method-calls In the following setup, does method B run in a (new) transaction?  An EJB, having two methods, method A and method B  public class MyEJB implements SessionBean     public void methodA() {        doImportantStuff();        methodB();        doMoreImportantStuff();     }      public void methodB() {        doDatabaseThing();     } }   The EJB is container managed, with methodB in requires_new transaction, and method A in required transaction. thus:  &lt;container-transaction id="MethodTransaction_1178709616940"&gt;   &lt;method id="MethodElement_1178709616955"&gt;     &lt;ejb-name&gt;MyName&lt;/ejb-name&gt;     &lt;method-name&gt;*&lt;/method-name&gt;   &lt;trans-attribute&gt;Required&lt;/trans-attribute&gt;   &lt;/method&gt;   &lt;method id="MethodElement_1178709616971"&gt;     &lt;ejb-name&gt;MyName&lt;/ejb-name&gt;     &lt;method-name&gt;methodB&lt;/method-name&gt;   &lt;/method&gt;   &lt;trans-attribute&gt;RequiresNew&lt;/trans-attribute&gt; &lt;/container-transaction&gt;   Now let another EJB call methodA with an EJB method call. methodA now runs in an transaction. Will the subsequent call to methodB from methodA run in the same transaction, or does it run in a new transaction? (mind, it's the actual code here. There is no explicit ejb-call to method B) How do I change font size on the DataGridView? Is there a theorem that says that QFT reduces to QM in a suitable limit? Of course, it should be, as QFT is relativisitc quantum mechanics. But, is there a more manifest one? such as Ehrenfest's theorem which dictates the transition from QM to Classical Mechanics.  I am curious as the basic object in QM is wave function whereas the basic object in QFT is quantized operator, which looks very different, and wondering how the comparison works.  (Of course, I am aware that QFT can calculate corrections for Coulomb potential energy, which may seem to be a transition from QFT to QM, but I want one more manifest than that.) Removed Python 3 and now Ubuntu Software Center, terminal and other applications don't work Considering the following formulae:  (i) $1+2+3+..+n = n(n+1)/2$  (ii) $1\cdot2+2\cdot3+3\cdot4+...+n(n+1) = n(n+1)(n+2)/3$  (iii) $1\cdot2\cdot3+2\cdot3\cdot4+...+n(n+1)(n+2) = n(n+1)(n+2)(n+3)/4$  Find and prove a 'closed formula' for the sum  $1\cdot2\cdot3\cdot...\cdot k + 2\cdot3\cdot4\cdot...\cdot(k+1) + ... + n(n+1)(n+2)\cdot...\cdot (k+n-1)$  generalizing the formulae above.  I have attempted to 'put' the first 3 formulae together but I am getting nowhere and wondered where to even start to finding a closed formula. I've shown the existence of unique square roots of all positive rational numbers, so now I want to prove that the square root is monotone:   $0&lt;a&lt;b$ if and only if $\sqrt{a} &lt; \sqrt{b}$ Blender python custom UI button run custom function? What is the cardinality of the set of the empty set? Given set $ A = \{  \emptyset   \}$ what is $|A|$? I just learned about sets today in class and I'm unsure how to answer this. Importance of PTR records on nameserver IP's? I have not yet experienced any DNS failures due to a missing PTR record, but am wondering:   Is there any added value in having a valid PTR record on a nameserver IP-address? Determine whether or not a point lies within a rotated rectangle