Recently I installed Apache Tomcat Server to work with JavaServer Pages. I was trying to identify the localhost directory of the server (the directory similar to /var/www in Apache PHP server).
Later I learned that it is very easy to set our own localhost project directory.
Here are the steps:
Go to /etc/tomcat6/Catalina/localhost and create a .xml file with the name of your webapp.
Suppose your webapp is testwebapp, create a file named testwebapp.xml
Now add the following lines to the XML file.
<Context path=“/testwebapp” docBase=“path to the directory where source files are located” />
Now open the web browser and type http://localhost:8080/testwebapp to load the index.jsp file (Server restart may be required).
TED (Technology, Entertainment and Design) is a set of conferences, that include talks from world’s most inspired thinkers.
TED was founded by Richard Saul Wurman and Harry Marks in 1984 and the conferences has been held annually since 1990. At present the events are hosted by Chris Anderson and owned by his non-profit organization, the Sapling Foundation.
Much effort have been put forward to make TED talks available for millions across the globe.
TED talks are available online on the TED website and other video sharing websites, under Attribution-NonCommercial-NoDerivs Creative Commons license.
Recently live streaming of the talks have made possible which led to a notable growth of audience.
The TED Open-Translation Project which aims at translating TED talks has made the talks available in over 40 languages.
TED has proved to be successful in offering knowledge and inspiration from the world’s great thinkers. The ideas presented are really innovative that they may change the world in the future.
Swap space is the area in secondary storage devices which temporarily holds memory pages that are inactive. Swap space is used when the system needs physical memory for active processes and there is insufficient unused physical memory available. In such a case inactive pages in physical memory are moved to the swap space therefore freeing up that physical memory for other uses.
In Ubuntu, the user is prompted to create a swap partition during OS installation. But have you ever felt that the space you have allocated is insufficient?
If yes, it is possible to create a new swap file and add it to the running system so that the total swap space will be increased.
I added 512 MiB of additional swap space to my system, creating a new swap file named NewSwap512.swap in the /mnt directory.
1. Creating a 512 MiB swap file and setting the permissions.
sudo fallocate -l 512m /mnt/NewSwap512.swap
sudo chmod 600 /mnt/NewSwap512.swap
sudo mkswap /mnt/NewSwap512.swap
2. Add it to the running system
sudo swapon /mnt/NewSwap512.swap
That will do, but this additional swap area is temporary
and will be lost after reboot.
To make it permanent, edit /etc/fstab
sudo gedit /etc/fstab
add this line to the end of the file
/mnt/NewSwap512.swap none swap sw 0 0