I’ve been a long time eclipse user since 3.0. What has buggered me since that time is the mysterious toolbar – there is no way to turn it off! Since I think around eclipse 3.3 they added an option on the right click menu to “Hide Toolbar”, but that is only temporary. The toolbar creeps right back in on restart!

After some LONG time struggle with the eclipse PDE (Plug-in Development Environment), I finally rolled out this little plug-in that hides the toolbar for me on eclipse start up.
Man, I still cannot believe how much time it took to actually write a simple plug-in like this! Maybe that’s a reason why the eclipse plug-in scene hasn’t seen much advances lately – there’s too darn little resources! I mean, for the most of us, digging through API and classes manually aren’t the most pleasant thing to do.
Please go check out the Google Code project page or use this update site directly:
1
| <a href="http://kizzx2.com/eclipse/hide-toolbar/updates/">http://kizzx2.com/eclipse/hide-toolbar/updates/</a> |
P.S. I probably will write some ecilpse plug-in tutorials later, if I feel like it. So please stay tuned!
Many of us Windows users have experienced the frustrating mysteries – we find our hard-disks shrinking and shrinking after some period of usage. Emptying the recycle bin didn’t solve the mystery, neither did clearing the TEMP folder.
Here I’ll present two amazing, freeware products from Piriform
This program is an excellent clean up utility. As far as I have tested it myself, this is unlike many other products which try to delete as many files as they could to make them sound useful. CCleaner performs safe operations and I haven’t broken my computer with it. On my first time use, it discovered and recovered more than 1GB of my hard disk space!
Another freeware product from the same company. Defraggler is originally intented to use as a defragmentation tool, but it surprisingly served extremely well at discovering large chunk of mysterious files that choke up precious disk space. One unique feature this piece of software has is the ability to defrag individual files. And the Analyzer is blazing fast too – it analyzed my 80GB drive in less than 10 seconds. Then I switched to the File list, and I can immediately sort by file size to find out the biggest files on my disk!

Seasoned users might say this cygwin command accomplishes the same result:
1
| du . 2>/dev/null | sort -nr | less |
But that would probably take 10 minutes instead of 10 seconds!
This is mainly a reference for myself in case I forget how to do it later, as it took me a good deal of time to figure out.
Situation
I want to unit test applications that send emails. Obviously I don’t want to be opening a dozen of real email accounts just to test this thing out. Naturally I would want to install an SMTP/POP3/IMAP server on Windows, and there is one free (open source) option that is quite promising – hMailServer. However, it still involves 2 (quite major) inconveniences for my use case:
- I have to go through the configuration screens to create new users. i.e. if I want to send email to alice@localhost I’d have to create the user account alice manually
- I have to use an email client (like Outlook Express) to connect to the local POP3 server to view the emails. This seems redundant to me, since the files are already stored in my disks, why can’t I just view them?
The Solution
Then I came across exim on cygwin. exim is (as it claims to be) a vast improvement over the good ol’ sendmail. So I gave it a shot – man, that was awesome! I can now direct my application to send to arbitrary address like alice@mail.local, foobar@mail.local and I can view the results immediately in a text file, solving the two problems mentioned above. Here’s what I did:
- Install exim using cygwin installer
- Run
exim-config
- Edit /etc/exim.conf
- Uncomment
primary_hostname and set it to mail.local
- Edit the router
localuser, comment out the line check_local_user (If you don’t know what that means, just search for the line localuser:)
- Edit %WINDIR%\system32\drivers\etc\hosts, add the line
- Finally, reboot the exim service
And there you go! You can now send mail to *@mail.local. To view the mail, go to /var/spool/mail which contains all the mail in text files. A simple tail -f /var/spool/mail/foobar can monitor the mail sent to foobar@mail.local
A simple test to make sure everything’s working:
$ exim -bt foobar@mail.local
foobar@mail.local
router = localuser, transport = local_delivery
# If something is wrong in your config, it would say "Unrouteable address"
# Now let's try sending an email
$ exim -v -odf foobar@mail.local
Hello World!
.
LOG: MAIN
<= Chris@mail.local U=Chris P=local S=296
delivering KEQKED-0002RS-A7
LOG: MAIN
=> foobar <foobar@mail.local> R=localuser T=local_delivery
LOG: MAIN
Completed
# Cool, let's see if it really delivered
$ tail /var/spool/mail/foobar
Received: from Chris by mail.local with local (Exim 4.69)
(envelope-from <Chris@mail.local>)
id KEQKED-0002RS-A7
for foobar@mail.local; Sun, 08 Feb 2009 15:20:39 +0800
Message-Id: <EKEQKED-0002RS-A7@mail.local>
From: Chris <Chris@mail.local>
Date: Sun, 08 Feb 2009 15:20:39 +0800
Hello World
Many criticize Windows as being not user-friendly to power users – you can’t do things the fast way even when you’ve used it for a couple of years. Here’s some tricks I’ve accumulated over the years to make using Windows (hopefully) as swift as a *nix guru.
Why should we use Windows when we want performance and speed? Well, I guess that’s we game players have to live for
Customize your Run dialog

This is undoubtedly the coolest and most powerful trick for Windows power users. To be able to type whatever command you want from the Windows command prompt is like being able to place symbolic links in /usr/local/bin
- Create a directory somewhere convenient. A good place I used is
1
| %HOMEDRIVE%:%HOMEPATH%\Commands |
.
- Now you’ll want to add this directory to your %PATH%. This is done by:
- Press Win + R to open the Run dialog
- Enter
- Append your
path to %PATH% in Advanced -> Environment Variables
- Now you can place shortcuts (*.lnk) and even BAT files there and they will be run when you type the command in the Run dialog!
Useful commands for the Run dialog
Talking about the Run dialog, there’s a handful of useful commands you may want to memorize to speed things up a little bit:
- notepad
- calc
- Calculator
- explorer
- Opens Windows Explorer on path
- control netconnections
- Opens the Network Connections control panel
- sndvol / sndvol32
- Opens the volume control panel
- sysdm.cpl
- Opens System Properties
- dxdiag
- Opens DirectX Diagnostic
- msinfo32
- Opens System Information
- msnmsgr
- Opens Windows Live Messenger
Enhance your clipboard with ClipX
The clipboard is designed decades ago. Given today’s computers’ memory size, there’s no reason to justify why we can only hold one value in the clipboard. Enhance it with this freeware ClipX. You can store like 25 previous clipboard entries (including pictures, files) and recall them with one key combination (default: Shift-Ctrl-V). Very handy for system admins and programmers

Opening Task Manager directly on Vista
Microsoft changed the popular key combination Alt-Ctrl-Del to open a screen with a list of not very useful options instead of opening the task manager. Here’s the new key combination to open the Task Manager directly:
Locking your computer from the command prompt
There are various reasons you might want to do this instead of Win + L, such as from within a BAT script. Anyway here’s how to do it
1
| rundll32 user32.dll, LockWorkStation |
Putting files to the Recycle Bin from the command line
Oops, there’s no tricks to it. Download my recycle utility.