jquery show() not work unless invoke alert after that
Why does jQuery or a DOM method such as getElementById not find the element?
Test for finite variance? Is it possible to test for finiteness (or existence) of the variance of a random variable given a sample? As a null, either {the variance exists and is finite} or {the variance does not exist/is infinite} would be acceptable. Philosophically (and computationally), this seems very strange because there should be no difference between a population without finite variance, and one with a very very large variance (say > $10^{400}$), so I am not hopeful this problem can be solved.  One approach that had been suggested to me was via the Central Limit Theorem: assuming the samples are i.i.d., and the population has finite mean, one could check, somehow, whether the sample mean has the right standard error with increasing sample size. I'm not sure I believe this method would work, though. (In particular, I don't see how to make it into a proper test.) Scripting `rm` and `rm -i` I want to create a script that whenever there are more than three files being removed, it invokes rm -i by default. I know it will go in initialization files but can't seem to get it working.  So far:  if [$file -ge 3]; then   rm -i    exit 0  else   rm exit 1 Manually clear saved question drafts I've seen lately that new question editing is stored somewhere for later use if we wander off the new question without posting it and then return back to the page. Which is a good functionality addition in it's own right.  What I'd like to also have is the Discard this draft functionality that would clear form data and forget it. Somehow we find an answer in the meantime and the question isn't valid any more.  So having a Discard saved draft or something similar would be a nice contra-functionality to auto-save to remove stored data. The way it's implemented now seems too hidden hidden and unpredictable to users.  Additional edit  When adding hidden auto functionality usually means creating the opposite as well by either giving the possibility to preference of not having automatism at all or giving the possibility to clear what's been auto saved.  Let's see how GMail doesn't work (and I think we all agree that from UX perspective it does the job as expected:   User clicks Compose message User starts writing a new email message User decides to not send the message and checks their inbox User clicks Compose message again A clean form is presented to user (old one being part of drafts)   I'm not suggesting we should have something like Saved drafts but we surely should have the possibility to clear previous question draft.  Since this new functionality was introduced I should point out that I would use the discard functionality more frequently than the saved one. I do welcome saving messages, but discarding of saved drafts is anything but a rare situation one might want to do. It wouldn't be a problem if this was a 1% against 99%. To me it's more like 50/50.  Best possible solution  When providing saved drafts there should (from the UX perspective) be the opposite functionality as well. Namely discarding of it. But first thing we should be asking ourselves is:    do users more frequently need pre-filled saved question draft or do users more frequently need empty form with the possibility to populate it with a saved draft   User testing should provide the usage frequency between the two and the one that's more likely to happen (my guess is that there would be a big difference between the two) should be implemented. So one of these:   Pre-populate question fields with saved draft on question form load, while also providing a button to clear the draft and start writing anew without the need to manually clear all the fields (which would be the optimal solution in case of a single field form) Question form should always load empty while also having a button that would pre-populate it with a saved draft.   I think this would be the best consensus related to saved question drafts and their usage. But as we've seen this issue has been swept under the rug for an indefinite time. Install java Runtime Environment Construction of "it's too hard a task" What is scientific mind? How can you define scientific mind? What i think , it is a bend of mind that can be developed by any person(also one not related to field of science).This mind is fulfilled with abilities to observe clearly and sceptical about what he sees.It means the person will be keen to dig out truth and did not reaches to a conclusion easily. He utilizes facts enhance them with logical reasoning and fills the gap with their imagination.  Is there any disadvantage or any kind of limitation with scientific mind? headed or heading, started or starting? Consider:  Two units are headed your way. Two units are heading your way. Don't get me started! Don't get me starting!  Is there any difference in meaning? And I don't see why passive voice is used here. I would think they have similar meaning here. Help me to clarify! pronoun agreement in neither nor Which one is correct?   Neither my friend nor I feel my best in the morning. Neither my friend nor I feel her best in the morning. Neither my friend nor I feel our best in the morning.    I already know that the verb agrees with the subject closer to the verb:   Neither my friends nor my brother understands me. (correct) Neither my friends nor my brother understand me. (wrong)   AND   Neither my brother nor my friends understand me. (correct) Neither my brother nor my friends understands me. (wrong) How can I snap a window in a corner with 18.04? Given that , I wonder if every intelligent biological species is capable of producing beings that are Force-Sensitive?   Or are there some species characteristics that can make it 100% impossible for them ever to produce a Force-sensitive individual.  NOTE: Let's exclude - if they exist in EU - things like random new-species-creating mutations - e.g. the individual should be 100% the same species, able to interbreed. How can I efficiently drive an LED? I understand that I can not connect an LED directly to a battery because it will draw too much current. Thus, there must be something else in the circuit to limit the current. What options are there? Are some methods more efficient than others? What does a star-preceded property mean in CSS? Print programs with its proper syntax I have defined my own language whose syntax is very close to the one of Pascal. I would like to type the following program for instance. Many people use the packages algorithmicx or algorithm2e to print programs, but it seems that we have to use their specific keywords of its syntax like procedure, end while.  I just want to indent spaces when needed, and bold some words when I want (sorry that I could not bold letters in the following figure). Do I have to use  texttt for each line? Also, with verbatim, I could not bold words...  Also, as the program is not large, I would need to put it on the left side of the page, and leave space for some explanasion text on its right hand side. So I  guss I need to get them all together, and use multicols.  Could anyone help?  program test                                      some text here var   i : integer;                                    ...    b : boolean; begin    i := 1;                                        ...    b := true;    while i &lt; 15 do       i := i  + 1;       b := not b                                  some text here    od end   Edit1: Following @Werner's tabbing solution, I have made the code a minipage:  \begin{minipage}[t]{0.48\linewidth}% \begin{tabbing} Werner's solution \end{tabbing} \end{minipage}\hfill \begin{minipage}[t]{0.48\linewidth} a paragraph \end{minipage}   Actually as the code shows, I want the texts to be another separated minipage on the right hand side of the code. I have then 2 questions:   is it reasonable to make 0.48\linewidth instead of 0.5\linewidth? 0.48\linewidth is a conventional choice? is it possible to make a frame around the code, and use \caption and \label to make it a reference (I prefer figures)? Converting Raw HTTP Request into HTTPWebRequest Object Mobile phone battery charger I would like to know about the workings of mobile phone battery chargers. I know the basic principle, you take a transformer to bring it down to 9/6/3.7 volts then a bridge rectifier circuit and a capacitor input filter to rectify it into DC. Then you apply it to the battery. But I know this should not be enough, I need at least two things,   Protection against back current flow Switch off power when the battery is fully charged.   Can someone point me to something simple (apart from this ) It would be nice to be able to put emphasis on specific bits of a fragment or of a quote (bold can help for a quote but I find that it makes things less readable sometimes). What do you think? Update: On , you can highlight particular lines by prefixing each line with @@. See also: Microsoft Exchange 2013 is not receiving internet email Can I travel within the Schengen area if I currently don't have a valid visa or residency permit? Objects not rotating with each other (Rubik's cube) Kind of a strange question, but say something has spoiled, i.e. smells bad, tastes bad, etc.  Will it actually always make you sick? Like for instance spoiled dressing, let's say it tastes sour, smells nasty and you eat it, will it make you sick?  If so what actually makes you sick? The toxins/bacteria? or it just being unappetizing?  I ask because I tried a TINY bit of ranch and while it tasted mostly fine (it was a bit tangy) it smelled quite tangy but looked fine. I also saw .