I am new to the world of linux and I've installed a Xubuntu 12.04 on my desktop computer. I am learning web development (Php, html, CSS, javaScript, JQuery etc...) so I need to establish an Apache server on my machine. With synaptic package manager I already installed some packages that seem to work so when I type localhost to my browser it gives an html site that says:   "It works! This is the default web page for this server. The web server software is running but no content has been added, yet."  I have read a few things on the internet on this topic, and now I know that I should be able to write my php in documents that are stored in filesystem/var/www/ but I cannot create documents in there - apparently because I am not logged in as root. Could somebody help me with that?   Also please note that I have very little (if any at all) knowledge of linux so please make it comprehesnible for such an uninitiated user as I am.
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.
What is the difference when you say "get off of something" and "get off something"? Light clock with mirrors on a moving train Emission of EM radiation from an electron I have read about an electron making a transition between two energy levels and electromagnatic radiation will be emitted. The problem is how and why e.m radiation is emitted. Suppose $\lim \limits_{n \to ∞} a_n=L$. Prove that $\lim\limits_{n \to ∞} \frac{a_1+a_2+\cdots+a_n}{n}=L$ Weird behavior when overriding gnome alert styling? After playing around with the i3 tiling window manager, I had my fill and decided to uninstall it and continue using gnome. However, to my dismay, something in i3 overrode the default gnome alert box. For example, when connecting to wifi, I get a gray or blue box instead of the nice ubuntu popups. The screenshot says it all. Any ideas?    (See top right corner) Show that computation of all such expressions will result in the same element of $X$ How can I get the node id the comment is attached to in hook_comment_insert?  I tried the following code:  function mymodule_comment_insert(Drupal\Core\Entity\EntityInterface $entity) {   if ($entity-&gt;bundle() == 'comment_custom' &amp;&amp; $entity-&gt;get('entity_type')-&gt;value == 'node') {      // Below returns empty, because "$entity-&gt;get('entity_id')-&gt;value" is empty.     $node = Node::load($entity-&gt;get('entity_id')-&gt;value);      // No luck with this one too.     $node = \Drupal::routeMatch()-&gt;getParameter('node');    } } It just struck me that Utility Companies world-wide supply domestic users at either 50/60Hz. It could have been selected to be 10 Hz, or 100 Hz ... whatever  Was 50/60 chosen at random? Is there some rationale involved (efficiency, easier to construct/control etc) in restricting domestic supply to either 50/60 Hz?  In other words, if I were designing a power system, why would I pick 50/60 Hz instead of some other frequency? Find $\,\lim_{x\to 1}\frac{\sqrt[n]{x}-1}{\sqrt[m]{x}-1}$ How do I select an object in the 3D viewport? The definite article implying the generic idea of something Dynamically reformatting man pages on terminal dimension changes One common workflow of mine is to open a manual page in a terminal, then another terminal in which to test things. The man page is formatted to the initial dimensions of the first terminal. When I now resize my windows (or have my WM do that for me automatically), there is either a gap to the right of the preformatted page, or lines wrap. At this point I usually q(uit) and !! (run again), which loses my position in the page.  I assume the formatting process is quite CPU intensive, or maybe it stems from ancient times of fixed terminal sizes. The less pager dynamically reacts to terminal resize events, so it should be possible in theory.  I tried perusing man pages, searching the Web, asking on IRC -- the whole lot -- but couldn't come up with anything.   Can I trigger reformatting from within or outside of the man utility? Is there a version of the man utility that resizes the page dynamically?  Is there way to customize some part of the formatting/display process to make it update on SIGWINCH? Why do physicists believe that particles are pointlike? String theory gives physicists reason to believe that particles are 1-dimensional strings because the theory has a purpose - unifying gravity with the gauge theories.   So why is it that it's popular belief that particles are 0-dimensional points? Was there ever a proposed theory of them being like this? And why?   What reason do physicists have to believe that particles are 0-dimensional points as opposed to 1-dimensional strings? How to get time difference in minutes in PHP "Requires 50 reputation" to comment on deleted posts A few years ago Umber Ferrule wrote that the toolbars in the taskbar are defined in   HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams.   This looks very plausible but cannot be the entire story.  Deleting this key will in no way affect the taskbar and on rebooting the system the key magically reappears.  Why do I want to know?  Simple.  I would like to export the key to a reg. file as a convenient backup. I am working on an iGoogle-like application. Content from other applications (on other domains) is shown using iframes.   How do I resize the iframes to fit the height of the iframes' content?  I've tried to decipher the javascript Google uses but it's obfuscated, and searching the web has been fruitless so far.  Update: Please note that content is loaded from other domains, so the  applies. Do tenses in a time clause never back-shift in reported speech? Do tenses in a time clause never back-shift in reported speech?  For example, does      "I went to Italy when I finished school."    become      She said she had gone to Spain when she finished school.   -or-   She said she had gone to Spain when she had finished school.   and does      "I will go to Italy when I finish school."    become     She said she would go to Italy when she finishes school.   -or-   She said she would go to Italy when she finished school. A piecewise $C^1$ curve has Jordan measure zero. $\newcommand{\Reals}{\mathbb{R}}\gamma:[0,1]\to \Reals^2$ is an injective parametrization of a curve $\Gamma$, which is piecewise $C^1$ and the length of the curve is $L(\Gamma_k)&lt;\infty$.   1.1.: Show that for every $n\in N$ there is a decomposition $0=t_0&lt;t_1&lt; \dots &lt;t_n=1$ of $[0,1]$ so that $L(\Gamma_k) = \frac{L}{n}$ for $k=1,\dots ,n$ and $\Gamma_k=\operatorname{Im}(\gamma_k)$, $\gamma_k=\gamma|_{[t_{k-1},t_k]}$.   1.2.: Show that you can cover $\Gamma$ with a system of spheres of radius $\frac{L}{n}$.   1.3.: Use 1.2. and 1.3. to show that $\Gamma$ has Jordan measure zero.   I wasn't there when they discussed when a function has Jordan measure zero  and how those things correlate with this exercise so if someone could give me some hints that would be great. What does $b_i\mid b_{i+1}$ mean in this context? In the computational topology literature, the reduction algorithm for computing the Smith normal form of a boundary matrix uses the notation $b_j &gt; 1 \: \text{ and }\: b_j\mid b_{j+1}$ in the context of the diagonal elements of the Smith matrix. Can anyone give me an idea for what it means?