global scope and local scope in javascript
Global JavaScript Variable Scope: Why doesn't this work?
Relative pronouns "where" and "when": where can they be omitted? Someone who just thinks they know what they're talking about What is a word or phrase that means a speaker (or writer) is talking about something they know very little about, but they think they know more than they do?  An example: If you read diet message boards, you get dozens of people saying ‘Eat 6 small meals a day,’ or ‘Eat 3 big meals, but don’t snack,’  or ‘Eat more/less protein/carbs/fat.’ Each person is sure they are knowlegable enough to give good advice, but real experts(dieticians or researchers, for example) are rare.  I want a word to describe this attitude.  Bullshit is close, but someone bullshitting usually knows they aren’t an expert, they just want to convince the listener they are.  Also, I’d prefer something politer than bullshit. Using the Well Ordering Principle to Show that n^3 - n is divisible by 6. I read the following two sources and I think I understand the structure of proofs involving WOP, but I am stuck on the open-ended part where you prove P(n-1) for the  following problem:    Use the well-ordering principle to show that n^3 - n is divisible by 6.    Any help would be greatly appreciated!   Note: After factoring out (n-1)^3 - (n-1) it took the form of n^3 - 3n^2 + 2n and the only difference between that and n^3 - n is "3n^2 - 3n" which I proved was divisible by 6 via induction. Is there a better way to solve this problem?  Edit: , post is useful however I not supposed to use induction for the main part of the proof. Is there a higher register word that means to criticize something highly specific and inconsequential? Any synonym I can think of seems a little too vernacular, e.g. "to split hairs", "to nitpick". What's a more professional/academic way of saying this? I'd prefer a single word if one exists. As far as I know, current division for spesific place's formula is: Ix=(Req/Rx)*Isource   However, here,the solution is 3/(3+2+4)*6. How is this a current division ? Can you explain this to me How to log out user from web site using BASIC authentication? Is it possible to log out user from a web site if he is using basic authentication?  Killing session is not enough, since, once user is authenticated, each request contains login info, so user is automatically logged in next time he/she access the site using the same credentials.  The only solution so far is to close browser, but that's not acceptable from the usability standpoint. I was wondering about the reason of the choose of the X as symbol used to represents the "Close application" operation. Normalising Constant for exponentiated function What would the normalising  constant be of the following, or atleast an approximation? I would like to avoid sampling.  $$f(\theta)=\exp(-k_1e^{-k_2\theta^2}-\theta^2)\qquad\theta\in(-\infty,\infty), \quad k_1,k_2&gt;0$$  In the event that its not possible, what would be a valid polynomial lower bound on $\log(f(\theta))$, that would take into account $k_1$  For anyone, who is interested, I end up with this expresssion because I place a Gaussian prior over (a squared exponential) kernel parameters, and trying to use variational bayes (hence, a lower bound). Iterating through columns in table using ModelBuilder? I am unable to find any info on how to use ModelBuilder to run a certain spatial analysis function on each column in a table.  I have a table to sample locations and at each location there are a series of measures (e.g. temperature, flow rate, number of certain species).  For each of those attributes (columns in the table), I was to run the IDW function from the surface tools.  This would be easy if I had each attribute in a separate shp/feature class, but not very efficient.  I tried Iterate Feature Selection, but was unable to pass the field name as the Z value in the IDW function.  This is for ArcGIS 10.1 (Basic and Spatial Analyst license) What Is the Real Name of the #? I used to say "sharp sign" to refer to the # sign.   Today a friend told me that the correct term is number sign or hash sign or even just hash.  What is the difference between these options and what's the correct usage of the names for this sign? Serial voteup someone you learn from Question on showing a bijection between $\pi_1(X,x_0)$ and $[S^1, X]$ when X is path connected. I am trying to do this question taken from Hatchers algebraic topology and I am struggling to understand the notation and the concepts.  As far as I know $\pi_1(X,x_0)$ is the set of end point preserving homotopy classes of loops in X based at $x_0$ and a loop is just a path    $f:I \rightarrow X$ with $f(0)=f(1)$. The question says we can regard $\pi_1(X, x_0)$ as the set of basepoint preserving homotopy classes of maps $(S^1, s_0) \rightarrow (X, x_0)$.   This confuses me, does it mean the set of basepoint preserving homotopy class on maps $g:S^1 \rightarrow X$ which map loops in $S^1$ based at $s_0$ to loops in X based at $x_0$?  Then how can $\pi_1(X,x_0)$ be regarded as this set?  If someone could explain this it would be really useful Stanley's Enumerative Combinatorics () contains next fact: 1.1.3 Example. Let f(n) be the number of n × n matrices M of $0$’s and $1$’s such that every row and column of M has three 1’s. For example, f(0) = 1, f(1) = f(2) = 0, f(3) = 1. The most explicit formula known at present for f(n) is $$f(n)=6^{-n}{(n!)}^2\sum\frac{(-1)^{\beta}(\beta+3\gamma)!2^\alpha 3^{\beta}}{\alpha!\beta!\gamma!^26^{\gamma}}$$ where the sum ranges over all (n + 2)(n + 1)/2 solutions to α + β + γ = n in nonnegative integers.   I need proof of this fact. (i.e. reference to book or articles that contains proof this fact). Convert month name to month number in SQL Server All operating systems freeze sometimes, and Ubuntu is no exception. What should I do to regain control when...   just one program stops responding? nothing at all responds to mouse clicks or key presses? the mouse stops moving entirely? I have an    In what order should I try various solutions before deciding to pull the power plug?  What should I do when starting up Ubuntu fails?  Is there a diagnostic procedure I can follow? How prove this two symmetric matrices $AB=0$ Let $A,B$ be real symmetric matrices, and for any $n\in \Bbb N^{+}$, and for all $x,y\in \Bbb R$, we have $$tr(xA+yB)^n=x^ntr(A^n)+y^ntr(B^n).$$  Show that $AB=0$.  My try:since $$(xA+yB)^n=x^nA^n+\binom{n}{1}x^{n-1}A^{n-1}yB+\cdots+\binom{n}{n-1}xA(yB)^{n-1}+y^nB^n$$ so $$tr\left(x^nA^n+\binom{n}{1}x^{n-1}A^{n-1}yB+\cdots+\binom{n}{n-1}xA(yB)^{n-1}+y^nB^n\right)=x^ntr(A^n)+y^ntr(B^n)$$  then  $$tr\left(\binom{n}{1}x^{n-1}A^{n-1}yB+\cdots+\binom{n}{n-1}xA(yB)^{n-1}\right)=0$$ so $$\binom{n}{1}x^{n-1}ytr(A^{n-1}B)+\cdots+\binom{n}{n-1}xy^{n-1}tr(AB^{n-1})=0$$ then I can't  I found this is a nice result, maybe this is an odd problem, and I can't solve it. Thank you. What is the difference between $* and $@? Consider the following code:  foo () {     echo $* }  bar () {     echo $@ }  foo 1 2 3 4 bar 1 2 3 4   It outputs:     1 2 3 4       1 2 3 4   I am using Ksh88, but I am interested in other common shells as well. If you happen to know any particularity for specific shells, please do mention them.  I found the follwing in the Ksh man page on Solaris:     The meaning of $* and  $@  is   identical  when  not  quoted  or  when  used  as a parameter   assignment value or as a file name. However, when used as  a   command argument, $* is equivalent to ``$1d$2d...'', where d   is the first character of the IFS variable,  whereas  $@  is   equivalent  to  $1 $2 ....   I tried modifying the IFS variable, but it doesn't modify the output. Maybe I'm doing something wrong? Prove $f $ is identically zero if $f(0)=0$ and $|f'(x)|\le|f(x)|$ The  mentions the following matrix identity $$\det\begin{pmatrix}A&amp;B\\B&amp;A\end{pmatrix}=\det(A+B)\det(A-B),$$ valid for squared matrices $A$ and $B$ of the same size.  How is this result proved? This works as expected:  $ echo a b c | xargs --replace="{}" echo x "{}" y x a b c y   This does too:  $ echo a b c | xargs --max-args=1 echo x x a x b x c   But this doesn't work as expected:  $ echo a b c | xargs --max-args=1 --replace="{}" echo x "{}" y x a b c y   And neither does this:  $ echo a b c | xargs --delimiter=' ' --max-args=1 --replace="{}" echo x "{}" y x a y x b y x c  y   I expected this output:  x a y x b y x c y   As a workaround, I am using printf and two xargs, but that is ugly:  $ echo a b c | xargs printf '%s\0' | \ &gt; xargs --null --max-args=1 --replace="{}" echo x "{}" y x a y x b y x c y   Any idea why this is happening?