How do you get all of the inputs of form on a page into an array while matching by input type(text|checkbox|radio)?   JavaScript:  Just plain js like this will give me ALL of the inputs  var inputs = document.getElementsByTagName( 'input' );   Now with jQuery:  I have jQuery loaded and I tried: as per docs ()  $( "&lt;input&gt;" ).is( ":text" );  $( "&lt;input&gt;" ).is( "[type=text]" );    Console Error message:  TypeError: undefined is not a function message: "undefined is not a function" stack: (...) get stack: function () { [native code] } set stack: function () { [native code] } __proto__: Error   Additional information:  The page I am trying to get text inputs on is in an iFrame and this whole interaction is running within a webkit.   My main page has jQuery loaded. The iFrame page does not.   Need to get inputs on iFrame page with jQuery from my main page.
I would like to manipulate the HTML inside an iframe using jQuery.  I thought I'd be able to do this by setting the context of the jQuery function to be the document of the iframe, something like:  $(function(){ //document ready     $('some selector', frames['nameOfMyIframe'].document).doStuff() });   However this doesn't seem to work. A bit of inspection shows me that the variables in frames['nameOfMyIframe'] are undefined unless I wait a while for the iframe to load. However, when the iframe loads the variables are not accessible (I get permission denied-type errors).  Does anyone know of a work-around to this?
Find $cot\space x_n$ if $sin(x_{n+1}-x_n)+2^{-(n+1)}sin\space x_nsin \space x_{n+1}=0$ for $n\ge1$ Also Given     Suppose $x_1=tan^{-1}2&gt;x_2&gt;x_3&gt;......$ are positive real numbers   I cannot understand as to how I should approach but I have a hunch which is a bit hand-wavy way to prove it but tried to show that  $lim_{n \to \infty}x_n =\dfrac{\pi}{4}$ (For the proof see my edits in @hypernova's answer)  But can anybody prove it and then use it to find $cot \space x_n$ please? To prove that if $n$ is odd, then $8 \mid n^2−1$, observe that as $n$ is odd either $n = 4k+1$ for some integer $k$ or $n=4k+3$ for some integer $k$. In the first case $n^2 -1=8(2k^2+k)$ and in the second case $n^2-1 = 8(2k^2 + 3k + 1)$.  Given an odd integer $a$, establish that $a^2 +(a+2)^2 +(a+4)^2 + 1$ is divisible by $12$. Solve by consideration of six cases. In my cover letter I want to write that I am a graduate student in statistics. But I am not sure about the "in". So what is correct?     I am a graduate student in statistics.      I am a graduate student of statistics. I’m writing a document in the latex and it contains some BNF grammar noations in several places of the documents. (I used verbatim package in order to write these BNF grammar notations)  Now I want to add a new section to the document that shows name of all grammar notation and their page numbers. This should be similar to “List of Figures” page.  I’m new to Latex and your help will be very helpful for me.  Thanks Show that the sequence $a_0 = 1$, $a_{n+1 }= \sqrt{2+a_n}$ is monotonically increasing Given the sequence $a_0 = 1$, $a_{n+1}= \sqrt{2+a_n}$, how can I show that it is monotonically increasing?  I need it to show, that the sequence converges. I already proved boundedness but I can't figure out this last part. How can I enable "clicklock"? Gerund preceded by a genitive? Is this sentence actually grammatical?     You know your having a rough day when kittens don't even make you smile.   The writer of this sentence may intend to mean you're instead of your but I'm just wondering if having a gerund preceded by a genitive is considered grammatical in this case.  If the sentence above is ungrammatical, why is this sentence grammatical?      He resents your being more popular than he is.   What's the difference between these two sentence that determines one to be grammatical and the other to be not?  This is how I analyze the two sentences and I can't see the difference:   "You know it when kittens don't even make you smile" for "it" = "your having a rough day" "He resents it" for "it" = "your being more popular than he is" Linux/Bash: Create relative soft links to files in directory tree? Is it possible to be admitted to a masters in Germany with a 3-year bachelors from another country? LWC Get Pick-list Field Values In LWC, is it possible to get a pick-list field's possible values?  I'm writing a component that is embded into a lightning record page. I need my component to be able to load the record from the page, get data from the fields and use that data to pre-populate my search form with default values.  I have this working with city/state and checkbox fields. Right now the city/state fields are built pull data from an aggregate query of contacts to find all possible state/city combinations (I know this is doomed to fail when the records reach over 50k contacts but Its good enough for now).  I have a pick-list field on my object called skill level, I need to be able to build a combo box that has all the possible values for skill level and set the default value to the value on the associated record.  I'd like to avoid hard-coding the available options if possible.  In LWC, is it possible to get a pick-list field's possible values? I have a GTX 660M and Ubuntu 18.04 64-bit.  According to , the latest graphics driver for this card is version 410.66.  The  says  Current long-lived branch release: `nvidia-410` (410.66)   I have nouveau drivers installed at the moment according to lsmod and, apt-get purge 'nvidia*' does nothing.  I have done add-apt-repository ppa:graphics-drivers and apt-get update and a reboot.  Running ubuntu-drivers devices gives this output  == /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 == modalias : pci:v000010DEd00000FD4sv00001028sd00000551bc03sc00i00 vendor   : NVIDIA Corporation model    : GK107M [GeForce GTX 660M] driver   : nvidia-304 - third-party free driver   : nvidia-driver-390 - third-party free driver   : nvidia-340 - distro non-free driver   : nvidia-driver-396 - third-party free driver   : nvidia-driver-410 - third-party free recommended driver   : xserver-xorg-video-nouveau - distro free builtin   Note this line:  driver   : nvidia-driver-410 - third-party free recommended   It looks like everything is ready to go to install driver version 410, but autocompleting apt-get install nvidia- indicates the highest available version is nvidia-390, and trying apt-get install nvidia-410 directly fails.  Why does apt not list the version 410 that the PPA and ubuntu-drivers both say is there?  And if I can't apt-get install nvidia-410, how can I install this version? A simple pendulum moving at a relativistic speed - how does the period change? I've been pondering the precise mechanism of time dilation for the example of a simple pendulum in two different situations:   The observer and ground are at rest in one frame of reference;  the pendulum is moving at high speed with respect to that frame. The observer is at rest in one frame of reference; the pendulum and the ground together move at high speed with respect to that frame.   user8260 has pointed out that in situation 1, in the pendulum's frame $g$ is greater by $\gamma^2$ compared to $g$ in the observer's frame. Thus in the pendulum's frame the period is less than it is in the observer's frame by a factor of $1/\gamma$, just as one would expect from time dilation.  But what about situation 2? Here, compared to the pendulum frame, the observer sees the pendulum with the same length in a stronger gravitational field, yet observes a longer period. Does the inertial mass of the pendulum change differently than its gravitational mass? Also, does the analysis depend on whether the plane of swing is perpendicular or parallel the direction of motion? Received an email intended for another person I'm not really sure how email routing works, but someone ordered something on Amazon and I received the email instead of them.  Or maybe we both got it, I don't know.  The order doesn't show up in my account, so I'm certain I wasn't charged for it, but I shouldn't be getting other peoples' emails.  We'll say that my email is johndoe1@gmail.com, and somebody who's email is john.doe1@gmail.com places an order on Amazon.  The confirmation email is sent to me at johndoe1@gmail.com.  I checked the email header, and it did say To: john.doe1@gmail.com which is not my email address.  At first I thought that Google ignores periods in email addresses, but I tested the account setup and it doesn't give any error when you put a period in the address.  I didn't create the account; I just used the "check availability" function and the address I chose with a period was fine.  Maybe someone with knowledge about how Email works could tell me why this happened.  Is this a bug in the way Amazon sends emails?  Or is it a bug in how Google receives them?  Who should I report this issue to? Will Determinism be ever possible? Suppose $\sum{a_n}$ converges. How do I prove that $\sum{\frac{\sqrt{a_n}}{n}}$ converges How to sort a ConcurrentSkipListMap by value? Releasing bound ports on process exit How do I make sure that a socket bound to a port is properly released on process exit such that the port can be reused without bind() failing with EADDRINUSE? I've written a tiny program which just creates a socket, binds it to a fixed port, waits for a connection and then immediately terminates. When I rerun the program, the bind() call fails with EADDRINUSE, but if I wait a few minutes, it succeeds.  Is there a way I can explicitly "unbind" the socket, thereby freeing the port number? I've bunch of folders in folder A. I want to move files from all those folders to A.  Or  I want to cut all files from child folders and paste them in parent folder.  How to do that? Why does \cal{M}_n give “M>”? Is it possible to understand the One Piece storyline by watching the movies only?