Error messages in terminal when using sudo to run apps as root When running gedit with sudo, editing and saving a file causes the following error to appear (twice). Note that the first time it appears is when the file is edited in any way - even just pressing the space bar. Then it happens again when saving.  (gedit:4063): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files  (gedit:4063): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files   This did not always occur, but started recently. It seems to be a non-fatal error. Can it be corrected?  I am using 14.04 LTS. I use Unity but supplement it with Docky and Classic Menu Indicator Applet.  When running sudo nautilus, a similar error occurs:  (nautilus:4604): Gtk-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files Nautilus-Share-Message: Called "net usershare info" but it failed: 'net usershare' returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. Error No such file or directory Please ask your system administrator to enable user sharing.   Again, this did not occur until recently, so I believe the problems are related.
Why should users never use normal sudo to start graphical applications? I've read  and am interested in this line:     You should never use normal sudo to start graphical applications as Root.   Why? What is the difference? Please provide a simple explanation, as I'm just a normal desktop user.
How To Make A Solid Object Drop To The Ground Like It Was Liquid How do I check if a string is a number (float)? What is the best possible way to check if a string can be represented as a number in Python?   The function I currently have right now is:  def is_number(s):     try:         float(s)         return True     except ValueError:         return False   Which, not only is ugly and slow, seems clunky. However I haven't found a better method because calling float in the main function is even worse. Unsubscribe anonymous method in C# Is it possible to unsubscribe an anonymous method from an event?  If I subscribe to an event like this:  void MyMethod() {     Console.WriteLine("I did it!"); }  MyEvent += MyMethod;   I can un-subscribe like this:  MyEvent -= MyMethod;   But if I subscribe using an anonymous method:  MyEvent += delegate(){Console.WriteLine("I did it!");};   is it possible to unsubscribe this anonymous method?  If so, how? What would be the symbol for 'multiplication on division'? The symbol I would like to obtain ought to be like the symbol '\pm'. If someone else is booking international ticket for me using his credit or debit card, does he need to be present physically at the time of check-in?   Suppose I am coming back from Singapore to my home country and my ticket is booked by my friend for me, who lives in my home country. Do airlines in Singapore ask for the person to be present physically to check in? Is it possible to make a simple query to count how many records I have in a determined period of time like a year, month, or day, having a TIMESTAMP field, like:   SELECT COUNT(id) FROM stats WHERE record_date.YEAR = 2009 GROUP BY record_date.YEAR   Or even:  SELECT COUNT(id) FROM stats GROUP BY record_date.YEAR, record_date.MONTH   To have a monthly statistic.   Thanks! Problem about the definition of Euclidean domain I wish to display a map in QGIS (world country shapefiles) showing all countries but centered on the Pacific area.   I am not familiar with Proj4, so is there any way this can be done in QGIS? I tried to search for similar questions, as I always do, but was not able to find one. I just created a new  on Data.Stack Exchange with my existing Google OpenID and it seems to be not associated with my regular Stack Exchange account. Is this by design? and if so, why? So I am currently making a minecraft custom map (for 1.9). I want to make the player "say" something using /tellraw commands. I did figure out how to make the player name come up using /say commands, but still have no idea how to do it using the /tellraw command.  How do I do that? Does throwing a watch into the air cause it to gain or lose time? Suppose I'm on a non rotating planet. I have two identical, perfect watches. I synchronize them. Then I throw one of them into the air and catch it. Does the one I throw into the air gain or lose time with respect to the one I was holding? What are reaching fouls in the NBA? When a player tries to steal the ball from a dribbling player, the referees sometimes award a "reaching foul". I just can't see any difference between a steal and a foul Can you fake a closed question? [‌closed] I just had a random thought; what if you append "[closed]" to the end of a question title. Is it filtered out, or in some way disallowed?  If you are seeing this, it isn't. It could potentially be used for some trickery, right? Or maybe not. I don't know, that's why you're here: discuss!  EDIT: Just a recap: Juan Manuel edited and removed "[closed]" from the end of the title and then answered (see below) - but it is technically possible.  Edit 2: Looks like it's still possible, if you play silly tricks with Unicode. (There's a  character in the new title.) Proving that $\frac{1}{1\cdot 2} + \frac{1}{2\cdot 3} + \frac{1}{3 \cdot 4} +\ldots + \frac{1}{n(n+1)} = \frac{n}{n+1}$ How would we go about proving that $$\frac{1}{1\cdot 2} + \frac{1}{2\cdot 3} + \frac{1}{3 \cdot 4} +\ldots +\frac{1}{n(n+1)} = \frac{n}{n+1}$$ Can an Indian citizen holding a valid USA visa visit Colombia without a visa? I am planning to travel to Colombia for about a week to attend an academic conference. I am an Indian passport holder currently living in USA with a F-1 visa. Do I need to obtain a visa beforehand from the Colombian consulate?  I have found   that claim that Indian citizens holding a valid USA visa are not required to apply for Colombian visa.     However, I am not sure if these sources are "official" and trustworthy.Is there a more official source? Also, does this rule apply to "tourists" only? Does anyone have any personal experience with this rule? Find an equation in spherical coordinates for the surface represented by the rectangular equation The rectangular equation is $$x^2+y^2-8z^2=0$$ $$x^2+y^2=8z^2$$ Know in the relationship between rectangular and spherical coords. we can manipulate our given to fit the form: $$x^2+y^2+z^2=9z^2$$ $$\rho=x^2+y^2+z^2, \space z=\rho\cos(\phi)$$ $$\rho^2=9\rho^2\cos^2(\phi)$$ $$1=9\cos(\phi)$$ $$\frac{1}{3}=\cos(\phi)$$ $$\arccos(\frac{1}{3})=1.23 \space rads$$ And so the equation in spherical coords. is $\phi=1.23$ I know my math is correct but I have the wrong answer so I'm not sure where I went wrong. Finding a pair of functions with properties I need to find a pair of functions $f$, $g$ such that    $f$ is not differentiable at  $x = 0$ $g$ is not differentiable at $f(0)$ $g \circ f$ is differentiable at $x = 0$   I've tried a lot of functions but just can't seem to find ones that work. Any help would be appreciated, thank you. wanted to get end date for Current Fiscal Quarter in apex any ideas, how to get this information. @ variables in Ruby on Rails I've been trying to ignore my burning desire to make some guacamole because every time I go to the supermarket to buy avocados I can't manage to pick out good ones.  They always either become too soft before I have a chance to do anything with them or are hard and not very tasty.  How can I tell when an avocado is perfectly ripe?