Paul - The Programmer

simple & stupid

Disable windows search

Windows search sucks and can not be uninstalled anyway.

Finally I find the way to disable it completely.

Step 1.  Open Start Menu >> Run, type service.msc

Disable service 'Indexing Service' and 'Windows Search'

Step 2. Unregister windows search dll, Open Start Menu >> Run, type cmd

Type regsvr32 /u "%programfiles%\Windows Desktop Search\wdsShell.dll" and process enter

Now, you have disabled the windows search and get the old xp search back when you type "Win + F". 

The biggest failure of windows search is not its huge resource consuming but it forces its end user to search around the google to find out how to make it not work.

Never fight with user.

I love Hone Kong


Setup Android dev environment on Debian X86_64

The android kenerl compile script require the x86_64 system. So I install the Debian X86_64 port on my dev desktop.

Follow the below steps to setup environment for Android sdk.

1) Install Sun Java SDK 64bit and ia32 JRE.

The 64bit Java is requried by the eclipse and the ia32 JRE is needed for running android sdk tools like android, ddms.

Since the Sun Java SDK is not free software, the contrib, non-free Debian repository are needed in the /etc/apt/source.list

For instance, my source.list is


deb squeeze main contrib non-free
deb-src squeeze main contrib non-free

Install the Java SDK and ia32 JRE with command:


# apt-get update
# apt-get install sun-java6-jdk 
# apt-get install ia32-sun-java6-bin

2) For the convenience of running android sdk tools, the default jre should be ia32 JRE. Update the default JRE setting with Debian fashion:


# sudo update-alternatives --config java

Select the ia32 JRE for your default java.

3) Setup JAVA_HOME in .bashrc with the path to Java 64bit SDK for running ANT. 


export JAVA_HOME=/usr/lib/jvm/java-6-sun

4) Update eclipse.ini to run eclipse with Java 64bit JDK. And the below lines in eclipse.ini





Change the Gnome Commander default editor

The default editor for Gnome Commander is geit. Of cause gedit is good enough, but I prefer to VIM.

The changing of preferred programs in Gnome Commander seems broken somehow. It simply does not work.

Since Gnome is following the standard of handling mime types, we can still update the mime settings to choose the preferred editor.

The preferred applicaiton configuration file is located in ~/.local/share/applications, the file name is defaults.list.

Here is the content of my default.list

[Default Applications]

As you may guess, I open all the html, xml, text, java and python file with GVIM.

The gvim.desktop is the configuration for gvim for what mime types it can handle and its launching command.

Bubble sort algorithm dance

Hey, I really love this show. Great Job. Just Enjoy. laugh