I am trying to automate a minimal form interface using Selenium to capture an element &amp; later Java code.  But the challenge is the minimal form has only one input container which is constantly changing and the input container generates dynamic id's so finding the element by id name is not possible.  The input container cannot be mapped with xpath because xpath also uses the id  eg. //md-select[@id='select_15'].
There is a type and search drodown which will appear after user type in the value. I need to click on the dropdown which contains the name of the drop down field.   The problem here is that there is no unique attribute present (No unique class, no unique name) &amp; the id keeps on changing after every login so cannot take id also.
I have played the game Othello (Reversi) numerous times but I never approach it with a specific logic or algorithm to apply on each move in my mind. I won many times and lost as much. How would one approach this game? How would one work in his mind to prune the possible moves and choose the &quot;right&quot; one in each step? I see that most Othello CPUs more or less &quot;think&quot; the same at each move, how should I think on each move? Delete all data for a kind in Google App Engine I would like to wipe out all data for a specific kind in Google App Engine. What is the best way to do this? I wrote a delete script (hack), but since there is so much data is timeout's out after a few hundred records. How can I merge properties of two JavaScript objects dynamically? I need to be able to merge two (very simple) JavaScript objects at runtime.  For example I'd like to:  var obj1 = { food: 'pizza', car: 'ford' } var obj2 = { animal: 'dog' }  obj1.merge(obj2);  //obj1 now has three properties: food, car, and animal   Does anyone have a script for this or know of a built in way to do this?  I do not need recursion, and I do not need to merge functions, just methods on flat objects. Rotating hatch labels based on orientation changes in Data Driven Pages Strip maps? I've created a strip map for a linear feature and have it loaded as a data driven page.  I want to show stationing for the line.  The stationing displays properly on the first data driven page but on each subsequent page the stationing labels get messed up as the map orientation changes. I want the stationing labels perpendicular to the linear feature as shown in the first image.  The tick marks seem to rotate and stay perpendicular to the line but the labels won't.  How can I fix this? How do you clone an Array of Objects in Javascript? verifying an incorrect integrating factor I was doing some practice problems that my professor had sent us and I have not been able to figure out one of them. The given equation is:  $-y^2dx +x^2dy = 0$  He then asks us to verify that:  $ u(x, y) = \frac{1}{(x-y)^2}$  is an integrating factor.   I multiplied through to get:  $\frac{-y^2}{(x-y)^2}dx + \frac{x^2}{(x-y)^2}dy = 0$   However, the partial derivatives of these do not equal each other so I am a bit confused... Smaug first appeared in TA 2770 as a mature Fire-drake. I'm not sure if there are canonical sources which say his age or maturity, but he must have been quite large and quite old at the time in order to destroy the city of Dale and capture Erebor.  Since it is safe to assume that Smaug would have been attacking towns and stealing all of the gold and jewels he could get his claws on for most of his life, then he must have amassed a huge fortune prior to taking residence at Erebor. How did he transport his existing horde to Erebor? It seems unlikely that he would have simply abandoned all of his treasure that he had previously accumulated.  EDIT: It has been established that Smaug was not a mature drake at the time of his appearance. However, he may have already had a small horde (compared to Erebor). Why is plain-hash-then-encrypt not a secure MAC? We're trying to debug some applications performing broadcast.  What is the difference between the broadcast address 255.255.255.255 and as e.g. reported by ifconfig,  Bcast:192.168.1.255 Why don't I get a link error when I provide my own malloc and free? Mirror modifier mirrors on different axis/axes from the selected one(s) I have 2 objects a face and an ear. Mirror modifier works fine for the face. But when I use mirror modifier to duplicate the ear on X axis, it duplicates on Z axis. And when I use mirror modifier on Z axis it mirrors on X axis. How to correct the axis orientation? Does anyone know how prove the following?   Suppose that $f,g$ are holomorphic functions on a non-empty open connected set $\Omega \subset \mathbb{C}$ and that $|f|^2+ |g|^2$ is constant on $\Omega$. Show that $f$ and $g$ are constant on $\Omega$. I'm sorry if this seems a bit too basic, but I guess I'm just looking to confirm understanding here. I get the sense I'd have to do this in two steps, and I've started trying to grok correlation matrices, but it's just starting to seem really involved. I'm looking for a concise explanation (ideally with hints towards a pseudocode solution) of a good, ideally quick way to generate correlated random numbers.   Given two pseudorandom variables height and weight with known means and variances, and a given correlation, I think I'm basically trying to understand what this second step should look like:     height = gaussianPdf(height.mean, height.variance)    weight = gaussianPdf(correlated_mean(height.mean, correlation_coefficient),                          correlated_variance(height.variance,                          correlation_coefficient))    How do I calculate the correlated mean and variance? But I want to confirm that's really the relevant problem here.  Do I need to resort to matrix manipulation? Or do I have something else very wrong in my basic approach to this problem? Is it possible to enforce unique values in a column, excluding nulls? Can I completely disable Cortana on Windows 10? Windows 10 has Cortana, which I don't like. I disabled it as soon as I could. However, looking in Task Manager, the process for Cortana is still running, and can't be effectively terminated: ending the task simply results in the process respawning a few seconds later. Using the command  taskkill /IM Cortana.exe /F   has the same result: the process respawns.  Is there any way to disable Cortana so that the process doesn't keep running in the background, and doesn't respawn if terminated? Does iTunes work (well) on Ubuntu? Maximum and minimum of of $f(x)=|x-1|+|x-2|+|x-3|$ A question about the arctangent addition formula. In the arctangent formula, we have that:  $$\arctan{u}+\arctan{v}=\arctan\left(\frac{u+v}{1-uv}\right)$$  however, only for $uv&lt;1$. My question is: where does this condition come from? The situation is obvious for $uv=1$, but why the inequality?  One of the possibilities I considered was as following: the arctangent addition formula is derived from the formula:  $$\tan\left(\alpha+\beta\right)=\frac{\tan{\alpha}+\tan{\beta}}{1-\tan{\alpha}\tan{\beta}}.$$  Hence, if we put $u=\tan{\alpha}$ and $v=\tan{\beta}$ (which we do in order to obtain the arctangent addition formula from the one above), the condition that $uv&lt;1$ would mean $\tan\alpha\tan\beta&lt;1$, which, in turn, would imply (thought I am NOT sure about this), that $-\pi/2&lt;\alpha+\beta&lt;\pi/2$, i.e. that we have to stay in the same period of tangent.  However, even if the above were true, I still do not see why we have to stay in the same period of tangent for the formula for $\tan(\alpha+\beta)$ to hold. I would be thankful for a thorough explanation. I was told that the Galilean relative velocity rule does not apply to the speed of light. No matter how fast two objects are moving, the speed of light will remain same for both of them.   How and why is this possible?   Also, why can't anything travel faster than light? Is there an alternative to DVD-Shrink, that can compress a DVD image to a smaller size to fit on a writeable DVD? Is there a linux alternative to the Windows application DVD-Shrink, that can compress a DVD image to a smaller size to fit on a writeable DVD?  In backing up some DVD's the ripped ISO file size is over 7000MB is there an alternative linux software, similar to Windows "DVD Shrink" that can compress this to fit on a writeable DVD which is about 4000MB