I need to change the background of my desktop in Ubuntu 12. 04 with a command in terminal, in order to make a script with bash. Does anyone know how to do it?
I have a script that updates my desktop background every day with the NASA APOD. Since upgrading to 11.10, that script stopped working, presumably because I'm using gconftool-2 to actually update the desktop background. Is there a new way to do this under Unity?
I am running an analysis on the probability of loan default using logistic regression and random forests.    When I use logistic regression, the prediction is always all '1' (which means good loan).  I have never seen this before, and do not know where to start in terms of trying to sort out the issue.  There are 22 columns with 600K rows.  When I decrease the # of columns I get the same result with logistic regression.   Why could the logistic regression be so wrong?  **Actual from the data**  0 :   41932  1 :   573426  **Logistic regression output**   prediction for 1 when actually 0: 41932 prediction for 1 when actually 1:573426  A**s you can see, it always predicts a 1**   **Random forests does better:**  actual 0, pred 0 : 38800  actual 1, pred 0 : 27  actual 0, pred 1 : 3132 actual 1, pred 1 : 573399 Long story short: since custom flag responses are messages to users like any other (answer, comment, suggested edit, chat message etc.), users should be notified about them!!    A problem I have with flagging, as it currently functions, is that flaggers are not notified about custom responses to flags, when they are given. I really don't care if I don't find out about every last flag of mine, whether it was marked "helpful" or not, but if a moderator went to the effort of typing out a custom response to my flag, explaining why it was or was not helpful, I'd like to see that response. The logical place for this response would be in the messages inbox (the red number thingy in the top left corner), where other responses to user actions (like answers, comments, edits, and chat messages) go.  This may also help to alleviate  of users not realizing that their flags go somewhere -- while I agree with her that "We shouldn't send notifications for [all] flag responses; that would be way too noisy for a lot of people," I think that in the event of a custom response, the flagger should be notified (because some mod thought that this information was relevant to the flagger), and it would not be too noisy because (in my experience1) most flags do not receive a custom response. This could provide one way that flaggers can be made aware of their flagging history.2    1 I don't know who can see this, but  on Mi Yodeya, to date, is 55 flags total (49 helpful), and only one custom response (....that I didn't see for a while, till I checked my flagging history for a different reason).  2 While I don't think that this will replace Monica's suggestion entirely, it would certainly help it a little.    To give credit where credit is due, while I came up with this idea myself, I did notice that someone else had posted about a similar idea earlier in a .  Edit: Just spotted  from the related questions along the side of the page; note that while that proposal is similar to this one, it was about sending all declined flags to the inbox, while I suggested that only the ones with custom responses should make it to the inbox. Why do wheels appear to revolve opposite to the direction they are rotating? When viewing cars that are driving along side of us, sometimes their wheels appear to be turning backwards even though they are traveling in the same direction as our car. Why do they look that way? I have the following recurrence that I've been pounding on:  $$ a(0)=1\\ a(1)=1\\ a(2)=2\\ a(2n)=a(n)+a(n+1)+n\ \ \ (\forall n&gt;1)\\ a(2n+1)=a(n)+a(n-1)+1\ \ \ (\forall n\ge 1) $$  I don't have much background in solving these things, so I've been googling around looking for different techniques. Unfortunately, I haven't been able to correctly apply them yet. So far I've tried:   Characteristic equations Generating functions Plugging it into Wolfram Alpha Telescoping Observation   I'm sure that one or more of these is the way to go, but my biggest problem right now is figuring out how to deal with the idea that there are different equations for odd and even values of $n$. I'm not necessarily looking for a solution (though it would be gratefully accepted), but any nudges in the right direction would be much appreciated.    To follow up, it turned out that the speed problem described in my comment, below was related to the Decimal implementation in Python 2.7. Switching to Python 3.3 (and Java) made everything many orders of magnitude better. Is there a 2D generalization of the coefficient of restitution? The  characterizes a collision in one dimension by relating the initial and final speeds of the particles involved,  $$C_R = -\frac{v_{2f} - v_{1f}}{v_{2i} - v_{1i}}$$   In a 2D collision, the velocity can be split into components parallel and perpendicular to the "plane of collision" (the plane tangent to the two objects' surfaces at their contact point), and the equation above applies to the perpendicular components of the velocities only. One could write  $$\begin{pmatrix}v_{2f\shortparallel} - v_{1f\shortparallel} \\ v_{2f\perp} - v_{1f\perp}\end{pmatrix} = \begin{pmatrix}1 &amp; 0 \\ 0 &amp; -C_R\end{pmatrix}\begin{pmatrix}v_{2i\shortparallel} - v_{1i\shortparallel} \\ v_{2i\perp} - v_{1i\perp}\end{pmatrix}$$   My question is, is it useful (i.e. does it produce a more accurate description of realistic 2D collisions) to generalize that matrix? Perhaps by allowing the top left element to be unequal to 1, or allowing nonzero off-diagonal elements? Or is there some nonlinear relation that works better?  As usual, if you know of any relevant published research, references would be much appreciated. How do I set access permissions per field? What I need to do  I have some user account fields that should be administrator-only (read/write/edit).  For example, the IP address used to register.  So, I want to restrict access to administrators.  Current state of field permissions in Drupal 8 (as of Feb 19, 2016)   In Drupal 7, I used the  module.  However,  There is a , but this has been going on for seven years and is marked as "postponed." What kinds of compensation can I get from Deutsche Bahn for canceled and late trains? The following question is taken from Royden's Real Analysis $4$th edition, Chapter $3,$ question $28,$ page $67:$     Question: Show that Egoroff's Theorem continues to hold if the convergence is pointwise a.e. and $f$ is finite a.e., that is.       Assume $E$ has finite measure. Let $\{f_n\}$ be a sequence of measurable functions on $E$ that converges pointwise almost everywhere on $E$ to the real-valued function $f$ which is finite almost everywhere. Then for each $\varepsilon&gt;0,$ there is a closed set $F$ contained in $E$ for which    $$\{f_n\}\to f \text{ uniformly on }F \text{ and }m(E\setminus F)&lt;\varepsilon.$$   My attempt:   Let $A = \{ x\in E: f_n\not\to f \text{ pointwise} \}$ and $B=\{ x\in E: |f|=\infty \}.$  By assumption,  $$m(A)=m(B)=0.$$ So $A$ and $B$ are measurable.  Note that  $$m[E\setminus (A\cup B)] = m(E) - m(A\cup B) = m(E).$$ Fix $\varepsilon&gt;0.$ Since $\{f_n\}$ converges to $f$ pointwise on $E\setminus (A\cup B)$ to the real-valued function $f,$ by Egoroff's Theorem, there exists a closed set $F$ contained in $(E\setminus (A\cup B))\subseteq E$ for which  $$f_n\to f \text{ uniformly on } F \text{ and }m[(E\setminus(A\cup B)) \setminus F] &lt; \varepsilon.$$ Since $E$ has finite measure and $F\subseteq E,$ by monotonicity,  $F$ has finite measure. As $F$ is closed, it is also measurable.  Therefore, by Excision property, we have $$m(E\setminus F) = m(E) - m(F) = m[E\setminus(A\cup B)] - m(F) = m[(E\setminus(A\cup B)) \setminus F]&lt;\varepsilon.$$  Is my proof correct? I ask for verification because in this  Kenny's comment about countable union of null sets. I do not use this anywhere in my proof. So I wonder whether my proof miss out something. How do you prove the second law of thermodynamics from statistical mechanics? How do you prove the  from statistical mechanics? To prove entropy will only increase with time? How to prove? Please guide. I have a requirement where a certain field can be edited without the validations firing for a particular user. Now I tried to write rule like LastModifiedId != '005000000000000AAA' but the validation was still firing. Then I realized that until the record saves, the LastModifiedId does not change and the validations still fire, as the LastModifiedId would not be updated to the exempted User.   Is there any workaround or a way to check the Id of the User who is currently editing the record? Video editing software options? How do I properly clean up Excel interop objects? I'm using the Excel interop in C# (ApplicationClass) and have placed the following code in my finally clause:  while (System.Runtime.InteropServices.Marshal.ReleaseComObject(excelSheet) != 0) { } excelSheet = null; GC.Collect(); GC.WaitForPendingFinalizers();   Although this kind of works, the Excel.exe process is still in the background even after I close Excel. It is only released once my application is manually closed.  What am I doing wrong, or is there an alternative to ensure interop objects are properly disposed of? What are the Minecraft Easter eggs? I was looking at  and I didn't realize that Minecraft had some Easter eggs in it. Besides the Christmas chest Easter egg, and the sheep Easter egg, what else is there? How to get Maven to run war:exploded but not war:war I have a Maven pom that uses &lt;packaging&gt;war&lt;/packaging&gt;.  But actually, I don't want build the war-file, I just want all the dependent jars collected and a full deployment directory created.  So I'm running the war:exploded goal to generate the deploy directory:  &lt;plugin&gt;     &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;     &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;     &lt;executions&gt;         &lt;execution&gt;             &lt;phase&gt;package&lt;/phase&gt;             &lt;configuration&gt;                 &lt;webappDirectory&gt;target/${env}/deploy&lt;/webappDirectory&gt;                 &lt;archiveClasses&gt;true&lt;/archiveClasses&gt;             &lt;/configuration&gt;             &lt;goals&gt;                 &lt;goal&gt;exploded&lt;/goal&gt;             &lt;/goals&gt;         &lt;/execution&gt;     &lt;/executions&gt; &lt;/plugin&gt;   The trouble is, the war file still gets built.  Is there a simple way of having &lt;packaging&gt;war&lt;/packaging&gt; execute the war:exploded goal instead of the war:war goal?  Or is there another simple way to do this? Resources for Blender What software can I use to view epub documents? What software can I use to view .epub documents? How to install a LibreOffice Language Tools (Spelling Check, Thesaurus...) What are the steps to install the Spelling Check and other language supports for LibreOffice. For example spanish, french, italian, etc.. Let $F$ be a field. $(x-c)|(p(x)-p(c))$.   So if $x-c|p(x)=q(x)-\frac{r}{x-c}$ so for $x-c|p(x)-p(c)=s(x-c)-\frac{r}{x-c}$. Is that correct? Or is there a different way to go about proving this? I have proved that $x-c|p(x)$ has a remainder of $p(c)$ so It wuld make sense that $p(x)-p(c)$ would be $x-c$. The top bar is showing (again) the suggested edits count and 10K flags count, like it was before.  On Stack Overflow it looks like this: (that's the original color, same as in old top bar)        And on this very Meta site:        Same top bar. But different colors! Consistency broken.  I've just noticed the suggested edits count on Meta:        Black on black, I can see just a floating number - really confusing and out of any context.  In the name of Consistency, can we please have the same color on all sites? Android App sometimes loses answer drafts