Tuesday, May 22, 2012
Some people were asking how they can enable assertions in Netbeans.Here is the simple answer.
In the command line execution you can add the argument -ea (enable assertions) to the run command like : java -ea myApp.java
Right click on your project name and select properties,
Click Run in the leftside panel
Then, in the right, write -ea in the input box beside VM Options, Then you are done.
This is the same way you can add any runtime parameters to netbeans
Friday, May 13, 2011
sudo /etc/init.d/tomcat6 start
sudo /etc/init.d/tomcat6 stop
sudo /etc/init.d/tomcat6 restart
sudo /etc/init.d/tomcat6 status
if you are running multiple web services, you may be in need to change the tomcat port (default 8080) to another UN-USED port number.
This can be done by editing the /etc/tomcat6/server.xml
Thursday, May 12, 2011
simply issue the following command from the terminal( Linux) or cmd (windows):VBoxManage clonevdi pathOfMyFirstHD.vdi pathOfMyCloneHd.vdi
Wednesday, May 4, 2011
Issue this command and you will find "Open in terminal" option appears in the shotcut menu while you are inside folders and write click in empty space.
This will open that path directly in terminal.
sudo apt-get install nautilus-open-terminal
just issue the following 2 commands as a root and accept any upcoming messages (click tab to move between options )
sudo apt-get install ttf-mscorefonts-installer
Accept some license issues and so, just by clicking Ok to the popup dialogues
you will got this message when you done
All done, no errors.
All fonts downloaded and installed.
Updating fontconfig cache for /usr/share/fonts/truetype/msttcorefonts