Archive for March, 2009

I hate the rain

There's a proverb said "Rain in spring is as precious as oil". Yes, it's true for the farmers, for the plants, for the new fresh leaves. Spring brings them new life each year.
I hate the rain, especially today. I started from home to Meten early in the afternoon. It started to rain when I was halfway. I knew that I had to take a bus in the rainy day, not by bike. Searched at the online map, I found out I can take No.27 bus first to Renmin Road and then take No.16 bus to the place near Meten.
It was fine that it took me about 40 minutes to get there, probably 2 times longer than riding a bike. The rain stopped when I got Meten. Would it start rain again? I guess so. If it was not rainy, I should ride a bike then it would be easier and faster to get back to school.
I reviewed and previewed my courses and had supper at about six. Meal was not very bad, but a little expensive. After I finished, I went to AV room to watch "The Assassination of the Hitler". You might have seen that before. It is a good movie.
I had to go when clock was pointing to eight.
Bad luck, it rained again, heavier than before.
But the worst was, I couldn't find the No.16 bus station on the way back. I went to the opposite of the station where I got off when I came, but to my disappointed there was no bus station near there. Where was it?
After about 15 minutes' walk, I gave up. I'd better to go back to see the roadmap. It pointed out that the No.16 bus would not came back here because of the constuction of the subway. I had to get a taxi.
I was sure I had a bad luck this week.
On Tuesdays I missed my salon class and I also missed the girl.
On Thursday I was busy writting documents and got too tired.
Yesterday I walked a long way to get on the No.37 bus, but it's too crowded that I was barely out of the door. I got off after 2 stations and walked again to take No.42 bus. It was unlucky that I missed the right station. I really sad at that time... It was wasting of time, I really dislike it.
Could god save me next week?
Hope things get better next week!

I hate missing class like this.

It's my mistake. I checked out the course but I found it was finished. I didn't record the time course starts on my phone and I even remembered I had one class tonight.

Though it is not a problem, every student has one chance to book the lesson again. But I really hate missing any classes. I should be more careful in future.

Trip to YunDing Mountain

At the last few days last week, temperature raised sharply from cold to too hot. I worn 2 clothes at the beginning of last week but only one thin shirt at Saturday.

It was sunny last Sunday. After two weeks staying at home, we planned to have a trip to someplace. We've traveled quite a lot places last year, so it's getting harder to choose where to go. Thanks to my clever father, he searched the web and found a place called YunDing Mountain in JinTang county, southeast of ChengDu.

We got up early on Sunday and started at about 9:00AM. It's only one hour before we got to the entry of the main road of scenic spot. The road was hard to drive, and we have to go back and find another way because the road was reparing and was blocked.

We found another road that we did't want. It was funny that before we left home, we said we won't go pass cemetery for cars there would be so crowded. We had no choice.

Pic: peachblossom beside the road

3-22 (3).jpg

Ahh, so strong the sun was, so I nearly closed my eyes!~
3-22 (4).jpg

Pic: Our black car

3-22 (5).jpg

Road was so long, narrow and wriggle. Someone put stones on the road, I didn't know why they did that.

Pic:Stones on the center of road

3-22 (9).jpg

We passed by a small temple and had a short rest there. It should be a old temple here but has been destroyed during the great proletarian cultural revolution, leaving only flowerpot from the Tang Dynasty. They said someone wanted to buy it at the cost of 100,000 but they didn't sell it. They were the old memory or the history here.

3-22 (7).jpg

3-22 (8).jpg

We contined our rode to the top.
3-22 (10).jpg

3-22 (11).jpg

There were wild yellow flowers everywhere. People picked it up and put it before the tomb in memory of their ancestors.

3-22 (12).jpg

3-22 (13).jpg

3-22 (14).jpg

After about half an hour's driving we arrived at the top, a temple here called YunDing Mountain which means this is the hightes temple here and colds normally flow below this temple.

3-22 (15).jpg

When we were there, a lot of people were shouting and congratulating their success of conquering the hill mountain.

