Wednesday, March 28, 2007

Boring Spring

It was quite hot this morning and I thought it's summer time at last. But later, it became damp again. Andrew made jokes about how foggy and misty UST could be. He listed top ten stuffs, like people are afraid of losing each other and they sometimes miss when they kiss. I found it funny but still I wasn't quite awake.
After the 4.5 hours continuous lectures, I went back to hall for a nap. My backpack is still under the status of shipped not yet delivered and it made me worry a lot. I am afraid that if I stay in lab I might miss the call and delay the backpack delivery.These days I didn't do much study. Partialy because of this Macbook and I am not motivated. My members are busy with their other courses and are not responsible. I could do it all myself for activity 2 is not about implementation and thus one person should be enough. They will complain if they have nothing to do but when I assigned them tasks, they are always behind schedule. Sometimes I feel it so unfair and that feeling just doesnt go away and kept annoying me.
Rebecca is doing her project with her teammate. They have hard time because they didn't start earlier. But luckily most of them can work that out finally. I guess just one member is not helping and one is missing. Well, actually all I can think about right now are project deadlines and Macbook. Well probably some news. I watch news every day.
To cheer myself up a little bit, I downloaded some songs about love and spring and created a new playlist called Spring.
BTW, I have now two OS in my MacBook. The weird thing is that the Mac Os X seems so bulky! It is impossible!!! It should be like unix very small, smaller than XP. I checked the directories, there are three diretories called LIBRARY! One of them is 9 GB!!!!!!!! But I dare not delete any of them. I guess some of them are for data storage for certain application. Some are information for hardware drives. It is weird.
Warwrick notified me that I could do FYP with them. Well if grade will not transfer back then I will do it. Otherwise...

Friday, February 23, 2007

Warm Spring

We are having one of the warmest spring in many years. But in HKUST, not much has changed. It is still foggy and misty up here as usual, just like a small kindom far from the other part of HK. Every spring, students who don't live on campus always have exciting stories about traveling to school by bus, for example, sudden turn without clear view of surrounding.
My dad took me back to his hometown, the country side in Canton. It is not the traditional type of poor area. More than half of the residents in this area have moved to the cities, like Shenzhen. Those who stay are old people or women and children. We visited some village which has a great reputation for being rich since the Open policy just introduced. We were invited to some houses, or mansions in this village. I used to think that the rich don't care about education but this time I met some boys from the rich family and they might be the exceptions. Unfortunately I didn't have chance to study them. I wanted a reason to love this town which always make me feel terrible and seperated. I was so excited to find sb. that I can comunicate with. But my dad seemed very unhappy about making these new friends and I gave up trying to love this place.
My aunt was very nice to me this time because my family built a new house for them. Well, you may say there is no link between being sympa and having a new house... My cousins are as lazy and impolite as usual. He poured some boiling water on my mum's feet by accident. Usually you won't be mad because of that but you will if they don't apologize or do sth. My cousin stayed in the same old position as if nothing happened. My uncle was sick and it is hard for him to do hard work. But his two GOOD sons just looked at him when he tried to lift something heavy up. I won't look down upon them if they are just different from us. But they are not decent or well educated and they are so lazy and not caring. I still remember my cousin borrowing money from my parents many times and never ever said thank you, let alone returning. I know my parents won't take them even if she insists, but it is good to at least express her appreciation. I can tell you more like that. I found it hard to respect somebody like that. They are not rich, but my parents can support them by giving them money(a lot), by finding their sons jobs. No one is perfect but there are basic stuffs for one to qualified to deserve these helps. I guess they will never understand and can not change their position by their own hands. They are POOR people who don't know how to respect others and themselves. Again they left me with disappointment. I thought after my younger cousin got into college like me and the older one got a good job, they would gradually learnt... I was wrong.
Here is a weird thing, I alwasys define family not bond to blood but relationship, love. What if I have a very bad dad?(assumption) Can I deny having a dad like that? Is it moral to do so? My dad loves his hometown very much even though I found people there are not worth loving that much. But it is different, because it is hard for him to discover the shortcomings when he's deeply, emotionaly involved. In fact I wanted to go back to my mum's hometown because my grandpa is sick. But once my dad's determined, nothing's gonna change his mind. I told them many times about going back to visit my grandpa. I think they should know what my idea no matter they agree with me or not.
It was hard to concentrate even though I brought my laptop back to dad's hometown. People there speak in such a loud voice that I was afraid they were having some fight when they talked. Maybe it is because in the old times, every house has a patio in the sitting room which gives way out for the sound waves. Generation after generation, they adopted that habit. Their children too speak in a loud voice and they were born and raised in the cities.
Generally the Spring Festival was okay. Good news is that I didn't argue with my dad, not even once! That night when he was not pleased, it happened that my mum stood by my side and I kept quiet. I felt calm and pleased whenever I thought of new cameras. So the problem went away silently. Mum praised me for dealing with this calmly when we were alone together.
Now I am back to school, find myself drowning with piles of work. I will post the photos I took these days later on my blog~~~
Happy new year to every one!

