Thursday, May 5, 2011

How to force a single session or allow multiple Remote Desktop sessions per user(转)

(remotedesktoprdp.com)
Remote Desktop/Terminal Services has two settings for multiple sessions. You can either allow multiple sessions per user (in which case if you log in twice, you'll get two sessions), or force a single session per user (in which case you can only log in once and subsequent sessions will be redirected to the original session.

To change this setting, you'll need to perform a registry change. The following steps describe the process:

  1. Start Registry Editor (by default, this is located at c:\windows\regedit.exe).
  2. Go to the following registry key:

    HKEY_LOCAL_MACHINE\
    System\CurrentControlSet\Control\TerminalServer

  3. If the fSingleSessionPerUser value doesn't exist, create a new DWORD value named fSingleSessionPerUser
  4. Open the fSingleSessionPerUser value. The possible values for this setting are as follows:
    0x0
    Allow multiple sessions per user
    0x1
    Force each user to a single session
  5. Enter the new setting, and then click OK.

Thursday, April 7, 2011

Tuesday, February 22, 2011

About Hazard Communication Standard

When can China have something like this?
------------------------------------------------
You Have a Right to Know

In 1983, the Federal Government established the OSHA Hazard Communication Standard. This standard is designed to protect employees who use hazardous materials on the job.

The Hazard Communication Standard states that companies which produce and use hazardous materials must provide their employees with information and training on the proper handling and use of these materials.

You, as an employee, have a Right to Know about the hazardous materials used in your work area and the potential effects of these materials upon your health and safety.

Tuesday, February 8, 2011

Use Cache-buster to Avoid IE Cache in Windows Gadgets

ajaxObj.open("GET", myURL+"?cachebuster=" + new Date().getTime(), true);

Thursday, December 9, 2010

Best Solution for Calendar Control Missing in Excel 2010


Download MSCAL.ZIP file from http://www.gmayor.com

Unzip the file and put the correct versionof mscal.ocx into the correct location on your computer.

For Windows 95, 98 and ME - C:\Windows\System

For Windows NT, 2000, XP - C:\Windows\System32

For Windows7 32bit - C:\Windows\System32

For Windows7 64bit - C:\Windows\SysWow64

Click Start then Run and type: regsvr32 mscal.ocx to register the file.





Wednesday, October 27, 2010

Office Tips

http://www.fontstuff.com/index.html

Great website for Office tips.

Thursday, September 30, 2010

Dropbox - A new way to sync your files online and across your computers and phones automatically

Dropbox

Dropbox Features

Mobile Device Access

The free Dropbox application for iPhone, iPad, and Android lets you:

  • Access your Dropbox on the go.
  • View files from within the application.
  • Download files for offline viewing.
  • Take photos and videos and sync them to your Dropbox.
  • Share links to files in your Dropbox.
  • Export your files to other applications.
  • Sync downloaded files so they're up-to-date.

File Sync

Dropbox allows you to sync your files online and across your computers automatically.

  • 2GB of online storage for free, with up to 100GB available to paying customers.
  • Sync files of any size or type.
  • Sync Windows, Mac and Linux computers.
  • Automatically syncs when new files or changes are detected.
  • Work on files in your Dropbox even if you're offline. Your changes sync once your computer has an Internet connection again.
  • Dropbox transfers will correctly resume where they left off if the connection drops.
  • Efficient sync - only the pieces of a file that changed (not the whole file) are synced. This saves you time.
  • Doesn't hog your Internet connection. You can manually set bandwidth limits.

File Sharing

Sharing files is simple and can be done with only a few clicks.

  • Shared folders allow several people to collaborate on a set of files.
  • You can see other people's changes instantly.
  • A "Public" folder that lets you link directly to files in your Dropbox.
  • Control who is able to access shared folders (including ability to kick people out and remove the shared files from their computers).
  • Automatically create shareable online photo galleries from folders of photos in your Dropbox.

Online Backup

Dropbox backs up your files online without you having to think about it.

  • Automatic backup of your files.
  • Undelete files and folders.
  • Restore previous versions of your files.
  • 30 days of undo history, with unlimited undo available as a paid option.

Web Access

A copy of your files are stored on Dropbox's secure servers. This lets you access them from any computer or mobile device.

  • Manipulate files as you would on your desktop - add, edit, delete, rename etc.
  • Search your entire Dropbox for files.
  • A "Recent Events" feed that shows you a summary of activity in your Dropbox.
  • Create shared folders and invite people to them.
  • Recover previous versions of any file or undelete deleted files.
  • View photo galleries created automatically from photos in your Dropbox.

Security & Privacy

Dropbox takes the security and privacy of your files very seriously.

  • Shared folders are viewable only by people you invite.
  • All transmission of file data and metadata occurs over an encrypted channel (SSL).
  • All files stored on Dropbox servers are encrypted (AES-256) and are inaccessible without your account password.
  • Dropbox website and client software have been hardened against attacks from hackers.
  • Dropbox employees are not able to view any user's files.
  • Online access to your files requires your username and password.
  • Public files are only viewable by people who have a link to the file(s). Public folders are not browsable or searchable.


Turn your laptop into a wireless hot spot

For Vista, WinXp and Mac,

This document from Microsoft Technet describes how you can share a wired Internet Connection with your other computers by setting up an ad-hoc wireless network.

Step 1: Enabling Internet Sharing on the Host Computer

To enable Internet sharing on the host computer, do the following:

1.From the Windows XP desktop, click Start, click Control Panel, click Network and Internet Connections, and then click Network Connections.

2.Right-click the Ethernet network connection that is used to access the Internet, and then click Properties.

3.On the Advanced tab, select the Allow other network users to connect through this computer’s Internet connection check box and clear the Allow other network users to control or disable this shared Internet connection check box.

4.Click OK to save changes to your connection.

5.You might be prompted with a Local Network message box that explains how your computer’s configuration is being changed. Click Yes to enable Internet sharing.

Step 2: Creating an Ad Hoc Wireless Network on the Host Computer

To create an ad hoc wireless network to share Internet access with the other WLAN computers on a computer running Windows XP, do the following:

1. From the Windows XP desktop, click Start, click Control Panel, click Network and Internet Connections, and then click Network Connections.

2. Right-click the wireless network connection, and then click Properties.

3. Click the Wireless Networks tab.

4. In the wireless network adapter properties dialog box, click Add under Preferred networks.

5. On the Association tab, type the name of your ad hoc wireless network in Network name (SSID). For example, you could name your wireless network AdHocInternet.

6. Select the This is a computer-to-computer (ad hoc) network check box and clear theThe key is provided for me automatically check box.

7. In Network Authentication, select Open.

8. In Data encryption, select WEP.

9. In Network key, type the WEP key. The WEP key should be a random sequence of hexadecimal digits or numbers, letters, and punctuation.

10.In Confirm network key, retype the WEP key.

11.Click OK to save changes to the wireless network.

12.Click OK to save changes to the wireless network adapter.

These instructions configure an encryption key for wireless communications on the ad hoc wireless network. You must tell the other users who want to access the Internet the WEP key. You can create an ad hoc wireless network without requiring encryption and an encryption key, but it is not recommended.

Step 3. Connect other Computers to your new Ad Hoc Wireless Network

To connect each other laptop computer to the newly created ad hoc mode wireless network, do the following:

1. Once the new ad hoc wireless network is created, Windows XP on other laptop computers should detect it and prompt you with a One or more wireless networks are available orWireless networks detected message in the notification area of your taskbar.

2. Click the notification message.

If you are not notified, right-click the wireless network adapter in Network Connections and click View Available Wireless Networks.

You should see the Wireless Network Connection dialog box (for Windows XP with SP2), a dialog box with the name of the wireless connection (for Windows XP with SP1), or theConnect to Wireless Network dialog box (for Windows XP with no service packs installed). An example of the Wireless Network Connection dialog box for Windows XP with SP2 is shown in the following figure.

3. For Windows XP with SP2, click the name of the new ad hoc wireless network in the list, and then click Connect. When prompted by the Wireless Network Connection dialog box, the WEP key in Network key and Confirm network key, and then click Connect.

For Windows XP with SP1, click the name of the new ad hoc wireless network in Available networks, type the WEP key in Network key and Confirm network key, and then clickConnect.

For Windows XP with no service packs installed, click the name of the new ad hoc wireless network in Available networks, type the WEP key in Network key, and then clickConnect.

Now that the laptop computer is connected to the ad hoc wireless network, you must configure it for either Windows Firewall or ICF and automatic addressing by doing the following:

1. From the Windows XP desktop, click Start, click Control Panel, click Network and Internet Connections, and then click Network Connections.

2. Right-click the network connection that corresponds to the wireless network adapter, and then click Properties.

3. For computers running Windows XP with SP2, click the Advanced tab, and then clickSettings. From the Windows Firewall dialog box, click On, and then click OK.

For computers running Windows XP with SP1 or Windows XP with no service packs installed, click the Advanced tab, and then select the Protect my computer and network by limiting or preventing access to this computer from the Internet check box.

4. Click the General tab, double-click Internet Protocol (TCP/IP) in the This connection uses the following items list.

5. On the General tab, click Obtain an IP address automatically and Obtain DNS server address automatically.

6. Click OK to save the changes to the configuration of Internet Protocol (TCP/IP).

7. Click OK to save the changes to your connection’s configuration.

The laptop computer should receive an IP address configuration from the ICS host computer and have Internet connectivity. Test Internet connectivity by using a Web browser to view Web pages.


For Windows 7

Tuesday, August 3, 2010

Using FOR XML and OPENXML to Publish and Process XML Data

Using FOR XML and OPENXML to Publish and Process XML Data

How to execute SQL queries to return results as XML instead of standard rowsets

USE AdventureWorks2008R2 GO SELECT Cust.CustomerID,         OrderHeader.CustomerID,        OrderHeader.SalesOrderID,         OrderHeader.Status FROM Sales.Customer Cust  INNER JOIN Sales.SalesOrderHeader OrderHeader ON Cust.CustomerID = OrderHeader.CustomerID FOR XML AUTO, ELEMENTS

Thursday, July 29, 2010

How to Email Text Messages and Receive as Emails

Sprintphonenumber@messaging.sprintpcs.com
Verizonphonenumber@vtext.com
T-Mobilephonenumber@tmomail.net
AT&Tphonenumber@txt.att.net

Send sms to your friends' phone by email

Ask your friend to send sms or reply to your email address.


Monday, July 12, 2010

Unlock SQL User and Change User Password

ALTER LOGIN UserName WITH PASSWORD = '123' UNLOCK

Friday, July 2, 2010

How to Fix The Problem Taht Firefox Address Bar Search Goes to Bing

Type “about:config” in firefox address bar.
Type “keyword.url” in the Filter.
Double click and type "http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q="(Without "") and click OK

Nice move Bing!

Monday, October 26, 2009

JavaScript String funtion Replace

var str="1,001,300.0";
str = str.replace(",",""); //will only replace the first comma

var x="1,2,25.8,1";
var y=x.replace(/,/g,''); //withGlobal Regular Expressionwill replace all comma