How to give to a user ability like root with visudo?
Redirecting stdout to a file you don't have write permission on
Get the index of the nth occurrence of a string? I'm currently building a town in Minecraft Pocket Edition and I'm wondering how many blocks long and how many blocks wide the world is. Excluding System admin from this validation rule I have the following validation rule ;  OR(      AND(         Upper(MailingCountry) &lt;&gt; 'UK',             NOT(ISBLANK(TEXT(UK_Email_Consent__c)))     ),      AND(        Upper(MailingCountry) = 'UK',          ISBLANK(TEXT(UK_Email_Consent__c))     ) )   I know to exclude system admins I need to include the following line   $Profile.Name &lt;&gt; "System Administrator"   In the validation rule above where do I add profile &lt;> system admin   Looking forward to your help   many thanks I already have a 6 month valid UK business visa received prior to April 24 2015. I was supposed to travel to the UK in April, but my trip was cancelled on medical grounds.  I am now planning to visit the UK in July for tourism. Would it be fine for me to do so? Will I be allowed to enter the UK? Should I carry the original invite letter and medical certificate to prove why I didn't go the first time? I deleted the "/etc/passwd" file and cannot log in How do I redirect in a class sub-classing the EventSubscriber class? How can I run Windows applications on a MacBook Pro? I have a friend that wants to buy a Mac Book Pro and he has some windows applications that he needs to run. He doesn't want to buy the applications again.  Can he run the Windows applications on his MacBook Pro? What ways to accomplish this are available? In terms of UX what do you guys think is the best approach when integrating a trial period for subscriptions?  My application offers a 15 day trial, at the minute the user can sign up without providing any payment information (Paypal Subscription). The account is then set to trial status and after 15 days the user will be redirected to an upgrade page.  Do you think this is the best approach? I am unsure whether or not to let Paypal manage the trial, this however means that the user will need to go through the Paypal payment system during signup. I think this may put some people off signing up.  On the other hand this approach may increase the number of conversions to a full account. Can I play a save from the non-GOTY edition of Red Dead Redemption in the GOTY edition? My friend is able to lend me Red Dead Redemption. However it's the vanilla edition, so I'm going to end up buying the GOTY edition anyway. Here is a question now: If I were to play Red Dead Redemption, non-GOTY edition, have a save from it, and then buy the GOTY edition, will I be able to play on the save I made while playing the non-GOTY edition? How to answer a negative question in English? Q: "Don't you know?"   If I really don't know, how should I respond to this question? Yes or No?  There's a similar question on EL&amp;U, but the answer isn't clear how it works:      Also here on ELU too:      These answers are confusing. I want to know what one word answer I can use. In other words I want to know:   What will native speakers understand if I reply No to this question? What will native speakers understand if I reply Yes to this question? Formatting should not count towards the character limit on comments This is a minor frustration, but I have a  that I put italics and bold into (using asterisks.)  Now I know I just just be happy that I could do it at all, but it seems to me that those should not count toward my comment char limit. Which is correct: "drive safe" or "drive safely"? When someone is going to drive their car somewhere, I always used to say "drive safely" to them. Recently I was told I should say "drive safe."    (From: )   Which one is correct?  Similarly, is "do good" correct? Should the mean be used when data are skewed? Often introductory applied statistics texts distinguish the mean from the median (often in the the context of descriptive statistics and motivating the summarization of central tendency using the mean, median and mode) by explaining that the mean is sensitive to outliers in sample data and/or to skewed population distributions, and this is used as a justification for an assertion that the median is to be preferred when the data are not symmetrical.  For example:     The best measure of central tendency for a given set of data often depends on the way in which the values are distributed.... When data are not symmetric, the median is often the best measure of central tendency. Because the mean is sensitive to extreme observations, it is pulled in the direction of the outlying data values, and as a result might end up excessively inflated or excessively deflated."   —Pagano and Gauvreau, (2000) Principles of Biostatistics, 2nd ed. (P&amp;G were at hand, BTW, not singling them out per se.)   The authors define "central tendency" thus: "The most commonly investigated characteristic of a set of data is its center, or the point about which observations tend to cluster."  This strikes me as a less-than forthright way of saying only use the median, period, because only using the mean when the data/distributions are symmetrical is the same thing as saying only use the mean when it equals the median. Edit: whuber rightly points out that I am conflating robust measures of central tendency with the median. So it is important to keep in mind that I am discussing the specific framing of the arithmetic mean versus the median in introductory applied statistics (where, mode aside, other measures of central tendency are not motivated).  Rather than judging the utility of the mean by how much it departs from the behavior of the median, ought we not simply understand these as two different measures of centrality? In other words being sensitive to skewness is a feature of the mean. One could just as validly argue "well the median is no good because it is largely insensitive to skewness, so only use it when it equals the mean."  (The mode is quite sensibly not getting involved with this question.) Deserializing JSON when sometimes array and sometimes object I know the minimum number of reference letters required at many U.S. PhD programs in the STEM fields is three -- and that it is also not uncommon for someone to submit a fourth letter.  What about a fifth letter?  Would a fifth letter of recommendation be perceived as "too many"? Best lens for taking pictures of surfers I'm just trying to decide which new lens to get. I need to take surf and windsurf photos from onshore. Sometimes 300 mm is enough but there are many times they are too far away. I have a sigma 70-300 but I need something better, if the light is not perfect it doesn't give me the sharpness I hope for. I can not afford the 400L 2.8 of course, so I'm trying to choose between the Canon EF 100-400L, Canon EF 70-300L (which I heard is far better than the base one), or Sigma 50-500. My body is a canon 600D. Varnish cache with Nginx SSL termination How can I use varnish cache with nginx SSL termination for my SSL-Only (Https only) website? I use ubuntu 18.04 and I am currently running a wordpress site on my server. Use induction to prove the following: $1! + 2! + .... + n! &lt; (n + 1)!$  Base case:  $n = 1$  $1! &lt; 2!$ true   Inductive step: Assume that $1! + 2! + .... + k! \le  (k + 1)!$ is true   let $n = k + 1$  $1! + 2! + .... + (k + 1)! &lt; (k + 2)!$  $1! + 2! + .... + k! + (k + 1)! &lt; (k + 2)!$  $1! + 2! + .... + k! + (k + 1)! &lt; (k + 2)!$  $(k + 1)! + (k + 1)! &lt; (k + 2)!$  $2(k + 1)! &lt; (k + 2)!$  $2(k + 1)(k)(k - 1).. &lt; (k + 2)(k + 1)(k)(k - 1)....$  $2 &lt; (k + 2)$   the right is always bigger for k are non negative integer. Space before chapters and contents I am using LaTeX to write my dissertation, and I have realised that on the table of contents and on every chapter page, LaTeX leaves a lot of empty space.  What I mean is that lets say in the page where chapter 1 begins, from the top of the page until the chapter title there is much more vertical space than on any other page. The same goes with chapter 2 etc... and for contents page as well.   Can anybody help me to remove that space? Is there any mistake in my code or something like that? Is this a default of LaTeX?  the preamble is  \documentclass[12pt,twoside]{report} \pagestyle{plain} \usepackage{a4paper} \usepackage{setspace} \doublespacing  \usepackage{amssymb} \usepackage{amsmath}    I've tried the methods below, but none of them work properly. Apply a string replacement on the citation as returned by \cite I have biblatex with options  \usepackage[backend=bibtex, style=authoryear]{biblatex}   The citations made with \cite look like this: Smith, 2019 or Smith and Baker, 2019 and so on. I would like to define a command that automatically replaces the occurrence of my name with my initials. Namely I need  \cite{SmithsPaper}  % --&gt; Smith, 2019 \cite{MyPaper}      % --&gt; Manny, 2019 %%% \newcite{SmithsPaper}  % --&gt; Smith, 2019 \newcite{MyPaper}      % --&gt; MC, 2019   I have tried with the package xstring to do something like  \newcommand{\newcite}[1]{%   \begingroup   \edef\@temp{\cite{#1}}%   \StrSubstitute{\@temp}{Manny}{MC}   \endgroup }   The problem is that I can't figure out how to tell LaTeX to expand \cite{#1}. As a result the citation comes out without the replacement. If I change \cite{#1} by simply #1 and I call \newcite{bla Manny bla} it gives bla MC bla as expected.  It shouldn't be relevant but I'm using this within the beamer documentclass.