Frist, add the db connector driver .jar to the folder ...tomcat7/lib
Then, add the following code before DriverManager.getConnection(...);
Class.forName("com.mysql.jdbc.Driver");
IT's done!
Friday, February 28, 2014
Thursday, February 27, 2014
Change the computer resolution Ubuntu
[this process was accomplished using Ubuntu 12.04 LTS]
Commands:
xrandr // get the currently display modes
xrandr --output LVDS1 --scale XxX // scale the image
xrandr --output LVDS1 --panning 1640x922 // change the resolution output
I used this sentence:
xrandr --output LVDS1 --scale 1.2x1.2 --panning 1640x922
xrandr --output LVDS1 --scale 1x1 --panning 1366x768
Commands:
xrandr // get the currently display modes
xrandr --output LVDS1 --scale XxX // scale the image
xrandr --output LVDS1 --panning 1640x922 // change the resolution output
I used this sentence:
xrandr --output LVDS1 --scale 1.2x1.2 --panning 1640x922
xrandr --output LVDS1 --scale 1x1 --panning 1366x768
Thursday, February 20, 2014
How to install Lamp/Xampp on Ubuntu (php, mysql, apache server)
Newer:
http://www.tecmint.com/ubuntu-14-04-server-installation-guide-and-lamp-setup/
, starting from step 31
Older:
https://help.ubuntu.com/community/ApacheMySQLPHP
how to install phpmyadmin after that:
sudo apt-get install phpmyadmin
If you have problems accessing phpmyadmin:
http://askubuntu.com/questions/19127/how-to-access-phpmyadmin-after-installation
http://www.tecmint.com/ubuntu-14-04-server-installation-guide-and-lamp-setup/
, starting from step 31
Older:
https://help.ubuntu.com/community/ApacheMySQLPHP
how to install phpmyadmin after that:
sudo apt-get install phpmyadmin
If you have problems accessing phpmyadmin:
http://askubuntu.com/questions/19127/how-to-access-phpmyadmin-after-installation
Tuesday, February 11, 2014
Wednesday, January 8, 2014
How to reload printer cartridge?
Open a hole at the top of the cartridge
Load 2ml of ink into a syringe.
Insert the syringe into the cartridge foam.
Slowly press the syringe to transfer the ink to the cartridge
Then, use a toilet paper to blow the hole of the cartridge ( the toilet paper is useful to no dirty your mouth) till the ink start to get out of the cartridge.
Cover the hole of the catridge.
It's ready!
Load 2ml of ink into a syringe.
Insert the syringe into the cartridge foam.
Slowly press the syringe to transfer the ink to the cartridge
Then, use a toilet paper to blow the hole of the cartridge ( the toilet paper is useful to no dirty your mouth) till the ink start to get out of the cartridge.
Cover the hole of the catridge.
It's ready!
Tuesday, December 24, 2013
How to install Tomcat7
[this process was accomplished using Ubuntu 12.04 LTS, Tomcat 7 and Eclipse Standard Keplerr 4.3]
Follow this tutorial (from step 1 to 9):
http://gridlab.dimes.unical.it/lackovic/eclipse-tomcat-ubuntu-jersey/
Notes for the above tutorial:
Download and install eclipse manually, from:
http://www.eclipse.org/downloads/packages/eclipse-standard-43/keplerr
Before starting up the tomcat7 server:
sudo mkdir /usr/share/tomcat7/logs
Before shutting down the tomcat7 server:
sudo mkdir /usr/share/tomcat7/conf
sudo cp /etc/tomcat7/server.xml to /usr/share/tomcat7/conf
Before creating a "Dynamic Web Project", run:
cd /usr/share/tomcat7
sudo ln -s /var/lib/tomcat7/conf conf
sudo ln -s /etc/tomcat7/policy.d/03catalina.policy conf/catalina.policy
sudo chmod -R 777 /usr/share/tomcat7/conf
If you try to add the Tomcat Server v7.0, and the server name doesn't appear:
Close Eclipse
cd ~/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/
rm org.eclipse.jst.server.tomcat.core.prefs
rm org.eclipse.wst.server.core.prefs
Restart Eclipse
Then, to configure a servlet, follow this tutorial:
http://www.srccodes.com/p/article/3/Tomcat-Hello-World-Servlet-using-Eclipse-IDE
Follow this tutorial (from step 1 to 9):
http://gridlab.dimes.unical.it/lackovic/eclipse-tomcat-ubuntu-jersey/
Notes for the above tutorial:
Download and install eclipse manually, from:
http://www.eclipse.org/downloads/packages/eclipse-standard-43/keplerr
Before starting up the tomcat7 server:
sudo mkdir /usr/share/tomcat7/logs
Before shutting down the tomcat7 server:
sudo mkdir /usr/share/tomcat7/conf
sudo cp /etc/tomcat7/server.xml to /usr/share/tomcat7/conf
Before creating a "Dynamic Web Project", run:
cd /usr/share/tomcat7
sudo ln -s /var/lib/tomcat7/conf conf
sudo ln -s /etc/tomcat7/policy.d/03catalina.policy conf/catalina.policy
sudo chmod -R 777 /usr/share/tomcat7/conf
If you try to add the Tomcat Server v7.0, and the server name doesn't appear:
Close Eclipse
cd ~/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/
rm org.eclipse.jst.server.tomcat.core.prefs
rm org.eclipse.wst.server.core.prefs
Restart Eclipse
Then, to configure a servlet, follow this tutorial:
http://www.srccodes.com/p/article/3/Tomcat-Hello-World-Servlet-using-Eclipse-IDE
Wednesday, December 18, 2013
How to burn / create a dvd video on Ubuntu
[this process was accomplished using Ubuntu 12.04 LTS]
I just used a program, called "Devede". To install:
sudo apt-get install devede
I just used a program, called "Devede". To install:
sudo apt-get install devede
Subscribe to:
Posts (Atom)