Welcome To My Blog

This blog contains posts that may benefit ordinary visitors or programmers (particularly .NET programmer).
To view posts related to particular subjects, click the link under Labels.

Thursday, June 27, 2013

Using Unicode in HTML blog

Hi,

Ever wonder how to display Unicode characters on your HTML page?  What are Unicode characters?  Unicode characters are special characters such as the copyright symbol (©), trademark symbol (™) and many others that you normally don't see on the keyboard.

Sometimes you may need to show that characters on your page to make people understand better about your post.

In order to show the Unicode character, you can use the following characters sequence &#x  followed by a hex number that represents the Unicode character and end with the semicolon symbol (;).  For example, to display the ₤ (British pound sterling currency symbol), enter the following code ₤  in your HTML page.

For further info regarding Unicode characters, visit the following site: http://www.unicodetables.com/

Happy coding... :-)

Monday, June 24, 2013

How to disable USB ports during Sleep mode?

I am using Windows 7 Home edition on my Toshiba Satellite M500 notebook computer.  I noticed that even though my notebook was in Sleep mode, all the connected devices such as the LED light, mouse and cooler fan were active (on).  I don't like that situation because it will run off my computer battery very fast.

After searching for information from the internet, I got the idea how to ensure the power to the USB ports are cut off during the Sleep mode.  The following steps work on my notebook:

  1. Go to the Device Manager dialog box. How? Click Start ⇨ Control Panel ⇨ Device Manager.
  2. Make sure the "Allow the computer turn off this device to save power" check box is checked for every USB Root Hub. How? Click Universal Serial Bus controllers ⇨ Right-click USB Root Hub ⇨ In the USB Root Hub Properties, click Power Management tab ⇨ Make sure the check box is checked.  See the picture below.
  3. Make sure Allow this device to wake the computer checkbox for the HID-compliant mouse is unchecked.  How? Click Mice and other pointing devices ⇨ Right-click HID-compliant mouse ⇨ Click Power Management tab ⇨ In the HID-compliant mouse Properties, make sure the checkbox is cleared as shown in the picture below.  Repeat this step for each HID-compliant mouse in the Device Manager list.


  4. Make sure Allow this device to wake the computer checkbox for the keyboard is unchecked.  How? Click Keyboards ⇨ Right-click HID Keyboard Device ⇨ Click Power Management tab⇨ In the HID Keyboard Device Properties, make sure the checkbox is cleared as shown in the picture below.
  5. That's all.  Try making the computer going into Sleep mode and see that all the devices connected to the USB ports are turned off automatically.
I hope the tip above can help us.  Thanks.