What does comma operator in C do when we return an integer with two values?
What does the comma operator , do?
access controller variable in javascript Is there any way to access controller variable set in a Method in Javascript. In the example above the value is set in constructor. But when I set it in a method it is showing as NULL in Javascript  In controller:  public class abc {     public string varA { get;set; }     public void fn(){         varA='hello';     } }   In VFPage:  function hello(){     var bool = '{!varA}';     alert(bool); }   The alert statement in the VF Page(i.e bool) is displayed as null. Can you please help how to access a variable set from a method instead of constructor? Assume a p x n data matrix  (e.g. p independent samples of n variables). The n variables are correlated according to a correlation matrix $\rho$. Now if you consider the data matrix as some state t (t=time)  and based on this state I would like to calculate the next timestep (t+1). Therefore the correlation matrix would be allowed to have values &lt; 1 in the diagonal, which means that the diagonal elements would indicate the influence from each variable $x_{p,i}[t]$ on $x_{p,i}[t+1]$. So I would be interested to find a function f like this: $x_{p,i}[t+1] = f(x_{p,i}[t],\rho)$ so that the p x n data matrix  consisting of the $x_{p,i}[t+1]$ replicates the $\rho_{ij}$ (except the diagonal element). f should be something like this: $x_{i,j}[t+1] = \sum_{(k=1\ldots n)}\rho_{i,k} \cdot x_{kj}[t] + e_{i,j}.$ This means specifically, I not only want to calculate a data matrix, that replicates the correlation matrix as such, but also to let each observation be depending on its own state and linear dependent on the previous state of all the intercorrelated variables of its own state. For ease one can assume that the p variables are distributed normal and $e_{ij}$ are independent and distributed with mean$(e_{i,j}) = 0 $. Then for a numerical simulation it would be interesting  to find a formula to calculate the variance/standard deviation of each of the j variables (sd($e_{[.,j]} = ?).$ Thank you for any help! Are players allowed to pass a penalty kick? I saw a video of Johann Cruyff , isn't that against the rules? DNS subdomain (child) NS records If we have example.com we would setup things something like this: $ORIGIN example.com. @  1D  IN  SOA ns1.example.com. hostmaster.example.com. (                   2002022401 ; serial                   3H ; refresh                   15 ; retry                   1w ; expire                   3h ; nxdomain ttl                  )           IN  NS     ns1.example.com.           IN  NS     ns2.example.com.  since in the parent zone .com. there is already NS record for the example.com. child zone and A glue record for the ns1.example.com. for what purpose do we state NS records again in the child zone? and also, do we need to state A record for the name servers in the child zone itself? Intersection of all $p$-Sylow subgroups is normal There are $k$ penguins, $k\ge 3$. They are all different heights. How many ways are there to order the penguins in a line, left to right, so that we cannot find any three that are arranged tallest to shortest (in left to right order)? The penguin triples do not have have to be adjacent.  This problem is courtesy of someone I know only as "DaMancha." How do I disable the guest session? How do I disable the guest session in Ubuntu 11.10 or higher? I don't want people to be able to use my computer without using a password to log in! Does JavaScript have the interface type (such as Java's 'interface')? Storage order vs Result order Find all quadruples of real numbers $(a,b,c,d)$ satisfying the system of equations  $(b+c+d)^{2010}=3a$  $(a+c+d)^{2010}=3b$  $(a+b+d)^{2010}=3c$  $(a+b+c)^{2010}=3d$  I tried to find the solutions using hit and trial and by using some logic also I find two solutions which are $(0,0,0,0)$ and $(\frac{1}{3},\frac{1}{3},\frac{1}{3},\frac{1}{3})$  I think these are the only solutions that exist. Slit screen and wave-particle duality In a double-slit experiment, interference patterns are shown when light passes through the slits and illuminate the screen. So the question is, if one shoots a single photon, does the screen show interference pattern? Or does the screen show only one location that the single photon particle is at? Could gravity accelerate light? Gravity causes anything with energy to accelerate toward the source. Black holes, for example, have such strong gravity that they pull in light and don't let any escape. But can acceleration still apply to light? The speed of light is constant, of course, but why are photons affected by gravity yet aren't accelerated by it?  Edit: My main question is why photons aren't affected in the same way as most other particles. I'm perfectly aware that it cannot surpass lightspeed, but I want to know what makes it unaffected by acceleration while other particles are affected. I'm downloading Sentinel-2 tiles from  but they dont seem to be 100 % aligned. Right image is band 08 Sentinel-2 added to ArcGis Desktop (i have done nothing more than adding the 08.jp2 to the map), left esri basemap photo. The offset in Sentinel is about 35-40 meters. How do i correct them?    . Level-1C, Sentinel-2:   SOLUTION:  From HDunn's answer i did this:  Using a road vector layer i added five point pairs and calculated difference in x and y coordinates. The mean differences i used as xvalue and y value in Shift tool. Result: Reading ODBC connection using QGIS? I have a co-worker who manages a large MS Access database that contains X &amp; Y fields for various locations he tracks.  We have previously exported the data to CSV and used the QGIS Delimited Text Plugin to plot the locations.  We would now like to be plot this data directly in QGIS by connecting to the MS Access db via an ODBC connection (as opposed to export to CSV).   Can QGIS consume the data from the ODBC connection to plot the X-Y locations? Can it be "live linked" to the ODBC connection so that when a project is re-opened, the layer "replots" all old and newly added locations dynamically (as opposed to exporting to shapefile, which would create a snapshot in time)? Can you create tabular ODBC connections that can be joined to spatial tables within QGIS?   You can do all of this in ArcGIS ("Add XY Data" tool), so it would be great if this capability existed in QGIS. I just cannot find anywhere that mentions its existence.  I am not planning to move to a spatial database.  As a GIS person myself, yes I know that it makes sense to move to a spatial database, and yes I have used PostGIS to manage this kind of data.  But these are not options right now.  The user is not a GIS person nor wants to be, and he manages his own database in MS Access and that will not change.  I am and am pulling him kicking and screaming into the GIS world and want to make it easy as possible.  He can live with exporting to CSV, I was just hoping there is a better solution USING ODBC FOR MS ACCESS and displaying the XY data in QGIS. I have heard several times that some mathematician has given another and more rigorous for an established theorem, but I don't know what does it really mean and what differences makes it to be more 'rigorous'. My understanding of a proof is that a proof is some explanation to convincing others that a statement is true. If some proof is not rigorous, does it mean that while the proof is acceptable for many but it is not for everybody? If so, the proof is not correct since it going to be rejected by some people and it is not a proof at all. Or, does rigorous mean it uses more advanced tools? If so, why not any alternative (but simpler) proof is also acceptable as rigorous (which is more 'valuable' as well since it's simpler!)?   Saying those limited insight of mine, my questions are:   $1-$ What does rigorous proof mean, in general definition?  $2-$ In order to understand your answers, as an example I am re-writing three of the proofs for the compactness of the torus. Which of the following proofs are most rigorous, 'normal' and least rigorous; and why so?    Theorem: The torus $T^2$ is compact.  First proof: The torus is homeomorphic to the product space $S^1 \times S^1$. The circle $S^1$ is compact. Therefore the torus is the product of two compact spaces, and thus it is compact.   Second proof: The torus $T$ is the subspace of $\mathbb{R}^3$ obtained by rotating a circle about the $z$-axis. The torus is closed since given any point in its complement, there is an open ball of sufficiently small radius centered at that point and disjoint from the torus. Also, the torus is bounded since it is contained in the ball of radius $4$ centered at the origin. Since the torus is closed and bounded in $\mathbb{R}^3$, it is compact.   Third proof: The torus is homeomorphic to a space obtained as a quotient  space of the square by identifying opposite edges. The square is a closed and  bounded subset of $\mathbb{R}^3$ and therefore is compact. Furthermore, a quotient map on the square is a continuous function, and the image of a compact space under a continuous function is compact. Therefore the torus is compact.   Thanks a lot for your guidance. Do not enumerate a section, but add it into table of contents How do I rid of number of a section in the way that it still would be in the table of contents.  If I use   ... \section{SN1} ...   then I see this section name in table of contents as   1 SN1  2 SN2  3 SN3  ...   If I use   \section*{SN}   I don't see it in the content:   1 SN2  2 SN3   How to get in content just   SN1  1 SN2  2 SN3   ? How to label using just numbers from start of text field? In ArcMAP 10.2, I am trying to format the labels on my map.   If the label is   1402 Bowie Road  But  I want only to display numbers:  1402   What is the expression to create this? If $\sqrt[3]{a} + \sqrt[3]{b}$ is rational then prove $\sqrt[3]{a}$ and $\sqrt[3]{b}$ are rational Assume there exist some rationals $a, b$ such that $\sqrt[3]{a}, \sqrt[3]{b}$ are irrationals, but:  $$\sqrt[3]{a} + \sqrt[3]{b} = \frac{m}{n}$$  for some integers $m, n$  $$\implies \left(\sqrt[3]{a} + \sqrt[3]{b}\right)^3 = \frac{m^3}{n^3}$$  $$\implies a + b + 3 \cdot \sqrt[3]{ab}\left(\sqrt[3]{a} + \sqrt[3]{b}\right) = \frac{m^3}{n^3}$$  Since $a +b$, $\sqrt[3]{a} + \sqrt[3]{b}$ are rational, $\sqrt[3]{ab}$ must be rational as well.   For convenience let us say $\sqrt[3]{a} = p, \sqrt[3]{b} = q \implies pq$ is rational. This means, for all $i$, $p^iq^i$ is rational.  $$\implies (p + q)^2 = \frac{m^2}{n^2}$$  $$ = p^2 + q^2 + 2pq = \frac{m^2}{n^2}$$  Since $pq$ is rational, $2pq$ is rational and so is $p^2 + q^2$.  Assume, for some $i$ that $p^i + q^i$ and $p^{i-1} + q^{i-1}$ is rational.   $$\implies (p^i + q^i)(p + q) - pq(p^{i - 1} + q^{i - 1}) = p^{i+1} + q^{i+1}$$  is rational as well.  So for all $i$,  $$a^{\frac{i}{3}} + b^{\frac{i}{3}}$$  and   $$a^{\frac{i}{3}}b^{\frac{i}{3}}$$  are rational.  I know I'm really close to the answer, but it somehow just keeps slipping through my fingers. Difference between Space Opera and Science Fiction? A while back a guy came into the place where I was working. He had a book (I don't remember the name). The book was, according to him, scifi. I told him, "Great! My favorite scifi is the Skylark Series by EE Doc Smith!" He sort of tsked this, saying, "Oh, that's only space opera." I really didn't know what to think of what he said. The funny thing was, I remembering looking at his book thinking, what makes his book scifi any more than mine.  I started thinking about this incident the other day and am once again curious:  What is the difference between space opera and science fiction? What identifies each genre specifically?    NOTE: I had originally asked this on meta due to the closed question:  which is very similar to my question. It was subsequently moved to the main site. How to pass arguments to addEventListener listener function?