I've installed the LAMP stack on my Ubuntu 14.04 laptop using the command:  sudo apt-get install apache2   I went to localhost and it shows the typical tree (Index of ...  in my case the tree is empty).  So I type at the command line sudo service apache2 start  After that I create a hello world php file, called example.php  And then I put that file inside var/www folder (to getto that folder I go to files and then to system, and then to var folder, and then to www folder).  And finally I open my browser and type localhost/example.php  The file appears as not found.  Note: From the console I've done this also: sudo chmod -R 755 var/www  I've also checked www folder perms and anybody has access files and I have "create and delete files" permission.  What should I do? The files are there but localhost show an empty list and Any file is "not found" when I try to acess it from the browser.
I recently installed Ubuntu 14.04, then I installed lamp-server and placed my webpages in /var/www directory, but when I opened localhost in the browser there was nothing. I think that happened because Zend updated Apache.  Whatever the reason may be, I want to know where to keep my php files so that I can access them from my browser.
This was posted on facebook and people are saying it is incorrect, it should be: "...as you and I"   Which is correct? Check the uniform convergence of series of functions Check that given series converges uniformly for $x\in(-\pi,\pi)$ or not  1) $\sum_{n=1}^{\infty} (\frac{x}{n})^n$  2) $\sum_{n=1}^{\infty}\frac{1}{((x+\pi)n)^2}$  first series is power series so I find the radius of convergence that comes $R=e$ which is inside the given set so I am not able to give the final conclusion. after this I were thinking to apply $M_n$ test , but I am not able to find $M_n$. Please help to solve this problem. XPS 15 stuck on 800MHz I'm running Ubuntu 16.04 with CPU: i7-6700.  Even with one of the cores sitting on 100% utilisation cpufreq-info reports.  ... analyzing CPU 7:   driver: intel_pstate   CPUs which run at the same hardware frequency: 7   CPUs which need to have their frequency coordinated by software: 7   maximum transition latency: 0.97 ms.   hardware limits: 800 MHz - 3.50 GHz   available cpufreq governors: performance, powersave   current policy: frequency should be within 800 MHz and 3.50 GHz.                   The governor "performance" may decide which speed to use                   within this range.   current CPU frequency is 800 MHz.   Each CPU shows 800 MHz.  How do I get my CPU frequency to increase under load? How to Silence the read command The read command is useful when reading data from the user . I am trying to read a number from 1-5 from the user. How can I make it so the input of the user does not show up in the log I would like to close some view windows that I opened accidentally.  See the image below:    Edit: another note: I tried searching for the solution, but only found things like "Join Area", which don't seem to work in this situation. Why is it differential equations exist on an interval instead of a domain? I understand a domain is the set of input elements a function is defined for (and can have breaks in it e.g. union of 2 sets) and a interval is a continuous range of real numbers. Why do we speak of the solution to a differential equation over an interval instead of an domain? If the solution to an ODE is just a function, and we normally speak of functions as having a domain, then why wouldn't we use domain? Is there an easy way to 'break' the axis in a pgfplots environment? What I'm talking about is something like     Any minimal plot will do as an example...for example  \documentclass{minimal}   \usepackage{tikz} \usepackage{pgfplots}  \begin{document} \begin{tikzpicture} \begin{axis}[ymin=0, ymax=80] \addplot {x*0};  \addplot {x^2+50}; \end{axis} \end{tikzpicture}  \end{document}   For example, in the below plot,    I want to break the axis from around y = 10 to y = 40.   Any ideas? Does PGF have this functionality? A search for `break' in the manual doesn't yield anything. Installing PHP 5.3 in Ubuntu 14.04 I have heard that two permutations are conjugate if they have the same cyclic structure. Is there an intuitive way to understand why this is? I suggest that when a post is migrated from one site to another, that the question vote score get reset to zero (or perhaps only a negative vote score is reset to zero). Often people will downvote a question when the only thing that's "wrong" with it is that it's posted on the incorrect site. After migration, those downvotes hang around as a negative score and may unfairly bias the treatment of the question. I have a webpage that implements a set of tabs each showing different content. The tab clicks do not refresh the page but hide/unhide contents at the client side.  Now there is a requirement to change the page title according to the tab selected on the page ( for SEO reasons ). Is this possible? Can someone suggest a solution to dynamically alter the page title via javascript without reloading the page? Beamer continue block in next column Replace arbitrary characters in the middle of an IP address string with sed I need to find and replace either one or two numerical characters in strings in a file.  The strings are IP addresses of the form:   10.xx.y.z    Where xx can be one or two characters.    I want to replace the xx with the single character 0, so I have  10.0.y.z    preserving the values of y and z.   The string may appear multiple times in the file.  What is the sed invocation to do this? apt: how to be sure that a specific package gets installed/updated from specific repository and not from the default one? Why does instanceof return false for some literals? &quot;foo&quot; instanceof String //=&gt; false &quot;foo&quot; instanceof Object //=&gt; false  true instanceof Boolean //=&gt; false true instanceof Object //=&gt; false false instanceof Boolean //=&gt; false false instanceof Object //=&gt; false  12.21 instanceof Number //=&gt; false /foo/ instanceof RegExp //=&gt; true  // the tests against Object really don't make sense  Array literals and Object literals match... [0,1] instanceof Array //=&gt; true {0:1} instanceof Object //=&gt; true  Why don't all of them? Or, why don't they all not? And, what are they an instance of, then? It's the same in FF3, IE7, Opera, and Chrome. So, at least it's consistent. $A \cup B$ and $A \cap B$ connected $\implies A$ and $B$ are connected Let $X$ be a topological space. Let $A$ and $B$ be two subsets of $X$ such that: $A$ and $B$ are closed, $A \cup B$ is connected, $A \cap B$ is connected     Prove that $A$ and $B$ are connected.   Thoughts:  Suppose that $A$ is disconnected. Since $A$ is closed, there are two non-empty, disjoint, closed sets $E$ and $F$ in $X$ such that $A = E \cup F$. Then I attempted many things but all were not really useful.  Please help. Thanks. Let $G$ be a group. Show that a nonempty subset $H$ is a subgroup of $G$ if any only if $ab^{-1} \in H $ for any $a,b \in H$.  The forward direction is quite easy. Suppose $H$ is a subgroup. Then by closure, $ab \in H$ for any $a,b \in H$. Every element has an inverse. Hence, if $b \in H $, then $b^{-1} \in H$. Hence, by closure again, $ab^{-1} \in H$.   Backward direction, suppose $ab^{-1} \in H $ for any $a,b \in H$. Let $a=b$. Then we have $bb^{-1}=1_H\in H$. Let $a=1_H$ , we have $1_Hb^{-1}=b^{-1} \in H$. I don't know how to show closure.  Reference: Fraleigh p. 58  Question 5.45 in A First Course in Abstract Algebra How do you do load testing and capacity planning for databases? This is a  about capacity planning for databases. Related:      I'm looking to create a canonical question of tools and methods of capacity planning for databases. This is intended to be a canonical question. Obviously, the general workflow is:  Put your scenario in place Add monitoring Add traffic Evaluate results Remediate based on results Rinse, repeat until reasonably happy  Please feel free to describe different tools and techniques for different web-servers, frameworks, etc., as well as best-practices. Short Question:  Why can we manipulate a read-only file in Vim using : + w + q + ! even without being an administrator?  Long Question:  I have a text file (myFile.txt) which is read-only for everyone:  navid@navid-ThinkPad-T530:~/ubuntuTest$ ls -l myFile.txt  -r--r--r-- 1 navid navid 26 Aug 22 21:21 myFile.txt   I can open it with Vim without having admin privileges:  navid@navid-ThinkPad-T530:~/ubuntuTest$ vi myFile.txt    I modify it and press: Esc + : + w + q + Enter and I see this error message:  E45: 'readonly' option is set (add ! to override)   So far, everything makes sense.  But when I press: Esc + : + w + q + ! + Enter, Vim saves the changes.  I'm using Ubuntu 16.04 and VIM 7.4. Add a UIButton as a subview to a UITabBar