Monthly Archives: December 2008

30G Zune frozen! Microsoft in trouble

It turned out to be a leap year bug and it can fix itself after new year’s eve.  What a relief for Microsoft All over the world, 30G Zune players are frozen today on new year’s eve.   I unplugged the … Continue reading

Posted in Uncategorized | Leave a comment

2008年度百位华人公共知识分子

丁学良简介 (1) 丘岳首简介 (1) 于建嵘简介 (1) 于浩成简介 (1) 何清涟简介 (1) 余光中简介 (1) 余杰简介 (1) 余英时简介 (1) 冉云飞简介 (1) 冯崇义简介 (1) 凌沧洲简介 (1) 刘再复简介 (1) 刘晓波简介 (1) 北岛简介 (1) 南方朔简介 (1) 吴冠中简介 (1) 吴国光简介 (1) 吴敬琏简介 (1) 吴祚来简介 (1) 周其仁简介 (1) … Continue reading

Posted in Uncategorized | Leave a comment

Add an export button to the header of gridview

  protected void gvwResult_RowCreated(object sender, GridViewRowEventArgs e)    {        if (e.Row.RowType == DataControlRowType.Header)        {            GridViewRow rw = new GridViewRow(0, -1, DataControlRowType.Header, DataControlRowState.Normal);            TableCell cell = new TableCell();                  Button btn = new Button();            btn.Text = "Export";            //btn.Click += btnExport2Excel_Click;            btn.OnClientClick = … Continue reading

Posted in Uncategorized | Leave a comment

读《丑陋的韩国人》有感

略读了金文学著的《丑陋的韩国人》, 书中有很多偏激的观点;似乎对韩国人过于贬低。老毛曾经说过,在任何有人群的地方都有左中右。金先生在书里大慨只提及最垃圾的那部分韩国文化。 我在美国所接触的韩国人,好象是属于好的那种人;或者说,我还没有机会观察到不好的方面。 从书中提到的一些问题上看,我觉得文革似乎并非一无是处。至少,文革彻底摧毁了5000年中国文化中的最有碍中国进入现代社会的那部分腐朽的儒家思想。 转载:中、日、韩这东亚三国不仅是一衣带水的邻邦,而且在历史上同属汉文化圈,不论是中国人、韩国人、日本 人,都可以从另外两个东亚国家的人身上看到自己的影子。可惜的是,三国之间的关系并不是亲如兄弟,敬如父兄,反而磨擦不断,殊为憾事。都说西方文化已经盛 极而衰,21世纪是东方文化的世纪,如果三国人不能互相了解,互相体谅,精诚团结,携手并进,又如何能顺应历史机遇,使东亚屹立于世界民族之林?   本书作者金文学出生于中国,朝鲜族人,留学日本多年,专攻比较文学、比较文化及文化人类学。独一无 二的经历和学术背景使作者能够深刻地理解中、日、韩三国的不同之处,敏锐地发现常人所不能看到的细节,在书中,作者对东亚三国的文化、历史、传统、习俗、 观念、社会生活等方面进行了有趣的对比分析,言人所未言,道人所未道,诸多发现,读后给人以很大的触动和启发。   本书作者发现的中、日、韩三国有趣而发人深省的差异,远不止这些:  中、日、韩三国人坐地铁,日本人一声不吭,只盯着一个地方目不转睛;中国人眼睛乱转,一刻也闲不住地东张西望;韩国人则吵吵闹闹,喋喋不休。  关于吵架,韩国人光吵不动手,是儒教式的;日本人只动手不吵,是武士式的,中国人又吵又动手,是充满谋略的立体战。  对于性,日本人闭口不说,文字大胆,身体开放;韩国人满嘴劳话,却不敢形诸文字,思想保守;中国人是中庸之道,介于二者之间。  韩国的妻子们重感情,对丈夫强势而热情;日本的妻子们对丈夫百依百顺,温柔体贴,但很难了解其内心;中国妻子们既重感情,又有城府,将丈夫们训练得服服贴贴。  中国人到处是墙,心中有墙,因此历史上闭关锁国;日本人地上无墙,心中无墙,因此能大量吸收外来文化;韩国人大多是半截墙,因此半遮半掩,对外来文化欲拒还迎,心态复杂。  中国是大陆德行,圆滑世故,雍容大度;日本是岛国德行,心胸狭窄;韩国是半岛德行,自尊心强,心怀“怨恨“。  中国人喜欢牡丹,国色天香,象征荣华富贵;日本人喜欢樱花,刹那盛开,瞬间凋零,象征残酷之美;韩国人喜欢木槿,质朴无华,小家碧玉,却不屈不挠,顽强生存。  中国人喜欢看《三国演义》,讲国家大事,规模宏大,像百科全书,将文治截武功溶于一炉;日本人喜欢《忠臣藏》,讲武士博杀,刀光剑影,残忍冷酷;韩国人喜欢《春香传》,讲才子佳人,对诗传情,和美优雅。

Posted in Books | Leave a comment

Will beauty last? Beautiful in one’s youth doesn’t always translate into older age

Your skin begins to wrinkle; your teeth start to fall; Your once bright eyes are more and more dull; your stomach begin to sag; What do you still have left?  Do you have grace, class?  Can you still hold your … Continue reading

Posted in Uncategorized | Leave a comment

Javascript call and apply

Most of the time I hate Javascript. It’s full of quirky syntax and it’s sometimes too clever for its own good.  I have to imagine that the authors of the Javascript language are a bunch of self-indulgent, self-destructive, drug-addictive morons.  … Continue reading

Posted in Computers and Internet | Leave a comment

Microsoft has been unsuccessful in weaning users from Windows XP

Microsoft has been unsuccessful in weaning users from Windows XP and persuading them to upgrade to Windows Vista. As of the end of November, for example, Vista’s market share was 20.5%, while XP’s was three times greater, accounting for 66.3% … Continue reading

Posted in Computers and Internet | Leave a comment

I want to know who Nelson Chai is

Nelson Chai is the CFO of Merrill Lynch.  He looks like a Chinese and his name sounds like a Chinese but I can’t find anything about him that says that he is a Chinese descendant.  He has some ties with … Continue reading

Posted in Uncategorized | Leave a comment

Status Symbol vs stupidity and a Hyundai Santa Fe vs Lexus RX 300

Here is the dilemma:  Which car will you buy?  A 3,000 mile, 2008 Hyundai Santa Fe or an 80,000 mile, 2003 Lexus RX 300. I will choose the newer Hyundai Santa Fe over the old Lexus every time! Here is … Continue reading

Posted in Hobbies | Leave a comment

CodeSmith: AllOutputParameters vs OutputParameters

If your Insert stored procedure has an output parameter, CodeSmith will take it as an InputOutput parameter.  The way to get a pure out parameter is to use InsertCommand.OutputParameters not InsertCommand.AllOutputParameters: [System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Insert, true)]        public void Insert<%=CleanUpName(SourceTable.Name)%>        (        … Continue reading

Posted in Uncategorized | Leave a comment