3-22 (16).jpg

And there's the dining hall. People here have to have dinner with others. At the first sight, everyone only pay 4 yuan to have a meal is very cheap. But when you see that 10 people only have 4 kinds of dishes, you will know that is too expensive. And having dinners with strangers was not acceptable in my mind. So we decied to eat outside.

3-22 (18).jpg

3-22 (19).jpg

3-22 (20).jpg

At last, this is the highest hall here call TianGong Hall. It means it is a hall build above the sky. Here you can get a overview of very far away.

3-22 (21).jpg

3-22 (22).jpg

That's all for the temple. If the main road was not under construction, we could have a better trip there. We have another chance to get there and enjoy the climbing hill.

We got home early afternoon. Father photoed flowers in our garden. Beautiful, aren't they?

3-22 (23).jpg

3-22.jpg

Vampires

Today's topic at my Complementary Class was VAMPIRES. What is vampire? Do you remeber the bat flying from the hidden place and bite people's neck in movie? That's kind of vampire.

To introduce what is vampire and how to kill it, the teacher showed us a short movie called Darcula. You may hear that before. Although I doesn't belive there is vampire, but teacher also taught us how to kill them:

  1. Burn the dead body.
  2. Drive a wooden stroke through its heart.
  3. (Man only) Chop off its head with a gravediggers shovel.

And the end of the course, teacher played a clip of National Geographic. This clip could be found here: http://www.poetv.com/video.php?vid=28007

Is that real? I consider not. I don't belive vampires and ghosts.

After my class I attended Joe's study advice. I was new here. We talked about English study, he suggested us to practise at www.listeningexpress.com

At the end, write a tongue twister:

She sells seashells on the seashore, the shells she sells are seasheels. So if she sells shells on the seashore, I'm sure she sells seashore shells.

That's all for today, have a nice sleep.

.NET 2.0数据绑定纯粹是垃圾

我在开发WinForm应用程序的时候很少使用数据绑定,以前也没有怎么用过。今天在做一个参数设置面板的时候用到了他。然而很令我失望,它不仅没有解决问题,而且还带来了严重的问题,让我找了好半天,最后确认是BUG。当然也不是我一个人遇到了,看看这篇文章,他们也遇到了相同问题。

问题描述起来是这样的:

我有一个这么样一个Class:

[csharp]
public class BindTest
{
private int number = 5;

private int anotherNumber = 10;

public int Number
{
get { return number; }
set { number = value; }
}

public int AnotherNumber
{
get { return anotherNumber; }
set { anotherNumber = value; }
}
}
[/csharp]

窗体上有两个控件,一个是textBox1,绑定Number属性,另一个是textBox2,绑定AnotherNumber属性。由于我需要“确认”和“取消”按钮,所以我在高级绑定里面将两个控件的绑定行为改为Never,也就是不更新它的值。

按照MSDN里面阐述的,使用Binding的WriteValue()方法就可以将数据更新。在我的程序里面可以这样写:textBox1.DataBinding[0].WriteValue();

textBox2类似的做法。

后来一运行,问题就出来了,仅仅能够将textBox1的值更新,而textBox2的值还原了!!!

一番搜索以后又回到了刚开始的那篇讨论中,有人这么说道:

As to the problem above this comment, it is a common malfunction of databinding. Simply, if you attempt to control the writing/reading behavior of Binding class, it will --REVERT-- changes of all other non-bound fields/properties. Therefore, only first bound control gets updated due to the fact it is the only one which has access to CHANGED data, after its done with the update, it reverts the changes back thus canceling them, so other bindings are useless.

大意是“这是数据绑定的一个故障。简而言之,试图操作绑定类的写入和读取行为,它回将所有的未绑定的字段和属性还原。因此,仅仅只有第一个被绑定的对象能够得到修改了的数据,在它完成刷新操作之后,它将所有的修改还原因此就取消了其他控件的修改,因此绑定是无用的”

理解了以后,就明白了,我得重新手动写了,哎,数据绑定真是讨厌啊。