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.

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

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

Little hard to understand

He, a British man, tought me the second private class. His voice was fast and at the first I even could not catch what he said. I have to tell him to repeat: I'm sorry and could you please repeating that?

But not all students weren't know what he said. A girl sat beside me, who brought a English novel, told me that is easy to know what he said. I did not lose my mind but listened carefully and tried to understand.

After a few moment, I was familar with his voice although I don't know some words. I tried my best. Finally I almost knew every thing he said. That's much better!

Complementary class was followed by private class, my teacher was an handsome American man. Todays' topic had been English in hard times, but we enjoyed talking about other things, so finally teacher changed his mind. To me, it's no matter what topic, I was listening and practising.

Here take some notes about what I learned today:

  • Oh, my god. Thanks heavenas.
  • handed it in
  • carry away; who's taken it?
  • tangible, intangible
  • bolt of lightning
  • shelter -- some place to hide from rain
  • soaking wet -- really wet. Today is so hot that we are soaking wet.
  • witness
  • creak
  • defiance, defy
  • handout
  • spouse -- wife or husband
  • accuse -- eg. Maybe you have been accused of some crime?
  • paralyze -- make powerless and unable to function
  • bossy
  • lousy -- very bad

First class at Meten

It's sunny today and it is my first class at Meten. I wake up at 9 o'clock and had a launch at home with my family. After dinner, I went to school to fetch my student books.

I meat my SA at 3:00 PM, and she introduced the whole class and showed me how to book the courses. I took notes carefully but at the end I was still not very clear. That was not a big problem, just go and have a try.

ELLIS training software have four classes I needed to finish in one and half an hour, just because I must finished this to enter private class today. Time was so limited! I tried to follow the all instructions and comments, but it was hard to do so. So I have to skip some contents and focus on important material.

When I completed the lessones, it was twenty past six. I had to have a supper right now, I was too hungry that time.

I ate quickly and returned to Meteni at twenty to seven. Twenty minues were used to do oral test. SA gave me questions about the course I took, but I was sorry that I forget many detail about the dialog. I needed to review them after class.

Seven o'clock, which it's my private class time. Two girls and I were setting in a small classroom and my foreign teacher was Callum. We talked about phone courtesy, in another way, how to do polite phone call.

The lesson was focus on what to do is polite when making a call. I took note about mobile phone and landline, discussed about the time to make phone, listened to teacher's article on Living in Australia which is a short story about friendship.

I've learned the words: CV, curriculum, courtesy, curfew, landline, surf, sarcasm, sarcasitic, ironic, irony.

Difference between: over the 3 years, over 3 years.

Happy new year and merry christmas. We could also say Happy Christmas.

That's it, I learned a lot, but require further review on them. Have a nice sleep!

增重了

高中毕业110;本科,最高纪录120,基本110;研一,去了趟浙江天天红烧肉,120;研二,春节这段时间吃多了,过剩了,对肉没啥兴趣了,现在130。

运动少了,肚子上的肉也多了起来,可能该减肥了……

不得已又换回来了

前天换了个好看的主题Atahualpa,功能是相当的强大,可选的东西太多了。但是郁闷的是页面开始变得很臃肿,在大刀阔斧的优化了一番以后,在Firefox里面跑得很快了,但IE的载入速度依然不理想,应该更准确的说是抓狂。优化原则是把大部分的css和js都放到页面最后,Firefox可以也快的浏览到页面内容,大概就5s以下就能看到内容。但那个破IE,我用IE WebDeveloper看了看载入,搞了半天IE把所有的东西载入完成了再显示页面的……是说那么慢。还有什么优化的措施么?

无奈最后俺的技术有限,还是换回了老得Gear主题,有时间再来折腾这个玩意儿了。

元通古镇

春节过后就一直没有闲着,几个项目轮番轰炸,一个个问题弄得焦头烂额。还好,事情总是在向好的方向发展,安排好了时间,规划好了项目优先级,一个一个的攻克了。

上周周末终于迎来了一个休息,也让自己好好休息一下了。

周日是个不太好的天气,早上还在下毛毛雨,路没有湿,决定出去玩玩。

本来是没有安排的行动,走哪儿都可以,老爸说到那个新场去看看,说是以前听说那儿有个古镇。

从成温邛高速到新场下,走了一截烂路,到了新场,什么个破古镇,全是新修的,还没修好。没意思回了。然后又准备到都江堰去看看现在的状况,自从地震以后还没有去过。路上要经过元通,一个依旧保留古朴的小镇。以前从旁边路过几次,但都没有驻足下来仔细看看。路上有一家鸭子做得不错,所以中午就到那家店吃鸭子,可惜这天没有鸭子,就只有吃连锅,安逸,从12点半吃到1点半,吃得好饱。

今天有机会好好的看看元通古镇了,没有打造的古镇, Read more

1
Return top