I'm trying to get the text values of all of my div elements.  My expected output is:  Menu 1 Abc  Def Menu 2 Ghi  Jkl Menu 3 Mno  Pqr   But I get  Menu 1 Abc  Def Ghi  Jkl Mno  Pqr Menu 2 Abc  Def ...   HTML     &lt;div id="output"&gt;   &lt;div&gt;     &lt;input type="text" value="Menu 1"&gt;     &lt;br /&gt;     &lt;a href="#"&gt;Abc&lt;/a&gt;     &lt;br /&gt;     &lt;a href="#"&gt;Def&lt;/a&gt;     &lt;br /&gt;   &lt;/div&gt;   &lt;div&gt;     &lt;input type="text" value="Menu 2"&gt;     &lt;br /&gt;     &lt;a href="#"&gt;Ghi&lt;/a&gt;     &lt;br /&gt;     &lt;a href="#"&gt;Jkl&lt;/a&gt;   &lt;/div&gt;   ... &lt;/div&gt;   JS  $("#output div").each(function() {   console.log($(this).find("input").val());   $("a").each(function() {     console.log($(this).text() + "\n");   }); });   .
I have a layout similar to this:  &lt;div id="..."&gt;&lt;img src="..."&gt;&lt;/div&gt;   and would like to use a jQuery selector to select the child img inside the div on click.  To get the div, I've got this selector:  $(this)   How can I get the child img using a selector?
Dependency error while installing WINE Every time I try to install "WINE" VIA the Software Center on Ubuntu 12.10, I get this error:  The following packages have unmet dependencies:  wine1.4: PreDepends: dpkg (&gt;= 1.15.7.2~) but 1.16.7ubuntu6 is to be installed          Depends: libc6 (&gt;= 2.14) but 2.15-0ubuntu20 is to be installed          Depends: wine1.4-amd64 (= 1.4.1-0ubuntu1) but 1.4.1-0ubuntu1 is to be installed          Depends: wine1.4-i386 (= 1.4.1-0ubuntu1) but it is not going to be installed   When I try installing it VIA the terminal, this is what I get:  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  wine1.4 : Depends: wine1.4-i386 (= 1.4.1-0ubuntu1) but it is not installable            Recommends: gnome-exe-thumbnailer but it is not going to be installed or                        kde-runtime but it is not going to be installed            Recommends: ttf-droid            Recommends: ttf-mscorefonts-installer but it is not going to be installed            Recommends: ttf-umefont but it is not going to be installed            Recommends: ttf-unfonts-core but it is not going to be installed            Recommends: winbind but it is not going to be installed            Recommends: winetricks but it is not going to be installed E: Unable to correct problems, you have held broken packages.   how do I fix this? Pluralizing Numbered Items I'm building an application where I should capture several values and build a text with them: Name, Age, etc.   The output will be a plain text into a TextBox.  I am trying to make those information appear in kind of columns, therefore I am trying to separate them with tab to make it clearer.  For example, instead of having:  Ann 26 Sarah 29 Paul 45   I would like it to show as:  Ann tab 26 Sarah tab 29 Paul tab 45  Any tip on how to insert the tabs into my text? How to prove that any idempotent matrix is diagonalizable? Finding conditional distribution Let $X$ and $Y$ be independent $Exp(1)$-distributed random variables. Find the conditional distribution of $X$ given that $X + Y = c$ ($c$ is a positive constant).  this is my idea:  $$f_{X \mid X+Y}(x\mid c) = \frac{f_{X,X+Y}(x,c)}{f_{X+Y}(c) } $$  if this is the right definition then i might calculate the righthand side to obtain the distribution but Iam unsure Power supplies are available in a wide range of voltage and current ratings.  If I have a device that has specific voltage and current ratings, how do those relate to the power ratings I need to specify?  What if I don't know the device's specs, but am replacing a previous power supply with particular ratings?  Is it OK to go lower voltage, or should it always be higher?  What about current?  I don't want a 10 A supply to damage my 1 A device. Do I need quote marks when I quote myself? Hello language lovers,   English isn't my first language and I would like to know if I need to use quotation marks when I quote something I said in the past. Let $A$ and $B$ be two constant matrices and let $x$ and $ y$ be two random vectors, what is the general formula for $Var(Ax+By)$? I know the formula for when $x$ and $y$ are scalar random variables and $A$ and $B$ are constants, but what about the matrix case? We can solve the equation $x^x=c$ using the Lambert $W$ function, but how do we solve $x^{x^x}=c$ , So I was taught that:  Kinetic Energy (of electron) = Energy (of photon) - Ionization Energy  If E(photon) = IE, then KE=0 of the electron.   What does this physically/theoretically mean?   My current thoughts/interpretation is that enough energy/force is applied to ionize the electron so it is 'sufficiently far' from the atom, and then I guess it just moves with whatever speed it is moving at with natural kinetic laws, since no more energy/force is being applied....?  Any clarifications would be greatly appreciated, thanks in advance. What does "user was removed" mean and why did my reputation change because of it? Message appearing when a user was removed.     It seems I lost 1765 reputation points on Stack Overflow yesterday. The reason given in my history is "removed", with the description of "User was removed ()". I don't understand what that means. What caused this? How can I create a water material in Cycles? During the end credit scene of Spider-Man: Far from Home, we see that,      Nick Fury and Maria Hill are two Skrulls, Talos and (presumably) his wife.   And we also see that,      Nick Fury is in a spaceship like structure, presumably away from Earth.   So that begs the question,      How long has Talos been impersonating Nick Fury? Is it since the events of Captain Marvel or since Avengers: Endgame or sometime in between? For which values $r, s \in \mathbb R$ is the set $\{u, v, w\}$ linearly independent? What are the differences between "-" and "--" in commands? I often see a single dash - or double dash -- followed by linux commands or other installed linux programs.   What are the differences between single dash and double dashes?  Is it just about abbreviation?  For example, -v means --verbose most of the time. What is the explicit meaning of “corresponding author”? Problem  This question was triggered by the comments on , but comments and answers on   confirm the existence of conflicting ideas.  There seem to be two prevalent interpretations of the word corresponding author:   The corresponding author is the one who corresponds the (unpublished) paper to the journal, i.e., who performs the technical process of submitting the paper, is available for requests on the review and publishing processes, and so on. The corresponding author is the one who corresponds on the (published) paper with anybody who likes to do so, e.g., because they found an error or like some clarification.   What I found out so far  Until today, I was only aware of the first interpretation, which was confirmed by my experience: For all papers I submitted, I automatically became the corresponding author and cannot remember that I could choose one of my co-authors for this role. Some of these journals do not even indicate a corresponding author to the reader. Also, there already is a way to indicate that an author is available for questions on the paper (interpretation 2): stating the e-mail address.  On the other hand, other journals do indicate corresponding authorship, which makes little sense for interpretation 1. Also, the value put into this role by some funding agencies for its  makes more sense for interpretation 2 (not that I completely agree with it).  Looking for some guidelines from publishers covering multiple fields, I found the following  from Elsevier¹, which kind-of covers both interpretations:     Clearly indicate who will handle correspondence at all stages of refereeing and publication, also post-publication.   While there are other questions on this site touching this issue, they focus on consequences of the interpretation, such as , , or .  Actual question  What is the explicit meaning of the word corresponding author? Interpretation 1 or 2 as listed above, both, something else, or is this an extreme example of  and the answer depends on the field or publisher? Please answer only if you have more to offer than personal experience and individual journal guidelines. In particular, please address the possibility of a varying meaning.     ¹ which is separate for each journal, but seems to be identical in content for many journals zero matrix to the power of 0 Why $0^0=I$?   I'd tried prove that considering $N^0$ where N is a Nilpotent matrix and then using the Cayley -Hamilton theorem  Thanks in advance. How to change desktop background from command line in Unity? I have a script that updates my desktop background every day with the NASA APOD. Since upgrading to 11.10, that script stopped working, presumably because I'm using gconftool-2 to actually update the desktop background. Is there a new way to do this under Unity? Prove that for every prime $p$, there exists a solution to $(x^2-2)(x^2-6)(x^2-3) \equiv 0 \mod(p)$ So far: I know that$\mod(p)$ is a field thus one of the factors in the expression has to equal $0$ $\mod(p)$ for some $x$. However I just don't know where to continue from this point? How do I approach a congruency like this? Are there any general tips for problems like these?  Thanks for all the help. I have the Nikon kit lens that came with a D5100 — the kit lens is  . I was thinking of getting a fast lens and I am looking to buy the .  Should I consider 35mm or instead buy a 55-200mm for better range?