Use a coffeescript create function inside a onclick attribute
How do I define global variables in CoffeeScript?
Pluralizing Noun Phrase? The  claims that likelihood and probability are distinct concepts.     In non-technical parlance, "likelihood" is usually a synonym for "probability," but in statistical usage there is a clear distinction in perspective: the number that is the probability of some observed outcomes given a set of parameter values is regarded as the likelihood of the set of parameter values given the observed outcomes.    Can someone give a more down-to-earth description of what this means?  In addition, some examples of how "probability" and "likelihood" disagree would be nice. I am trying to solve a 2 part question, the first part is to expand $\sqrt{1-x}$ up to and including the term $x^2$ which I did.  This gives me $1-(0.5)x-(0.125)x^2 + ...$  However, the 2nd part of the question says that by taking $x=(1/64)$ in the expansion of part (i) -> which refers to the one above, deduce that $\sqrt 7 = 10837/4096$. How do i do this part?  EDIT (After Hint Given By SimpliFire):  $$ \sqrt{1-\frac1{64}}=\frac{\sqrt{63}}8=\frac38\sqrt7 $$ $$ =\frac83\sqrt{1-\frac1{64}}\;=\sqrt7 $$ $$ =\frac83\left(1-\frac12\left(\frac1{64}\right)-\frac18\left(\frac1{64}\right)^2\right)\; $$ $$ =\frac83\left(1-\frac1{128}-\frac1{32768}\right)\; $$ $$ =\frac83\left(\frac{32768}{32768}-\frac{256}{32768}-\frac1{32768}\right)\; $$ $$ =\frac83\left(\frac{32511}{32768}\right)\; $$ $$ =\frac{260088}{98304} $$ $$ \frac{10837}{4096}\;\approx\sqrt7 $$  I'm not sure if I can present it like this, if it is okay i will post it as my answer :X I want to validate a set of credentials against the domain controller. e.g.:  Username: STACKOVERFLOW\joel Password: splotchy   Method 1. Query Active Directory with Impersonation  A lot of people suggest querying the Active Directory for something. If an exception is thrown, then you know the credentials are not valid - as is suggested in .  There are some serious  however:   You are not only authenticating a domain account, but you are also doing an implicit authorization check. That is, you are reading properties from the AD using an impersonation token. What if the otherwise valid account has no rights to read from the AD? By default all users have read access, but domain policies can be set to disable access permissions for restricted accounts (and or groups). Binding against the AD has a serious overhead, the AD schema cache has to be loaded at the client (ADSI cache in the ADSI provider used by DirectoryServices). This is both network, and AD server, resource consuming - and is too expensive for a simple operation like authenticating a user account. You're relying on an exception failure for a non-exceptional case, and assuming that means invalid username and password. Other problems (e.g. network failure, AD connectivity failure, memory allocation error, etc) are then mis-intrepreted as authentication failure.   Method 2. LogonUser Win32 API   have suggested using the  API function. This sounds nice, but unfortunately the calling user sometimes needs a permission usually only given to the operating system itself:     The process calling LogonUser requires   the SE_TCB_NAME privilege. If the   calling process does not have this   privilege, LogonUser fails and   GetLastError returns   ERROR_PRIVILEGE_NOT_HELD.       In some   cases, the process that calls   LogonUser must also have the   SE_CHANGE_NOTIFY_NAME privilege   enabled; otherwise, LogonUser fails   and GetLastError returns   ERROR_ACCESS_DENIED. This privilege is   not required for the local system   account or accounts that are members   of the administrators group. By   default, SE_CHANGE_NOTIFY_NAME is   enabled for all users, but some   administrators may disable it for   everyone.   Handing out the "Act as a part of the operating system" privilege is not something you want to do willy-nilly - as Microsoft points out in a :     ...the process that is calling   LogonUser must have the SE_TCB_NAME   privilege (in User Manager, this is   the "Act as part of the Operating   System" right). The SE_TCB_NAME   privilege is very powerful and   should not be granted to any arbitrary user just so that they can   run an application that needs to   validate credentials.   Additionally, a call to LogonUser() will fail if a blank password is specified.    What is the proper way to authenticate a set of domain credentials?    I happen to be calling from managed code, but this is a a general Windows question. It can be assumed that the customers have the .NET Framework 2.0 installed. probability of $k$ boxes contain exactly $1$ ball How do I extract all the external links of a web page and save them to a file? I have a simple 2-column layout with a footer that clears both the right and left div in my markup.  My problem is that I can't get the footer to stay at the bottom of the page in all browsers.  It works if the content pushes the footer down, but that's not always the case. How to fix sculpting ridges? I ran into a problem I have never seen before and that is when I try to sculpt on a mesh, it sculpts like this:  Instead of this: I am using dyntopo with these settings:   I feel like theres a very obvious solution to this, but I have no idea what it is. Script to raise a single window to the front How to handle repeated references in footnotes? If electrons were positive and protons were negative, would life be different? This was a question on a worksheet during my first week in a class on Electromagnetism. The answer is essentially:     No. Life would be no different if electrons were positively charged and protons were negatively charged. Opposite charges would still attract, and like charges would still repel. The designation of charges as positive and negative is merely a definition.   But how would we have negative charges within the nucleus? Taking a look at the , it seems that down quarks are required in this new "negative proton" to help with creating the pion to "transmit a residual part of the strong force even between colorless hadrons".  I tried to set out and try to find a particle with (-1) charge with a down quark (by going through this ) but all the particles are not stable with the exception of two unknown:   Bottom Xi Baryon Double Bottom Xi Baryon   Assuming one of the above are stable, could the strong force act between one of them and a neutron, implying its alright to have a negatively charged nucleus?  Edit: If it wasn't clear, my question concerned whether or not there existed stable baryons of $-1$ charge with down quarks that could "replace" the proton. $\mathbb Q$ is not the direct product of two non-trivial groups. I know this has been asked before, in a bunch of places, so I expect it to be closed as a duplicate at some point, but I'd like to know if my own proof works. If the proof is incorrect, please limit answers to pointing out the errors. If the proof is correct, then thoughts on improving it would be appreciated.  Prove that $\Bbb Q$ is not the direct product of two non-trivial groups.  —Aluffi exercise II.3.5. My proof Suppose that $\Bbb Q = G \times H$, neither $G$ nor $H$ trivial. First note that $0_G$ is the only element of $G$ with finite order: If $m\ne 0$ and $m\cdot g=0_G$, then $m\cdot(g,0_H)=0_{G\times H}$, contradicting the fact that $\Bbb Q$ has no non-zero elements of finite order. Suppose that for some $m\ne 0$ and some $n\ne 0$, $\pi_G(m/n)=0_G$. Then $0_G=n\cdot\pi_G\left(\frac m n\right)=\pi_G\left(n\cdot\frac m n\right)=\pi_G(m)=m\cdot\pi_G(1)$. Since $\pi_G(1)$ has finite order, we conclude that $\pi_G(1)=0$. Since $\Bbb Z=\langle 1\rangle$, $\pi_G$ maps every integer to $0_G$. Now let $a$ and $b$ be non-zero integers. Then $b\cdot\pi_G\left(\frac a b\right)=\pi_G\left(b\cdot \frac a b\right)=\pi_G(a)=0_G$. As above, this shows that $\pi_G\left(\frac a b\right)=0_G$. Thus if $\pi_G$ is not an injective function, then it must map everything to $0_G$, so $G$ will be a trivial group. The same result holds for $\pi_H$. Since by assumption, $G$ and $H$ are non-trivial, $\pi_G$ and $\pi_H$ are both injective functions, which is of course impossible. In the article class, it seems that using the abstract environment has an effect to the rest of the document. More precisely, it seems that it redefines the \linewidth, which equals \textwidth without abstract, is smaller with the abstract. My feeling is that \linewidth is redefined for the abstract environment, but the value is not reseted at the end of the abstract.  Here is a minimal example:  \documentclass{article} \begin{document} \abstract{This is an abstract. This is an abstract.}\bigskip  This is text. This is text. This is text. This is text. This is text. This is text.\\  \rule{\textwidth}{3em} \rule{\linewidth}{3em} \end{document}   The output is not the same if you comment the \abstract line or not.  Do you have the same problem as I do when you compile (if not, I will upload some PDF files to show)? Is this a (known) bug in LaTeX2e? How can we circumvent the problem?  Note: I compile with the pdflatex command, and I use pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian). I just discovered Matlab's factor()-function, and I randomly typed in 20081294819, and to my surprise it only had two factors (5099 and 3938281)! I had expected many more factors for such a big number and wondered how normal this was. The following is what I've done in my investigation so far.  In the first figure below, I have plotted the probability that some number below $10^k$ has $m$ indistinct prime factors.  The second figure shows the evolution of the probability of finding a number with $m$ indistinct prime factors as the numbers one is looking at grows, i.e. it is just another way to visualize the same data. I have left out all points of zero probability.  If one looks at the first part of the figure, it seems that the peak of the curve for some $k$ shifts toward higher $m$ as $k$ grows.   My first question is this: Does this behavior (i.e. the peak shifting toward higher $m$ as $k$ grows) continue indefinitely, or will the peak stabilize at some point? The latter seems unlikely but I can't be sure.  My second question is this: Approximately how fast does the peak-value $m_{peak}$ move as $k$ grows?  I briefly looked at the , but this involves distinct primes and I don't really know much number theory, so any help would be greatly appreciated! Quantum entanglement: does it necessarily imply superluminal information transfer? Where should looking-for-resources questions go? Not a problem, but have been seeing questions recently of people not being offered upgrade from 18.04 to 20.04.  I thought these upgrades were offered back in June.  I upgraded to 20.04 from 19.10 and this was offered back in May.  Imagine that different versions paths have different schedules, but google does not help explaining(that I found).  Does someone know the schedules? Can you use your off-handed weapon for your main attack action? My friend is 2 weapon fighting a flesh golem. He has one sword that does lightning damage, and one sword that does fire damage. His right hand holds the lightning sword, and his left hand holds the fire sword.  My friend wants to attack with his left hand because lightning heals the golem. However, the DM says that because his left hand is his left hand, he can't use it as his "main" hand, and only attack with it. Is this rules as written/intended? I am using postgreSQL, postGIS and pgrouting. Now I am really confused on how am I going to find the shortest path between multiple points.   I know how to find it between two points through dijkstra but I am confused how to accomplish the same result with more than two points.   I have done some research and found this:    But still I did not understand if its the right way and how to install it. Is the integral $\int_0^\infty \frac{\mathrm{d} x}{(1+x^2)(1+x^a)}$ equal for all $a \neq 0$? Let $a$ be a non-zero real number. Is it true that the value of $$\int\limits_0^\infty \frac{\mathrm{d} x}{(1+x^2)(1+x^a)}$$  is independent on $a$?