how to remove the popup message from standby inactivity?  Because this message is more than annoying, it is still there when I wakes.  Using ubuntu 13.10 (upgrade from 13.04) with Unity    TRANSLATION :   POWER  Automatic Suspend  Computer will suspend very soon because inactivity  EDIT [7-01-2013] : I believe we have found a solution on the ubuntu-fr.org forum. All credits to return Bybeu who created a script that literally removes the popup message. When I speak, I have not tested the script but if an expert could there have a look and give us his opinion, it would be appreciated.  You can find the info of Bybeu here to post # 13  or via
I'm using ubuntu 13.10 as htpc. To save some power, i have set it to suspend after 30minutes of inactivity. Before entering suspended state, a popup appears to warn me that computer is about to get put to sleep. This is a little annoyance since it appears when i resume the pc later.   How can i disable this notification for good?
I have run into a conundrum.   When I go to get some friends cans of beer I say:     You guys want a beer?   When I am referring to going to a bar and drinking some I say:     Let's go get some beers!   When I go to a store to buy beer I say:     I am going to get beer.   How can I work this out? My friend is a native Chinese speaker and this is the sort of plural thing that trips her up. How is this explained? natbib: combining chicago style and sorting by appearance Regular expression for URL Let $M$ be a positive, continuous martingale that converges a.s. to zero as $t$ tends to infinity. I now want to prove that for every $x&gt;0$ $$ P\left( \sup_{t \geq 0 } M_t &gt; x \mid \mathcal{F}_0 \right) = 1 \wedge \frac{M_0}{x}. $$ My approach: I thought that rewriting the conditional probability to an expectation would help so we obtain that we must prove: $$ \mathbb{E} \left[ 1_{\sup_{t \geq 0 } M_t &gt; x}  \mid \mathcal{F}_0 \right] = 1 \wedge \frac{M_0}{x}.$$ A hint to me was given that I should consider stopping the process when it gets above $x$. Thus a stopping time that would do this is $\tau = \inf\{t\geq 0 : M_t&gt;x\}$. But now I'm stuck as I want to apply optional sampling results but we have an indicator which complicates things. How could I proceed from this? Any help is appreciated! Diamond moderator rollbacks can resurrect blacklisted tags Difference in output between SAS's proc genmod and R's glm I'm trying to replicate a model fitted in SAS in R but the fit I'm getting gives me slightly different coefficients and standard errors.  Data:  testdata &lt;- data.frame(matrix(c("f","Test", 1.75,   16, 0,  16, 0,  1,  1, "m",    "Test", 1.75,   15, 1,  16, 6.25,   1,  0, "f",    "Test", 2.75,   4,  12, 16, 75, 1,  1, "m",    "Test", 2.75,   9,  6,  15, 40, 1,  0, "f",    "WHO",  1.75,   15, 1,  16, 6.25,   0,  1, "m",    "WHO",  1.75,   14, 2,  16, 12.5,   0,  0, "f",    "WHO",  2.75,   2,  13, 15, 86.6667,    0,  1, "m",    "WHO",  2.75,   3,  13, 16, 81.25,  0,  0 ), ncol=9, byrow=TRUE)) names(testdata) &lt;- c("sex", "vaccine", "dose", "not_p", "para", "n", "pct",                       "vacnum", "sexno")   SAS:  proc genmod data=model_data; class sex; model para/n  = dose sex vacnum    /dist=bin    link=logit   type3; run;  Analysis Of Maximum Likelihood Parameter Estimates  Parameter   DF Estimate Std Error Wald 95% Conf Lim Wald Chi-Square Pr &gt; ChiSq  Intercept   1 -9.4020   1.6220    -12.5810  -6.2230  33.60           &lt;.0001  dose        1  3.9208   0.6460      2.6546   5.1870  36.83           &lt;.0001  sex f       1  0.5574   0.5184     -0.4587   1.5735   1.16           0.2823  sex m       0  0.0000   0.0000      0.0000   0.0000    .              .  vacnum      1 -1.3221   0.5483     -2.3967  -0.2475   5.81           0.0159  Scale       0  1.0000   0.0000      1.0000   1.0000        R:  testdata$sexno &lt;- as.factor(testdata$sexno)     a &lt;- contr.treatment(2, base = 1, contrasts = TRUE)  contrasts(testdata$sexno) &lt;- a  fitreduced &lt;- glm(para/n ~ dose + as.factor(sex) + vacnum,                    family=quasibinomial(link="logit"), data=testdata)  coef(summary(fitreduced))                    Estimate Std. Error   t value    Pr(&gt;|t|) (Intercept)     -9.4013750  1.7613982 -5.337450 0.005935450 dose             3.9173794  0.7001133  5.595351 0.005007179 as.factor(sex)1  0.5704671  0.5568436  1.024466 0.363525300 vacnum          -1.3336100  0.5887552 -2.265135 0.086189704   I believe I have the right contrasts to give me a type III SS but there is a small discrepency in values, have a missed something here? Automating the appearance of email addresses as images Publishing pdf manuscripts on the web with emails embedded in the file results in spam.  More generally, I am looking for a way to automate the conversion of a string to an image.  It's quite easy to solve this old problem using  (more ). The trouble is that you need a distinct file and typesetting run, and you end up with unnecessary image files that you cannot delete carelessly lest you also delete non-generated images.  Can you think of a way to do this on the fly? It's understood that people will have to type the email addresses if they need to message you, but that's the point.  More briefly/concretely...  With what can one replace #1  \documentclass{article} \newcommand\showasimage[1]{#1} \begin{document} \showasimage{joe@foo.bar} \end{document}   such that #1 appears as an image?  Edit  It would be really nice if the pdf file remains vectorial. How do I create a sparse file programmatically, in C, on Mac OS X? I'd like to create a sparse file such that all-zero blocks don't take up actual disk space until I write data to them.  Is it possible? Let $f:\mathbb R \to \mathbb R$ be a continuous function such that $f(f(f(x)))=x,\forall x \in \mathbb R$ , then is it true that $f(x)=x , \forall x \in \mathbb R$ ? I can see that $f$ is bijective , hence strictly monotone . But I cannot progress further . Please help. Thanks in advance Update Manager is constantly offering me updates (e.g. security fixes, updates from PPAs).  How can I tell my Ubuntu installation to automatically download and install updates whenever they become available? Make Javascript do List Comprehension Restricting T to string and int? I have built myself a generic collection class which is defined like this.   public class StatisticItemHits&lt;T&gt;{...}   This class can be used with int and string values only. However this  public class StatisticItemHits&lt;T&gt; where T : string, int {...}   won't compile. What am I doing wrong? How does USB device recognition work? I'm curious how USB device recognition works in Windows. I imagine it's something like this:   When you plug in a device, it tells Windows "here's my device ID to tell you what I am" Windows looks to see if any drivers have been installed that match that device ID. The driver probably tells Windows what the device should be called - like "BlackBerry Curve" or "Canon Printer" If so, it somehow associates that device with that driver Otherwise, it looks for a matching driver online (if you let it)   Am I right? If so, that still leaves some questions.   When you install drivers, where do they go? Are they files in a folder, or do they get added to the registry? What is Windows doing when it first recognizes the device, thinks, and finally says "your new device is installed and ready to use?" Where does Windows look for missing drivers? Is it in their own database? Do device manufacturers submit drivers to Microsoft for inclusion there?   Can anybody explain how this process really works? Also, do other OSes do this differently? Fixing geometry validity errors in QGIS 2? Capitalize and punctuate "let us continue this discussion in chat" Stack Exchange has a feature to help move extended discussions out of comments and into chat, but when you use it, it automatically writes the following message for you:  let us   Could we get the orthography fixed?  I'd like it to read:  Let us .  That's a capital letter at the beginning and a period at the end. Is it legal to run windows on a mac? I understand that it is Illegal to run OSx on a windows machine or PC for that matter, but is it illegal to do the reverse? Why or why not? Weird large K symbol Here is the proof I tried to weave while trying to prove this theorem:     Theorem. Every infinite subset of a countable set is countable.      Proof. Let $A$ be a countable set and $E\subset A$ be infinite. Then $A\thicksim\mathbb{N}$. This implies that there is a sequence $\left\{x_{n}\right\}_{n\in\mathbb{N}}$ where $x_{n}\in A$. Construct a sequence $\left\{n_{k}\right\}_{k\in\mathbb{N}}$ where $x_{n_{k}}\in A$, $n_{1}$ is the smallest positive integer such that $x_{n_{1}}\in A$, and $n_{k+1}&gt;n_{k}$. Then      $$ E=\bigcup_{k=1}^{\infty}x_{n_{k}}, $$      and $E$ is countable, because $E\thicksim\mathbb{N}$. $\blacksquare$   Is it convincing? Estimate the population variance from a set of means My Panda USB wi-fi adapter works just fine on 16.10, but when I try to connect to my wi-fi router in 17.04, GNOME network manager reports "Connection failed." I did some tinkering, and noticed that my MAC address for my wifi adapter, according to GNOME, is DIFFERENT every time I make it forget my wifi settings and try to reconnect. Any leads on a possible fix or work-around?   I'm running Ubuntu GNOME 17.04, kernel 4.10.0-19-generic, GNOME 3.24.0.