What is the best way, if indeed there is a way, to get the X and Y position of any element embedded deep inside another element (called root for convenience) with respect to the root element itself. The embedded element may have layers of other containers with different position CSS (e.g. relative, absolute, etc.). I prefer JQuery but a pure JS solution would be even better.  For example:  &lt;div id="root" style="position:relative;"&gt;   &lt;div style="position:relative;top:10px;&gt; &lt;other elements....&gt;       &lt;div style="position:absolute:top:30px;&gt; &lt;other elements...&gt;          &lt;div id="id1" ... /&gt;        &lt;/div&gt;   &lt;/div&gt; &lt;/div&gt;   I want to know the absolute X and Y positions of input field with id "id1" with respect to div with id "root".   EDIT: "root" is always set to position:relative
I want to know how to get the X and Y position of HTML elements such as img and div in JavaScript relative to the browser window.
Database synchronization between dev/staging and production Finding an expression for $\tan (a+ b + y)$ which involves only $\tan a, \tan b,$ and $\tan y$. How to find this ?   I'm stuck at $1$ and how to $1$ to change the tangent associated with a,b or c.  I meant this ,everybody.  $\frac{tan(a)+tan(b)+tan(y)−tan(a)tan(b)tan(y)}{1−tan(a)tan(b)−tan(a)tan(y)−tan(b)tan(y)}$ What should be taken into consideration when mixing fluxx sets?   I played a game of Stoner and Zombie fluxx mixed the other day, and I found it super fun. It add variance to the theming, and especially with the Stoner fluxx (if you're playing with the, ahem, special rules) and stretches it out.   What are the potential pitfalls of mixing sets, and what else should be taken into consideration? How can I decide between the medium sized intuos tablet or the small one? I am a high school student with an interest for drawing tablets for some hobby. I went to check on a store that sell Intuos, a sales representative (or something) of Wacom told me that most students buy the medium sized tablets. Even the staff said that since it is always bought the supplies of the medium size are a lot more than the small size.  I am on a tight budget (which is why I am buying the Intuos), and the small size seems small to me (when my hands are open, my thumb and my pinky would reach the sides). But then, why would Wacom sell the Manga variant in small? Is the staff just saying that so I would buy the more expensive one?  I have enough savings from my small allowance to buy the small size right now, should I wait for another month so that I can buy the medium size? Is there a function $f\colon\mathbb{R}\to\mathbb{R}$ such that every non-empty open interval is mapped onto $\mathbb{R}$? I wonder  whether there is a function $f\colon\Bbb R\to\Bbb R$ with the folowing characteristic?   for every two real numbers $\alpha,\beta,\alpha\lt\beta$,  $$\{f(x):x\in(\alpha,\beta)\}=\Bbb R$$   I can't  say such a function does not exist, neither can I construct a example  Thanks a lot! Perfect set without rationals How to backup an Android device? Can anyone recommend a good way to backup Android devices? Ideally I would like to do this wirelessly and, not only backup my data, but also my user settings. Is it possible to backup an image of an Android device - so that one doesn't even need to reinstall apps? It would be particularly useful to hear from users that have restored backups, as to how easy, and complete, their processes were. Thanks How is the Integral of $\int_a^bf(x)~dx=\int_a^bf(a+b-x)~dx$ Can Some one tell me what this method is called and how it works With a detailed proof   $$\int_a^bf(x)~dx=\int_a^bf(a+b-x)~dx$$  I've been using this a lot in definite integration but haven't seemed to have realized why it is true.  But whatever it is it always seems to work.  Basically a proof of how it is always true. Is it correct to use "their" instead of "his or her"? What's the simplest way to decrement a date in Javascript by 1 day? I need to decrement a Javascript date by 1 day, so that it rolls back across months/years correctly.  That is, if I have a date of 'Today', I want to get the date for 'Yesterday'.  It always seems to take more code than necessary when I do this, so I'm wondering if there's any simpler way.    What's the simplest way of doing this?  [Edit: Just to avoid confusion in an answer below, this is a JavaScript question, not a Java one.] I need to be able to compare some month names I have in an array.  It would be nice if there were some direct way like:  Month.toInt("January") &gt; Month.toInt("May")   My Google searching seems to suggest the only way is to write your own method, but this seems like a common enough problem that I would think it would have been already implemented in .Net, anyone done this before? Tricks and tips for finding information in man pages Does anyone have any tricks and tips for finding information in man pages? 'An avalanche of mail'? - it should be 'mails', shouldn't it? I came across this example on WordWeb while going through the meaning of the word ''.     the program brought an avalanche of mail (Just like "a group of man men").   I'm quite sure it should be mails. Kindly confirm. I have never used Ubuntu or any other Linux OS before last Friday. For all I know, I might have installed Ubuntu wrong and be missing a component. I would prefer if you use simplest terminology possible, but I'm OK with doing a bit of googling if need be. I just installed Steam for Ubuntu 16.04 but it won't open when I click on it in the launcher. The icon flashes for a few seconds, stops and then nothing happens. I looked in the system monitor and steam shows up there but ending the process and trying again does nothing. I heard trying to open apps that aren't working through the terminal tells you what the error is so I tried that and I got this:  Running Steam on ubuntu 16.04 64-bit STEAM_RUNTIME is enabled automatically Installing breakpad exception handler for appid(steam)/version(0) libGL error: unable to load driver: radeonsi_dri.so libGL error: driver pointer missing libGL error: failed to load driver: radeonsi libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast   Please help I just want to play CS:GO again. Ubuntu not detecting second monitor I'm running Ubuntu 12.04 on a Lenovo x61s Thinkpad. As the screen's rather small and I want to do some video editing, I thought I'd plug in a monitor and use that. The monitor is Relisys JM777 (quite old).  When I plug it into my other computer, which is running Windows 7, it immediately mirrors the display; but when plugged into the Lenovo the monitor screen remains blank. The graphics card on the Lenovo is a "VGA compatible controller" according to SysInfo.   Anybody got any suggestions for getting this monitor to work? I'm quite new to Linux. Terminal prompt overwrites current line Trigger Task Scheduler in Windows 7 when computer wakes up from sleep/hibernate I don't want task scheduler or whatever to wake the computer, but when I open the laptop back up and the machine wakes I'd like that to be the trigger that task scheduler or something uses to run an app. Is it safe to use oil at its smoking point? Teflon toxicity and second degree burns aside, are there any health issues related to cooking with oil at or past its smoking point? Googling a bit I found one article that went so far as to say you should always "discard oil that's reached its smoke point, along with any food with which it had contact". Other searches showed pages suggesting cancer risks.  I've never given it a thought before and I often use peanut oil at smoking point to brown meat. I have a beamer frame with about 150 slides on it.  I want article and handout mode to only show frame 92.    Reading section 8.6.2 of the beamer manual it seems like I should be able to do something like  \begin{frame}&lt;handout:92&gt; ... \end{frame}   but that seems to have no effect--all 150 slides are set in handout mode, overlaying (making the result unreadable).  I have gotten the effect I want by taking all commands within the frame that have an overlay specification and adding "| handout:0" to make them not appear in handout mode.  Annoying, but works.  But for my 150-slide frame the different slides are generated by a PGF \foreach loop so I can't code slide 92 differently from the rest.  But can I do this at the frame's overlay specification?  It seems that the frame's overlay spec really acts differently from other commands.  If I only do  \begin{frame}&lt;92&gt;...\end{frame}   then I get only slide 92 in beamer mode but all slides in article or handout mode. How to re-install http windows service I replaced apache webserver with http(WINHTTP windows service) for use virtual hosts feature. But I was missing  http(WINHTTP windows service) which I previously removed.I  now want to  reinstall this service for use print spooler.