Life

Life

Tuesday, December 30, 2008

Vista User Profile Problem

Today I encountered the vista user profile problem, as thousands of others. The operating system can not be logged in and it reports that errors happen when loading user profile.

My first attack to this problem is, of course, restarting the computer, which does not work. Then I google this problem, and find a way to log into vista by the safe mode. I check the user profile service as suggested, and find nothing wrong. Restart the computer, and the problem persists. This is the very time that I start to be panic. Further search online shows that it is probably due to the wrong key in the registry. Log in by the safe mode again, and check the registry. In the "profilelist", find the corrupted key name, which is added by ".bak". Change it back, and the problem is fixed:)

Sunday, June 15, 2008

Set up Latex Environment for Emacs in Windows

My first setting up follows the advice from http://www.math.aau.dk/~dethlef/Tips/, which is the ideal choice for the beginner. However, software used in this setting up is always being updated, e.g. miktex up to 2.7, emacs up to 22.2 etc. So there will be a little difference using those updated version.

For the preparation, downloading the proper version of software is the first priority. Google the key word "emacs in windows", and you will get several useful suggestion. If you are the fans of cygwin or mingw, you can set up those environment in the first place, then use linux distribution of those GNU software. In fact, it is totally unnecessary if you are not interested, although both cygwin and mingw are powerful tool in windows, especially if you want to set up emacs+gcc+gdb+make for C programming. Anyway, for emacs 22.2, there is binary distribution of windows http://www-uxsup.csx.cam.ac.uk/pub/gnu/windows/emacs/, and the installation is very simple: unzip the files into a directory and run addpm in \bin. You don't have to worry environment variable.

For miktex, current stable version is 2.7, which can be found from http://miktex.org/. For complete system installation, download the net installer, run it and choose "download". Save the files into a directory you can find afterwards. Run the installer again after finishing download, and choose "install" this time. Browse into the directory where you download the distribution. Still you don't have to worry environment variable.

For Auctex, the current stable version is 11.85. My suggestion is to use binary distribution from http://www.gnu.org/software/auctex/download-for-windows.html, if you don't want to get into trouble of compiling it yourself. Only thing you have to do is to unzip the files into emacs directory.

For Ghostscript and Gsview setting up, refer to the link in the beginning. Google it and find the latest verion. Install and add the directory \gsview\ gs\gs8.xx\lib \gs\gs8.xx\bin into environment variable PATH.

Ispell installation becomes simpler thanks to Akira Kakuto, who compile it by Microsoft VC++. Download binary distribution from http://www.fsci.fuk.kindai.ac.jp/kakuto/win32-ptex/web2c75-e.html. Read the document README.w32.english. My suggestion is to unzip the .exe files in bin to bin directory of emacs, create directory C:\usr\local\lib, and unzip files in \dic into it. This is very simple and you don't have to worry about environment variable.

If you want to run emacs in server mode, or associate files type with emacs, one of choice is gnuclient. Actually the current emacs provides eamcsclient to do the same thing, but I find it a little difficult to set up. Download it from http://www.wyrdrune.com/index.html?gnuserv.html~main. Unzip it to \site-lisp\ and cut the .exe files in \Release to \bin of emacs. Then you can use "folder options" to make the association.

Thursday, February 14, 2008

Clemens testifies before Congress

 

Former New York Yankees baseball pitcher Roger Clemens, right, and 
his former personal trainer Brian McNamee, left, testify on Capitol Hill 
in Washington, Wednesday, Feb. 13, 2008, before the House Oversight, and 
Government Reform committee hearing on drug use in baseball. (AP 
Photo/Pablo Martinez Monsivais)Roger Clemens struggled to find the right words under questioning during a congressional hearing Wednesday and denied new accounts of drug use made against him by former teammate and close friend Andy Pettitte.

Friday, May 18, 2007

这一年的回顾

