So I just installed a virtual machine with Ubuntu 13.10. I wanted to play with apache 2.4.6 before I update my ubuntu 12.04 servers. I want my document root to be in my home folder and so I changed it in the etc/apache2/sites-available/000-default.conf  When I did that I just get the forbidden message. I set the new folder permissions to 777 but still get forbidden. I even put an index.html file in the new directory that just says hello world but nothing still. Here is my 000-default.conf file.  &lt;VirtualHost *:80&gt; # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating # redirection URLs. In the context of virtual hosts, the ServerName # specifies what hostname must appear in the request's Host: header to # match this virtual host. For the default virtual host (this file) this # value is not decisive as it is used as a last resort host regardless. # However, you must set it for any further virtual host explicitly. #ServerName www.example.com  ServerAdmin webmaster@localhost DocumentRoot /home/everett/webroot  &lt;Directory /home/everett/webroot&gt;     Options FollowSymLinks MultiViews     AllowOverride All     Order allow,deny     allow from all &lt;/Directory&gt;   # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg. # It is also possible to configure the loglevel for particular # modules, e.g. #LogLevel info ssl:warn  ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined  # For most configuration files from conf-available/, which are # enabled or disabled at a global level, it is possible to # include a line for only one particular virtual host. For example the # following line enables the CGI configuration for this host only # after it has been globally disabled with "a2disconf". #Include conf-available/serve-cgi-bin.conf &lt;/VirtualHost&gt;  # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
After upgrading from Ubuntu 13.04 server, the www pages won't display themselves.     Error 403 Forbidden You don't have permission to access / on this server.   I've changed access control saves from apache2.2 to apache2.4, but that didn't work. What else could I do?
How to change plot style or other options after it was created Interpretation of log transformed predictor and/or response I'm wondering if it makes a difference in interpretation whether only the dependent, both the dependent and independent, or only the independent variables are log transformed.  Consider the case of  log(DV) = Intercept + B1*IV + Error    I can interpret the IV as the percent increase but how does this change when I have   log(DV) = Intercept + B1*log(IV) + Error   or when I have   DV = Intercept + B1*log(IV) + Error   ? I've only just begun studying group theory (up to Lagrange) following on from vector spaces and I am still finding them almost frustratingly  arbitrary. I'm not sure what exactly it is about the axioms that motivated them defining groups.  My textbook asks you to list 'common features' of vector spaces and then later defines a set of axioms for vector spaces under addition, scalar multiplication and both, noting that the axioms under addition form an Abelian group. So are groups just a generalisation of vector spaces under any binary operation?  My main problem is that the book notes that 'the axioms may seem rather arbitrary' and links groups with vector spaces but doesn't elaborate.   When introducing groups, you are tasked to complete Cayley tables for the symmetries of an equilateral triangle and square.  Then, similarly to the delivery of vector spaces, notes that the tables have common properties (Closure, Identity, inverse and association) and defines a group as a set of elements under a binary operation that has these features.  So what's so important about these 4 properties? For example, if 1 or 2 the properties were excluded form the  axioms, or we added an extra few properties as axioms how would that cripple the effectiveness of groups?  Are the group axioms ever difficult to work with or do they always work, forgive the crude Littlewood analogy, like a mathematical skeleton key?  What is it about these 4 properties that make groups such a powerful tool in mathematics and physics?  My best guess is that a group is the best way to express our sense of  symmetry and what is symmetric mathematically, but I would prefer some elaboration. Windows of an application have minimum size and I can't find the window anymore I had an application (in case it matters: LibreOffice Calc] in full-size mode. I then clicked the middle of the three buttons of the top right to adjust the size. When I did that, the window became minimum size, literally a vertical line. I panicked and alt-tabbed, and now I can't even find the vertical line anymore. Opening new windows in that application opens all of them hidden to me, and closing/reopening or even restarting the OS doesn't help. I don't know how to resize my invisible windows anymore. Here's the preview of the windows in the application launcher: a vertical line (that I don't find on my screen anywhere if I click this). I've just received a memo which says (effectively)      As more people leave, there will be less people available.   I want that word to be fewer. Are there guidelines for which word ought to be used when? Can less retain colored output? Can I get less not to monochrome its output?  E.g., the output from git diff is colored, but git diff | less is not. Typesetting annuity and life-insurance symbols in ConTeXt How do I typeset annuity and life-insurance symbols, actuarial notation in ConTeXt. I see there are packages available but not for ConTeXt.    Thanks Why is my host name wrong at the Terminal prompt when connected to a public WiFi network? For three days straight, I have connected to the public WiFi network at my local library. Each day, I have seen a different prompt in Terminal. Here are some of the prompts I've seen:  zp-pc:~ russell$ mary-pc:~ russell$ normob05:~ russell$   I have check under System Preferences -> Sharing, and my computer name is "Russell's Mac". Also, I set the DHCP Client ID to "RUSSMAC" under System Preferences -> Network -> Advanced -> TCP/IP, but I still see the random host names at the Terminal prompt.  Why is my computer name changing every day? Replace \n by a newline in sed portably Do accepted answers still serve a useful purpose? In the Stack Exchange voting system, we have two classes of votes: standard up / down votes that anyone can cast, and special  that only the asker can.   Although accepting an answer does not always pin it at the top of the answer list, that green check mark does  about the correctness of the answer. This gives a single person much greater weight than the rest of the community. That green check mark can seem confusing to visitors, who see  or  answers marked as being correct. I've heard this from several friends recently who were surprised when they came across factually wrong answers that had been downvoted, yet still had that check mark next to them.  Moderators regularly field flags from even more experienced users who demand that the accepted answer be changed from one that is incorrect or even harmful to another. We decline these, because we're not supposed to be making technical judgments like that and because we have no way of accepting answers on behalf of the asker. However, these flags do show that some people have problems with the presentation of accepted answers vs. the community voting on all the others.  There's also all the fun that came with arguments over accept rate, and people badgering askers to accept their answers.   Questions on the Stack Exchange network are intended to be broadly useful, to help out many others in the future beyond the person asking the question. If that's our goal, why should the person asking the question have any more say than the rest of the world? If it's a broadly applicable question, why should one person be able to highlight something as correct simply because they asked it first?  I guess what I'm asking is: if we did away with accepted answers, converting them to upvotes where appropriate, and only let community voting sort out the best answers, would we lose something important? I thought I'd ask after reading  to , because I wasn't sure how I felt about accepted answers anymore. Let $A, B$ be subsets of a metric space $X$. If $A$ is compact and $B$ is closed, show that the distance between $A$ and $B$ is achieved.   Attempt at a proof:    Let $A$ be compact and $B$ be closed. Let $m=d(A,B)=\inf_{b\in B} d(A,B)$. Then, there are two possibilities: (a) $\exists b\in B$, $d(a,b)=m$. If this is the case, we're done. (b) $\forall b\in B$, $d(a,b)&gt;m$. In this case,     there exists a sequence $\{b_n\}\subseteq B:$ $d(a,b_n)\rightarrow m$ as $n\rightarrow\infty$ by definition of infinum. Then there exists a subsequence $\{b_{n_k}\}$: $d(b_{n_1},a)&gt;d(b_{n_2},a)&gt;...$ which is monotonic decreasing. Then note that $d(b_{n_k},a)&lt;d(b_{n_1},a)&lt;\infty$. So it's a bounded sequence. Now I want to show that it has a convergent subsequence that converges to $b\in B$ and then I want to do the same for $A$. And then finally to show that $d(a,b)=m$ in fact. Any clues to how to get there? How Many Genius Mixes Are There in iTunes? What is a magic number, and why is it bad? What's the max height of blocks for a redstone contraption to still work even I'm in the surface below?  Like if I build a pillar to the max height of blocks and build a redstone contraption there, is it still going to work even I'm on the surface below? How do I let the world know about my role-playing system? I have been working on a short narrativist system for quite some time now. I intend to offer it freely to anyone interested but I'm not sure about a couple of things:  First, how do I package it? One option is to make a website with the rules. In that case, is making lots of small interconnected pages a good idea? Or is it better to keep it linear and on as few pages as possible? Another option is to make a book-like pdf, possibly using LaTeX. Assuming people go as far as the download page, will they be willing to get the pdf? Is it easier to read?   Second, how do I let other people know? I can't just barge into forums spamming about how great my system is. Should I look for contests or challenges, like the 24Hour RPG? Is there any point to posting on social news/bookmarking sites? Is it good form to contact game review sites and ask them to consider my game?  Feel free to ignore the secondary questions if you want to; they're there only to expose my reasoning thus far and to inspire answers. Smooth option sometimes produces incorrect arrow tips in PGFplots How to perform hard / cold reboot of iPhone or iPad? I understand that when I press and release the power button on the top of my iPhone or iPad, it stays on but turns off the screen.  Whereas if I press and hold the power button, a "slide to turn off" control appears on the screen.  Sliding this, as I was told, does turn the unit off, but it does so by suspending the RAM to disk (flash memory, actually.) So, when turning on the iPhone or iPad, it isn't so much rebooting the OS as it is resuming it from flash storage.  How to force the OS to completely reboot on these devices? "You must wear a suit TO an interview" vs "You must wear a suit FOR an interview" In the sentence-     You must wear a suit to an interview   shouldn't the to be replaced by for? Or what's the difference between these two here? I have been facing hard time understanding meaning of "random sample" as well as "iid random variable". I tried to find out the meaning from several sources, but just got more and more confused. I am posting here what I tried and got to know:  Degroot's Probability &amp; Statistics says:     Random Samples / i.i.d. / Sample Size : Consider a given probability distribution on the real line that can be represented by either a p.f. or a p.d.f. $f$. It is said that $n$ random variables $X_1 , . . . , X_n$ form a random sample from this distribution if these random variables are independent and the marginal p.f. or p.d.f. of each of them is $f$. Such random variables are also said to be independent and identically distributed, abbreviated i.i.d. We refer to the number n of random variables as the sample size.   But one of the other statistics book I have says:       In a Random Sampling, we guarantee that every individual unit in the population gets an equal chance(probability) of being selected.   So, I have a feeling that i.i.d.s are elements that construct random sample, and the procedure to have random sample is random sampling. Am I right?   P.S.: I am very confused about this topic, so I will appreciate elaborate reply. Thanks. Changing Date format and appending to original file I have file like this called a.txt:  [2016-03-30T04:51:51.599-04:00]!ER_DEV!Port_Conflict!/u05/app/ [2016-01-20T04:30:21.885-04:00]!ER_DEV!Port_Conflict!/u05/app/   I need to modify it so it looks like:    2016-03-30 04:51:51!ER_DEV!Port_Conflict!/u05/app/   2016-01-20 04:30:21!ER_DEV!Port_Conflict!/u05/app/   i already wrote a command to change [2016-03-30T04:51:51.599-04:00] to 2016-03-30 04:51:51 .but how to append the query output to original file.    awk -F'!' '{print $1}' a.txt | awk -F '[T.]' '{print $1 " " $2}' | awk '{gsub(/\[/,"")}1'