How to close dropdown by clicking any where in HTML page **Script** $('.select ul li.option').click(function() {     $(this).siblings().toggle().removeClass('darr');     $(this).addClass('darr'); })       Hi frnds here the dropdown is working but i need if i click any where in the html apart from dropdown also the drop down should close. can any one suggest solution.
How do I detect a click outside an element? 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 });
Often I have a question, in a specific area (say Math SE or English SE) that is appropriate for the child meta of that site.   Then I realize it is not particular to the meta for that site but for Meta for all sites (like this question itself; I wanted a link to Meta Stack Exchange from meta.english, but realized no meta sites had such a link).  Wouldn't it be nice to have a link in all meta sites to Meta? I get this warning:     Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release   What does it mean? Origin of "Fits [x] to a T"? The above phrase is something I've known for as long as I can remember, though I don't know from where. What is its origin and usage? Example: &quot;While Android products aren't quite what I need, iOS devices fit my needs to a T.&quot; Is there a way to have two copies of  app in Ubuntu each with a different account?  It seems copying the app in another folder does not work. Create WiFi hotspot with web access point I want to setup a WiFi network with access through a web interface. Essentially people would be asked to enter a username/password and their session would be valid for X minutes after which they'd be logged out.  I am capable of quite a few programming/scripting languages, but browsing through router settings I don't see how to/where hosted/etc. the web interface/session handling comes in.  Please push me the right direction. How to mount EXT4 disk on 10.15? Since I have osxfuse installed it would be nice if I could use it. There are a  (heavily) outdated  here, saying that it is not . Is this still the case? $\chi(G)+\chi(G')\leq n+1$ How to prove, that the sum of chromatic numbers of graph and it's complement is smaller then the number of vertices incremented by one?  $\chi(G)+\chi(G')\leq n+1$  The notes from my classes say to color the first graph using sequential algorithm with vertices ordered by their degrees (the ones with lowest appear first). We would get $k_1$ colors, then we color the graph $G'$ in the backwards order and get $k_2$ colors, and the sum $k_1+k_2$ in my notes is magically smaller than $n+1$, but I just don't see why... Which metric to use to evaluate highly imbalance classification model performance I have to do classification model to predict the possibilities of person getting cancer based on certain attributes. The data is highly imbalanced. As per client requirement I have to report model performance based on any one of these 4 metrics AUC_Weighted normalized root mean square log loss Accuracy  Can you suggest me which one should I use? How to change text format of summary/trimmed field? Is there a straightforward way to change the summary/trimmed text to "full html" in Drupal 8?  There are workarounds such as creating separate body fields and using them as the summary but I am specifically asking about changing the text format of default summary/trimmed field of "Text (formatted, long, with summary)".  To put it another way, how to I add the CKEditor bar to the summary/trimmed text. Should I mention about my governmental-funded PhD scholarship which I don't want to use There are several reasons to be looking for a ROM:   Upgrading or downgrading your stock ROM Looking for firmware from a different region/language Flashing a custom ROM for different features, removing bloat, etc.   But where can one find ROMs in the first place?  What sites are likely to have the ROM I need?  ; please add to the wiki answer instead of posting separate answers.  See also: How can I prove that $$\displaystyle x-\frac {x^2} 2 &lt; \ln(1+x)$$ for any $x&gt;0$  I think it's somehow related to Taylor expansion of natural logarithm, when:  $$\displaystyle \ln(1+x)=\color{red}{x-\frac {x^2}2}+\frac {x^3}3 -\cdots$$  Can you please show me how? Thanks. The strongest player in the game is a close ally of mine and we each founded and follow of one of the strongest two religions in the game, with little cross-over between religions within our territories.  I've just spotted that he has a Great Prophet approaching my territory. According to the Civopedia they are powerful at spreading religion, and I'd rather not have a huge hit to the followers of my religion in my cities.  How can I prevent another players Great Prophet from damaging the religion in my cities, preferably without causing a major diplomatic incident. Proving $\sqrt2$ is irrational I used the method of contradiction by assuming that $\sqrt 2$ is a rational number. Then, by the definition of rational number, there exist two integers $p$ and $q$ whose ratio equals $\sqrt 2$. Thus, $$\frac pq = \sqrt2\tag{x}$$  Squaring both sides, $$p^2/q^2 = 2\tag{a}$$  or $$p^2 = 2q^2\tag{b}$$ This means that $p^2$ is an even number, implying that $p$ is even.  Now, any even integer can be written as $2^kf$ where $f$ is any odd integer and $k$ is some positive integer (the minimum value of $k$ and $f$ is $1$ since even numbers start from $2 = 2^1\cdot1$). For odd numbers, $k=0$.  For example, $8 = 2^3 \cdot 1$, $4= 2^2 \cdot 1$, $18= 2^1 \cdot 9$, $24 = 2^3 \cdot 3$, $-12= 2^2 \cdot(-3)$, etc.  Now, from $(b)$, $q^2$ can be even or odd.  Case 1: $q^2$ is even (thus meaning $q$ is even). Then $p= 2^{k_1} \cdot f_1$ (say) and $q = 2^{k_2} * f_2$ (say). Note here in this case, both conditions $k_1=k_2$ and $f_1=f_2$ can't hold simultaneously since that would mean $p/q =1$ and here $p/q =\sqrt2$ (from $(x)$)). Let's consider the condition when $k_1=k_2=k$ but $f_1\ne f_2$. Then $$\frac{p^2}{q^2}=\frac{(2^kf_1)^2}{(2^kf_2)^2} = \frac{f_1^2}{f_2^2} =2$$ (from $(a)$), i.e.: odd/odd ($f_1$ and $f_2$ are odd) can never equal $2$.  Now lets consider $f_1=f_2=f$ but $k_1\ne k_2$, thus $(2^{k_1}f)^2/(2^{k_2}f)^2= 2^{2(k_1-k_2)}= 2$ meaning $k_1 - k_2 = 0.5$ but $k_1,k_2$ are integers, so their difference can't be $0.5$. (Also here, $k_1-k_2$ must be greater or equal to $1$ since $2^{k_1-k_2}=\sqrt 2$, $k_1-k_2$ can't be negative since $\sqrt 2&gt;1$, but $k_1-k_2\ge1$ can't satisfy $(a)$ since the minimum value of $p/q$ in this case will be $2$ which is surely greater than $\sqrt2$.)  Now lets consider $f_1\ne f_2$ and $k_1\ne k_2$, thus $\frac{(2^{k_1} f_1)^2}{(2^{k_2} f_2)^2}= 2^{2(k_1-k_2)}\frac{f_1^2}{f_2^2}$ can never equal $2$ since $\frac{f_1^2}{f_2^2}$ is either odd or "odd/odd" ie: it doesn't contain 2 as a factor and $2^{2(k_1-k_2)}$ is a power of $2$. So in $2^{2(k_1-k_2)}\frac{f_1^2}{f_2^2}$, there's no chance of cancellation of the odd factor $\frac{f_1^2}{f_2^2}$.  Case 2: $q^2$ is odd (thus meaning $q$ is odd). $q=f'$ (say, here $k=0$ for $q$ but not for $p$), thus from $(a)$ $2^{2k}\frac{f^2}{f'^2} = 2$ but this isn't possible since a power of $2$ multiplied with odd factor can't equal $2$.  Thus, both case 1 and 2 suggest that for any possible combination of $k_1,k_2,f_1$ and $f_2$, $p/q\ne\sqrt2$, i.e.: for no value of integers $p$ and $q$, $p/q = \sqrt2$. Thus, this contradicts our assumption that $\sqrt2$ is rational. Therefore it must be irrational.  PLS NOTE that i would like to clarify that $f_1^2$/$f_2^2$ is either an odd integer or a fraction of odd/odd or 1/odd form, thus not containing  2 as a factor,for any $2^n$, if it has to be reduced to 2 , must be multiplied with $1/ 2^(n-1)$ but $f_1^2$/$f_2^2$ can't be of $1/2^[n-1]$ form since for odd nos, in $2^k$*f notation, k is 0 , so 2 vanishes as $2^k$ becomes 1 in this case thus f1/f2 can't be represented as  1/ $2^(n-1)$ in which n has to be existent.  therefore $2^{2(k_1-k_2)}\frac{f_1^2}{f_2^2}$ can never equal 2 as to further explain the 3rd condition of case 1  Difficulty: is my approach correct? This proof which I thought is different from proofs found on the internet or books since I have used $p$ and $q$ as any integers, which may have a common factor. So I am not sure if I am on right track. Will someone please check this out and make kind comments? How do I figure out what package something is in without resorting to Google? I often find myself wanting to install something, but I'm unsure of what package it's in. This is a very common occurrence for me:  $ make html sphinx-build -b djangohtml -d _build/doctrees   . _build/html make: sphinx-build: Command not found make: *** [html] Error 127  $ sudo apt-get install sphinx E: Unable to locate package sphinx  $ sudo apt-get install sphinx-build E: Unable to locate package sphinx-build   googles  $ sudo apt-get install python-sphinx   Is there a better way? Page layout assignments with XML metadata API How do I define page layout assignments for different record types via metadata XML files? I couldn’t find any proof on the internet. I would appreciate an elementary proof , but any help would be appreciated!  Thank you. Is there a way to get a background in CSS to stretch or scale to fill its container? Looking for the actual reason of refraction explained precisely without analogies How to redirect stderr to a file While using nohup to put a command to run in background some of content appear in terminal.  cp: error reading ‘/mnt/tt/file.txt’: Input/output error cp: failed to extend ‘/mnt/tt/file.txt’: Input/output error   I want to save that content to a file.