How to auto restart a crashed app?
How do I automatically restart docky after a crash?
Proving that cardinality of the reals = cardinality of $[0,1]$ Position of the adverb "substantially" Pacman option to assume "yes" to every question? How can I run a script that starts before my login screen? I was calibrating my touch screen, and saw that the best tool around was xinput_calibrator. So I used it. It have two options (one of which did not work), so I am here for the second. It says I should execute this command "in a script that starts with your X session":  xinput set-int-prop "3M 3M USB Touchscreen - EX II" "Evdev Axis Calibration" 32 14410 2146 14574 2115  So I tried ~/.xinitrc, ~/.xsession and ~/.xsessionrc, all of which did not exist. So I created them and the exact content was this command. The first two files made my logins fail (after I login, I fall back to the login screen).  With the last file, the calibration was functional, but only after logging in...  I need that command to run before the login dialog shows up. I thought of adding this command to the end of /etc/X11/xinit/xinitrc with no result (nothing changed). Also, I tried to add it to the end of /etc/X11/Xsession.d/40x11-common_xsessionrc (after inspecting some of the files), but the result was exactly the same as adding it to ~/.xsessionrc.  How can I make this command run before the login screen shows (is this before the window manager starts, or before the X session starts)?  (I am running Kubuntu with the default window manager, if that matters)  UPDATE As I am using Kubuntu, my display manager is kdm. As the accepted answer suggests, I edited the file /etc/kde4/kdm/Xsetup, and as mentioned  I added the command before the command that is there by default. And it works like a charm :) Im trying to run the following code as a powershell script,but I cant get it to work. 1st,the following works with one -Include item but I cant seem to get it to work with multiple ones. 2nd, the -Exclude perimeter doesn't seem to work. I still get files from the C:\Windows and C:\Program Files directorys .  $Include = "*.zip","*.rar","*.tar","*.7zip" $exclude = "C:\Windows","C:\Program Files" Get-ChildItem "C:\" -Include $Include -Exclude $Exclude -Recurse -Force -ErrorAction silentlycontinue | Select-Object -ExpandProperty FullName   Note: The purpose of this script is to find all compressed files on the system. I know this is probably really simple but I just cant seem to get it to work. How should we handle downvote retaliation? I have a situation where I'm trying to figure out what the right thing to do is on SO.    I see a question.  I answer the question.  I see there are a couple other answers.  One answers the question well, though with less explanation than my answer.  The other answer seems both wrong and irrelevant to the question (doesn't answer the question at all).  I comment to that effect.  The "wrong" part is edited out, but the author of the answer doesn't respond to how their answer actually answers the question.  In fact, they seem offended that I don't "get" it.  After giving them several chances to explain how their answer is relevant to the question and seeing their attitude, I decide to downvote their answer as I don't see how it addresses the question at all and the author won't explain.  They retaliate and downvote my answer and admit in their comments that their downvote of my answer has nothing to do with the content of my answer and only because they don't like me disputing their answer.  Did I do the right thing by downvoting their answer?  Do I just have to live with their downvote retaliation?  Anything I should have done differently?  I also have no way of knowing this for sure, but the next question I answered was upvoted, then downvoted so perhaps this same person is stalking my answers and downvoting other answers of mine too with no comment.  As long as this doesn't continue, I'm not losing sleep over a couple downvotes, but I do wonder if I should have done anything differently.  Followup Later After I Posted This Question: After thinking about it for a little while, the person who disagreed with me decided to delete their post.  So, eventually the message did get through to them.  I don't know if they rescinded their downvote or not (or if they even could). I've been reading a Wikipedia article that describes the symptoms of rabies in various species, and I want to add a clarification note about which species (or species) a specific paragraph refers to. How can I make it clear that I'm referring either to the singular or plural of the word "species" when the singular of this word is the same as its plural? "Species or species" is the only grammatically correct way that I can think of, but it seems redundant and confusing. Is there any better way to contrast the singular of "species" from the plural of "species"? You should choose your Display Name when signing up Find Neural Network Inputs Given Outputs I've trained a neural network with two inputs, a single hidden layer with two neurons, and one output using a bipolar sigmoid activation function. If a single input is known, how would I determine the second input to create a desired output?  For example, let's say the neural network is trained to add two inputs to produce an output. So if input_1 = 3 and input_2 = 4, the output will be 7, (3 + 4 = 7). Given input_1 = 3 and the desired output is 7, I want to calculate the second input required to produce the desired output (the answer should be 4).  How would I do this for a network that is more complicated than basic addition and has multiple inputs/outputs? For example, for a network with four inputs and two outputs, how would I calculate input_3 and input_4 given input_1, input_2, output_1 and output_2? The Data Interoperability Tools .tbx appears in my system toolboxes, however when I double click quick export or import, a red X appears.  I have gone into the administrator settings and the tool doesn't appear to be installed. How do I install it?  I am using ArcGIS 10.2 for desktop trial.  After I attempt to evaluate extensions, I receive a message which states all requested features have already been authorized on this machine. I use Lasso logistic regression in order to identify a smaller subset of important variables. I start with N=51 (28/23) and 32 predictors.   So far it looks pretty promising, because I can identify four important predictors in my optimal model.   Now I would like to take those four predictors and examine them along with some control variables in a standard logistic regression.   My question is, does that analysis strategy make sense? Is there a better way to include controls or other variables that might be interesting?  For a better understanding:   Identify important variables via Lasso logistic regression Do further analysis including identified predictors and other control variables using standard logistic regression (using AIC to check model fit) Direct observations of a black hole? I'm not very knowledgeable about physics generally, but know that nothing can escape a black hole's gravitational pull, not even light (making them nearly invisible?).   My question is: What has been obtained from direct observation of a black hole to prove their existence? Please note that I'm not questioning the existence of black holes, but am just curious as to how we have come to realize it. Is there a word for people who always act too friendly in order to curry favor with their acquaintances? Is there a single noun or adjective for a person who is always flattering friends and acquaintances, not only to be liked and accepted but, at other times, to curry favor with them as well ?  I'm not looking for regionalisms but a word that will be understood in any English speaking country. How To Set Default Wallpaper As Login Screen Wallpaper [Automatically]? There is a sentence:     No sooner had he sat down than he fell asleep.   I just do not understand, is this an inversion? And if so, I still do not understand the sentence. Continuous injective map is strictly monotonic What is the "rootless" feature in El Capitan, really? I have just learned about the "Rootless" feature in El Capitan, and I am hearing things like "There is no root user", "Nothing can modify /System" and "The world will end because we can't get root".  What is the "Rootless" feature of El Capitan at a technical level? What does it actually mean for the user experience and the developer experience? Will sudo -s still work, and, if so, how will the experience of using a shell as root change? I have to format my entire disk and reinstall Ubuntu.  I have installed a lot of software on my current system. And I will have to reinstall all those updates, drivers and applications too.  Is there any way I can make an .iso image of my installed Ubuntu along with all the software, preferences, drivers etc in it ?  Is there any way I can back up my whole OS along with all its software, drives, updates and all ? Question. Let $M = \left\{ \begin{bmatrix} a &amp; b \\ -b &amp; a \end{bmatrix} \,\middle\vert\,  a, b \in \mathbb R \right\}$.  Show that $(M,+)$ and $(\mathbb C,+)$ are isomorphic.  Show that $(M^{*},*)$ and $(\mathbb C^{*},*)$ are isomorphic.    (Here, $M^{*}$ is defined as excluding the zero-element) I understand that there exists an isomorphism $\phi:M \rightarrow\mathbb C$ defined by $\begin{bmatrix} \alpha &amp; \beta \\ -\beta &amp; \alpha \end{bmatrix}\mapsto \alpha+i\beta$, ie. I can show that $\phi(M_{1}+M_{2}) = \phi(M_{1})+\phi(M_{2})$ and $\phi(M_{1}*M_{2}) = \phi(M_{1})*\phi(M_{2})$. However, I'm unsure how to go about the two subquestions seperately. Mathoverflow - why so different Curious why  (se site) doesn't have hot questions list on the right.  It also uses the old stackoverflow design.  Why has this site's design and functionality been abandoned (or at least look abandoned?)