- Windows XP Professional computer, remote desktop connect to the console session.
- Remote desktop to a Windows Server 2003 computer, the default is to start a new session.
Connect to the console session of a Windows Server 2003 computer :
command-line: mstsc /console
Windows Vista remote desktop client:
mstsc /admin
Reference: http://weblogs.asp.net/jeffwids/archive/2005/12/14/remote-desktop-to-console-session-on-windows-server-2003.aspx
The default Web Server is http://localhost:1840/projectfolder/
But if try design one website at root, then all the URL have been broken.
Fix it:
1. add
Tools–>External Tools–>Add
2. config
title:webserver
command:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\WebDev.WebServer.EXE
Arguments: /port:8080 /path:$(ProjectDir)\
3.Start Web server
Tools–>webserver
4.Project
Start option
use custom server: http://localhost:8080/
An ISO format that is supported by many software vendors.
For cross a disc image in the BIN format, it is much easier to convert to the standard ISO format.
bchunk (BinChunker)
sudo aptitude install bchunk
Bchunk Example
bchunk IMAGE.bin IMAGE.cue IMAGE.iso
reference by
http://www.ubuntugeek.com/how-to-convert-bincue-files-to-iso-in-ubuntu.html
aspx file error
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the “Refresh” button in your web browser to retry your request.
fix it:
1. add asp.net user right
* IUSER_MACHINENAME (Internet Guest Account)
* ASPNET (ASP.NET Machine Account)
With Read & Execute, List Folder Contents and Read permissions.
2. re-install the ASP.NET portion
1. Open command prompt to C:\windows\microsoft.net\framework\v2.0.50727
2. run the following command: aspnet_regiis.exe -u
3. run the following command: aspnet_regiis.exe -i
reference: http://stackoverflow.com/questions/233478?sort=votes
Finding the IP address assigned to a computer is very simple.
The NBTSTAT command. The syntax for doing so is as follows:
NBTSTAT -a <computername>
To find the computer name associated with a specific IP address.
NBTSTAT -A <ipaddress>
To you the computer name that is currently associated with the IP address you have specified.
Ping <computername>
will reply ip address
1.default resolution only 800X600
fix:
System–>Administration–>Hardware Device
select display card driver
2. Can not save config
fix:
System–>preferences–>Display–>Yes
Save–>preview
copy content
sudo nano /etc/X11/xorg.conf
paste and save
3.restart no show resolution as configure
fix:
cd /home/user/.config
rm monitors.xml
sudo aptitude install samba
right click folder –> sharing option
start install samba (same as: sudo aptitude install samba)
Then logoff ubuntu and login again
Ubuntu Version 8.10
Reference:
https://help.ubuntu.com/community/SettingUpSamba
UTF-8
TF-8 is a variant-length character encoding for Unicode, UTF-8 uses 1 to 6 bytes to encode one UNICODE character. (If the UNICODE char is represented on 2 bytes, there is a need for mostly 3 bytes; if the UNICODE char is represented as 4 bytes, 6 bytes may be needed.) 4 or 6 bytes to encode a single char may seem too much, but the UNICODE chars that need that are rarely used.
The transformation table for UTF-8 is presented below:
| UNICODE | UTF-8 |
| 00000000 - 0000007F | 0xxxxxxx |
| 00000080 - 000007FF | 110xxxxx 10xxxxxx |
| 00000800 - 0000FFFF | 1110xxxx 10xxxxxx 10xxxxxx |
| 00010000 - 001FFFFF | 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx |
| 00200000 - 03FFFFFF | 111110xx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx |
| 04000000 - 7FFFFFFF | 1111110x 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx |
The UNICODE characters that actually represent ASCII chars are encoded in a single byte, and the UTF-8 representation is actually the ASCII representation. All other UNICODE characters require at least 2 bytes. Each of these bytes starts with an escape sequence. The first byte has a unique sequence, composed on N bits on 1 followed by 1 bit of 0. The N number of bits of 1 indicates the number of bytes on which the character is encoded.
Byte Order Mark
BOM is a character that indicates the endianness of a UNICODE text encoded in UTF-16, UTF-32 and in the same time a marker to indicate that text is encoded in UTF-8, UTF-16, UTF-32 (UTF-8 is byte-order independent).
| Encoding | Representation |
| UTF-8 | EF BB BF |
| UTF-16 Big Endian | FE FF |
| UTF-16 Little Endian | FF FE |
| UTF-32 Big Endian | 00 00 FE FF |
| UTF-32 Little Endian | FF FE 00 00 |
UTF-8 C++ Encoding Sample
Here are four functions written in C++ that encode and decode 2 and 4 bytes UNICODE text in/from UTF-8.
#define MASKBITS 0×3F #define MASKBYTE 0×80 #define MASK2BYTES 0xC0 #define MASK3BYTES 0xE0 #define MASK4BYTES 0xF0 #define MASK5BYTES 0xF8 #define MASK6BYTES 0xFC typedef unsigned short Unicode2Bytes; typedef unsigned int Unicode4Bytes; void UTF8Encode2BytesUnicode(std::vector< Unicode2Bytes > input, std::vector< byte >& output) { for(int i=0; i < input.size(); i++) { // 0xxxxxxx if(input[i] < 0×80) { output.push_back((byte)input[i]); } // 110xxxxx 10xxxxxx else if(input[i] < 0×800) { output.push_back((byte)(MASK2BYTES | input[i] >> 6)); output.push_back((byte)(MASKBYTE | input[i] & MASKBITS)); } // 1110xxxx 10xxxxxx 10xxxxxx else if(input[i] < 0×10000) { output.push_back((byte)(MASK3BYTES | input[i] >> 12)); output.push_back((byte)(MASKBYTE | input[i] >> 6 & MASKBITS)); output.push_back((byte)(MASKBYTE | input[i] & MASKBITS)); } } } void UTF8Decode2BytesUnicode(std::vector< byte > input, std::vector< Unicode2Bytes >& output) { for(int i=0; i < input.size();) { Unicode2Bytes ch; // 1110xxxx 10xxxxxx 10xxxxxx if((input[i] & MASK3BYTES) == MASK3BYTES) { ch = ((input[i] & 0×0F) << 12) | ( (input[i+1] & MASKBITS) << 6) | (input[i+2] & MASKBITS); i += 3; } // 110xxxxx 10xxxxxx else if((input[i] & MASK2BYTES) == MASK2BYTES) { ch = ((input[i] & 0×1F) << 6) | (input[i+1] & MASKBITS); i += 2; } // 0xxxxxxx else if(input[i] < MASKBYTE) { ch = input[i]; i += 1; } output.push_back(ch); } } void UTF8Encode4BytesUnicode(std::vector< Unicode4Bytes > input, std::vector< byte >& output) { for(int i=0; i < input.size(); i++) { // 0xxxxxxx if(input[i] < 0×80) { output.push_back((byte)input[i]); } // 110xxxxx 10xxxxxx else if(input[i] < 0×800) { output.push_back((byte)(MASK2BYTES | input[i] > 6)); output.push_back((byte)(MASKBYTE | input[i] & MASKBITS)); } // 1110xxxx 10xxxxxx 10xxxxxx else if(input[i] < 0×10000) { output.push_back((byte)(MASK3BYTES | input[i] >> 12)); output.push_back((byte)(MASKBYTE | input[i] >> 6 & MASKBITS)); output.push_back((byte)(MASKBYTE | input[i] & MASKBITS)); } // 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx else if(input[i] < 0×200000) { output.push_back((byte)(MASK4BYTES | input[i] >> 18)); output.push_back((byte)(MASKBYTE | input[i] >> 12 & MASKBITS)); output.push_back((byte)(MASKBYTE | input[i] >> 6 & MASKBITS)); output.push_back((byte)(MASKBYTE | input[i] & MASKBITS)); } // 111110xx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx else if(input[i] < 0×4000000) { output.push_back((byte)(MASK5BYTES | input[i] >> 24)); output.push_back((byte)(MASKBYTE | input[i] >> 18 & MASKBITS)); output.push_back((byte)(MASKBYTE | input[i] >> 12 & MASKBITS)); output.push_back((byte)(MASKBYTE | input[i] >> 6 & MASKBITS)); output.push_back((byte)(MASKBYTE | input[i] & MASKBITS)); } // 1111110x 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx else if(input[i] < 0×8000000) { output.push_back((byte)(MASK6BYTES | input[i] >> 30)); output.push_back((byte)(MASKBYTE | input[i] >> 18 & MASKBITS)); output.push_back((byte)(MASKBYTE | input[i] >> 12 & MASKBITS)); output.push_back((byte)(MASKBYTE | input[i] >> 6 & MASKBITS)); output.push_back((byte)(MASKBYTE | input[i] & MASKBITS)); } } } void UTF8Decode4BytesUnicode(std::vector< byte > input, std::vector< Unicode4Bytes >& output) { for(int i=0; i < input.size();) { Unicode4Bytes ch; // 1111110x 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx if((input[i] & MASK6BYTES) == MASK6BYTES) { ch = ((input[i] & 0×01) << 30) | ((input[i+1] & MASKBITS) << 24) | ((input[i+2] & MASKBITS) << 18) | ((input[i+3] & MASKBITS) << 12) | ((input[i+4] & MASKBITS) << 6) | (input[i+5] & MASKBITS); i += 6; } // 111110xx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx else if((input[i] & MASK5BYTES) == MASK5BYTES) { ch = ((input[i] & 0×03) << 24) | ((input[i+1] & MASKBITS) << 18) | ((input[i+2] & MASKBITS) << 12) | ((input[i+3] & MASKBITS) << 6) | (input[i+4] & MASKBITS); i += 5; } // 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx else if((input[i] & MASK4BYTES) == MASK4BYTES) { ch = ((input[i] & 0×07) << 18) | ((input[i+1] & MASKBITS) << 12) | ((input[i+2] & MASKBITS) << 6) | (input[i+3] & MASKBITS); i += 4; } // 1110xxxx 10xxxxxx 10xxxxxx else if((input[i] & MASK3BYTES) == MASK3BYTES) { ch = ((input[i] & 0×0F) << 12) | ((input[i+1] & MASKBITS) << 6) | (input[i+2] & MASKBITS); i += 3; } // 110xxxxx 10xxxxxx else if((input[i] & MASK2BYTES) == MASK2BYTES) { ch = ((input[i] & 0×1F) << 6) | (input[i+1] & MASKBITS); i += 2; } // 0xxxxxxx else if(input[i] < MASKBYTE) { ch = input[i]; i += 1; } output.push_back(ch); } } |
contributed by
http://www.codeguru.com/cpp/misc/misc/multi-lingualsupport/article.php/c10451