This is on a fresh install of Ubuntu 14.04 running on a VPS.  For example the following will work:  server {     listen 8080 default_server;     root /var/www;      location / {         try_files $uri $uri/ =404;     } }  server {     listen 80 default_server;     root /var/www;      location / {         try_files $uri $uri/ =404;     } }   When I visit the page it will be my index.html.  But if I try to make nginx listen on another port (35729):  server {     listen 35729 default_server;     root /var/www;      location / {         try_files $uri $uri/ =404;     } }   or even one that's maybe slightly more used (3000 by nodejs servers for example)  All I get is an error saying the webpage is not available. .  Looking in netstat though says that nginx is listening for the port:  tcp        0      0 0.0.0.0:35729      0.0.0.0:*          LISTEN    15349/nginx -g daem   and iptables looks like this (which means no firewall right?)  Chain INPUT (policy ACCEPT) target     prot opt source               destination  Chain FORWARD (policy ACCEPT) target     prot opt source               destination  Chain OUTPUT (policy ACCEPT) target     prot opt source               destination   and sudo ufw status verbose yields  Status: inactive   What's going on?
This is a  about Connection Refused    We see a lot of questions to the effect      When I try to connect to a system I get a message      Connection refused      Why is this ?
Get real client IP in a Servlet Remove the shortcut of an application that was installed using Wine from the Unity Dash How do I remove an application shortcut from the Unity Dash (not from the Unity Launcher)?  My specific issue is I tried to install a game using Wine a while ago. I then uninstalled the game, then uninstalled Wine. Today I found that shortcuts to the game (and other related content that came with it) remain when I push Super and type the game name. (Wine is not visible though.) Compare the statistical significance of the difference between two polynomial regressions in R So first of all I did some research on this forum, and I know   questions have been asked but they usually haven't been answered properly or sometimes the answer are simply not detailed enough for me to understand. So this time my question is : I have two sets of data, on each, I do a polynomial regression like so :  Ratio&lt;-(mydata2[,c(2)]) Time_in_days&lt;-(mydata2[,c(1)]) fit3IRC &lt;- lm( Ratio~(poly(Time_in_days,2)) )   The polynomial regressions plots are:    The coefficients are :  &gt; as.vector(coef(fit3CN)) [1] -0.9751726 -4.0876782  0.6860041 &gt; as.vector(coef(fit3IRC)) [1] -1.1446297 -5.4449486  0.5883757    And now I want to know, if there is a way to use an R function to do a test that would tell me whether or not there is a statistical significance in the difference between the two polynomials regression knowing that the relevant interval of days is [1,100].  From what I understood I can not apply directly the anova test because the values come from two different sets of data nor the AIC, which is used to compare model/true data.  I tried to follow the instructions given by @Roland in the related question but I probably misunderstood something when looking at my results :  Here is what I did :   I combined both my datasets into one.  f is the variable factor that @Roland talked about. I put 1s for the first set and 0s for the other one.  y&lt;-(mydata2[,c(2)]) x&lt;-(mydata2[,c(1)]) f&lt;-(mydata2[,c(3)])  plot(x,y, xlim=c(1,nrow(mydata2)),type='p')  fit3ANOVA &lt;- lm( y~(poly(x,2)) )  fit3ANOVACN &lt;- lm( y~f*(poly(x,2)) )   My data looks like this now :    The red one is fit3ANOVA which is still working but I have a problem with the blue one fit3ANOVACN the model has weird results. I don't know if the fit model is correct, I do not understand what @Roland meant exactly.  Considering @DeltaIV solution I suppose that in that case :  The models are significantly different even though they overlap. Am I right to assume so ? Equivalence of conditions for Convergence of Non-negative Random Series Question  Let $X_n\geq 0$ be independent for $n\geq 1$. The following are equivalent.  $\sum_{n=1}^\infty X_n&lt;\infty$ a.s. $\sum_{n=1}^\infty[P(X_n&gt;1)+E(X_nI(X_n\leq 1)]&lt;\infty$ $\sum_{n=1}^\infty E(X_n/(1+X_n))&lt;\infty$   My attempt I was able to prove $(1)$ implies $(2)$ and $(2)$ implies $(3)$ but not $(3)$ implies $(1)$. For $(1)$ implies $(2)$, observe that by Borel-Cantelli $\sum_{n=1}^\infty P(X_n&gt;1)&lt;\infty$, else $X_n&gt;1$ infinitely often w.p.1 so that $(1)$ is violated. To see that $\sum_{n=1}^\infty E(X_nI(X_n\leq 1)]&lt;\infty$, apply Kolmogorov three-series theorem (I think). For $(2)$ implies $(3)$ we can write that $$ \begin{align} \frac{X_n}{1+X_n}&amp; =\frac{X_n}{1+X_n}I(X_n\leq 1)+\frac{X_n}{1+X_n}I(X_n&gt;1)\\ &amp;\leq X_nI(X_n\leq 1)+ I(X_n&gt;1). \end{align} $$ Now take the expectation of both sides and sum on $n$ using $(2)$ to conclude $(3)$. For the last implication $(3)$ implies $(1)$, I tried to use Kolmogorov three series theorem. To this end put $Y_n=X_nI(X_n\leq 1)$. First note that $\sum_{n=1}^\infty P(X_n&gt;1)&lt;\infty$ since $$ P(X_n&gt;1)\leq P\left(\frac{X_n}{1+X_n}&gt;\frac{1}{2}\right)\leq 2E\frac{X_n}{1+X_n} $$ by Markov's inequality. But I am unable to show that $\sum EY_n&lt;\infty$ and $\sum\text{Var}(Y_n)&lt;\infty$. Any help is appreciated. How does the formation of a solar system not break the second law of thermodynamics? Please forgive: I am a layman when it comes to physics and cosmology, and have tried finding an answer to this that I can understand, with no luck.  As I understand it, the solar system evolved from a massive molecular cloud. To me, this seems to break the second law of thermodynamics, as I think it suggests order from disorder.  I know there must be something wrong with my logic, but am really stuck.  Can anyone explain this one in layman's terms?  (Posting to both "Astronomy" and "Physics", as it seems to overlap these subjects) Remove "Set as desktop background" from Windows context menu TimedRotatingFileHandler Changing File Name? Awesome WM menu missing Firefox After sudo apt-get install awesome awesome-extra and logging into it (with no previous configuration that I know of), there's no menu entry for Firefox. All my other stuff is there - Mutt, Meld, jEdit, BOINC, etc., only Firefox is missing. I have no ~/.config/awesome/ directory, so there should be no override in place. Why "was" not "were" in "Nearly £20 was taken from my bank account" I've always said "$100 were taken" not "$100 was taken" because I thought $100 is plural. Could you explain why "was" not "were"? Any other helpful notes about the issue would be appreciated.     Nearly £20 was taken from my bank account Should I disconnect my MacBook Pro's power cord when the battery is fully charged? My friend told me that I need to disconnect the power cord when the battery is fully charged. Otherwise, I will shorten the life of the battery.  Other people say you should drain it once a month or point out that for long term storage, you should charge it to 50% and then periodically (3 to 6 months) bring it back to 50% and store it again.  I am going to use my laptop at home 90% of the time. So, I plan to have the power cord connected all the time.  I'd prefer to just plugging in my MacBook Pro and letting it be on charge long term and occasionally taking it away from the charger when I'm not at home or my desk.  Are these specific recommendations worth the inconvenience? In  thread, the question was to find a $f: \mathbb{R} \to \mathbb{R}$ such that  $$f(f(x)) = f(x) + x$$  (which was revealed in the comments to be solved by $f(x) = \varphi x$ where $\varphi$ is the  $\frac{1+\sqrt{5}}{2}$).    Having read about  shortly before though, I came up with this train of thought:  $$f(f(x)) = f(x) + x$$ $$\Leftrightarrow f^2 = f^1 + f^0$$ $$f^2 - f - f^0 = 0$$  where $f^n$ denotes the $n$'th iterate of $f$.  Now I solved the resulting quadratic equation much as I did with plain numbers  $$f = \frac{1}{2} \pm \sqrt{\frac{1}{4} + 1}$$ $$f = \frac{1 \pm \sqrt{1+4}}{2} = \frac{1 \pm \sqrt{5}}{2}\cdot f^0$$  And finally the solution $$f(x) = \frac{1 \pm \sqrt{5}}{2} x .$$  Now my question is: *Is it somehow allowed to work with functions in that way?** I know that in the above, there are denotational ambiguities as $1$ is actually treated as $f^0 = id$ ... But since the result is correct, there seems to be some correct thing in this approach.  So can I actually solve certain functional equations like this? And if true, how would the correct notation of the above be? I'm having a really hard time trying to understand what the differences between a desktop environment and a window manager are?  EDIT: From this :  There are basically three layers that can be included in the Linux desktop: X Windows – This is the foundation that allows for graphic elements to be drawn on the display.  builds the primitive framework that allows moving of windows, interactions with keyboard and mouse, and draws windows. This is required for any graphical desktop. Window Manager – The Window Manager is the piece of the puzzle that controls the placement and appearance of windows. Window Managers include: , , , , , etc. Requires X Windows but not a desktop environment. Desktop Environment – This is where it begins to get a little fuzzy for some. A Desktop Environment includes a Window Manager but builds upon it. The Desktop Environment typically is a far more fully integrated system than a Window Manager. Requires both X Windows and a Window Manager.  Examples of desktop environments are , , ,  among others) I marinated chicken five days ago in lemon juice, seasoned salt, and garlic powder, is it still safe to cook in the oven? My keyboard is typing by itself, could there be a ghost in it? The keyboard on my laptop seems to be typing by itself:   It sometimes types characters like 134, whether by itself or when I hit certain keys. Repeating characters may appear unexpectedly. The system volume may change by itself, or windows like the Print dialog or Web browser may appear.   This can happen without any input or as I type, and may occur more often when certain keys are pressed. Sometimes, the keyboard fails to respond altogether. This is happening regardless of the software involved.  Is there a ghost in my keyboard—is my keyboard broken?  A sample of text from the keyboard might look like this (normal QWERTY...ASDF...ZXC... sequence is expected):   QWERTYUIOPASDF)(G@*HKLZXCVBN QWERTYIOPASDFGL!#ZXCVB13 QWERTYUIOPASDFGHJKLZXCVB!#N qwertyu41iopasdf19g13h28j113k4113zxcvb4n qwerty4u1iopasdf0g7h1jklzxcvb13m qwert13uuuuuuuuuuuuuuuiopasdf87091134ghhhhhhhhhhhhhhhhhhhhhhh13jk13zxcvb14      This question comes up often and the answers are usually the same. This post is meant to provide a definitive, canonical answer for this problem. Feel free to edit the answer to add additional details. Where is the preferred place to set the PATH envvar?  ~/.profile or /etc/environment?  What is the case when PATH is set in both places? Is the end result a concatenation of both values set in those two places? Change edit approval/rejection I accidentally clicked reject on the suggested edit on this question(). I can't find the button to change it to Approve? Cannot access any files on Samsung Tab 4 7" On a whim the other day, I changed my meta name from Lord Torgamus to Popular Demand.  I just noticed that the old name has "stuck" to the author tag of ; everywhere else on meta, my new name displays as expected.  Is this a feature?  Is it a bug?  Mostly I'm just curious, as I can't think of a strong reason in favor of keeping this behavior or a strong reason for changing it.  A question somewhat like this has been raised before as , but the previous poster implied that the issue had something to do with migration, which my situation shows is not the case. Linearization of PDE: $0$ is an eigenvalue since all translates of travelling waves are also travelling waves Determine Whether Two Date Ranges Overlap