Archive for the ‘Windows’ Category

Remote desktop client shows white screen

To query remote sessions:

qwinsta /server:SERVER-NAME

SESSIONNAME USERNAME ID STATE TYPE DEVICE
services 0 Disc
Administrator 2 Disc
console 3 Conn
rdp-tcp 65536 Listen

To end the session which shows the white screen

logoff /server:SERVER-NAME 2 /v

  • Share/Save/Bookmark

Subversion client for Windows command line output unreadable characters

If you use subversion client windows command line

1
svn help

on a Windows system with current language for non-Unicode programs set to a different language such as Chinese Simplified.
You probably will see a screen with strange characters – garbage output in command prompt window.
It’s very easy to fix this by set an environment variable for your system

1
Set LANG=C
  • Share/Save/Bookmark

Install MySQL Community Server 5.0.45 Without Installer on Windows Vista

  1. Download the zip file from here.
  2. Unzip it to your d: drive. Here’s what you should get after unzipping: d:\mysql-noinstall-5.0.45-win32. Rename this folder to mysql5045. (d:\mysql5045)
  3. Open folder d:\mysql5045. Copy my-small.ini and rename the copied file to my.ini. Open my.ini using notepad. Under line “[mysqld]“, enter the following lines:basedir=D:/mysql5045
    datadir=D:/mysql5045/data
  4. Run your command prompt as administrator. And enter folder d:\mysql5045\bin
  5. Type mysqld-nt.exe –install mysql5045 –defaults-file=d:\mysql5045\my.ini
  6. Type net start mysql5045 in command line. If you see the following, mysql 5045 is installed and running!The mysql5045 service is starting.
    The mysql5045 service was started successfully.
  7. IMPORTANT! type mysqladmin -u root password “your-new-password”, to set a password for your root account. The default install will leave no password required for your root account.
  • Share/Save/Bookmark

How to enable asp.net / asp for IIS 7.0 on Windows Vista

If you find you self in a situation that an aspx page cannot be accessed from IIS 7 on Windows Vista, read this.

go to Control Panel –> Program –> Turn Windows Features on or off

then expand Internet Information Services –> World Wide Web Services –> Application Development Features

Last, just check what features you need: ASP, ASP.NET, CGI, ISPI and etc.

enable ASP, ASP.NET, CGI on IIS 7 on Windows Vista

  • Share/Save/Bookmark

Windows most common shortcut keys

Here’s a list of most common shortcut keys(hot keys) used on Windows OS or in Windows applications. I use those to improve productivity. And you can image that when my colleges see I do something without using the mouse they ask, how did you do that? Well, these shortcut keys are not secret. You can find it in Windows help or documentations.

Note: WIN is the windows key, the one with a Windows logo.

  1. WIN + E, open windows explorer.
  2. Ctrl + C, copy selected file(s).
  3. Ctrl + X, cutselected file(s) .
  4. Ctrl + A, select all files.
  5. Ctrl + V, paste selected file(s) in place.
  6. Ctrl + Shift + ESC
  7. WIN + D, show desktop
  8. WIN + R, show run dialog
  9. WIN + L, lock computer
  10. WIN + tab, show 3D windows list (in Windows Vista and theme enabled)
  • Share/Save/Bookmark