Quick VHD Creation

There is tool out that will create your VHD file in seconds. It is called VHD tool and does that job quite nicely.

Security is little bit compromised by using it since it does not fill that file with zeroes but it merely allocates space (that’s where speed comes from). Because of that, data on your parent disk will be visible inside of virtualized environment.

I would tend to avoid it in production environment but for testing it surelly makes sence.

What to Do With Exception

No matter how good your programming is, there will be bugs. Once exception is thrown (hopefully your have centralized exception handling) you need to do something with it. Here is what I found that works best for me.

1. Trace it. In cases where other steps fail, this will at least give you basic information although you will need to use some tool like DebugView in order to see it. Think of it like fail-safe mechanism.

2. Write report to file. I just create file named ErrorReport.something.txt in temporary folder. Here I collect all information that is available to me. Time, message, stack trace, whatever you can think of. This same report will be used in next step so it is not waste of time.

3. Show message to user. Don’t go into details, just be nice and apologetic.

4. Send collected information. Be sure that user knows what you will do. They will not take kindly if their firewall detects data going out and they haven’t authorized it. If sending is successful, you may delete report file from step 2.

5. Exit application. Be sure to use exit code different than zero for this. Console guys can get dangerous if you don’t.

HTC S740 Hard Reset

Illustration

In HTC S740 manual there is procedure for hard reset that uses program called Clear Storage in order to reinitialize phone. That will not help you if you forgot password or your phone cannot boot.

In order to perform real hard reset on this device, you need to connect your phone to power (via mini-USB cable) and turn it off. Once it is off, press D-Pad Center key together with Volume Down key. While holding those two, shortly press power button. You should get white screen with instructions. You can release those two keys and press Volume Up if you are sure that complete deletion is fine with you. Any other key will cancel process and continue with boot.

Please notice that if you complete procedure ALL your data stored on mobile phone is gone and there is no way to get it back.

[2009-06-30: FAQ entry was added on HTC support site with this procedure described.]

QText 2.00

New QText is finally done.

For those who are not familiar with it, it is small utility that sits in your tray, comes when called, allows you to write some notes, and goes away. All that with auto save feature that ensures you don’t lose one bit.

More interesting changes for 2.00 include:

  • Changed menu appearance.
  • Added Ctrl+1, Ctrl+2, …, Ctrl+0 shortcuts.
  • All code is in one .exe.
  • Support for RTF.
  • Auto update in case of direct file system changes.
  • Support for high DPI.
  • Full support for 64-bit systems.

You can download it here.