5/29/09

Vim takes 9 G memory

Today I used Vim to edit a big file, about 1.5Gig in size. At the end of editing, Vim occupied 9.1G memory. Fortunately the machine has 64G. I was using visual mode to do column delete. I can't use cut and paste (Unix command line, not windows cut and paste) because I didn't delete whole columns. The whole editing session took more than 1 hour with most time spent waiting for commands to complete.

5/16/09

Chinese language test

My colleague passed me a Chinese language test. It's an Excel spreadsheet. There are 100 2-choice character questions. I was kinda surprised I only scored 79. After all I'm Chinese and I thought my Chinese was good. But anyway it's a good test. So I made a web version:

http://wensheng.com/code/cntest/

I shuffle the questions so it doesn't come out the same every time. You can also score yourself anytime. (In Excel you have to answer all 100 to get your score.) The test works in Firefox, Opera, Chrome, and Internet Explorer 8. It doesn't work in IE7 and IE6 because they don't' allow setting the NAME attribute of radio button dynamically. There are ways around it but I don't want to waste my time fixing it.