Archive for the ‘Computer’ Category

Vicious Cycle

November 10, 2009

Rules

1. You helped the students

2. The students played game

3. You become unmotivated

Restart :

1. You are reluctant to help the students because you’re unmotivated

2. The students become unmotivated and they play game

3. You’re even more unmotivated.

Go to restart

 

My Hobby: Try to act as chatbot in omegle

July 12, 2009

Copy and paste response from Palringo chatbot to omegle website. It’s fun.

Link to share

June 24, 2009

Talk with strangers

www.omegle.com

Ask programming question

stackoverflow.com

Read current news

reddit.com

Read quality current news

slashdot.org

Read ehmm.. rough language computer news

theregister.com

Code Page 936

November 26, 2007

I was trying to simulate how notepad saves UTF-8 text file which contains Chinese character to  ANSI file format. Saving to ANSI in Chinese OS and in English OS leads to a different result. In English OS, the chinese character becomes question-mark.

I use VB .NET to try to save the file as ANSI in English Environment. Alas, It still gives the question mark. However after searching for the whole day. I managed to save the text file into ANSI as the Chinese OS.

I found out, actually in English OS, the ANSI is using code page 1252 but in Chinese, ANSI is using code page 936. Thus, by using code page 936, I am able to save the text file in ANSI format in the same way as Chinese OS

To get codepage 936, Type System.Text.Encoding.GetEncoding(936). Hope it helps those searching madly like I was.