This is my code. I want to when dblclick in element &lt;li&gt; active event and removeClass when click outside or click into other element.    initTodoITem: function (todo, lbContent, inputEdit) {    var item = document.createElement('li');     item.setAttribute('class', 'todoItem');      item.addEventListener('dblclick', function (){       lbContent.classList.add('edit');       inputEdit.classList.remove('edit');       inputEdit.classList.add('editing');     });      return item;   },
I have some HTML menus, which I show completely when a user clicks on the head of these menus. I would like to hide these elements when the user clicks outside the menus' area.  Is something like this possible with jQuery?  $("#menuscontainer").clickOutsideThisElement(function() {     // Hide the menus });
Adding Items to the List Using JQuery Mobile in Javascript In which Comic Book series is Batman actually Thomas Wayne? I've heard people say that there is a series of comics where Batman is actually Thomas Wayne instead of his son, Bruce.   Where can I find this? What is the series called? How do I get an iball 3.5G modem working on Ubuntu? I purchased iball 3.5G  connect wireless modem 1 month before. I am trying to connect it with my laptop which is having ubuntu Operating System. After plug-in it to the ubuntu system it is not connecting with net.   This modem is plug and play but after plugging it nothing is displaying to the system.  I am expecting step-by-step method to connect this modem with my ubuntu 12.04 LTS sysetm from your expert's advice. Remove marker using lat or long gmaps v3 How do I find the current machine's full hostname in C (hostname and domain information)? In a C project (POSIX), how do I get the fully qualified name for the current system?  For example, I can get just the hostname of my machine by doing gethostname() from unistd.h. This might give me machine3 in return, but I'm actually looking for machine3.somedomain.com for example.  How do I go about getting this information? I do not want to use a call to system() to do this, if possible. Automatically building a database of forward and backward citations My goal is to produce a graph showing the linkages (and lack there of) between several fields that share a common subproblem by showing who cites whom.  There are many databases that show citations between papers: , , and Google Scholar.  However none allows me to download even part of their database.  Is there some database I have overlooked?  Has someone written a scrapper for one of these websites?    For reference, the fields I'm considering are Mechanics, Magnetic Resonance Imaging, Signal Processing, Geophysics, and several others. Allow embedded HTML5 YouTube video What is the purpose of a self executing function in javascript? In javascript, when would you want to use this:  (function(){     //Bunch of code... })();   over this:  //Bunch of code... How can I get distribution name and version number in a simple shell script? How to derive this version of variance formula A probably very easy computational question, but I don't really understand how it's done:  I try to compute the point estimates of a normal distribution as $N \sim (\beta, \sigma)$. Using the method of moments, we get:  $$\frac{1}{n} \sum_{i=1}^{n} X_{i} = \hat{\beta}$$  $$\frac{1}{n} \sum_{i=1}^{n} X_{i}^{2} = \hat{\sigma}^2 + \hat{\beta}^2$$  Solving the two equations for the two parameters, we get:  $$\hat{\beta} = \overline{X} $$   and   $$\hat{\sigma}^2 = \frac{1}{n} \sum_{i=1}^{n} (X_{i} - \overline{X}_n)^2 $$  My question is: How do we get to the term of $\hat{\sigma}^2$? If I try to compute it, I get:  $$\hat{\sigma}^2 = \frac{1}{n} \sum_{i=1}^{n} X_{i}^2 - (\frac{1}{n} \sum_{i=1}^{n} X_{i} )^2 $$  Can someone show me how to simplify the last term to what is stated above and what "rule" or law" is used there? Since it is used so often, I really wanna understand this. I figured out how to use a normal image as the background while using an HDRI for environmental lighting. But I can't figure out how to use a different HDRI as the background.  Please note I already read this answer:  but this appears to be different for Eevee in 2.8.  Thanks! Biber 2.11: Data file ... cannot be read in encoding UTF-8 ... ill-formed UTF-8 octet sequence ... at ... Slurper.pm line 63 I have just changed computers, and running Biber 2.11 now produces this error:  Utils.pm:209&gt; ERROR - Data file ... cannot be read in encoding 'UTF-8':  Can't decode ill-formed UTF-8 octet sequence &lt;96&gt; at C:\ ... Slurper.pm line 63   My .bib file is huge, having accumulated over years.  Thus, I suspect that there's something malformed in it.  Is there any rapid way to trouble-shoot it?  The new machine runs Win 10, Biber 2.11, XeLaTeX 2018.10.31, LaTeX2e 2018-04-01 and TeXLive 2018.  The old machine ran Win 7 and slightly earlier versions of all of the above.  A MWE of the driver .tex file:  \documentclass{article} % also with beamer  \usepackage[utf8]{inputenc} % problem arises whether or not include this \usepackage[backend=biber,bibencoding=utf8]{biblatex} %  problem arises whether or not include this \addbibresource{bib-mwe.bib}  \begin{document}  cite reference \cite{mal-rwws}  \printbibliography  \end{document}    Thanks! Convert hex string to int in Python How do I convert a hex string to an int in Python?   I may have it as "0xffff" or just "ffff". OverlapBox() dimensions are huge but are fine when tested in isolation $V$ be a vector space , $T:V \to V$ be a linear operator , then is $\ker (T) \cap R(T) \cong R(T)/R(T^2) $? Let $V$ be a vector space , $T:V \to V$ be a linear operator , then is it true that   $\ker (T) \cap R(T) \cong R(T)/R(T^2) $ ( where $R(T)$ denotes the range of $T$ ) ?    I know that the statement is true when $V$ is finite dimensional as I can show that if $V$ is finite   dimensional , then $\dim (\ker (T) \cap R(T))=rank (T) - rank (T^2)=\dim R(T)/R(T^2)$ ,   but I don't know what happens in general . Please help . Thanks in advance What is the exact difference between fluid and responsive design? Alternative to LibreOffice Base for Ubuntu What's the standard "roadmap" to learning quantum physics? I'm really interested in quantum physics and would like to learn more. However, I don't know where to start and in what order I should learn things. So, ideally I'm looking for some sort of roadmap of what to learn. What physics topics do I need to know to start learning about quantum mechanics? (In addition to the mathematical topics mentioned at )  My current knowledge is mostly popular science stuff, like tv shows on Discovery Science and National Geographic Channel. So I have a basic understanding of some basic principals. There's also a recent lecture from Brian Cox that I have watched which gave a bit more in-depth information. Are human chromosomes connected or separate molecules? Do the 46 human chromosomes form a single unbroken DNA helix?  Or is it rather that a human's genome consists of 46 disconnected helices?    If it is the former, does the common numbering scheme for the chromosomes have any correlation to their actual ordering in the one large strand?  If is the latter, is there a convention on how the chromosomes are ordered in genomic datasets?  Also, is there a clear understanding of how sister chromosomes "find" each other in Meiosis I?  Generally, during periods when Mitosis/Meiosis are not occurring,  what's a good physical picture for how the chromosomes are physically arranged (e.g. a bowl of 46 spaghetti noodles, or maybe the sister chromosomes always stay close together, etc)  thanks! I just read a book "Linear Algebra and Its Applications 4E" by David C. Lay. The book is (should be) LaTeX typeset. The matrix and equations are so nice, please see the following 3 examples:        It's so beautiful, so I want get the same effect inside my paper. Here is my code:   \usepackage{amsmath} \usepackage{colortbl} \newcommand\y{\cellcolor{clight2}} \definecolor{clight2}{RGB}{212, 237, 244}%  %%% \[A=\left[ \begin{array}{ccccc} \y 0 &amp; -3 &amp; -6 &amp; 4 &amp; 9 \\    -1 &amp; \y -2 &amp; -1 &amp; 3 &amp; 1 \\ -2 &amp; -3 &amp; 0 &amp; \y 3 &amp; -1 \\ 1 &amp; 4 &amp; 5 &amp; -9 &amp; -7      \end{array} \right]\]  \[A=\left[\begin{array}{cccccc} \rowcolor{clight2} 3 &amp; -9 &amp; 12 &amp; -9 &amp; 6 &amp; 15\\ 0 &amp; 2 &amp; -4 &amp; 4 &amp; 2 &amp; -6 \\ 0 &amp; 3 &amp; -6 &amp; 6 &amp; 4 &amp; -5 \end{array} \right]\]   And the result:     But how to add these arrows??