I'm having a little trouble understanding the recommendation to setup a separate user for the file permissions of www/html folder in apache. See point 5 from   The recommendation is out of the box Apache sets your html folder to nobody or daemon. But this isn't a good idea!  I have a VM on  and when uploading files it only lets you do this to your home folder. Then from their with ssh I can move them over to my html folder.  When I do a ls -a on my html folder after the move, it has kept the username for my local machine that I uploaded the files and folders from.  Long story short have I, albeit without knowing, basically adhered to this above recommendation? Or do I need to create a completely new user on the box and assign the html folder to that user?
I want to stop having to use sudo everytime I work in /var/www. How can I do that? I simply want to put all of my sites into this directory and work with them without too much pain.
Expand a random range from 1–5 to 1–7 Given a function which produces a random integer in the range 1 to 5, write a function which produces a random integer in the range 1 to 7.   What is a simple solution? What is an effective solution to reduce memory usage or run on a slower CPU? Currently selected indicator's colour in flag summary and help pages, can be the same as the site's colour code I have updated my kubuntu 14.10 to kubuntu 15.04. And now after boot, when I enter my password on welcome screen, I will get black screen. It's looks like screen powered off. No cursor, no change brightness. Nothing. And when I try switch to text consoles (Ctrl+Alt+F1) nothing happening. If I doesn't login in welcome screen I can switch to text console. There are two 'Library' directories in my OS X 10.11 installation, one being /Library/, the other being /System/Library/. What is the difference between different Library folders? Is the universe finite or infinite? I thought the universe was finite, but then I read this:    And they seem to assume it is infinite. So which is it? LaTeX baffled by BOM---Unicode's byte order mark. Unicode applies the convention of using a  as signature at the beginning of a text stream, identifying the encoding used within it. The following three bytes at the beginning of a file: EF BB BF, identifies this file as a UTF8 file. Vi and most text editors gracefully ignore this signature. Open office does that as well, but it adds this signature at the beginning.  Now, if I open a TeX file with OpenOffic.org, and I do that quite a lot (for mixed directionality editing), the signature is added, and baffles LaTeX, which produces an error message such as:   ! LaTeX Error: Missing \begin{document}.   See the LaTeX manual or LaTeX Companion for explanation.  Type  H &lt;return&gt;  for immediate help.  ...                                                l.1   ��\documentclass{article}   whereas a simple dump of the file does not show the problem. Is there a way to eliminate this problem, while staying in the realm of latex? What is the difference between procfs and sysfs? What is the difference between procfs and sysfs?  Why are they made as file systems? As I understand it, proc is just something to store the immediate info regarding the processes running in the system. If I were to use the sentence "There are lots of John Smiths" in the world, would that be the correct use for saying that there are a lot of people named John Smith in the world?  I don't think there should be an apostrophe as that would imply ownership of something.  If my first example is correct, then what would you do if the name referenced already ended with an 's'? Why could the pictures and paintings in Hogwarts talk and the photos of Harry's parents couldn't? PostgreSQL: running count of rows for a query 'by minute' Interface vs Base class What is the yield keyword used for in C#? In the  question one of the answers had the following code snippet:  IEnumerable&lt;object&gt; FilteredList() {     foreach(object item in FullList)     {         if(IsItemInPartialList(item))             yield return item;     } }   What does the yield keyword do there?  I've seen it referenced in a couple places, and one other question, but I haven't quite figured out what it actually does.  I'm used to thinking of yield in the sense of one thread yielding to another, but that doesn't seem relevant here. How to animate only the camera? So  i have a scene with a few objects, and a water simulation in the scene. However I want to animate the camera turning around in the scene, while the water simulation is frozen in time. So something like a time freeze effect. But when ever I try to render an animation it renders the water simulation too. I just need one frame of the water simulation. Is there a way to do this? How can I get my external IP address in a shell script? I need to find my external IP address from a shell script. At the moment I use this function:   myip () {      lwp-request -o text checkip.dyndns.org | awk '{ print $NF }' }   But it depends on perl-libwww, perl-html-format, perl-html-tree installed. What other ways can I get my external IP? Why does "Size on disk" vary when "Size" does not with the same set of files? Proof a $(2n-1)$-compact manifold I have no idea how prove that $$\{(z_0,\ldots,z_n)\in\mathbb{C}^{n+1} \quad| \quad z_0^d+z_1^2\ldots+z_n^2=0, \quad |z_0|^2+|z_1|^2\ldots+|z_n|^2=2\}$$ is a $(2n-1)$-compact manifold.  How give the charts. For $n=1$ and $d=2$ not distinguish which 1- manifdold is? What is object slicing? Someone mentioned it in the IRC as the slicing problem. We are Indian passport holders, with valid visas for Canada. Plan is to take the EgyptAir flight Mumbai to Toronto, via Cairo. Problem is Egypt embassy website says we don't need Transit Visa if transit is up to 12 hours but here transit is 14 hours.    Has anyone with a Indian passport traveled this route? What was your experience at Cairo? Did you need a transit visa? What is this weird colon-member (" : ") syntax in the constructor? Determine whether or not a point lies within a rotated rectangle