I currently have something like this. I am attempting to find a process with a certain name  &gt;:~# ps | grep avahi-daemon 12499 avahi     3048 S    avahi-daemon: running [BlahBlah.local] 12500 avahi     3048 S    avahi-daemon: chroot helper 12538 root      2672 S    grep avahi-daemon  &lt;---What is this   What is the 3rd line ? Why does it say grep avahi-daemon
I have cobbled together a command to return the process ID of a running daemon:  ps aux | grep daemon_name | awk "{ print \$2 }"   It works perfectly and returns the PID, but it also returns a second PID which is presumably the process I'm running now. Is there a way I can exclude my command from the list of returned PIDs?  I've tested it a few times and it appears my command is always the second PID in the list, but I don't want to grab just the first PID in case it's inaccurate.
Is it possible to use multiple desktop environments on same system? I am using Ubuntu 12.04. I want to try out KDE and other desktop environments.   But I'm not sure if I'll like them enough to switch permanently. I want to be safe and make a transition in a piecemeal fashion.  Is it possible to install KDE on Ubuntu and yet not do away with the default Unity shell?  Could I install multiple desktop environments and switch between them by tweaking some startup configuration and then rebooting? How to use C++ 11 features in the latest version of g++ Newbie here. I just got an error running from the terminal a C++ program I wrote: error: ‘stoi’ is not a member of ‘std’. They told me the compiler is too old.  I'm using Ubuntu 14.04.  My g++ version is 4.8.4.  How do I upgrade? How do I find values not given in (interpolate in) statistical tables? Often people use programs to obtain p-values, but sometimes - for whatever reason - it may be necessary to obtain a critical value from a set of tables.   Given a statistical table with a limited number of significance levels, and a limited number of degrees of freedom, how do I obtain approximate critical values at other significance levels or degrees of freedom (such as with $t$, chi-square, or $F$ tables)?  That is, how do I find the values "in between" the values in a table? "Mixed declaration and code" warning, is it worth addressing? How would I setup  to recognize import arcpy?   I'd like to use PyCharm to develop and debug geoprocessing tool. For context, see .  In essence:     "This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation (not including the ) on this site."   Suggested addition to existing message is in bold. Is the below brief explanation correct and complete (at least in context)? Can it be improved/simplified without getting technical? I am especially concerned about the last sentence: Is that reasoning absolutely clear to a layman?            The problem can be viewed as drawing the above graph without lifting your hand and without retracing a line. Observe that each dot is connected by three lines. Also observe that you have to draw a line to arrive at a dot, and you have to draw a line to leave that dot. Because each dot is connected by three lines, each must be visited twice. But it is impossible to visit each dot twice (even number of times) and end up with each dot connected with three lines (odd number of times). I'm pretty sure the answer to this should be obvious - even to me ...  It's been a while I've been reading and attempting to construct simple electronic circuits. The supply almost always is either through a battery/cell, or AC duly rectified to DC.   I have the impression electronic circuits rarely ever work off an AC supply.    Is this impression correct? If yes, why is an electronic circuit rarely (if ever) powered/biased using straight AC? Get the real width and height of an image with JavaScript? (in Safari/Chrome) Asymptotic distribution of maximum order statistic of IID random normals Is there a nice limiting distribution of $\max( X_1,X_2,...,X_n) $ as $n$ goes to $\infty$, assuming that they are iid normal distributions with variance $\sigma^2$.   This is almost certainly a well known problem with a clever proof and nice solution, but I've been digging around and haven't found anything. What is the difference of 3 object declarations of javascript ^@ spam in tty (but seems to be system-wide) I recently noticed some weird behavior on my GNU/Linux machine. I've been trying to narrow it down but I am unsure where to go next. My setup uses the following:   i3 gdm arch systemd grub2 pulseaudio 4.13.3-1-ARCH   Here is how it manifests iself:   when trying to resize panes in i3 (alt+right click and hold) the action will be randomly canceled (happens on key presses) alt+dragging windows meets a similar fate booting to tty periodically adds ^@s to the login prompt, I'd estimate them to be ~0.5s intervals in tty I can see those being passed to vim when I open the command bar (:) using a pager like less in tty mode and searching with / will result in  (?) being spammed htop's search (/) is instantly canceled by the periodic keypress  holding a key and trying to have it be repeated (such as holding space) will stop the other occurrences from happening (e.g. only one or two happen) any tooltip (such as chrome tooltips) get instantly closed because of key presses   Here is what I have tried:   tried switching DE temporarily (gnome, cinnamon, xfce) tried killing programs one by one until I was left with a tty session and essentially systemd services + pulseaudio tried booting on an arch livecd - problem does not manifest  overriding grub2 with init=/bin/bash drops me into a shell where the problem does not manifest I have tried pressing all keys to verify it wasn't a hardware problem, however previous steps point to it not being hardware I have made a diff of dmesg, from the init=/bin/bash and the regular boot - the main difference seems to be systemd being started in the regular boot Made a diff of lsmod from init=/bin/bash and regular boot, tried to rmmod modules that seemed related   My system is up to date, I'm not quite sure what other steps I can do to track this down. Any other debugging tips? If I insert a flash drive and try to drag any files onto desktop - nothing happens.  Or from any other folder.  Drag 'n copy only works if you open desktop in nautilus ("show desktop in files").  I already ran the command:  gsettings set org.gnome.nautilus.preferences use-experimental-views false   It didn't help. How to fix this? We want to have a plain empty sandbox - one without any configuration metadata or data from Production.  Is it possible to have such a sandbox?  Please advise. The server version of Ubuntu does not have the  command. How can I add a  (PPA) to the server without this command? Make account merges propagate to chat When two accounts are merged, all the posts/votes are moved over to the "master" account, and the other account ("slave"?) is deleted. The merge is propagated network-wide, so a similar thing happens on each site.  But, this does not happen to the chat user. The "slave" chat user is kept, with a 404 parent profile link. I feel that the chat user should be merged as well, re attributing all the chat messages.  Thoughts? Hide Command Window of .BAT file that Executes Another .EXE File Recently I downloaded Pokemon GO but when I try to sign up with google account,the option isn't there. Help please. I use a LG G2 mini Is it completely against the Java way to create struct like objects?  class SomeData1 {     public int x;     public int y; }   I can see a class with accessors and mutators being more Java like.  class SomeData2 {     int getX();     void setX(int x);      int getY();     void setY(int y);      private int x;     private int y; }   The class from the first example is notationally convenient.  // a function in a class public int f(SomeData1 d) {     return (3 * d.x) / d.y; }   This is not as convenient.  // a function in a class public int f(SomeData2 d) {     return (3 * d.getX()) / d.getY(); } "It is to be discussed", what is the infinitive doing in this sentence? It is to be discussed.   Is be + infinitive forming the future tense here?      You are to be dressed and ready by 8:00.   I was thinking it's almost commanding (or speaking of a command) but this doesn't seem to be the case, as sentences like this are commanding without this structure:     You will be dressed and ready by 8:00.   or      You are going to be dressed and ready by 8:00.   And there's sentences like this that don't imply commandment in any way:     I am to go home tomorrow!   or     I am to be home tomorrow!   (Slightly different meaning, same general sentiment)  So what's going on with the be + infinitive structure?