Monday, February 12, 2007

OpenGL

今天看了red book一点点,想自己写点,但是include library非常麻烦,单单要让program compile已经很痛苦了。没有挣扎干脆继续看看课本,惜只买到中文版,还要一边读一边翻译成英文
Every time after an action or frame, we need to call the function:
glFlush(); /glFinish();
--- to rienforce the system to refresh or execute the previous lines of program(functions) will ensure that the orders are excuted in some time(instead of forever)

for Polygons, to be valid, must fulfill:
simple polygon
convex
no holes inside

to model curves, we have a lot of small segment of straight lines to make the 'curve' looks smooth

enclose the functions of the vertice with glBegin() and glEnd()
example:
glBegin(GL_POLYGON);
glVertex2f(0.0, 0.0);
glVertex2f(0.0, 3.0);
glVertex2f(4.0, 3.0);
glVertex2f(6.0, 1.5);
glVertex2f(4.0, 0.0);
glEnd();

If replace the GL_POLYGON with GL_POINTS they will be five oints only.
there are some functions that we can use in between. Such as glColor(), glIndex(), glSecondaryColor(), glNormal(), glMaterial(), glFogCoord(), glTexCoord(), glMultiTexCoord(), glEdgeFlag(), glArrayElement(), glEvalCoord(), glEvaPoint() (to create coordinate), glCallList(), glCallLists

Here is a ineffiecient way to draw a circle:
#define PI 3.1415926535898
GLint circle_points = 100;
glBegin(GL_LINE_LOOP);
for (i = 0; i < circle_points; i++ ){
angle = 2*PI/circle_points;
glVertex2f(cos(angle), sin(angle));
}
glEnd();

Sunday, February 11, 2007

Healthier?


These days though my timetable is full, I tried to keep going to the gym at least three times a week. I wanna stay healthy~~~ Even my mom managed to lose some weight and keep fit. I lost 1kg after the first two weeks. But probably because of the stressful comp211. My teammates made me nervous.
At the beginning of the semester, Rebecca and I had different courses or sections. Amazingly, now after all the swapping, adding and dropping, we have the same comp341, comp342, comp343 and huma200w!! Now we could do project for comp341, comp342 and huma200w together~~~ For comp341 OpenGL stuff, we planned to make either a set of Jazz drum or a small lovely area. I think that might be cool. But when I started to do the simple small program, it seemed very hard even for simple shapes~~~ Perhaps I am not familiar with the functions in the library. And I hate using MS Visual Studio to program and compile, so inconvenient. Daniel recommanded .NET but I am not a fan either. For comp343, following the instructions of labs everyone can feel the sense of achievement.
Yesterday I decided to take a day off and so I went shopping. I got sports wear. Though the size is not so right for me but it feels good. In that COLOR shopping mall, there are a lot of discounted items!!! But I have to save money for the SLDC that I wanna buy in this year. (Nikon D80) I got YINGZi's message and she asked me to call her back, unfortunately, she didn't give me her #. In the evening, I should have done my laundry and cleaned my room and had a good sleep. Instead I finished all the ep Daniel sent me earlier. I didn't make good use of my time. Norelle came and said she was really bored. But I didn't want to have a talk in the middle of my movie. I hoped she would notice that and leave. I should have thought of that--- if I don't explicitly tell her that it is not a good time to talk, she wont get it. So that delayed my finishing time. Later Amber came to borrow some cosmetic, I wanna talk with Amber in private, but there's no way to tell Norelle to leave. So she stayed in my room for some hours. Norelle is going to exchange too. To the UC! Heaven for her! I guess she might find a lot of attractive ABCs~~~
After the indulgence, I realized that I was behind schedule a lot. So today at this moment I am still in the lab. But the database schema stuck Daniel and I. He was like always--- desperate and anxious. I just told him to calm down but actually I was quite worried too. You know you cant really work when you are not calm. I hope I can get more things done tomorrow.
P.S. should I put on my suit for interview? Still struggling~~~

Monday, February 05, 2007

new semester