转眼间,就已经一年了,想到去年5月19号,我和宝宝开开心心的去海淀区政府登记,那个时候,我的心情,是根本用文字不能描述的。我知道从那个时刻起,我得到是一个人一生的信任和托付,也是我们两个长期的爱情的必然结果,在那一刻,我能感觉,两个人的心紧紧地贴在一起,永远不分开。
结婚以后的日子,是紧张的,也是幸福的。和别的夫妻不同,我们没有婚后的悠闲和惬意,相反,签证、婚礼和宝宝去香港的种种手续。然而,虽然生活是忙碌的,却很甜蜜,两个人在一起,享受着这个过程,两个人为了一个目标的努力的过程,两个人相互提携,相互关心,每一天都很新鲜,每一天都很有激情,也许这就是对幸福的诠释吧。
然而,现实是残酷的,分离的那一天不会因为我们的幸福而晚来一些,那天,8月31日,那个地方,大屿山机场,背对着宝宝,我头也不敢回的走进了登机口,目眩的霓虹,喧闹的不夜城,香港成了我永远的伤心地。
坐上了去加拿大的飞机,也就开始了一年分离的生活,开启了一年奋斗的征程。刚去加拿大的日子,是辛苦的,是无助的。温哥华转机时的茫然,多伦多找airwaytransit的迷茫,以及在这边让人窒息的种种人情冷漠。还记得在clv south那间卧室,我睡了28个小时,也许是时差,但我觉得我真的需要那么长时间,鼓起勇气,面对新的生活。
和宝宝分开,到了一个陌生的环境,接受一种陌生的生活,这一切都让我在内心中产生了一些恐惧和不安,但也磨练了我的意志。第一个学期是紧张忙碌,我不仅要面对三门课的学习,各种手续的办理,同时对我的生活能力也是很大的挑战。在国内,不需要为自己吃饭担心,因为食堂的饭虽说不好吃,但总是能用较少的开销填饱肚子的。但在这边,情形就完全不一样了,自己不做饭,就没有吃的。硬着头皮,拿起锅碗瓢盆,就开始做饭了。自己都不会想象到可以把那种饭吃进肚里,但为了生存,有什么办法呢?刚开始的时候,屋里没有电话,每天需要去外边打公共电话。有时会下雨,有时风很大,但为了听到宝宝的声音,这些又算得了什么。后来总算有了自己的电话,可以安心在屋里打电话了。那个时候,宝宝的声音是支撑我继续奋斗的重要力量来源。那一个学期,没有电脑的日子,生活是多么简单。每天7点多起床,跑步,吃早饭,上学,中午把自己带的饭草草热了,晚上6点多回寝,吃饭,看书,打电话,1点钟以前肯定会睡觉。日子一天天都是这么过去的。后来宝宝帮我买了笔记本,还不嫌麻烦的寄了过来,当时真的好开心,不仅是因为了这个笔记本,更是因为感受到了宝宝的关心,心里暖暖的。
第二个学期,和yuhan住在了一起,生活依然是忙碌的,每天都在为课程担心,但宝宝对我的支持,给我了很大的动力。特别是其中的一个report,宝宝还耐心的听我讲,给我提建议,让我心里很温暖。现在两个学期都结束了,离团聚的日子越来越近,自己做事情也越来越有激情。宝宝,真希望那一天早点到来,我可以再次抱着你...

Saturday, April 14, 2007

雪山。。。草地

今天终于考完了最后一门考试,在waterloo的任务我也完成了一半。

首先给自己选课一个总结吧。总的来说,上学期的课程还是比较轻松。幸运的避开了zhuang的stochastic processes,而是选了STAT 833,由于是combine session,由于那个老师要离开这里,去另外一个学校,整体来说还是比较容易对付的,期中虽然考试的时候看错了一道题(第一次英语考试),但是期末的题简单的让我提前半个小时交卷,最后99分也算比较满意,还是真的很感谢那位中国老师的:)老板的课看似很难,其实由于老板不做这方面的研究,对这门课也不会下很大的功夫,同时由于选课的人减少,所以考试还是比较easy的,期中考了101分确实比较出乎意外,期末的题也不难,97分也算满意的;khandani的课,总的来说还是需要点时间的,由于以前的考试题都比较难,所以考试前的复习压力比较大,不过一旦把这些题弄明白了,考试的时候注意陷阱,还不是很难,特别是期中考试,是gallanger书上的原题,同时我有那本书的solution manual,所以。。。不过后来的project还是花了不少时间,但也就一个星期,而且感觉也是一个锻炼,97分还是不错的。相比之下,这学期的课就tough许多。zhuang的课果然名不虚传,而且project花了我很长的时间,希望最后出来的分数不要太令人失望,毕竟以后还是很想做这个方面的研究的;ravi的课平时花了很多时间,期中比较lucky,考了一个100分,不过project做的不好,没有领会ravi的意图,虽然花了很多时间,但最后只有17分,感觉自己应该可以做的更好,期末的考试,总体还觉得可以,这门课我的担心反而少些。

选课结束了,正式进入研究阶段,也是真正的攻坚阶段,反而有点期待,上课真的上累了,特别是这种无目的的课,希望以后再上课,能更有针对性,不过趁着自己年轻,还是应该多学些东西的。

Wednesday, April 11, 2007

考完了第一门

zhuang老师的考试,果然trick。一共5道题,其中一道题现在我都没弄明白。Anyway,已经不想它了,还是专心的复习ravi的考试吧。他人已经离开waterloo了,还不知道会在final的卷子上折腾出什么花样呢。再有三天,ms期间的考试也结束了,越来越感觉到,除了上课,还有很多事要做。。。

宝宝生病了,38度多,心疼死了,没有老公在身边,宝宝真是不容易,还有4门课的压力。想想自己,却轻松多了,真是惭愧。

今天看了关于美国就业的文章,才发现其实这边就业是这么的严峻,身份的问题,h1b签证,经济形势,国会的政策。。。现在明白了读书是要有目的的,要不教育本身就是失败的。

Monday, April 9, 2007

复习进行时

早上看了看老板的paper,了解了大概的思路。看来journal的paper其实好懂一些,每一步都比较详细,不像conference的paper,好多都略去了,最后就是不知所云。

后来查到了kelly的一些paper,关于networking的,看来ravi讲的也是有出处的,不是他所说的那样,嘿嘿。。。

晚上还是看一看fading channel吧,把思路理清楚,后天考试。。。