Skip to main content

Posts

Install Nvidia Driver in Ubuntu

Nvidia will be restricted in most ubuntu Versions. This is also a hurdle for people who like Desktop Effects. Installing Nvidia is not a big task Just requires some series of steps to do. Procedure: 1. Download the required driver from Nvidia website. Due to Nvidia's UDA , you cant get drivers exactly for your Video card. 2. Ctrl + Alt + F1. 3. Execute sudo /etc/init.d/gdm stop to terminate X-Server. 4. You will be dropped to a non-graphic console. 5. Login to the console and navigate to the Folder where you downloaded the Nvidia Driver. 6. Type sh .run 7. It will guide you to an interactive installation process. 8. In some cases, the installer will opt for compiling a version for your device when it fails to find a kernel module. Accept the offer in such case. 9. After the installation is complete, reboot your pc with sudo reboot .

Launching Ant Inside Java Program

Most of the time, we need to embed Ant in a java program. So if you need to call Ant task inside Java program, this piece of code will do it. Required Jars: Ant.jar Ant-Launcher.jar tools.jar * you can get the jar file by just using the class org.apache.tools.ant.launch.Launche through this Jar finder Website Source Code: import org.apache.tools.ant.launch.Launcher; public class LaunchAnt { public static void main(String args[]) { String[] parameters = new String[2]; parameters[0]="-buildfile"; parameters[1] = "build.xml"; Launcher.main(parameters); } } Note: tools.jar will be available at the location C:\ProgramFiles\ - Windows usr/lib/jvm/ - Linux Install Java in Linux

Installing Java in Ubuntu

Installing Java in Ubuntu is just a piece of Cake. You need not visit any Website to download some file and install. Just follow the procedure to do Complete it. 1. Connect to internet. 2. Open Terminal Application -> Accessories -> Terminal (or) alt+f2 and type gnome-terminal and press Enter 3. Execute sudo apt-get update 4. Execute sudo apt-get install sun-java6-sdk 5. Java will be installed. 6. .Open terminal and type java --version to confirm java installation.

Get Jar Files

Jar files are the base for developers. The most irritating thing for a developer is " ClassNotFoundException " and " NoClassDefFoundExcpetion ". The problem finally has a solution here. Visit the Site below and download your jar. Just mention the class name , that is enough for their engine. Example: Enter the search in this format, and you will be given your required jar. org.apache.maven. or org/apache/maven/ FIND JAR

Nokia 5220 Profile Bug

This is not new. I already found some bugs in Nokia 5220 and posted it in my Blog. Unfortunately , i found a new bug today. Took my mobile, gone to profile menu. There i had two custom profiles. One of them i named it as Mad Hair Silence . The other was defaulted to My Style 2. Just had a thought to customize it.Opened the profile. Instead of Selecting, personalize i selected Timed . I should have come back at once. The result , the phone got restarted. i thought it was a one time problem, so i tried again. OOPPS!!! It is a bug. Hail Nokia 5220 :(

Firefox important shortcuts

Dont drag the mouse all the time when browsing.Delegate some work to your keyboard to make your work more easy. Some handy shortcuts to remember. 1. Ctrl + Enter = Adds .com extension ( Example: Type google and press Ctrl + Enter, URL becomes www.google.com) 2. Shift + Enter = Adds .net extension ( Example: Type google and press Shift + Enter, URL becomes www.google.net) 3. Ctrl +Shift + Enter = Adds .org extension ( Example: Type google and press Ctrl + Shift + Enter, URL becomes www.google.org) 4. Ctrl +T - Opens new Tab 5. Ctrl + N - Opens new Window 6. Ctrl + D - Bookmark the current page. 7. Ctrl +W - Closes Current Tab 8. Ctrl + Tab - Cycle Tabs 9. Ctrl+Shift+Tab - Cycle Tabs in Reverse Order. 10. Ctrl + S = Save Webpage. Enjoy!! Mouse free browsing

Remove dark spots in the face

Dark spots are face spoilers. Even being very protective, sometime it goes out of our hands. Dark spots in dark skin is not a big concern. But if you look fair and you have dark spots, that is really a beauty screen. Stop worrying. Here come the remedy. Take some Potato(Raw)Grind it well and extract the juice.Add a little amount of lemon juice in it to make it a paste like thing. Now apply it like a face pack and wash after it dries. Apply it regularly and see your dark spots vanish in no time.