The new semester has begun and as usual I didn't have much work done in the first week. But I know this semester I'm gonna be really busy. For the exchange program, Warwick U accepted me and a professor from there is gonna give me a short interview next Tue. I should have asked Rebecca to drop down Warwick U in her list. Now she's going to Minnesota. If we find ourselves some guys in the host school to form a group we can do FYP there which is a bit unlikely to happen... I am still thinking of coming back to do it with her. Bad news, GRE will be taken on June 9th. It is too rush for me. I applied for internship in CCTV too. I heard that the priority is for locals. But I guess not too many students would like to go there, after all the environment is not attractive. My dad is worried about my future. He asked me why did I choose internship over GRE. I told him that if I apply for PG study in the UK, I don't have to take anything like GRE. So he thinks it acceptable but he added in the end, for field like media the US is still the very good choice.
I've turned in the declaration form of minor in liberal studies. After this semester I will earn enough for it.
Huma099F moral philosophy
Huma200Q Gothic Imagination in Literature and film
Huma200T Classical Chinese Drama: Text and Performance
Huma200W Contenporary Architecture
Sosc127 International Law
Sosc134 Sino-US relation
it is a pity that I cannot choose Huma230 this semester because it is not on the list of LS.
So this semester I will have 4 comp course if lucky---i'm still on the waiting list of comp231.
comp211 software engineering
comp341 computer graphics
comp343 multimedia computing
comp231 database management system/comp342 introduction to computer music

Monday, January 15, 2007

iPhone——爱疯

昨天在报纸上看到说中国人的code是“爱疯”,觉得十分有趣。我本身是“疯”的实践者,觉得这样形容太贴切了。到时候iPhone上架,真想要一部啊。400-500 US dollars,不算贵,有4/8GB,有iPod的功能,又有一般手机功能,还可以根据使用者接近电话的程度调节音量,是touchscreen。唉,其他手机制造商们该紧张了。apple大有microsoft的垄断趋势啊。想要08年iPhone市场占有率1%(?不记得确切数据,大概10million)呢!
那天在百佳见到'Gothic'的professor,她是我喜欢的那种知性美女。我连忙说:“老师好。”一般的回答不是“你好”吗,不过老师很和煦的笑着问:“你好吗?”由于没有想到是问句,我愣住了,老师稍微提高点音量又重复“你好吗”。我脑子里在盘算说什么好呢,应该说得庄重点,还是随意点,还是老实说,还是……还没有计算好,嘴巴不耐烦了,张了张,喉咙里就挤出:“我很好。”自己也傻了,我好不好不要紧,马上又问:“老师好吗?怎么放假了还在学校?”一说出来就后悔了,会不会是老师没有家人?会不会是老师无法回家?唉,我也像片山义太郎一样了吗?说起来,看美女,单单讲外貌的话,得是model一般的美丽,我才会认可。但是生活中的女性,就有不少我欣赏的。比如平易近人的,真诚的,聪慧的,这些都是我喜欢的美女。最讨厌娇气的小女生了,呵呵。会不会因为这样,我初中的朋友才比较少呢?那时候的美女太少了嘛。
今天早上training途中选了课,虽然今年random number比较前了,但是comp可以选的不多。没有了comp111,comp201又和我的core撞了。由于我原来都没有修过comp的elective,但是csie的degree要求5个comp的elective吧。不想用来修database,networking之类的,倾向于multimedia的方面吧。最后在wait comp342.曾经在comp343和comp342间犹豫着。我对comp343比较有兴趣,但是那是recommand year3才take的,还是comp342吧,music嘛,也是multimedia的一部分。
对了,我说过toefl的成绩吧,现在才寄到呢。我想下学期考ielts,暑假考GRE,最近开始学习了些。不过每天一本小说还是有坚持的,所以牺牲了点睡眠时间。ivan那边已经开学了,他有写email来,我在想回什么。经过那件事,我很想保持原状,不过好像不太受本人控制,怎么想也觉得自己失败,一想到就忍不住难过。当然也没有那么夸张,可以说是起了微妙的变化。说我无聊也好,不能保持纯真的东西,很让我泄气的。Daniel没有来第二个training,曾经以为他是不是生病了,后来才知道他记错时间了。早就应该想到了。那个人不知道是不是想女生想到把training都搞错了。有点优柔寡断的,真是的。虽然有的时候看在眼里,也替他着急,但是,绝不给他提什么建议了。上次,我就是看不过眼才说“那么喜欢的话就去追咯”,现在想起来,我又完全不了解那个女生,怎么可以对朋友说那么不负责任的话。呵呵,反正他失败了也不能怪我的。
明天就是最后一天了,熬完它啊。现在要过去咯~~

Tuesday, January 09, 2007

流水

