How to get the co-ordinates of an element after onclick event ? I need to place an overlay just below an icon that was clicked.  Is there any such built in function provided by Javascript rather than manually writing a function for that ?
How can I find the XY coordinates of an HTML element (DIV) from JavaScript if they were not explicitly set?
I am having a strange problem in ArcGIS Toolbox.  I am trying to use the  tool from ArcToolbox. When I open the tool, there is no possibility to input Simplification Tolerance. Please see the attached image.  I can run the tool as a batch and from the Python window without any problem.  I am using ArcGIS 10(Editor) with Service Pack 5 on Windows 7 64Bit (English) and Windows Server 2008 64Bit (German). On both machines, I have the same problem. Any ideas?    I have reinstalled the software but the problem remains. How to discard unsaved changes to a view when editing it leads to a WSOD? I would like to get the multi pattern match with implicit AND between patterns, i.e. equivalent to running several greps in a sequence:  grep pattern1 | grep pattern2 | ...   So how to convert it to something like?  grep pattern1 &amp; pattern2 &amp; pattern3   I would like to use single grep because I am building arguments dynamically, so everything has to fit in one string. Using filter is system feature, not grep, so it is not an argument for it.    Don't confuse this question with:  grep "pattern1\|pattern2\|..."   This is an OR multi pattern match. Function overloading in C SQL Server: Examples of PIVOTing String data Hi is it possible to get images from go daddy  to visual force pages.if it possible can you explain clearly how the process is. I am making a Dwarf Warpriest Cleric of Shelyn wielding a Glaive. I expect to use Medium armor. I am planning this character out through level 20.   I'm looking for a build of feats, skills (if applicable) and spells that maximize my damage in melee and healing with spells. Other character choices are locked in.  If it matters, my allies in this group are: rogue, sorcerer, barbarian, monk, and fighter(longbow).   My original plan includes:    (Zeal Domain)     What Feats, Skills, and Spells (through level 20) will allow this character to do its highest DPR with a glaive and heal the most with its spell slots? I have observed that in gedit if I edit a file, another file is created in the same directory (the one with the same filename and a tilde '~' suffix). The extra file remains even if I close gedit.  I understand the need for a temp file (eg. in case of a crash), but vim for example deletes the extra file it creates, when I close it.  Is there a way to do the same with gedit? Some configuration perhaps? Is the harmonic oscillator potential unique in having equally spaced discrete energy levels? I use Stack Overflow a lot and have noticed a certain trend that I myself got caught up in at one time of using the phrase "I am having a problem" in place of "I have a problem."  I would use this phrase for an event in the future, for example, "I am having a steak dinner tonight," but for a problem that I need solved and am asking for a solution, I'd use "I have a problem..."   What would force us to use this phrase? Is it even valid English for the present tense? What is the danger of running untrusted software as a normal user Sometimes I have to use some propriety softwares which I don't trust or even pre-compiled open source ones which I don't know if they've been compiled as their source are.   Lets say we installed a propriety application in /opt/software, then we run it as a normal user (without sudo, gksudo, etc).   I know when we run a program it is able to connect to the Internet, monitor X, keystrokes, collect user data and so on. It can't change anything important in the system or infect the system, (because of the Linux permissions system). It is possible for program to add some plug-in/extension to a user's browser (Because browser profiles are available in user home directory). After closing the program and rebooting it can't do anything anymore. Wrong because:   Program can add itself to a shell/file/directory which does the autostart process, so it will run at any login.  If we consider the autostart process clean, without rebooting there is a chance that a process of the program is still active. Programs can delete or modify any file in the user home directory (or any other file which a user has write permission to).   So what should we do?   I think the only safe way to run a propriety program is running it as another user. If running the program as another user somehow is not possible then we should change the autostart files permission so only root can change them. then after closing the program a reboot will do the job.   Am I right? Is there anything that I'm missing? Format SQL in SQL Server Management Studio In Visual Studio &amp; other IDEs, you can easily auto format your code with a keyboard shortcut, through the menu, or automatically as you type.  I was wondering if there is yet a way to enable this standard feature in SQL Server Management Studio?  I'm working with some large-ish stored procs that are a mangled mess of poorly formatted SQL and it'd be nice if I could just go "Select All -> Format SQL" Does Calculate Value (Model Only Tool) work correctly in tools run in Batch? Am I correct that if my model has a model-only tool (Calculate Value), and then I run the model as a batched process, it will not run the Calculate Value expression?   I wrote a model to upload, define, project (and clip) XY data from excel files. I had thought to use iterate tables, but it wasn't working. (I assume due to having to choose which worksheet within xlxs). So I thought to do a batch, but this seems to leave that annoying $ that arc appends to table names (and is an invalid character in most tools...)  My guess is that the Calculate value that removes my $ is not being run in the batch. Ideas? Confirmations? Book where wizards learn magic by bonding with crystals that imbue them with powers I read this book a long time ago, but I'm guessing it was written sometime in either the 80's or early 90's. It was a rather long/large book.  Plot summary: Set in a fantasy land of wizards and magic, some kids (maybe) are recruited to learn magic. In the process they find out that wizards are created by being placed in a crashed spaceship that bonds them with crystals that imbue the powers. One of them is able to bond with many/multiple crystals to become very powerful. Does Python support short-circuiting? How much money do I need to make in order to generate 1k/month for the rest of my life? Is that even possible? If yes, in what way? Edit: I am 30 years old. Can't install Oracle Java 8 in Ubuntu 16.04 Compare integer in bash, unary operator expected When thinking about travelling, I often have to think about a place to visit, and then look up visa rules for that particular country. This can be a fairly painful process because official government sites can often be hard to find, and advice on (say) guidebooks or Wikitravel tends to be generic.  Is there any resource where I can enter my nationality/residency, and then look up a list of visa rules for various countries? Schrödinger Equation for Two Electrons? I'm having trouble finding a simple answer to this question (maybe because there isn't one), but I'm just confused about how the Schrödinger Equation would look for two electrons. I understand that it would exist in 6 dimensional configuration space, but how does the potential look? It's confusing that the potential would be different for each electron depending on where the other one is.