My First Digital Camera

I’m thinking of getting a digital camera for a long time but I don’t get one until yesterday. The problem is that which digital camera I should buy. There are innumerable cameras in the market currently. I must admit that I haven’t a clue to choose one! Finally, after long time search, I made up my mind. Canno A610 is very fortunate to be my first digital camera. I have searched much info about this camera on Internet for a couple of weeks, so it only took me about 15 minutes to buy the camera in Xujiahui. Because of the last experience of buying digital goods in Xujiahui, the goods there are a bit expensive. I was planned to buy it on Internet. But it seems that the digital camera is an exception and I cancelled the original plan.

Continue reading “My First Digital Camera”

My First MFC Application using COM

I am excited to tell you that I have built a simple MFC applcation using COM objects, which used to be somehow mysterious to me. The COM objects are created by ATL. Before reading this article, I assume that you have the basic knowledge of COM and be experienced programming in C++. One thing I should pointed out is that I am a newbie of COM and there may be some errors in this article. Still, The reason I write this article is to record my growth of my technical career and share it with you.

Continue reading “My First MFC Application using COM”

await the result

I went to an interview last week and, now await for the result of it. I can’t wait for the result as it may change my career dramatically. Fingers are crossed.

COM COM COM

I thought I would stick on my Linux path and finally to be a Unix/Linux expert when I took the current job. But just like Groom said, “Life is like a box of chocolate, you never know what you’re going to get”. I realize that there are some more interesting technologies there waiting for my exploring. I must confess that The Microsoft® COM (Component Object Model) has made a great effort on platform-independent and object-oriented software development. This technology is so popular that many large companies are using it to build complicated applications and also so many software job positions require knowledge of COM explicitly.

Continue reading “COM COM COM”

Use Regular Expressions in Emacs

What is Regular Expression? A regular expression is a special text string for describing a certain amount of text. Generally, A regular expression contains a few special characters and ordinary characters. If you have used Linux/Windows systems, you will probably familiar with wildcard notations such as *.txt to find all text files in a folder. That’s a simple regular expression example (Thanks for netcasper’s correcting . The regex equivalent to “.txt” is .*.txt). Nowadays, Most of the text editors support regular expression such as vi, emacs and Ultra Editor(not a free software). Today, I would like introduce some basic knowledge about regular expression and use it in Emacs to improve the efficiency of your coding work.

Continue reading “Use Regular Expressions in Emacs”

I should learn Sociology

From the childhood, I was told to study science rather liberal arts. Because the adult believe that graduating by a science degree will have a good job than arts. I don’t know the truth at that time, so finally I complied my parents’ opinion and chose scinece in high school and Computer Science in the college. But the following test told me I should learn Sociology. Was I wrong? maybe. But having made the decision already, I will continue pursuing my dreams in C.S.

Continue reading “I should learn Sociology”

A small piece of anti-spam JavaScript code

I found out that there was a spam in my Blog several days ago and I deleted it manually. The spam is created by MoableType’s comment system. Although MovableType has great anti-spam features. It blocked most of them, but it seems that there are some exceptions. My site is very small though, the spam still came up. I can imagine the serious problem when the traffic of my site increases. so I made some change in my site’s comment system.

Continue reading “A small piece of anti-spam JavaScript code”

My Experience of Learning English

The mail and question:

大哥。最近挺忙吧?
是这样,我昨天被告知,我可以参CET4考试,还有2个多月的时间吧。
来到大学感觉英语的学习很被动,并且也很郁闷,似乎英语能力还不如高中了。觉得你英语很棒,有没有什么经验可以分享一下?thanks
注意身体

Continue reading “My Experience of Learning English”

Where is the Legal System

I think it’s the first time I encounter a violence to flight in a restaurant since I graduated from high school. It was someone’s birthday yesterday. Sorry for the ‘someone’, because I cannot recall her chinese name! I merely know she is sk‘s friend and her blog. I guess her English name is Jessie.

After we sitting down and start our dinner in the restaurant, one of sk’s friends realized that someone at the desk beside us was peeking Jessie. Although we felt uncomfortable, we continued our dinner.

But, suddenly, one of these guys beside us broke the dishes and began to fight with another one. We all felt very uncomfortable at that time. But with the mind that the boss or the manager of this restaurant will deal with it as soon as possible, we kept our tolerance. 

Unfortunately, the manager of this restaurant was a faint-hearted. He just let us move downstairs. I was wondering that why he didn’t call the police. 

After that, we just heard much noise and the sound of broken dishes upstairs. About 1 hour later, the police was called and there was only one policeman showed up. The went upstairs at once. I didn’t know what happened next upstairs. After a while, I just saw a guy savagely came downstairs and left the restaurant just like nothing happened muttering, “I will hack the one called the police!”. After a short while, the policeman also came downstairs and asked the manager of the restaurant (maybe is the boss, I just guess) whether he was the person called the police. The manager said yes. The only policeman just took the fee of calling police and went away too. The world became peaceful again. 

Where is the justice, I thought to myself! The miscreant does not need compensate anything but the victim should pay the fee. I am now completely lost