I have a division with a label as below in code, and I would like to know the complete width of the label by javascript, but the label seems to collapse automatically to fit within the division. So if I measure the label width, it is the 100px of the division.  &lt;div style="width: 100px; overflow: hidden; background-color: lime;"&gt;     &lt;label id="getMyWidthLabel" style="background-color: cyan;"&gt;         Some text which is longer than the div's 100 pixels.     &lt;/label&gt; &lt;/div&gt;   Now if I would place an width on the label like style="width: 200px", I get the preferenced look (no collapsion, but the label is not measurable anymore.  What css or javascript do i need and why?  EDIT: I would like to measure the width of the label as seen here:    But because it stands in a division, it automatically breaks and I can't measure the full width anymore:
I'd like to use JavaScript to calculate the width of a string. Is this possible without having to use a monospace typeface?  If it's not built-in, my only idea is to create a table of widths for each character, but this is pretty unreasonable especially supporting  and different type sizes (and all browsers for that matter).
Prepositional Phrase - confused - at or in how to prove that $\ln(1+x)< x$ I did a dumb thing and now need to undelete some files.  In fact, I have already recovered the files using , which has served me well on the other rare occasions where this has been necessary.  So I have the files.    The problem is that Glary and the  don't preserve the original folder structure.  In this case I have about 3,000 small files that I must match to their original locations in a complex nested folder hierarchy.  I could see the full folder paths in Glary before the restore, so I know the information is there; it's just not using that information and copying everything to root of my designated destination, rather than relative to the original location. What makes a DSLR better than a Point & Shoot? Why should I put up with the inconvenience of lugging around a DSLR?  They look cool, but is there more substance to it? Create a floating div on top of divs Unstable wifi with intel 8260 [8086:24f3] (rev 3a) on Ubuntu 16.04 running on Lenovo P50 Non-trivial cyclic group with unique generator Let $G$ be a non-trivial cyclic group with an unique generator. Show that $G$ has exactly two elements.   Let $g$ be a generator of $G$. My first idea to approach the problem was to show that if $|G|=n &gt; 2$ then there is an integer $k$ between 1 and $n$ such that $\langle g^k \rangle = G$ or, equivalently, $g \in \langle g^k \rangle$. My second idea was to analyse the problem in 2 separate cases. For the first one, if $n$ is prime, let $k$ be a positive integer then, by Lagrange's Theorem, $|g^k| \mid n$ and, therefore, $\langle g^k \rangle = n$. Hence, we must conclude that, if $n &gt; 2$ the generator cannot be unique. For the second case, where $n$ is composite, I was hoping to get to a contradiction, but could not advance any further. Is there a way to develop either of these ideas or is it necessary a new approach? Typesetting linguistic rewrite rule I'm trying to (more or less) replicate this phonological rewrite rule:    I'm using the package , and what I manage to accomplish is this:  \documentclass{article} \usepackage{phonrule} \begin{document}  \phonc     {\phonfeat{$-$cnt\\ +hi}}     {[$\alpha$grv]}     {\oneof{%         \phonfeat{$-$cnt\\ $\alpha$grv}\phold\\         \phold\phonfeat{$-$cnt\\ $\alpha$vce}%     }}  \end{document}     My main problem here is what appears after the "when" slash:  (1) The package only provides a left curly bracket - how can I add a right one as well?  (2) The two options within the curly brackets are not well aligned. I think comparing the two pictures themselves says it better than what I could do with words. Which stats / gear can get the best our of wasteland exploration? Trying to get the best out of wasteland exploration here! I get it that you'd obviously need a big gun for survival out there, but apart from that, I'm wondering which stats / gear can get the best out of exploration.    How would you choose who to send out exploring from your dwellers. Which stat is the most important to choose explorers? Strength or endurance maybe? Does it make much of a difference equipping combat outfits? If so, whats the most important stat to boost through outfits? I have a live USB made with the standard Ubuntu disk image creator for 16.04 LTS. In the current state, I can boot to this disk, but it still requires the original USB to run properly at all times.  Attempting to pull the drive and use the system generates a large amount of I/O errors, further suggesting that the USB drive is actually needed for things not already loaded into RAM (For example, Firefox worked without the USB, but I used it once before already. apt, on the other hand, did not.)  Is there a way to copy the entire Ubuntu live disk to RAM, so I can remove the drive and free up a USB slot for other things? Using the same code behind file for multiple .aspx pages I received my PhD in 2009 and my adviser will not provide a good recommendation for me. This is mostly because we have fundamentally different approaches to science, and in retrospect I see that I could have avoided a breakdown in our relationship if I had been more deferential.  At this point, I leave his name off of my list of references, but I suspect that a diligent potential employer might call him anyway. I would be willing to discuss any concerns that were brought up in such a call - indeed I think that doing so will help me to find a good fit in a new position - but I do not know if I should, or how to state this fact in my job applications.  I am currently finishing my post doc, and one recommendation has been to take another post-doc so that I at least have two supportive references from postdoc advisers - and that the additional publications will place less weight on recommendations. Still, others have told me that not having a good reference from my adviser is a kiss of death.   How can I most effectively handle this situation? "reflect" vs "reflection on" or "reflection of" The bride's elegant dress reflected her good taste. The bride's elegant dress is a reflection on her good taste. The bride's elegant dress is a reflection of her good taste.  Would you tell me if they mean the same thing? If they would mean the same thing, what about the following question--link--? or I mean how could we distinguish such a distinction between these functions? Similarly, what about these:  A student's grades reflected her teacher A student's grades are a reflection on her teacher A student's grade are a reflection of her teacher  When, where or in which situation don't they mean the same? How can we distinguish such a distinction? I was rewatching the Breaking Bad episode S04E08 (Hermanos) and I didn't quite understand why exactly Don Eladio killed Gus's partner, but he let Gus live. He says:     The only reason you're alive and he's not, is because I know who you are.   But I still have yet to fully understand. How to install Ubuntu on VirtualBox? I would like to know if anyone can help me with installing Ubuntu on VirtualBox Which is the right way to do something like 'description' list but with customizable and fixed-width labels? I.e. something like this:  Label:         Text text text text text text                text text text text. Longer label:  Text text text text text text                Text text text text.   The way I see it to use two-column table (first columt for labels and second column for descriptions), but this solution seems ugly. Is there any other way? How do I enable hardware virtualization technology (VT-x) for use in Virtualbox? So I am trying to run Ubuntu in a virtualbox but on installing 12.10 from the .iso I was greeted by a warning telling me that audio wouldn't work then I pressed next and this popped up:  Failed to open a session for the virtual machine Tux 3 VT-x features locked or unavailable in MSR (VERR_VMX_MSR_LOCKED_OR_DISABLED) Details  Result Code:  E_FAIL (0x80004005) Component:  Console Interface:  IConsole {db7ab4ca-2a3f-4183-9243-c1208da92392}   And then it doesn't work.  I assigned 4GB of my 8GB to Ubuntu, 100 dynamically allocated GB of space, and 12MB of graphics memory. I'm running an Asus p8z77 V LX mobo with an Intel i5 3550 processor.   Downloaded 12.04.2 on my PC and tried again. Still getting the same message. In an Integral Domain is it true that $\gcd(ac,ab) = a\gcd(c,b)$? In my algebra class I was given as homework assignment to prove that:     Given an integral domain $A$ and $a,b,c,d,e \in A$. Then if $d = \gcd(b,c)$ and $e = \gcd(ac, ab)$ then $e = ad$.   It is easy to see that $ad \mid ab$ and $ad \mid ac$, so this implies that $\exists q \in A; e = q(ad)$. Now I'm having problems showing that $q = 1_A$. Working through some equalities, I proved that $\forall n\in \mathbb{N}, q^n \mid d$ so this gives me the light suspicion that I might be going the right way, but I'm pretty positive that this does not imply $q = 1_A$.  Does anyone want to give me a hint?  Thanks in advance :) Sturm-Liouville Questions In thinking about Sturm-Liouville theory a bit I see I have no actual idea what is going on.  The first issue I have is that my book began with the statement that given  $$L[y] = a(x)y'' + b(x)y' + c(x)y = f(x)$$  the problem $L[y] \ = \ f$ can be re-cast in the form $L[y] \ = \ \lambda y$.  Now it could be a typo on their part but I see no justification for the way you can just do that!  More importantly though is the motivation for Sturm-Liouville theory in the first place. The story as I know it is as follows:  Given a linear second order ode   $$F(x,y,y',y'') = L[y] = a(x)y'' + b(x)y' + c(x)y = f(x)$$  it is an exact equation if it is derivable from a differential equation of one order lower, i.e.  $$F(x,y,y',y'') = \frac{d}{dx}g(x,y,y').$$  The equation is exact iff  $$a''(x) - b'(x) + c(x) = 0. $$  If $F$ is not exact it can be made exact on multiplication by a suitable integrating factor $\alpha(x)$.  This equation is exact iff  $$(\alpha(x)a(x))'' - (\alpha(x)b(x))' + \alpha(x)c(x) = 0 $$  If you expand this out you get the Adjoint operator  $$L^*[\alpha(x)] \ = \ (\alpha(x)a(x))'' \ - \ (\alpha(x)b(x))' \ + \ \alpha(x)c(x) \ = 0 $$  If you expand $L^*$ you see that we can satisfy $L \ = \ L^*$ if $a'(x) \ = \ b(x)$ &amp; $a''(x) \ = \ b'(x)$ which then turns $L[y]$ into something of the form  $$L[y] \ = \ \frac{d}{dx}[a(x)y'] \ + \ c(x)y \ = \ f(x).$$  Thus we seek an integratiing factor $\alpha(x)$ so that we can satisfy this &amp; the condition this will hold is that $\alpha(x) \ = \ \frac{1}{a(x)}e^{\int\frac{b(x)}{a(x)}dx}$  Then we're dealing with:  $$\frac{d}{dx}[\alpha(x)a(x)y'] \ + \ \alpha(x)c(x)y \ = \ \alpha(x)f(x)$$  But again, by what my book said they magically re-cast this problem as  $$\frac{d}{dx}[\alpha(x)a(x)y'] \ + \ \alpha(x)c(x)y \ = \ \lambda \alpha(x) y(x)$$  Then calling  $$\frac{d}{dx}[\alpha(x)a(x)y'] \ + \ ( \alpha(x)c(x)y \ - \ \lambda \alpha(x) )y(x) \ = \ 0$$  a Sturm-Liouville problem.  My question is, how can I make sense of everything I wrote above? How can I clean it up &amp; interpret it, like at one stage I thought we were turning our 2nd order ode into something so that it reduces to the derivative of a first order ode so we can easily find first integrals then the next moment we're pulling out eigenvalues &amp; finding full solutions - what's going on? I want to be able to look at $a(x)y'' \ + \ b(x)y' \ + \ c(x)y \ = \ f(x)$ &amp; know how &amp; why we're turning this into a Sturm-Liouville problem in a way that makes sense of exactness &amp; integrating factors, thanks for reading! Why isn't the gamma function defined so that $\Gamma(n) = n! $?