29
Apr

杂念2007.04.29

又是一个雨天。

本打算中午去开一会儿车,毛毛细雨让我兴致全无。看天气预报明天也是有雨,看来要推迟到五一上来之后了。

公司最近这两个月有组织和人事方面的大调整。今天忽然收到邮件,原物流经理已经离职,有些诧异。说起来跟她私交还算不错,一起去阳澄湖吃过螃蟹,可爱的儿子David也很受大家欢迎。这次忽然离职,想必有她的原因。一般按照习俗,离职人员最后一天都会发封Farewell letter,或者逐个跟大家告别。这次却什么征兆都没有,所以感觉比较突然,不过也可能是高管行事的一种方式也未可知。想想这也是工作后必然会经历的一些事情吧,人聚人散,总会有分道扬镳的一天。只不过心底有过一些东西掠过,多少还是有些感性在里头。

不晓得等到将来自己也要走的那天,会不会有人也有所挂念呢

五一长假就要来了,好好休息休息。本打算出去上海周边走走看看,考虑到人实在太多,而且大多数景点都有很不厚道的降低服务和提高价格的惯例,作罢。或许有空去看看小猴子倒是不错。

20
Apr

Taking driver training course in Shanghai [3]

You can find the previous post here: [1] and [2] .

Sorry this part is not on schedule. I should mention this in the very beginning. But due to a stupid mistake (mine? the receptioner? ), the sign up process is not finished until last week. It is because here in China, you have to provide a paper token from the trafic management office where your HuKou belongs to. And when I first went to WanGuo for registration, they just told me that I only have to bring this paper on the day for theroy test (mostly about traffic rules). Later after three weeks’ inpatient waiting, I got the result that the registration can not be done without that paper through the phone.

Angry was I, and stupid was I.

Two weeks after I handed in the paper, I received a short message from WanGuo for school opening notification. One month and 6 days after my first sign up!

By the way, you will be asked to prepare for the theory test and then take turns to attend the test. Finally I got a score of 95 (100 for full mark and 90 is the minimum for passing). One will have another chance to test again in the afternoon if you failed in the morning. And if it still turned out to be a failure, they will rearrange the time and you’ll have the second try maybe one or two weeks later. Also, they succeed in charging you 40 RMB for doing this :) .

The next step is to meet your coach and make a deal (time schedule) with him/her after you passed the test. I had already met mine so I don’t have to do that.

The coming course will be “driving backward”. I’m looking forward to it.

16
Apr

Taking driver training course in Shanghai [2]

Last time I wrote a post to describe the registration process here, and this time I’ll continue to share some experience during the driving course.

The first training day started on Apr 6, last Friday. I was so lucky because there was no other students that morning. So the coach spent more than 2 hours with me alone, and taught me how to drive forward. This is the basic and beginning step one must take. Turning the gear lever into level 0, starting the engine using the key, stepping down the clutch, turning the gear lever into lever 1, releasing the handbrake, lifting the left foot from the clutch slowly and gently, and there you go.

Sounds easy? nope.

When the car is first started, you have to control the clutch very carefully to make sure that the engine won’t shutdown (called flameout). This is the most difficult part I felt because the damn clutch is so sensitive hence is hard to make accurate control. But finally I got the feeling and the car’s running happily on the road :P

Another part is about how to control the speed and take turning. My experience coming to the following conclusion: when coming close to the corner, stepping on the brake slightly to slow down, then stepping down the clutch and switching the gear lever into level 1 or 2, depending on how fast you wanna. After take that turning, steeping on the accelerograph to accelerate. Finally switch to level 3 or above, and of course don’t forget the clutch as previous mentioned.

So that’s all I’ve learnt by now. Correct me if you found anything wrong in this article.

Next topic might be “How to start on the brae” and/or “How to drive backward”. Be patient.

12
Apr

在C#中加载DbProviderFactory的一种另类方式 / An abnormal way to load DbProviderFactory in C#

通常来说,C#中加载DbProviderFactory的方式是这样的:

DbProviderFactory provider = DbProviderFactories.GetFactory(providerName);

这样做有一个前提,就是当前.net运行环境里面已经安装并且正确配置了相应的 ADO.NET Data Provider。具体来说:

  1. 如果不是.net已经自带的Data Provider,需要先安装相应的驱动
  2. 修改C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config文件(以Firebird2.0为例):
    • 编辑configSections一段,加入:
      <section name="firebirdsql.data.firebirdclient" type="System.Data.Common.DbProviderConfigurationHandler, System.Data, Version=2.1.0.0, Culture=neutral, PublicKeyToken=3750abcc3150b00c" />
    • 编辑DbProviderFactories一段,加入:
      <add name="FirebirdClient Data Provider" invariant="FirebirdSql.Data.FirebirdClient" description=".Net Framework Data Provider for Firebird" type="FirebirdSql.Data.FirebirdClient.FirebirdClientFactory, FirebirdSql.Data.FirebirdClient, Version=2.1.0.0, Culture=neutral, PublicKeyToken=3750abcc3150b00c" />

经过上述修改后,才能在你的应用程序中按照如下方式正确的调用到想要的DbProviderFactory

more…

08
Apr

Guilty as charged

好,诸事结束,算是告一段落。

该偿还的已经偿还,该结束的也已经结束。

So, let it be.