Learn to use jQuery shorthand and extended method

The extended method of writing jQuery

  The shorthand method of writing jQuery

  It has been so many times that I could not find the jQuery shorthand for myself. So, in order to settle this once and for all, I am going to post it in my own blog so that whenever

How to switch between Activities in Android

To switch Menus/Activities in Android App

I called this function in XML file as android:onClick=”backToMainMenu” in the attributes of button. The function must be public and have only one attribute i.e. “View view” You can call “i” whatever you wish. “PreviousMenuClassName” is the name of the Activity where you want to go after clicking the

Android: Want camera in your app?

So why not use the camera that already exists in your Android Phone! First put the following in AndroidManifest.xml before the <application…></application> tag

Then go to the MainActivity class or wherever you want to call “Camera opening function”. Add the following function:

Here, startCamera is a function called when a button is pressed.

Knoppix touchpad click workaround

Problem: I can’t click with my touchpad in Knoppix. I can use USB/bluetooth mouse normally but the Laptop’s touchpad can’t be tapped to click. Solution: Go to terminal and enter the following knoppix@Microknoppix:~$ synclient Tapbutton1=1 Now try closing the terminal by tapping the [X] in the terminal window and it will work. Note: This only works for

Installing WINE in knoppix (CD and DVD)

Wine in Knoppix CD version Type the following in Terminal

It will download and install wine along with its required repositories. Afterwards, you can install Wine by typing sudo apt-get install wine1.5.

Afterwards, if you with to install a Windows program in Knoppix, then simply copy the setup on the desktop (makes it easy) and

Sublime Text default theme for Netbeans IDE

I like the Sublime Text theme because it is easy to look at and everything looks readable. This is a must-have theme for Netbeans. It looks exactly like Sublime text and you sill keep all the features of Netbeans. The installation of this theme is very simple. Link: http://plugins.netbeans.org/plugin/51424/sublime-theme Click Options. Click Fonts & Colors. At