I have the iframe:  &lt;!DOCTYPE html&gt; &lt;html&gt;     &lt;body&gt;    &lt;div style="height:300px;width:100%;background:red" class="embed-responsive"&gt;     &lt;iframe src="test.html" width="auto" height="auto" class="embed-responsive-item" allowfullscreen webkitallowfullscreen mozallowfullscreen frameborder="0"&gt;&lt;/iframe&gt;     &lt;/div&gt;     &lt;/html&gt;   I want to obtain in my test.html the effective height of iframe (not auto but 300px)  I tried to do this:  parent.document.getElementsByTagName("iframe")[0].getAttribute("height");   But the results is auto and not 300  Somebody can help me?
How do you get the rendered height of an element?  Let's say you have a &lt;div&gt; element with some content inside. This content inside is going to stretch the height of the &lt;div&gt;. How do you get the "rendered" height when you haven't explicitly set the height. Obviously, I tried:    var h = document.getElementById('someDiv').style.height;   Is there a trick for doing this? I am using jQuery if that helps.
Notification that ‘someone might be watching what you browse’ I know that the rotation period of the moon equals its revolution period. It's just so astonishing that these 2 values have such a small difference. I mean, what is the probability of these 2 values to be practically the same? I don't believe this to be a coincidence. It's just too much for a coincidence. What could have caused this? How do I draw text at an angle using python's PIL? Using Python I want to be able to draw text at different angles using PIL.  For example, imagine you were drawing the number around the face of a clock.  The number 3 would appear as expected whereas 12 would we drawn rotated counter-clockwise 90 degrees.  Therefore, I need to be able to draw many different strings at many different angles. Is something similar to Robin's theorem known for possible exceptions to Lagarias' inequality? Robin's theorem says that if $$\sigma(n)&lt;e^\gamma n\log\log n$$ holds for all $n&gt;5040$, where $\sigma(n)$ is the sum of divisors of $n$, then the Riemann hypothesis is true, but if there are any counterexamples, then they are colossally abundant numbers, and there are infinitely many counterexamples.  Lagarias' theorem says $$\sigma(n)\leq H_n+e^{H_n}\log(H_n)$$ holding for all natural numbers $n$ is equivalent to the Riemann hypothesis, where $H_n$ is the $n$th harmonic number, the sum of the reciprocals of the first $n$ positive integers. It looks like Lagarias' inequality is sharper than Robin's, so any counterexamples to Robin's inequality must also be counterexamples to Lagarias'. Is known to be impossible for integers that aren't colossally abundant numbers or of some similar more general type to be exceptions to Lagarias' inequality? Lost access to sudo sudo: unable to resolve host   I think I need to edit the /etc/hosts file to make an entry for 127.0.1.1 PC name.  But how can I do that if I can't access sudo? It seems to have gone since I updated to 13.10.  I have tried nano, which still doesn't work. I have been running Ubuntu 18.04 for a couple of weeks. I upgraded from 16.04 and all went smoothly.   I am not sure what I changed, but this morning I noticed that the "Settings" Icon that launches gnome-control-center is missing from "Show Applications" and the applications menu as well. When I searched from "Show Applications" for gnome-control-center or just settings, nothing showed up.   So, I figured I must have accidentally removed it and figured a reinstall of the package would resolve the issue. I have searched and found several postings where this worked. I tried:  sudo apt install gnome-control-center   And then rebooted - which reinstalled the gnome-control-center and I could then launch it from the command line. However, there was still no Settings Icon in any of the menus.   I also tried many other suggestions including:  sudo apt-get install --reinstall gnome-control-center sudo apt-get install ubuntu-desktop sudo apt install ubuntu-desktop --reinstall sudo apt-get install unity-control-center   However, none of these has been successful in restoring the icon into "Show Applications" or any applications menu.   Anyone have any suggestions on something I haven't tried? Would be much appreciated.  Or, is there a way to just manually recreate the icon?   Output of locate gnome-control-center.desktop:  /usr/share/applications/gnome-control-center.desktop  /home/dccrens/.local/share/applications/gnome-control-center.desktop /home/dccrens/.gnome/apps/gnome-control-center.desktop   I am running Ubuntu 18.04 desktop on kernel 4.15.0-45-generic. I know references are syntactic sugar, so code is easier to read and write. But what is the difference between a pointer variable and a reference variable? Why haven't I received the "Curious" badge? As you can see in the picture, I have 13 out of 5. But it's been like this for about two months! What's the reason for that? How do I drag and drop files into an application? I've seen this done in Borland's  environment, but I'm not sure how to go about it for a C# application I'm working on. Are there best practices or gotchas to look out for? How to convert light activated switch Can anyone teach me how to convert a light activated switch into  dark activated switch vice versa. How align 2 adjacent divs horizontally WITHOUT float? What is a serialVersionUID and why should I use it? Eclipse issues warnings when a serialVersionUID is missing.       The serializable class Foo does not declare a static final   serialVersionUID field of type long   What is serialVersionUID and why is it important?  Please show an example where missing serialVersionUID will cause a problem. Why do corticosteroids harm COVID-19 patients? states that steroids could do more harm than good in treating coronavirus (COVID-19), referring to .      Understanding the evidence for harm or benefit from corticosteroids in   2019-nCoV is of immediate clinical importance.   It's unclear to me how exactly the use of corticosteroids (which is a common treatments for Asthma patients) can do harm other than the vague explanation of "steroids also impair the immune system's ability to fight viruses".   How exactly does the use of steroids harm the body in case of fighting a virus such as SARS-CoV-2 (2019-nCoV) that causes COVID-19? Integer $x$ for which $x^4+x^3+x^2+x+1$ is perfect square. Integer values of $x$ for which $\bf{x^4+x^3+x^2+x+1}$ is a Perfect Square.  $\underline{\bf{My\; Try}}$:: Let $\bf{x^4+x^3+x^2+x+1 = k^2}$, where $k\in \mathbb{Z}$  $4x^4+4x^3+4x^2+4x+1 = 4k^2 = (2k)^2$  Now How can I proceed after that  Help Required,  Thanks Show that $\frac{X-\mu}{\sigma}\sim N(0,1)$ using moment functions Let $X\sim N(\mu,\sigma^2)$. Show that $Z=\frac{X-\mu}{\sigma}\sim N(0,1)$ using moment generating functions. \begin{align*} M_Z(t)&amp;=M_{\frac{X-\mu}{\sigma}}(t)\\ &amp;=M_{X-\mu}\left(\frac t\sigma\right)\\ &amp;=e^{-\mu t}M_X\left(\frac t\sigma\right)\\ &amp;=e^{-\mu t}\cdot e^{\frac{t\mu}{\sigma}+\frac{t^2}{2}}\\ &amp;=e^{-\mu t+\frac{t\mu}{\sigma}+\frac{t^2}{2}} \end{align*} I'm not sure how to conclude that $Z\sim N(0,1)$. In chapter 1, of Landau-Lifshitz Mechanics' book, Landau through isotropy and homogeneity of space and homogeneity of time proves that the Lagrangian must depend of magnitude of velocity of the particle.  This seemed fine. But he didn't give a reason as to why it must depend of $|v|^2$ and not on some $|v|^n$ where $n\neq2$. How do I create an animated gif from still images (preferably with the command line)? I want make a .gif animated picture from a given set of .jpg pictures.  I would prefer to do it from the command line, so command line tools would be very welcome. Is there a software in Ubuntu that can analyse the cross references (theorems, lemmas, equations, etc.) in a tex project? There are some software to analyse the cross references among codes (Java or C++). I used to use a software for code analysis under Windows many years before. But I can't remember the name. On linux, an example might be LXR Cross Referencer.   Is there a similar tool that can analyse the latex files to find out the cross references of theorems, lemmas, propositions and equations? What are the integer solutions to $a^{b^2} = b^a$ with $a, b \ge 2$ What role does "spontaneously symmetry breaking" played in the "Higgs Mechanism"? In talking about Higgs mechanism, the first part is always some introduction to the concept of spontaneously  symmetry breaking (SSB), some people saying that Higgs mechanism is the results of SSB of local gauge symmetry, some people says that we can formulate Higgs mechanism in a gauge invariant way, some people also says that we need only a non-zero vaccum expectation value... I am confused about this different or maybe same point of views.  In this post:  , the most highly voted answer, I still can't feel how SSB worked in Higgs mechanism. It seem that the validity of last part, the appearance of a mass term for $A$, is guaranteed if we have a non-zero equilibrium value $\phi_0$ to expand around. I do not see that the requirement that the phase of the field $\phi$ need to be fixed at some particular value to generate mass term. Thus it seems to me it is not true that SSB is really indispensable for Higgs mechanism.  To put it simply:  The spontanously breaking of what is attributed to Higgs mechanism?   local gauge symmetry global symmetry, since breaking of a "gauge symmetry" should not have any effect on physics. In higgs mechanism, the really broken symmetry is a global one. Mathematically, it is similar in looking as fixing a gauge, but one should not think it as a spontanously breakdown of local gauge symmetry. other.   Is SSB really indispensable for Higgs mechanism?    yes, Higgs mechanism is relied on the SSB of some symmetry (above question), the other approches of description eventually has spontanously broke some symmetry. No, the SSB is just one way to describe Higgs mechanism (or even not a complete way), what is really need is the non-zero vaccum expectation value, for example in the linked post the requirement for the mass term to occur is to have some non-zero expectation value of $\phi$ to expand around, we do not need the phase of the field to be fixed, thus the symmetry is not broken. Other.   some reference materials:    States that SSB of local gauge symmetry is impossible.  in the abstract states that:       gauge symmetries merely reflect a redundancy in the state description   and therefore the spontaneous breaking can not be an essential   ingredient. Indeed, as already shown by Higgs and Kibble, the   mechanism can be explained in terms of gauge invariant variables,   without invoking spontaneous symmetry breaking     In the introduction it says:      In particular, we emphasize that global U(1) phase rotation symmetry,   and not gauge symmetry, is spontaneously violated, and show that the   BCS wave function is, contrary to claims in the literature, fully   gauge invariant