GhostDoc Tutorial

Earlier I have introduced this excellent comment auto generation tool – GhostDoc. Now you can follow this instructions to get GhostDoc working in just 5 minutes.

  1. Download GhostDoc and install
  2. GhostDoc is a Visual Studio plugin, so after Visual Studio is launched, you’d need to assign a hotkey for automatic comments generation, or just  click skip to use default hotkey Ctrl + Shift + D Continue reading

Manage Hyper-V remotely from windows 7

Once Hyper-V role is enabled on windows server 2008/R2, Hyper-V manager will be installed automatically. However, you don’t need to log on to Hyper-V host server to use Hyper-V manager. Instead, you can manage Hyper-V machines remotely from you Win7 desktop.

To manage Hyper-V machines remotely from Win 7, following these steps:

  1. Install Remote Server Administration Tools for Windows 7, download here: http://www.microsoft.com/downloads/details.aspx?FamilyID=7d2f6ad7-656b-4313-a005-4e344e43997d&displaylang=en
  2. Go to Start > Control panel Under Programs, click on Get programs
  3. On the left panel, click on Turn Windows feature on or off
  4. On the feature list, expand Remote Server Administration roles > Role Administration Tools, mark Hyper-V Tools, then click OK
  5. Go to Administrative tools > Hyper-V Manager, launch it
  6. Now you can manage Hyper-V virtual machines from your windows 7 box. Continue reading

Find Dead Code

Dead code means block of code that is not reachable in application. They can cause noisy in code debugging and confuse developers. Sometimes I might spend a few hours to figure out why a breakpoint never hit.

Most of code defect is result of old function no longer used and referenced. Remove them will prevent developers from wasting time investigating wrong code. Thanks to FxCop in visual studio, now finding dead code is pretty straight forward. Continue reading

Forget WordPress Admin Password

After setup local WordPress environment, WordPress will generate a password for admin logon. The password is so strong that forget the password can easily happen. The easiest way to get admin password back is reset it again in database.

Here is the SQL command that will do it:

UPDATE ‘wp_users’ SET ‘user_pass’ = MD5(‘PASSWORD‘) WHERE ‘user_login’ =’admin’ LIMIT 1;

Note you need update red PASSWORD to the real password you want reset.

After the command succeeds, you will be able to login to WordPress with new password.

Install Local WordPress Environment on Windows

WordPress is one of most popular blog applications. This application is very easy to use however setup a local environment for theme or plugin development on windows system is not that easy for bloggers. In this post, I will walk thru you how to setup local WordPress environment using Microsoft Web Platform Installer 2.0 with just a few clicks. (I am using 64bit Windows 7 in this tutorial but same steps work windows server 2008 as well)

Continue reading

Uncompress MSI File

Sometimes I need to unzip MSI file to view its content without actual installing it. I used to use a 3rd party tool named 7zip to extract MSI. Today I discover there is much easier way to do this with windows build in tool msiexec.exe

The use msiexec to uncompress MSI file, you need to open a command line and run type following:

msiexec /a <YourPackageFullPath> TARGETDIR=<ExtractedMSIFullPath>

Replace <YourPackageFullPath> with full path of MSI file, <ExtractedMSIFullPath> with the target folder you want MSI files to be extracted to.

For example, to extract c:\setup.msi, run following command:

msiexec /a c:\setup.msi TARGETDIR=c:\ExtractedMSI

The uncompressed setup.msi and all files along with fold structures will be extracted into  c:\ExtractedMSI

Note: For Vista/Win7 with UAC turn on, the above command needs to be run from elevated command prompt.

Install Windows Live Messenger on 64bit Windows XP and Server 2003

Windows Live Messenger cannot be installed on Windows Server 2003 and Windows XP Professional x64 Edition. It seems that these OS are blocked in Windows Live Messenger setup.

Eventually I found this blog Install Windows Live Messenger 2009 from .msi files. The instruction on this page works well on windows server 2003. It also works on other unsupported OS such as x64 windows XP and windows server 2008

OneNote Online Videos and How-To articles

Video Demos

What is OneNote?
Get an up-close look at the benefits of using OneNote and see why electronic notes are better than paper.

Set up a OneNote notebook
See how easy it is to get started with OneNote and why you won’t want to go back to paper notes.

Keep it together with OneNote
Learn why OneNote is perfect for research projects and other types of information gathering.

Organize, search, and find information in OneNote
If it’s in your notebook, OneNote can find it – even if you haven’t spent any time organizing your notes.

See how Jeff Raikes uses OneNote 2007
A video of Microsoft Business Division President using OneNote 2007

Click here to view other OneNote video demos.

Help & How-To Articles

Find your way around OneNote 2007
Take a quick visual tour of the OneNote interface and read tips on maximizing your workspace.

Get started with OneNote 2007
Make the most out of OneNote right from the start with this useful roadmap to online resources.

See how Jeff Raikes uses OneNote 2007
A great article describing how Jeff Raikes uses OneNote 2007.

Top tips for OneNote 2007
Browse a collection of the most popular OneNote 2007 time savers and shortcuts.

Keyboard shortcuts for OneNote 2007
Look up shortcuts and accelerators for common OneNote tasks in this categorized reference.

Click here to view the OneNote Help home page.

Enabling Virtualization in Your BIOS

For Dell Systems

  1. Restart your machine, and press F2 at boot (or whichever key is necessary) to enter BIOS setup
  2. Under Performance > set Virtualization to ON
  3. Under Performance > set VT for Direct I/O Access to ON
  4. Save & Exit BIOS
  5. Restart computer

For HP Systems

  1. Restart your machine, and press F2 at boot (or whichever key is necessary) to enter BIOS setup
  2. Under OS Security > set Intel Virtualization Technology (VTx) to ON
  3. Under OS Security > set IO Virtualization to ON
  4. Save & Exit BIOS
  5. Restart computer

Find Computer Owner

At times people want to find out who owns a certain machine.

My Network places -> Search Active Directory -> Find: Computers, Enter Computer name: “FOOBAR”, Click “Find Now”, Select Result, Right Click “Manage” -> Local Users and Groups -> Groups -> Administrators -> (Find who is an admin on the box).

Another method is to open dsa.msc in MMC and Select “Advanced” View, then lookup computers and look at the Security tab.

The tool, srvinfo.exe, is also useful for learning info about a machine.