Developer OneNote

Emma's OneNote for Microsoft Windows, Office and Programming

Category: Tutorial

Manual Uninstall Windows Desktop Search

1 June, 2010 | Category: Tutorial

Here is how to uninstall Windows Desktop Search (WDS) as it is not visible in add-remove programs

Manual uninstall Windows Desktop Search 3

  1. Click on the Start Menu, then Run.
  2. Type cmd in the box and click OK. This will bring up the command line.
  3. Type the following and press enter

    %windir%\$NtUninstallKB917013$\spuninst\spuninst.exe /q /promptrestart

  4. A box will now appear to confirm the WDS has been uninstalled and asks you to restart. Once you have restarted the PC WDS will be gone.

Read more »

Remove Earlier Version of Windows boot option

5 May, 2010 | Category: Tutorial

After I upgrade from Windows XP to Windows 7, I see two options at boot up, one is to logon to Earlier Version of Windows, the other is Windows 7. The default option is boot into Windows 7.

There is a workaround to remove the Earlier Version of Windows option from the boot up screen so that it will boot straight into Windows 7 instead of asking users to choose which OS or waiting for 30 minutes and boot into Windows 7.

Read more »

How to Install Hyper-V

30 April, 2010 | Category: Tutorial

What is Hyper-V

Hyper-V is Microsoft’s supported form of machine virtualization.  It allows you to run any number of guest machines on your host machine.  Each guest thinks it’s running on its own hardware, and is unaware that it’s just a simulation.

Hyper-V also provides an easy way to snapshot and rollback virtual machine to an old saved stage.

Hyper Installation Prerequisites

  • Operation System – Hyper-V is only available in 64 bit versions of Windows Server 2008 and Windows Server 2008 R2
  • Hardware – Processors should include a virtualization option. For example, Intel Virtualization Technology (Intel VT) or AMD Virtualization (AMD-V).

If you are not sure if your computer processor supports hardware virtualization, you can checkout Microsoft’s Hardware-Assisted Virtualization Detection Tool. The tool also checks if virtualization is enabled on the processor.

Read more »

CopySourceAsHtml for Visual Studio 2010

27 April, 2010 | Category: Development, Productivity Tools, Tips and Tricks, Tutorial

CopySourceAsHtml is an add-in for Microsoft Visual Studio 2008 that allows you be able to quickly get your code as HTML from Visual Studio, just like being able to save it as a HTML file from the Save As dialog. It’s very helpful if you frequently post code to blog or send code in email.

I recently switched to Visual Studio 2010 and noticed this plug in is not ready for Visual Studio 2010 yet. Here is how you can get it work for Visual Studio before CopySourceAsHtml owner releases an official update to support Visual Studio 2010.

Read more »

WordPress Keyword Description

24 April, 2010 | Category: Tutorial

In most of WordPress themes, there is not meta description and meta keywords handle. This result every page of site has a empty description and keyword in page header, which is not good from search engine’s perspective.

This can be workaround by installing plug All in One SEO. But for those who concern plugin will slow down their sites, here is a simple hack, all needs to do here is just adding a few lines in header.php.

Firstly open header.php, find this line <meta http-equiv=”content-type” content=”text/html; charset=<?php bloginfo(‘charset’); ?>” />

Read more »

GhostDoc Tutorial

17 April, 2010 | Category: 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 Read more »

Manage Hyper-V remotely from windows 7

6 April, 2010 | Category: Tutorial

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.   Read more »

Find Dead Code

27 March, 2010 | Category: Development, Tips and Tricks, Tutorial

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. Read more »

Forget WordPress Admin Password

14 March, 2010 | Category: Tips and Tricks, Tutorial

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

13 March, 2010 | Category: Tutorial

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)

Read more »