最近花钱如流水。上次回家,妈妈说:“不要紧,我们努力存钱给你。”怎么听都是“你要好好节约”的意思。不过,我也没有买没用的东西啊,买的鞋子不是天天穿吗?
托福成绩出来了,去哪间学校都足够了。可是,deadline那天,我一边等Rebecca的消息,一边竟然睡着了。以至于过了deadline才回复学校那边。当时,那个说话很快的女的也仅仅是叫我第二天12点以前交回去就好,哪知道她还有阴招。我第二天就从深圳赶回香港,总不能叫Rebecca帮我了,应该自己来的。当下也无事。过几天Check email,那个人来了篇长长的email说,我没有交待,要有penalty。有penalty我也就认了,早告诉我晚告诉我是一样的。不过她竟然说要扣我面试分,降低我的priority。这和death penalty有什么区别。还写得自己非常仁慈,真不知道是不是应该写感谢信什么的。公平点不是应该扣toefl分吗?因为我是晚交toefl成绩嘛。不过,我也至多在这里抱怨一下,晚交是事实,怨不得谁。现在头痛的是怎么和家里人交代,总是问。解释也解释不清楚,挨批是一定的了。又不能说我年轻会犯错,只有学校犯错是可以找借口的啊。
第一个section已经结束,那几天真的很轻松。本来就是跟着tang tang的步骤就可以完成的task,有一天迟到,不到一分钟,旁边的强人就帮我做完了。呵呵,左边是肖健雄(此人虽然健谈得让人头痛,不过确实很有实力,很有趣),右边是Daniel。中间有一天晚上,我们csie四个人去宝林吃饭,是Haze上次介绍的烤肉。我知道一定不会亏,Rebecca是伸缩胃,另外两位一米八的个,胃也小不到哪里去。我才知道费扬是狮子,完全不吃菜。对他赞不绝口的肉是烤了一份又一份。唉,为什么皮肤还是那么好呢?Daniel竟然觉得我吃得不多,不应该觉得那么饱,拜托,也要按比例比较的啊。其实认真看费扬真的长得还不错啦,不过和他做朋友会不会总觉得在领导手下工作呢?嗬嗬,其实也合作过,一开始满难沟通,觉得他好像没有听懂我和Rebecca的意思。后来也还行了。Daniel说费扬有钱,2千多的耳机有两副,他自己1千多的表还不是两块,送给ex的swatch也价值不菲?我都是戴爸爸开会的纪念表而已嘛。所以说只是大家钱花在了不同的地方罢了。
这两天都没有出去,一来怕花钱,二来起床都下午了。呵呵。每天的功课是扫荡赤川次郎的侦探小说。大部分日本有名的侦探小说家的作品都被我一一击破了,但是赤川次郎的作品量实在是大,而且介绍都是说受妇孺欢迎,那不是像柯南一样?不过天树征丸的刺激是刺激,前面把人写得那么险恶,最后都有什么苦衷,然后坐几年牢就改邪归正,人生不是太轻巧了吗?如果我有那样的仇恨要杀人,杀完人便装出很悔恨的样子,博取同情,在牢里待几年有是一条好汉。归根到底,日本人的意识形态还是像极了中国古时候。他们的刑法很注重杀人动机,过失杀人,谋杀等等都是看杀人的心态,所以他们会很注重杀人手法,比如手法凌乱,说明是一时激动,错手伤人,罪或许会轻些。替父母报仇虽然没有刑法保护,但是从作家的观点看是值得同情的。中国古时候就觉得“杀人之父,人亦杀其父”是孝道。日本人大概也继承了这种思想,他们这种观念一直延续到现在,你看看《death note》就知道了。正义,或者是道德在画家眼中似乎是比法律要重要的。所以我看到月胜利会不舒服,因为我有这方面的联想,但是Ivan就喜欢月,或许觉得他很酷,觉得我这些想法小题大做,毕竟只是漫画,只是电影。扯远了。其实,看完全部名家作品是我的人生project。有一段时间在家看,竟然被爸爸说得这些小说一文不值,当时不知道有多失望。我借的是森村诚一的书,爸爸说很无聊,很幼稚。可是我小时候他不是常常想起《人性的证明》里那首草帽歌吗?他没有看过松本清张的《沙器》?我借的都是老作家的作品了,他学习中文出身的怎么说出这些话?哎,也难怪,他是应用类的,又不是文学类的。原来一直在我面前充无所不知,也是他的权威性不容怀疑吧。如果我这篇东西让他看到,不知道要和我怄气到什么时候呢。妈妈常说“得饶人处且饶人”,我只能躲到学校来,在家哪里能够这样看书啊?赤川次郎的书确实什么时候看都可以,没有什么恐怖的情节,轻松愉快,甚至挺温馨的。只有那个《狮子在睡觉》让我有点害怕,倒不是情节,主要是在家里养狮子太疯狂,我的理智不容我这样,小时候又常常梦到有狮子的噩梦。赤川的东西嘛,都很带有漫画色彩,或者童话色彩,对话非常生动。我看的时候都可以想象出漫画的话会怎么样,拍成电视会怎么样。
那天读到英文的《挪威森林》觉得很优美,就放下偏见想借来读读。竟然在深圳图书馆没有找到,学校这里也没有。就借了他的文集《萤》。是挺美的,但是不太懂,有些地方像是意识流。我对于作者的背景一点认识也没有呢。算了,觉得优美就好了。意识流这个东西就跟现代艺术一样,骄傲难以亲近呢。