I'm using jquery 1.9.1. i need to catch focusout event when click outside of div. I'm using id for do this. here is my code,  HTML :  &lt;div id="mydiv"&gt; &lt;/div&gt;   script:   $('#mydiv').focusout(function (){         $(".num_C").removeClass('change_bg');       });   this focusout not working as i expected. how to catch this event. i need remove .num_C class when click outside of #mydiv. anyone got this. can i give solution for do this ?
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 });
Maximum table size for a MySQL database What is the maximum size for a MySQL table? Is it 2 million at 50GB? 5 million at 80GB?  At the higher end of the size scale, do I need to think about compressing the data? Or perhaps splitting the table if it grew too big? What are the pros and cons of engineered hardwood? Are there any downsides to engineered hardwood? I'm looking to install hardwood in dining room and kitchen areas. When are "if" and "whether" equivalent? Generate the smallest $\sigma$-algebra containing a given family of sets My teacher gave me an example of performing the subject:     Example      Let $\Omega = \Bbb R$ and $\mathcal R = \{(-\infty,-1),(1,+\infty)\}$.   Then $\sigma(\mathcal R) = \{\emptyset, \Bbb R, (-\infty,-1),  (1,+\infty), [-1, \infty), (-\infty,1],  (-\infty,-1)\cup(1,+\infty),[-1,1]\}$.   There was a different example, where she also generated the smallest  $\sigma$-algebra for the family of sets $\mathcal A = \{A,B\} \subset 2^\Omega$ in the same way: $\sigma(\mathcal R) =  \{\emptyset, \Omega, A, B, A^C,B^C,A\cup B, (A\cup B)^C\}$.   I certainly understand why $\emptyset$, $\Omega $ and a family of sets itself are there, and I certainly know that $\sigma$-algebra is closed under the operations of complement and union. What I don't understand about the other elements of generated $\sigma$-algebras: why we are taking exactly them? Does this work in a general case? Ratio of Boys and Girls In a country where everyone wants a boy, each family continues having babies till they have a boy. After some time, what is the proportion of boys to girls in the country? (Assuming probability of having a boy or a girl is the same) Android App sometimes loses answer drafts Same e-mail user, different address? Does math have an incorrect notation / syntax? I don't mean writing misaligned notation (google), but when you take something like a number to powers to powers to powers, $${{2^2}^2}^3$$ (I was told this is incorrect notation by a teacher). Is it really incorrect, or does it just need to be simplified with parentheses? Do people write maths like this?  a radical expression with the root being a radical expression? $$\sqrt[\sqrt{2^3}]{2}$$ As I prefer outer parentheses to grow larger in nested expressions, I happen to insert \bigl and \bigr and its larger cousins a lot. I have always wondered whether there is a way to do this automagically.  Inserting \left and \right prophylacticly before all opening and closing parentheses and hoping that it sorts things out doesn't do the trick in all cases as seen below.  The left column is without any size changing commands. The middle column as a \left \right pair at every parentheses/brace/bracket and the rightmost column shows my preferred version.    As seen in the middle column of the second and third line the \left and \right pair sometimes makes the outer parentheses larger, on the cost of an extra horizontal space between \Pr and (. The extra space is fine in case of really big opening parentheses but here I'd prefer the regular spacing.  \documentclass{scrartcl} \usepackage{amsmath} \usepackage{amsfonts} \begin{document} \begin{align*} &amp;1-(1-F(x))^n&amp;&amp;1-\left(1-F(x)\right)^n&amp;&amp;1-\bigl(1-F(x)\bigr)^n\\ &amp;\Pr(X_{(1)}\le x)&amp;&amp;\Pr\left(X_{(1)}\le x\right)&amp;&amp;\Pr\bigl(X_{(1)}\le x\bigr)\\ &amp;\mathbb{E}[\min\{X_1,X_2\}]&amp;&amp;\mathbb{E}\left[\min\left\{X_1,X_2\right\}\right]&amp;&amp;\mathbb{E}\bigl[\min\left\{X_1,X_2\right\}\bigr]\\ &amp;\left(\pi-\arccos(\frac{y}{r})\right)&amp;&amp;(\pi-\arccos\left(\frac{y}{r}\right))&amp;&amp;\left(\pi-\arccos \left(\frac{y}{r}\right)\right) \end{align*} \end{document}   As mathematical expressions can be arbitrarly complex there is probably no general way to do this. But I’m not asking for a solution of the general case. A partial solution that works in the simple cases shown above would be a big help. The simple rule could be, that parentheses never shrink below the size of an inner pair. Of course you can immediately think of extensions like a \mid in a conditional expectation that grows with the size of the expectation’s brackets.  What is your preference regarding the size of nested parentheses? Is there a better way to archieve your preferred style despite inserting \bigl \bigr manually?    EDIT:  A colleague pointed me to section 8.3 of Herbert Voß’  document where size problems with parentheses are solved by playing with two TeX parameters within a group around the expression in question. This led naturally to appendix G of the TeXbook where the mechanics of \delimitershortfall and \delimiterfactor are explained.  \delimitershortfall specifies the maximum space not covered by a delimiter (default 5pt) and \delimiterfactor is the ratio for variable delimiters, times 1000 (default 901).  I used them to implement the never shrink below a subformular size idea from above by setting the shortfall to 0pt and the ratio to 1.0.    While it works nicely in line one and three, in line two and four the parentheses now grow too much, and still there is the extra horizontal space introduced by \left. I believe that umask is something that controls , but do not fully understand it.  After running umask 0644 in a , I cannot read the files I create with the command-line text editor nano. I noticed that the permissions of that file are set to 0022 instead of the default 0755.  How does umask work? I thought I could just remove the each digit in the umask from 0777, 7 - 6 = 1 and 7 - 4 = 3, so I expect the permissions to be 0133, but apparently, this is not the case.   What is umask exactly? Explain it to me like I was a "Linux noob" How do I calculate with umask? What are use cases for umask? How to check if specific column exists in an Access database table When connected to the Internet, the system checks if it's in a walled garden, which is simply trying to connect to Google. If it fails, in Android 5, there'll be an exclamation mark on the WiFi icon or signal icon.   In some situations, this is annoying. Say, in China, Google is blocked, the exclamation mark will always be there, which is meaningless.  How can I disable this check, and make the system assume, connected WiFi/mobile data is connected Internet? Show that SO(n) is a normal subgroup of O(n).  A normal subgroup is a subgroup which is invariant under conjugation by members of the group of which it is a part. SO(n) is the set of orthogonal matrices of determinant 1. O(n) is the set of real matrices whose inverses equal their transposes (orthogonal matrices). I'm simply bad at writing proofs. Please help? You are here, but where's here? I find the .youarehere a styling for the main navigation links causes the text to be a little difficult to read on the also-blue header background. Could we give it a little bit of background colour or something else that would provide more contrast?  For example:    which is the product of the following CSS*:  .nav ul li {     margin: -2px 10px 0 0;     padding: 5px; }  .nav ul li.youarehere {     background-color: rgba(0, 80, 112, 0.25);     border-radius: 5px; }  .nav ul li.youarehere a {     color: #A1E9FF; }   *For bonus points, also reduce the line height for the codeblocks! How to open a web page from my application? Which dialects of English consider "would" to be a polite form of "will"? My recent trip to India exposed me to many sentences using &quot;would&quot; as a polite substitute for &quot;will&quot;, as in  Please make sure to leave on time. The last bus would depart at 8PM. Thanks for checking out early. However, there would be no refund.  I am not familiar with such patterns in AmE or BE. Are they common in particular settings that I'm not aware of? How common are they in India? Note: the following query seems to return a bunch of other examples (among conditional uses of course) inurl:.co.in &quot;would&quot; Game State 'Stack'? I was thinking about how to implement game states into my game. The main things I want for it are:   Semi-transparent top states-being able to see through a pause menu to the game behind Something OO-I find this easier to use and understand the theory behind, as well as keeping orgranised and adding more to.    I was planning on using a linked list, and treat it as a stack. This means I could access the state below for the semi-transparency.  Plan: Have the state stack be a linked list of pointers to IGameStates. The top state handles its own update and input commands, and then has a member isTransparent to decide whether the state underneath should be drawn.  Then I could do:  states.push_back(new MainMenuState()); states.push_back(new OptionsMenuState()); states.pop_front();   To represent the player loading, then going to options, and then main menu.  Is this a good idea, or...? Should I look at something else?   Thanks. The main doubt one can have about mirrorless is, I think that they do not provide ttl viewfinder. Is this a big disadvantage? In what way is it worst (or best) than classical reflex system?  What are the others advantages and disadvantages of a mirrorless compared to a reflex?  Have mirrorless a chance to replace reflex (at least for non pros) in the future? $ f:\mathbb C\rightarrow \mathbb C$ defined by $f(z)=0$, if $Re(z)=0$ or $Im(z)=0$ and $f(z)=z$, otherwise. I've recently noticed an issue with Ubuntu Software Center which I have tried to resolve following the answers provided in  without result and  which partially worked but didn't persist. The Issue After installing 20.04 I opened Ubuntu Software Center and installed a number of apps without any problem - one of which was Stacer which I will use as an example.  In Show Applications the app is clearly present and right clicking on the icon selecting Show Details provides the image above and it works perfectly well. However, if I open Ubuntu Software Center and type in the search bar stacer it reports that no application is found:  Nor is it listed when selecting the Installed tab. This is the setup for for Software and Updates.  There are other applications I have previously installed which are also now reported as No Application found such as gLabels, gscan2pdf and others. Has something changed since I initially installed 20.04.1 and more importantly, how can I restore good order to the Ubuntu Software Center?