Articles I've read on scope in javascript address what happens when you have nested variables/objects/functions defined in its parent scope. However, what happens if you have something like this:    function x(){  function y(){var u = 3;} function z(){//is u available here?}  }
What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the variables stored if they are defined globally?
Windows vs Linux Local Time? Review-beta: Obviously good answer in low-quality Do electrons move around a circuit? We could imagine a simple electronic circuit composed by a power source and a resistor.   It is usual find descriptions as "The moving charged particles in an electric current are called charge carriers. In metals, one or more electrons from each atom are loosely bound to the atom, and can move freely about within the metal. These conduction electrons are the charge carriers in metal conductors." (wikipedia ). That made me imagine electrons going from power -, running by the wires, crossing the resistor and returning to power +, where they suffer a new kick to power -. All that at near the speed of light.  In this model, it is easy to define "electrical current intensity" as proportional to the number of electrons per second that cross one specific point of the circuit.  However, looking for the physics of resistivity, I can read the phrase "The actual drift velocity of electrons is very small, in the order of magnitude of a meter per hour." (wikipedia ). This is a complete different point of view, where electrons are more or less fixed around a fixed position (or moving very slowly), an electricity is a wave of "collisions" or "jumps" of electrons, like in a Newton's cradle (or "do the wave" as public in a football match). Obviously, we do not need severals hours from the switch on to the light on.  So, the question is, do electrons move around a circuit ? References to band theory are welcome.  A related question is: if electrons doesn't moves along the circuit, what is "electrical current intensity"?  Note: I known there are similar questions already posted, but answers of the ones I've read are not very detailed (could be I've not found the best ones). Please, be a few patient before "close vote". Why can't I destroy or place blocks? When watching US television news or reading US news articles there is this affectation where instead of saying:     "Spotify music-streaming service to launch in U.S. on Thursday" ()   or      "Leading credit rating agency Moody's said on Wednesday that the U.S. government's impeccable credit..." ()   The on preposition is missed out.  Is this just a peculiar US journalistic "news speak" shortcut or do American non-journalist writers write this way too? Are if and whether equivalent in sentences like the ones below?     How to determine if my saddle is too high?   How to determine whether my saddle is too high?         We should check if everything is okay now.   We should check whether everything is okay now. Sufficiency to prove the convergence of a sequence using even and odd terms 750Gig Hard Drive shows full with only 315Gigs used How to share worlds between platforms with Minecraft Better Together I have read that with the new "Better Together Update" (BTU) it is now possible to .  However, I am having trouble finding details of how this is supposed to work to determine if it would do what I am hoping it would and therefore whether it is worth my time/money.  I have some saved worlds on Minecraft for XBox One, all done in creative mode.  I am able to import them into what is now just called "Minecraft" which as of the BTU is what is being used to mean the cross-platform version.   Can I now play this same world on my Windows 10 PC?   If I go to the Minecraft web site it offers to sell me the "Java Edition" with the addendum "includes edition for Windows 10".   But from what I have read, anything that has the word "edition" in it isn't the cross platform version.   It's very unclear to me what I would actually be buying here.  If it is possible to open the same world on different platforms, exactly how would I go about doing this?  On the XBox I have to sign in with an outlook.com e-mail address to access my worlds, or my kids' sign-ins to access their worlds, is it the same from the PC? And where would my world be saved?   I have read that XBox saves will be in the cloud, but PC saves will be local, so how can I get a cloud save onto my PC?  And then how can I get it back to the cloud when I am done so I can play it on the console again?  Will there be two copies floating around, making it possible for me to make a backup on my PC?  How will this interact with world editors?  At some point will I be able to start a game on XBox, transfer it to the PC, open it in a world editor, make some changes, and then transfer it back to the XBox? Using some matlab (I know it's cheating) I found that: $$k=0 =&gt; Result=1$$ $$k=1 =&gt; Result=1$$ $$k=2 =&gt; Result=2$$ $$k=3 =&gt; Result=5$$ $$k=4 =&gt; Result=15$$ $$k=5 =&gt; Result=52$$ $$k=6 =&gt; Result=203$$  This sequence is puzzling... Which site is more reasonable for questions about R, SO or stats.stackexchange.com? I've been using SO for a little over a year now, and recently I've noticed a shift of users between SO and stats.stackexchange.com.   I'm wondering if there has been any discussion on where questions about R, a statistical environment, best fits. Would you say it's better to ask R questions on SO or would it be better to ask over at stats.stackexchange.com? What, if any, determinants would you use to decide to post between the two? What about cross posting? Label PGFPlot table points with coordinates I would like to label each plotted point with its x and y coordinate. I am able to label with a single one using the MWE below. I must avoid manually labeling each point since my actual table size is larger and will be changed out regularly. \documentclass{standalone}   \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.16}  \begin{document}  \pgfplotstableread[col sep=&amp;,row sep=\\]{  x     &amp;  y     \\  0.940 &amp;  0.992 \\  0.992 &amp; -0.940 \\ -0.992 &amp;  0.940 \\ -0.940 &amp; -0.992 \\ }\mytable  \begin{tikzpicture}  \begin{axis}     \addplot+[only marks, nodes near coords]table[x=x,y=y,meta=x]{\mytable}; \end{axis}  \end{tikzpicture} \end{document}  which creates the following figure  The desired output is for each point to be labelled with both coordinates. For specific example the top left point would be labelled with &quot;(0.94, 0.992)&quot;. How do i know which wheels will fit my bike? my bike is:  and everything I have came with the bike, only now the axle of the rear wheel bent and the skewer has lost its grooves.  and I would like to replace the rear wheel with the 12 x 142mm version of:   I want to reuse the old casettes and disc break. I was told to buy new rotor bolts, will these do?   Will I be able to migrate all my previous parts onto this new wheel and will the wheel fit onto my bike?  update: A replacement axle would be prefered. What axle would work for my bike? Arbitrary intersection of closed, connected subsets of a compact space connected? Let $(B_i)_{i\in I}$ be an indexed family of closed, connected sets in a compact space X. Suppose $I$ is ordered, sucht that $i &lt; j \implies B_i \supset B_j$.  Is $B = \bigcap_i B_i$ necessarily connected?  I can prove it, if I assume $X$ to be Hausdorff as well: If $B$ is not connected, then there are two disjoint, closed, nonempty sets $C$, $D$ in $B$, such that $C \cup D = B$. Now these sets are also closed in $X$, hence by normality there exist open disjoint neighborhoods $U$, $V$ of $C$ and $D$, respectively.  Then for all $i$: $B_i \cap U^c \cap V^c \ne \emptyset$, since $B$ is contained in $B_i$ and $B_i$ is connected. Thus we must also have  $$ B \cap U^c \cap V^c = \bigcap_i B_i \cap U^c \cap V^c \ne \emptyset $$  by compactness and the fact that the $B_i$ satisfy the finite intersection property. This is a contradiction to the choice of $U$ and $V$.  I can neither see a counterexample for the general case, nor a proof. Any hints would be greatly appreciated!  Thanks,  S. L. How do I execute a command-line program from C# and get back the STD OUT results? Specifically, I want to execute DIFF on two files that are programmatically selected and write the results to a text box. I can't seem to get these particular faces to take the UV Mapping. I selected the entire object, entered edit mode, hit U>Unwrap.   The rest of the mesh takes the uv wrapping, but not those faces for some reason.    It looks normal in solid mode.     Does anyone know what could be causing this? 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! What's your recommendation on drive partitioning schemes for a desktop and home server? What partitioning scheme do you recommend for a desktop? I've always created three or four primary partitions -- root, swap, home, and sometimes a separate boot partition. Ubuntu's default install offers LVMs. I've never had to add additional drives or space, so it never seemed like a big deal. Whenever I do a fresh install, though, I always think there might be a better way. Closed form solution for slope coefficients in bivariate regression In a univariate regression, $Y=a+bX+e$, the solution for slope b is given by $COV(X,Y)/VAR(X)$.  Is there a similar expression for a bivariate regression $Y=a+bX+cZ+e$. What is the closed form solution for b and c in this case? Let $a&gt;b&gt;0$ and let $n \in N$ satisfy $n \geq 2$.  Prove that $$a^{1/n}-b^{1/n}&lt;(a-b)^{1/n}.$$  If we let $a=x$ and $b=x-1$, then we need to show that $f(x):=x^{1/n}-(x-1)^{1/n}$ is decreasing for $1\leq x$ (which means that $f'(x)\leq 0$ and $f$ is differentiable), and evaluate $f$ at $1$ and $a/b$.