Thursday, June 30, 2011

BlackBerry typing shortcuts



These are eight BlackBerry typing shortcuts that may help you type faster.

  1. Insert a period
    Press the Space key twice. However, in the email field, this action will insert an at sign (@) or a period (.)

  2. Type a number
    Press and hold the Alt key and press the number key. In a number field just press a number key, without pressing the Alt key.

  3. Turn on Num Lock
    Press the Alt key and left Shift key. To turn off, press the left or right Shift key.

  4. Turn on Caps Lock
    Press the Alt key and left Shift key. To turn off, press the left or right Shift key.

  5. Highlight text character(s)/line(s)
    Press the Left Shift key or Right Shift key and, on the trackpad.
    Slide your finger up or down on the trackpad to highlight line(s).
    Slide your finger left or right on the trackpad to highlight characters.

  6. Cut highlighted text
    Press the Left Shift key or Right Shift key and the Backspace/Delete key.

  7. Copy highlighted text
    Press the Alt key and click the trackpad.

  8. Paste text
    Press the Left Shift key or Right Shift key and click the trackpad.


Happy typing!

Saturday, January 15, 2011

How to run Java class file on Ubuntu

Let say you compile the following Java codes
public class hello {
    public static void main(String[] args) {
    System.out.println("rizauddin.com");
    }
}
using the following command:
javac hello.java
You will get a class file `hello.class`.

However, when you try to run the Java class file using
java hello

like you usually did on Windows, it won't run.
Exception in thread "main" java.lang.NoClassDefFoundError: hello Caused by: java.lang.ClassNotFoundException: hello at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: hello. Program will exit.
Actually, to run Java class file on Ubuntu, you need to always specify the classpath, using the `-cp` options.

As an example,
java -cp . hello

The `.` means the current working directory. In other words, you are telling Java to look for `hello class` in the same directory that you invoke the `java` command.

You can also add the current directory to the CLASSPATH, like this:
export CLASSPATH=.:$CLASSPATH
If you don't like to do that each time you want to run a Java class file, you can set the CLASSPATH permanently in /etc/environment or in ~/.profile.

Sunday, November 21, 2010

Disable the admin bar in WordPress 3.1

One of the new features in WordPress 3.1 is the Admin Bar. It will automatically on by default.



To disable the admin bar, append the following code into functions.php file.
 <?php  
 /* Disable the Admin Bar. */  
 remove_action( 'init', 'wp_admin_bar_init' );  
 ?>  
The functions.php file is located inside the theme directory. You need to create one, if it does not exists yet.

Friday, November 19, 2010

Adobe Reader XI full standalone installation

Adobe Reader XI (version 11.0.08) is free, and freely distributable software that lets you view and print Portable Document Format (PDF) files.

Click here to download the standalone offline installer.
(http://ardownload.adobe.com/pub/adobe/reader/win/11.x/11.0.08/en_US/AdbeRdr11008_en_US.exe)

Last Edited on August 14, 2014

Saturday, October 2, 2010

Show File Extensions in Windows 7

Windows 7 hides file extensions information by default.

To see the file extension, please follow the following steps.
  1. Click the Start button (or, press the Windows key on keyboard).
  2. Type folder options in the Search Box. Hit Enter.
  3. Choose the View tab. Scroll down until you see the option Hide extensions for known file types.
  4. Uncheck it, and hit OK.


Now you can see file extensions for all your files.