I have a Non Root User abc,abc2.....  I want to add this to a group of users and want to give the group of user ssudo rights only to restart, start or stop - mysqld service. i.e sudo service mysqld restart. How can I do it so?
I have a Non Root User abc and want to give the user sudo rights only to restart, start or stop - mysqld service. i.e sudo service mysqld restart. How can I do it so?     I would like to do the same to usergroup too!!
Regular Expression to split on spaces unless in quotes I would like to use the .Net Regex.Split method to split this input string into an array. It must split on whitespace unless it is enclosed in a quote.  Input:  Here is "my string"&nbsp;&nbsp;&nbsp;&nbsp;it has "six&nbsp;&nbsp;matches"  Expected output:   Here is my string it has six&nbsp;&nbsp;matches   What pattern do I need? Also do I need to specify any RegexOptions? How to find top users by tag? Evaluate the integral   $$\int\frac{1}{x^2\left(x^4+1\right)^{3/4}}\,dx$$   My Attempt:  Let $x = \frac{1}{t}$. Then $dx = -\frac{1}{t^2}\,dt$. Then the integral converts to   $$ -\int \frac{t^3}{(1+t^4)^{3/4}}\,dt $$  Now Let $(1+t^4) = u$. Then $t^3\,dt = \frac{1}{4}du$. This changes the integral to  $$ \begin{align} -\frac{1}{4}\int t^{-3/4}\,dt &amp;= -u^{1/4}+\mathcal{C}\\ &amp;= -\left(1+t^4\right)^{1/4}+\mathcal{C} \end{align} $$  So we arrive at the solution  $$\int\frac{1}{x^2\left(x^4+1\right)^{3/4}}\,dx = - \left(\frac{1+x^4}{x^4}\right)^{1/4}+\mathcal{C.}$$  Question: Is there any other method for solving this problem? importing a multipage PDF file into InDesign CC When I place a multipage pdf file into InDesign CC, the pages go outside of my document settings, making this function useless.  What do I have to do to make the placed  pdf pages go within my document settings, which in this case is 11 in. Length X 8.5 in. width, .5 in. margins on all sides, with two columns per page. I would greatly appreciate an answer to this, Thank you. What program can I use to decompile a class file? Will I actually get Java code, or is it just JVM assembly code?  On Java performance questions on this site I often see responses from people who have "decompiled" the Java class file to see how the compiler optimizes certain things. Why not introduce a donate button in Stack Exchange sites? I'm sure there are many ways to do this: how can I count the number of lines in a text file?  $ &lt;cmd&gt; file.txt 1020 lines Simple examples of uncorrelated but not independent $X$ and $Y$ Any hard-working student is a counterexample to "all students are lazy".  What are some simple counterexamples to "if random variables $X$ and $Y$ are uncorrelated then they are independent"? Let $f$ be a nonconstant element of ring $\mathbb Z[x]$. Prove that $\langle f \rangle$ is not maximal in $\mathbb Z[x]$.   Let us assume $\langle f \rangle$ is maximal. Then $\mathbb Z[x] / \langle f \rangle$ would be a field. Let $a \in \mathbb{Z}$. Then $a + \langle f \rangle$ is a nonzero element of this field, hence a unit. Let $g + \langle f \rangle$ be its inverse. Then $a g - 1 \in \langle f \rangle$, hence $ag(x)-1 = f(x)h(x)$ for some $h \in Z[x]$, hence $ag(0) + f(0)h(0) = 1$, thus $(a,f(0))=1$ for all $a \in \Bbb Z$, contradiction, hence the proof.  Is my argument correct? Is there any other method? Long site name hides the diamond in profile page Communities Give a deduction of $\forall y \exists x (x=y)$  My thinking is I can prove $\exists x(x=y)$ then use generalization theorem， which is equivalent to prove $\neg \forall x \neg (x=y)$ but I got stuck proving this... thanks in advance  Sorry that I did not specify what deduction system that I want to use here, it is the deduction sequence  where ai is either Axiom or original hypothesis or obtained from MP Derivative (or differential) of symmetric square root of a matrix Let A be a square, symmetric, positive-definite matrix.  Let S be its symmetric square root found by a singular value decomposition.  Let vech() be the half-vectorization operator.  Is there a convenient expression for the derivative (or differential) of vech(S) with respect to vech(A)?  I know the expression for an inverse, which is sort of like a matrix version of the power rule.  Would this approach work for a symmetric square root as well (i.e., (1/2)S^(-1/2))? What is the most CPU efficient way to ensure that NumLock is on? Situation: I have a script watching over NumLock status, well not really watching, but turning it On every 1 second. The script is running in the background.  Reasoning: I often accidentally turn off NumLock. And I have no indicator of NumLock status on the keyboard.  OS, DE, DM, WM, xmodmap:  :  $ lsb_release -a  No LSB modules are available. Distributor ID: LinuxMint Description:    Linux Mint 18 Sarah Release:    18 Codename:   sarah   :  echo $DESKTOP_SESSION  cinnamon   :  cat /etc/X11/default-display-manager  /usr/sbin/mdm   :  wmctrl -m | head -n 1  Name: Mutter (Muffin)   :  xmodmap -pm  xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):  shift       Shift_L (0x32),  Shift_R (0x3e) lock        Caps_Lock (0x42) control     Control_L (0x25),  Control_R (0x69) mod1        Alt_L (0x40),  Alt_R (0x6c),  Meta_L (0xcd) mod2        Num_Lock (0x4d) mod3       mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce),  Hyper_L (0xcf) mod5        ISO_Level3_Shift (0x5c),  Mode_switch (0xcb)   My original Bash script follows:  #!/bin/bash  while true do    numlockx on    sleep 1s  done   As you can see, the script does not care about current status of NumLock. It just keeps turning it on.  Goal: I would like to make the script at least somewhat CPU efficient.  Question: What is the most CPU efficient way to ensure that NumLock is On in Linux (Mint 18)? Can an Animagus take the form of any animal? Similar to my old question about  are there any limits to the animal forms an Animagus can be?     We know that the animal form can be much smaller than human (cat, rat, beetle) so I don't think size is a factor.   I'm not aware of any Animagus who transforms into a magical creature (e.g. unicorn or phoenix) so maybe those aren't possible.   Ultimately, what I'd like to know is whether there could be a T-Rex Animagus... (prompted by ) Reason of existense of the extra space in align environment and removal of it between two align environments This is a follow-up question regarding the extra vertical space in amsmath's align environment. Why when in use align uses so much vertical space in contrast with other environments like for example tabular or itemize?  \documentclass[12pt]{article} \usepackage[top=0.3in, bottom=1.2in, left=0.8in, right=0.8in]{geometry}   \usepackage[fleqn]{amsmath} \usepackage{unicode-math}  \setlength{\mathindent}{0cm} \newcommand{\3}{\vspace{0.3cm}}  \title{} \author{} \date{}  \begin{document}  70  \begin{align*} &amp;e^{jz}=\cos z+j\sin z\\ &amp;\cos z=(1/2)(2\cos z)=\\ &amp;=(1/2)(2\cos z+j\sin z-j\sin z)=\\ &amp;=(1/2)(\cos z+j\sin z+\cos z-j\sin z)=\\ &amp;=(1/2)(e^{jz}+e^{-jz}) \end{align*}  80  \begin{itemize} \item Item 1  \item Item 2  \end{itemize}  90  \begin{tabular}{c|c}  Entry 1&amp; Entry 2  \\  Entry 3&amp; Entry 4 \end{tabular}  \end{document}     Also another image of the huge space between two align environments. Even without the blank lines the space is a lot.    \begin{document}  \begin{multicols*}{2}   \begin{align*} &amp;\text{70}\\ &amp;e^{jz}=\cos z+j\sin z\\ &amp;\cos z=(1/2)(2\cos z)=\\ &amp;=(1/2)(2\cos z+j\sin z-j\sin z)=\\ &amp;=(1/2)(\cos z+j\sin z+\cos z-j\sin z)=\\ &amp;=(1/2)(e^{jz}+e^{-jz}) \end{align*}    \begin{align*} &amp;\text{207}\\ &amp;x(t)=A_{c}\cos \theta(t)\\ &amp;\theta(t)=2\pi f_{c}t+\phi(t)\\ &amp;\phi(t)=K_{p}m(t)\\ &amp;x(t)=A_{c}\cos[2\pi f_{c}t+K_{p}m(t)] \end{align*}   Edit I:  As I mention in a comment I have tried the following code and there is no difference between two align environments, only between text and an align environment. Why doesn't work in the case of the two environments and how can I fix it so to work? Also what is the reason that this space exists?  \setlength{\abovedisplayskip}{0pt} \setlength{\belowdisplayskip}{0pt} \setlength{\abovedisplayshortskip}{0pt} \setlength{\belowdisplayshortskip}{0pt} Optimization when Cost Function Slow to Evaluate Is there a difference between a LED Backlit and LED HD  Display on laptop monitor? or are they the same that is good for the eyes split file lines based on first field Number of solutions of $x_1+2x_2+\cdots+kx_k=n$? Suppose $n$ be a given positive integer. Then the Diophantine equation $x=n$ has only $1$ solution. Just by inspection, I found that the Diophantine equation $x+2y=n$ has $\left\lfloor \dfrac{n}{2}+1\right\rfloor$ non-negative solutions for $(x,y).$ Also, according to  the Diophantine equation $x+2y+3z=n$ has $\left\lfloor \dfrac{n^2}{12}+\dfrac{n}{2}+1 \right\rfloor$ non-negative solutions for $(x,y).$  Is there any closed form for the number of non-negative integer solutions for $(x_1,x_2,\cdots,x_k)$ of $$x_1+2x_2+3x_3+\cdots+kx_k=n$$ for a given $k\in\Bbb{N}$? How can I prove these formulas rigorously?  EDIT After a very tedious calculation I found that the equation $w+2x+3y+4z=n$ has  $\left\lfloor \dfrac{n^3}{144}+\dfrac{5n^2}{48}+\dfrac{(15+(-1)^n)n}{32}+1 \right\rfloor$ solutions. This solution completely agree with the approximation given by Rus May. However still I believe that we can do something more than this. Is it possible to colour or put textures on Bevel curves? So with my model, I've been struggling to create hair because it always looked weird or off and recently I discovered the "Bevel Curve" addon and it's an absolute lifesaver.   So I converted the bevels into mesh to colour it, except it lags blender like crazy and I need this model for a video game I'm currently developing called Candles(so I can't upload the model, sorry) but I was wondering, is it possible to put a texture on a bevel curve like you would mesh or any other method or giving it colour?