Run sudo commands without running the whole script with sudo (using a desktop launcher)
How do I run a 'sudo' command inside a script?
Evenly spaced menu items on Toolbar Determine device (iPhone, iPod Touch) with iOS Is there a way to determine the device running an application. I want to distinguish between iPhone and iPod Touch, if possible. I've searched websites, written to Mr. Barth and William Safire, scanned bookstore shelves, and buttonholed likely prospects in search of a grammar text that would address matters in the manner of the following, which is from John Barth's "The End of the Road".  If such a text exists, I'd be much obliged to learn of it:  " ... it gives a man a great sense of lucidity and well-being, if not downright formidability, to be able not only to say, but to understand perfectly, that predicate complements of infinitives of copulative verbs without expressed subjects go into the nominative case, whereas predicate complements of infinitives of copulative verbs with expressed subjects go into the objective case.  I made this observation to my assemblage of young scholars and concluded triumphantly, "I was thought to be he, but I thought John to be him."  Thank you. Equality holds in triangle inequality iff both numbers are positive, both are negative or one is zero How do we show that equality holds in the triangle inequality $|a+b|=|a|+|b|$ iff both numbers are positive, both are negative or one is zero? I already showed that equality holds when one of the three conditions happens. Can I travel to the UK unaccompanied on an accompanied child visa now that I am over 18? I've logged in and out, restarted my phone, updated, but the Pokemon footsteps indicating whats nearby wont show up.   The Pokemon still appear in the menu, but I cannot click to select them, nor does it show their distance from me with the footsteps.   What is going on? How to get client date and time in ASP.NET? How to place an image at the right top of a document? I've been learning LaTeX and this community has been very helpful. Currently, I'm trying to set up corporate letters but as a newbie I'm encountering a  of , so I'm posting them one by one instead of putting it in the comments... maybe this helps others as well.  Anyway, I am trying to implement this  that indicates that I can use vbox to float an image to the right of my header. I almost have this working, but I now try to adjust this to get my logo to stick to the top of the page. So I want to have this at the right top of my document. This is quite difficult! When I place the vbox, it creates unwanted spacing, for some odd reason. So I can not get the logo to be at the right top, even though I 'reset' every possible margin to 0 (in my opinion). Here is my distilled code:  \documentclass[a4paper]{article} \usepackage{graphicx} \graphicspath{{./img/}} \usepackage{color} \usepackage{xcolor} \definecolor{orange}{HTML}{DD4616} \definecolor{white}{HTML}{FFFFFF} \usepackage{fullpage} \usepackage[margin=0cm, paperwidth=215.9mm, paperheight=30mm,top=0cm]{geometry} \parindent=0pt  \begin{document} \fboxsep0pt  \pagecolor{orange}   \fbox{\vbox to 0pt{\hfill\fbox{\includegraphics[height=3cm]{logo}}}}  \end{document}   I've used a full black logo for illustrative purposes. Here you can see this:    The black line is the vbox border. For some reason, it jumps down. The only way to get rid of this that I found out about is this:    Which means that I need to add:  \edef\theprevdepth{\the\prevdepth}\nointerlineskip \vbox to 0pt{...}\prevdepth=\theprevdepth   But there are two problems with this:   I get an error with I try this (Improper \prevdepth.) More importantly, I really want to understand my code at this point, and get to master the basics of positioning elements. This feels overcomplicated and I do not understand it at all.    Is there any easy way to position an image at the right top of a document? How to type latin small letter c with cedilla I run Ubuntu on a DELL XPS 13 notebook that has an US keyboard configured as US international. After upgrading to version 13.10 I can no loger get a cedilla by typing '+C. Instead, I get a "ć".  What should I do to get a "ç"?  I am using Ubuntu Gnome 13.10 64 bit. I read in a CSV file for linking to a .shp file.   All the variables that are just numbers came in as text.   How do I change the text variables to numeric in QGIS? How to do joins in LINQ on multiple fields in single join I need to do a LINQ2DataSet query that does a join on more than one field (as  var result = from x in entity join y in entity2         on x.field1 = y.field1  and            x.field2 = y.field2   I have yet found a suitable solution (I can add the extra constraints to a where clause, but this is far from a suitable solution, or use  solution, but that assumes an equijoin).  Is it possible in LINQ to join on multiple fields in a single join?  EDIT  var result = from x in entity              join y in entity2              on new { x.field1, x.field2 } equals new { y.field1, y.field2 }   is the solution I referenced as assuming an equijoin above.  Further EDIT  To answer criticism that my original example was an equijoin, I do acknowledge that, My current requirement is for an equijoin and I have already employed the solution I referenced above.  I am, however, trying to understand what possibilities and best practices I have / should employ with LINQ. I am going to need to do a Date range query join with a table ID soon, and was just pre-empting that issue, It looks like I shall have to add the date range in the where clause.  Thanks, as always, for all suggestions and comments given How is an instance initializer different from a constructor? Python: pop from empty list The system of equations Let $a,b,c\in \mathbb{R}$ that $a^{2}+b^{2}+c^{2}=1$. We want to find $x,y,z,w$ in the following equations:  $$\begin{align} x^{2}+y^{2}+z^{2}+w^{2}&amp;=1 \tag{1}\\ x^{2}+y^{2}-z^{2}-w^{2}&amp;=a \tag{2}\\ xw+yz&amp;=2b \tag{3}\\ yw-xz&amp;=2c.\tag{4} \end{align}$$ Spring's SecurityContextHolder.getContext().getAuthentication() returns null after RedirectView is used in HTTPS/SSL How can I recover my account? I tried to log into Minecraft today to find that my password isn't working. I tried to change it, but I can't login to my email because I forgot the answer to my security question. I tried changing the email to a different one, but that didn't work for some reason (it kept saying "invalid email"). I don't have my transation ID because I forgot which credit card I used.  Does this mean that I have to buy a new Minecraft account? How to use z-index in svg elements? Vertical line only in one part of a table I need some help on  putting a vertical line in the second part of the table, I don't know how to do it since the tabularx I declared does need to have that only in the second part. The code I used is:  \begin{tabularx}{\linewidth}{|XX|} \hline \multicolumn{2}{|c|}{\textbf{title name}}\\ \hline something: &amp; else \\ something: &amp; else \\ something: &amp; else \\ \hline \multicolumn{2}{|c|}{bla bla blah}\\ \hline title text: &amp; description 1 \\ title text: &amp; description 1 \\ \hline \end{tabularx}   And the render of the table looks like this:    I just need a \vline between title text and description (it I use \vline it works only for the first line but the description text and sometimes the title, are few lines long). In the following example, is it appropriate to use a or an as the indefinite article, and why?     He ate __ green apple.   I know that in the case of just "apple", it would be "an apple," but I've heard conflicting answers for "green apple," where the noun is separated from the article by an adjective.  Also, which is more appropriate in this case:     He ate  __ enormous Pop-Tart. Badge symbol in notification is of the site you're on, not where badge was earned It's so cool that the notification reminds you of the colour of badge you've earned. But I am a little puzzled by the symbols:      Is it feasible to use the symbol from the earned site? At the moment it uses the symbol from the site I happen to be on (as you can see by looking to the left of the dropdown in each case.)