I can't seem to find any examples on the internet for this particular task.
I want to kill all running processes of a particular user from either a shell script or native code on a Linux system.  Do I have to read the /proc directory and look for these?  Any ideas? Is there a dynamic mapping of the pids under UIDs in Linux? Isn't this in the proc?  If not, then where is this list maintained? Should I read from it? Also where is the static list of all UIDs in the system so I can validate this this user exists and then proceed to kill all processes running under it?
MapServer (MS4W) test page from shapefile shows only blank white square? I am trying to create a test page with mapserver and shapefile. At the moment I just want to get the map shown on my test page. I have gotten the EXTENT coordinates by opening shapefiles with QGIS - I am sure those are correct. I have followed this  as an example.  I am accessing my test page via this link:  http://localhost:1025/cgi-bin/mapserv.exe?map=C:\MS4W\ms4w\Apache\htdocs\mapfile.map   Problem I have - map is not loaded - I only see a blank white square.  When I look at contents of ms4w\Apache\htdocs\output , I see that images are actually getting generated but all of them are white (empty), for example:  lat_pmts_region13941906093724.png lat_pmts_region13941910095144.png lat_pmts_region13941913405500.png ...   Shapefiles are located at this location: C:\MS4W\ms4w\Apache\htdocs\shapefiles.  An example of what is logged to error file:  [Fri Apr 11 11:19:32 2014].883000 CGI Request 1 on process 7888 msWCSDispatch20(): wrong service (none) msWCSParseRequest(): request is KVP. msWCSDispatch(): SERVICE and REQUEST not included msDrawMap(): rendering using outputformat named png (AGG/PNG). msDrawMap(): WMS/WFS set-up and query, 0.000s msDrawMap(): Layer 0 (lat_pmts_region), 0.001s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.002s msSaveImage(C:/MS4W/ms4w/Apache/htdocs/output/lat_pmts_region13972043727888.png) total time: 0.138s [Fri Apr 11 11:19:33 2014].24000 mapserv request processing time (loadmap not incl.): 0.141s [Fri Apr 11 11:19:33 2014].24000 msFreeMap(): freeing map at 0246EFD8.   ms4w\Apache\htdocs\template.html:  &lt;html&gt; &lt;head&gt;&lt;title&gt;Mapserver Template HTML Document&lt;/title&gt;&lt;/head&gt; &lt;body bgcolor=#AAAAAA&gt; &lt;h2&gt;Template&lt;/h2&gt; &lt;img src="[img]" border=1&gt; &lt;/body&gt; &lt;/html&gt;   It looks like this:   C:\MS4W\ms4w\Apache\htdocs\mapfile.map:  MAP     CONFIG "MS_ERRORFILE" "C:/MS4W/ms4w/tmp/ms_error.txt"     DEBUG 5     NAME lat_pmts_region     STATUS ON     SIZE 800 600      EXTENT 286878.53 142087.25 799084.10 481123.75     #   lat_pmts_region      UNITS METERS     SHAPEPATH "shapefiles"     IMAGECOLOR 155 155 155      WEB     TEMPLATE "template.html"     IMAGEPATH "C:/MS4W/ms4w/Apache/htdocs/output/"     IMAGEURL "/output/"     END      LAYER     NAME "lat_pmts_region"     DATA lat_pmts_region     STATUS DEFAULT     TYPE POLYGON     END END   I will gladly provide more information if it's asked. I'm learning how to use the mirror modifier and I am having some trouble.  When I apply the modifier to my object I don't see a mirrored version of it.  What am I doing wrong? I have a box that I have extruded to the shape I want. Then I placed a cylinder so that it intersects the box. After that I deleted the bottom faces of both the cylinder and box.  Now what I want to do is delete the portion of the cylinder that is inside the box and join the nodes so that it is one object. I have already joined the meshes so I can select points/edges/faces from either shape. It seems like the easiest way would be to just put nodes where the edges of the cylinder and box intersect and then delete the parts I don't care about. I can't find a good way to do that though.  What's the best way to accomplish what I'm trying to do? Why did Superman & Supergirl start to suffocate instantly when Luthor made our yellow Sun red? Spoiler Alert: If you haven't read all comics series &amp; story arc of New Krypton Saga viz. New Krypton, World of New Krypton, Last Stand of New Krypton, Superman: War of Supermen etc, drop this question right away!  While battling the evil alien Brainiac, Superman &amp; Supergirl discovered the long-lost bottled city of Kandor which was stolen from Krypton prior to its destruction. Superman re-enlarged the city on Earth, but it wasn't welcomed by Humans. Humans assaulted the city in which Kryptonian's leader Zor-El (Supergirl's father) was killed. Using highly evolved science, Alura (Zor-El's wife) created a new planet "New Krypton". Plus, she, as a new leader, freed General Zod from Phantom Zone to command new super military of New Krypton (every kryptonians had super powers due to yellow sun).  While New Krypton &amp; Earth were at cold war, Zod ordered his military to attack Earth. When military was in space, Sam Lane (Lois Lane's father) destroyed New Krypton by a trick making their race extinct again. Kryptonian military successfully crushed Earth's Mars defense facility &amp; they headed towards Earth.  When they were about to enter atmosphere of Earth:      Many Kryptonians died under the red sun because they couldn't survive in empty space. Its somewhat plausible because they weren't under yellow sun for long. But, what about Superman &amp; Supergirl? They did survive because they were under yellow sun for very long. But, why did they become very weak instantly? If the power draining rate by radiation of red sun was that high, how did Superman &amp; Supergirl survive?  Is this a plot hole? Or, am I missing something? In my resume, I'm describing several projects I've worked on in the past. Most of them were done in teamwork. What is the best way to say this?  Examples:  Together with XY, I built ... OR  In collaboration with XY, I built ... OR  XY and I built ...  Are the first two examples grammatically correct? I'm unsure since first I state that something has been done in collaboration with a second person, but then I use "I built ...". I have a filename in a format like:     system-source-yyyymmdd.dat   I'd like to be able to parse out the different bits of the filename using the "-" as a delimiter. Is there a difference between "==" and "is"? Diamond is not shown for mod name under wiki posts If a diamond mod is an author of a wiki post then the diamond is not displayed besides the mod name. E.g. :        Even when the name refers to the user profile page (in case of more then one author) like in :        Is it intentional or a bug? How do I make a Theme from scratch for Unity? I'd like to make a theme from scratch for Unity.  What knowledge and information/skills are needed? Are there any tools or templates out there for something like this already? I don't have any Python experience so tools biased towards beginners are preferable. Can I travel to Germany from a country different from the one I got the visa from? Let $y$ be a differentiable function on $\mathbb{R}$. If  $$\lim_{x\rightarrow \infty}(y(x)+y'(x))=0$$ Then how does one show that $$\lim_{x\rightarrow \infty}y(x)=0$$ I'd appreciate some help on this problem. Thanks a lot. Spaces in variable assignments in shell scripts What is the difference between below variables assignments?   var=23 var =23 var= 23 var = 23   Is there any difference in space around the assignment operator? While trying to ask a question, I got the error message     This question body does not meet our quality standards. Please make sure that it completely describes your problem - including what you have already tried - and is written using proper grammar.    Why am I getting this message? What can I do to get the system to accept my question? Can you be more specific? What are good resources on how to ask high-quality questions?      For more information, see  in the . System installation is stalled on Compaq Presario R3000 What is the need of complex functions in wave analysis? It is commonly known that waves can be express in terms of sine or cosine function. But when I study further, I seen that for analyising the waves, it is common to use complex functions in the form $$y=y_{_0}e^{i(kx-\omega{t})}$$ where $y_{_0}$ is the amplitude, $k$ is the wave number, $\omega$ is the angular velocity and $x$ &amp; $t$ are position an time respectively. Ofcourse, I know that the function $e^{ix}$ can be written in the form $\cos{x}+i\sin{x}$ and so it is a periodic function with period $2\pi$ but my question is for what purpose we define it in terms of complex numbers? It seem to be more convenient to use real functions for real variables such as amplitude, electric and magnetic field of an electro magnetic wave, and also in quantum mechanics. What actually this interpretation means or what is the advantage of such functions? Why do I have the "required reviews completed" status on my submission in Elsevier? I had submitted my paper in an Elsevier journal one year back. Now, status update on the submission tracking says "Required reviews completed." However, for the last two weeks still there is no change in the status.  Should I ask the editor what is going on with my submission? How to skip kernel update? How can an Image-Empty be done with Python?  And how to set an image file on it? Object.data is None for empties, and there is no .image property on the object level either. I have critical low storage level and can't understand what takes much of it and how that's possible that the installed applications can use 7 GB? I only use a few social media clients without any games or soft like Photoshop. Also on the second screenshot it indicates that the apps are using just 1.13 GB and so I can't understand the situation. Also what is the "Other"? Does using the Console Commands negatively affect me? I'm wondering in case I get stuck in an area that I'm unable to get out of or if I clip into a wall and I suddenly can't move. I've had to disable clipping to get out of certain areas in Skyrim before but I want to make sure that things like my achievements and stuff won't shut out on my playthrough.  If I enable something, spawn an item that didn't spawn for me, or just basically use the console command to fix any bugs, what will happen achievement and game-wise?