Sunday, October 9, 2011
Saturday, October 8, 2011
Saturday, September 17, 2011
How to clear the DNS cache for Windows, Mac and Linux
Command for clearing the DNS cache for Windows, Mac and Linux.
The commands need to be run at the command prompt with administrator privileges.
The commands need to be run at the command prompt with administrator privileges.
Windows
ipconfig /flushdns
Mac OSX 10.4 (Tiger)
lookupd -flushcache
Mac OSX 10.5/10.6 (Leopard/Snow Leopard)
dscacheutil -flushcache
Linux (Most Distributions)
sudo /etc/init.d/nscd restart
or
sudo /etc/init.d/networking restart
or
sudo /etc/init.d/networking restart
Thursday, June 30, 2011
How to disable automatic Facebook calendar entries addition on BlackBerry
[caption id="" align="alignnone" caption="BlackBerry Facebook Options"][/caption]
Once you install Facebook application on your BlackBerry, Facebook will invade the BlackBerry calendar. Birthdays and events will be added automatically.
How to disable this annoying feature?
These are the steps needed to disable it:
Please note that you might need to redo all these steps, if you update Facebook app.
By default, Facebook app will automatically update itself. So, don't forget to disable this feature in the Facebook app options.
Hope that helps!
Once you install Facebook application on your BlackBerry, Facebook will invade the BlackBerry calendar. Birthdays and events will be added automatically.
How to disable this annoying feature?
These are the steps needed to disable it:
- Open Facebook app. Under Options, uncheck the sync. calendar and contacts options. Close Facebook app.
- Open Options, Device, Advanced System Settings, Service books. Delete all Facebook related entries.
- Open Options, Device, Advanced System Settings, Default Services. Select the default for calendar, contact list and messaging.
Please note that you might need to redo all these steps, if you update Facebook app.
By default, Facebook app will automatically update itself. So, don't forget to disable this feature in the Facebook app options.
Hope that helps!
BlackBerry typing shortcuts
These are eight BlackBerry typing shortcuts that may help you type faster.
- Insert a period
Press the Space key twice. However, in the email field, this action will insert an at sign (@) or a period (.) - 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. - Turn on Num Lock
Press the Alt key and left Shift key. To turn off, press the left or right Shift key. - Turn on Caps Lock
Press the Alt key and left Shift key. To turn off, press the left or right Shift key. - 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. - Cut highlighted text
Press the Left Shift key or Right Shift key and the Backspace/Delete key. - Copy highlighted text
Press the Alt key and click the trackpad. - Paste text
Press the Left Shift key or Right Shift key and click the trackpad.
Happy typing!
Wednesday, June 29, 2011
Microsoft Office 2010 Service Pack 1 offline installer
Service Pack 1 (SP1) for Microsoft Office 2010 (KB2460049) contains new updates which improve security, performance, and stability.
32-bit (x86) Office 2010 SP1
http://download.microsoft.com/download/4/0/A/40AA58F5-7CC5-4E74-AB51-5D51C7ED5283/officesuite2010sp1-kb2460049-x86-fullfile-en-us.exe
64-bit (x64) Office 2010 SP1
http://download.microsoft.com/download/1/A/8/1A879A5A-EE48-49E7-8831-449A71582173/officesuite2010sp1-kb2460049-x64-fullfile-en-us.exe
32-bit (x86) Office 2010 SP1
http://download.microsoft.com/download/4/0/A/40AA58F5-7CC5-4E74-AB51-5D51C7ED5283/officesuite2010sp1-kb2460049-x86-fullfile-en-us.exe
64-bit (x64) Office 2010 SP1
http://download.microsoft.com/download/1/A/8/1A879A5A-EE48-49E7-8831-449A71582173/officesuite2010sp1-kb2460049-x64-fullfile-en-us.exe
Saturday, January 15, 2011
How to run Java class file on Ubuntu
Let say you compile the following Java codes
However, when you try to run the Java class file using
like you usually did on Windows, it won't run.
As an example,
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:
public class hello {
public static void main(String[] args) {
System.out.println("rizauddin.com");
}
}
using the following command:public static void main(String[] args) {
System.out.println("rizauddin.com");
}
}
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
.
Subscribe to:
Posts
(
Atom
)