Trying to reuse an existing "SysV" init script with new Linux version that uses "systemd" (RHEL 7). Just copying it into "/etc/init.d/" fails to work as expected. Can only manually Start/Stop service using the commandline as if the script was a user file. The systemd enable and start/stop fail.  Where should "SysV" init scripts be copied to on a system that is using systemd ? Where should any custom systemd scripts for system/user service daemons be created ? What are common problems found or required actions before I can use the old init scripts with the new systemd ?
I have 2 graphics cards on my laptop. One is IGP and another discrete.   I've written a shell script to to turn off the discrete graphics card.  How can I convert it to systemd script to run it at start-up?
What is the "canary thread" and why is it starving? The following occasionally appears in /var/log/syslog:  rtkit-daemon[1145]: The canary thread is apparently starving. Taking action. rtkit-daemon[1145]: Demoting known real-time threads. rtkit-daemon[1145]: Successfully demoted thread 1431 of process 1368 (n/a). rtkit-daemon[1145]: Successfully demoted thread 1430 of process 1368 (n/a). rtkit-daemon[1145]: Successfully demoted thread 1368 of process 1368 (n/a). rtkit-daemon[1145]: Demoted 3 threads.   What's going on here? I am wondering how to differentiate all these different joins ... Linux: Case-INSENSITIVE Filesystem How to say that something is (not) random I want to compare two things, one of which is random and the other is not, in favor of the latter. I'd like to do it in a more sophisticated way than simply using the word "random".  Like, for example,     In this case, your pay will not depend on the roll of the dice.   But Google Ngrams doesn't find a single occurrence of "depend on the roll of the dice", so I guess there's something wrong with this particular phrase. What would be a better substitute? Cannot favorite once up voted I'm not sure whether this is exactly the same bug as  or whether this is a new bug.  If you up vote a question and then attempt to add it to favorites too you get Question is already favorited:    This also happens if you up vote on the web site and then try to favorite it from Android. If you don't up vote or if you favorite it first and then up vote it appears to work fine. GUI/Unity crashing in 16.04 LTS after updates 2018-01-04, compiz segfaults Macro for figure position? Why is the following minimal example not working?  I.e., what do I need to do, in order to define the float placement specifier of a figure within a macro? (I know that I should use \newcommand, but in the "full" example the error is part of an involved "superfigure" command. \newcommand is not working too btw.)  \documentclass{scrreprt} \usepackage{blindtext}  \def\PosNotWorking{h} \def\FramboxNotWorking{5cm} \def\CaptionWorking{Caption is working.}  \begin{document}  \Blindtext[1]  \begin{figure}[\PosNotWorking]   \centering     \framebox[5cm]{My special figure. (Pos: \PosNotWorking)}             \caption{\CaptionWorking} \end{figure}  \Blindtext[1]  \end{document}   If I compile this, the figure is at the top (default behaviour). If I enter \figure[h] instead of \figure[\PosNotWorking], the figure is of course between the two paragraphs. Is it true that the order of $ab$ is always equal to the order of $ba$? A ring without the Invariant Basis Number property I was reviewing my homework and it seems I overlooked something crucial while proving some ring has no Invariant Basis Number property. This is exercise VI.1.12 in Aluffi's Algebra: Chapter 0  The setup: $V$ is a $k$-vector space and let $R = \mathrm{End}_{k}(V)$.   Prove that $\mathrm{End}_{k}(V\oplus V) \cong R^4$ as an $R$-module Prove that $R$ doesn't satisfy the IBN property if $V = k^{\oplus \mathbb N}$.   For the first, I used to the fact that $V \oplus V$ is both the product and coproduct (in $k$-Vect) of $V$ with itself to get the isomorphism. What I just realized is I only showed that the two are isomorphic as groups not $R$-modules. So what would be the $R$-module structure on $\mathrm{End}_{k}(V \oplus V)$?   For the second, I used the fact that $V = k^{\oplus \mathbb N}$ implies $V \cong V \oplus V$ which in turn implies $R = \mathrm{End}_{k}(V) \cong \mathrm{End}_{k}(V \oplus V)$. Again, I just realized that I only showed the latter two are isomorphic as groups.   It may be obvious (and maybe why my professor let it pass?) but I can't come up with a good $R$-module structure that makes the two group isomorphisms $R$-linear.  Edit:  Explicitly, these are the isomorphisms I'm dealing with. Let $\pi_j, i_j$ be the natural projection/inclusion maps of the $j$-th factor resp. and $\psi: k^{\oplus \mathbb N} \oplus k^{\oplus \mathbb N} \to k^{\oplus \mathbb N}$ the isomorphism given by $\psi(e_i, 0)=e_{2i-1}$ and $\psi(0, e_i)=e_{2i}$.  Then the first isomorphism $\mathrm{End}_k(V \oplus V)\to R^4$ is given by $\varphi \mapsto (\pi_1\varphi i_1,\pi_2\varphi i_1,\pi_1\varphi i_2,\pi_2\varphi i_2)$  The second isomorphism $R \to \mathrm{End}_k(V \oplus V)$ is given by $\alpha \mapsto \psi^{-1} \alpha \psi$  The composition doesn't seem to be $R$-linear if I use the obvious $R$-module structure on $R$ and $R^4$. I want to shade the area of overlap for adjacent normal curves, shown in the lower graph. I can get shading between the first two curves but not for subsequent curves. I need shading at overlapping areas indicated by the arrows. I applied the "logic" of the first fill for the subsequent curves but that does not work.   The arrows and letters in the example image are not part of the MWE.   \documentclass{article}  \usepackage{pgfplots} \pgfplotsset{ticks=none} \pgfplotsset{compat=1.7}  \usepgfplotslibrary{fillbetween}  \pgfmathdeclarefunction{gauss}{2}{%normal distribution where #1 = mean and #2 = sd}     \pgfmathparse{exp(-((x-#1)^2)/(2*#2^2))}% }  \pgfplotsset{baseplot/.style={%     no markers,      domain=1:4.5,      samples=100,     smooth,     axis lines*=left,     height=5cm, width=12cm,     enlargelimits=upper, clip=false, axis on top,     xlabel = near ticks,     xlabel={Resource} }}  \begin{document}  \begin{tikzpicture}   \begin{axis}[baseplot]   \addplot+[name path=A]{gauss(2.7,0.4)};   \addplot+[name path=B]{gauss(3.2,0.4)};   \fill[gray!20, intersection segments ={of= B and A}]; \end{axis} \end{tikzpicture}  \vspace*{3\baselineskip}  \begin{tikzpicture}   \begin{axis}[baseplot]   \addplot+[name path=A]{gauss(1.7,0.15)};   \addplot+[name path=B]{gauss(2.2, 0.15)};   \addplot+[name path=C]{gauss(2.7, 0.15)};   \addplot+[name path=D]{gauss(3.2, 0.15)};   \addplot+[name path=E]{gauss(3.7, 0.15)};   \fill[gray!20, intersection segments ={of= B and A}];   \fill[gray!20, intersection segments ={of= C and B}];   \fill[gray!20, intersection segments ={of= D and C}];   \fill[gray!20, intersection segments ={of= E and D}]; \end{axis} \end{tikzpicture}  \end{document} I want to write applications for Ubuntu. I do not know much about programming but I want develop for Ubuntu. I am trying to learn Python right now. What do you think is the best way to develop apps for Ubuntu? Can you point me to some resources that can help me get started with developing for Ubuntu?  Related . What does ` (backquote/backtick) mean in commands? In bash, how can I convert a Unicode Codepoint [0-9A-F] into a printable character? I have a list of Unicode codepoints, but I don't know of a "simple" way to convert these hex values into the actual characters they represent...    I've heard that zsh has echo -e '\u0965', but I use bash 4.1.  Is there something as simple as the zsh method, for bash? How to get class object's name as a string in Javascript? I'm talking about the movie  Spoilers ahead.  Walter (Daniel Radcliffe) gave the task or blackmailed the Four Horsemen to steal a chip from a lab which can access any digital device. So they did steal the chip. And when they rescue Dylan Rhodes (Mark Ruffalo) from drowning in the water, Jack Wilder said that the chip is fake.     Jack: Wait something is not right.      Atlas: What's wrong?      Jack: It's fake.   Then they assumed that Walter did not know that the chip is fake. So they came with a plan to bluff. They pretended that they had the real chip. After they got caught by Walter, they gave the fake chip to Walter. Walter checked the chip and declared it as real. The Four Horsemen were surprised.     Walter: I'm sorry to interrupt. But I have to say congratulations and   thank you. It's real.      Lula: What? It's real!!!!!      Atlas: What? Is it real?      Jake: What is he talking about?   What happened? I didn't get it. What did I miss? Was the chip real? Was Walter pretending it to be real? If so, then why? If not, who switched the real chip with the fake one? Who had the real chip before? How can I make it so that each space has its own isolated dock?  Basically what I'm looking for is:   The dock in one space should not show the icon of an app that was open in another space. If I have the same program open in two different spaces, clicking on the icon in one space should not go to the app in the other space.   Is this possible natively, or with a third party program? What is the purpose of Jordan Canonical Form? IP tables - changes not persisting Javascript Date: next month How to give a medicine with really bad taste My 4 year old daughter recently have scarlet fever. It seems antibiotics are non-negociable for it, and since she has great chance of being allergic to Penicillin, there is only one antibiotic she can get. It is not the first time we have to give it to her, and probably not the last time.  Apparently, that medicine tastes really REALLY bad. She cries a lot, panics every time we say it's time for this medicine, and vomit it most of the time, resulting in even more medicine being force into her mouth.  It is only this medicine that causes problem. She does not tantrum for other medicine, and most of them, she can take the dose we give her all by herself.  We tried reassuring her, explaining why it is mandatory to get it, explaining it will make the scarlet fever go away. We tried mixing it into other food (which seems clearly worse, taste-wise). We tried asking her to take her herself. It seems we tried everything, and the only thing that achieve it for the moment is actually forcing it into her.  We really do not want to force her in any way. Her mother cried yesterday because we had to force her, and we need to do it twice a day. It is very exhausting, and we would welcome any input or new ideas on how to give her this really bad tasting medicine to her.  EDIT : For clarification, it is a liquid medicine that is administrated with a syringe. It seems there are no alternative, although we will check with the doctor again (particularly if pills are available)