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.
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.
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.
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.
A memory bug detector
This interesting tool valgrind is a debug tool and can been used to find memory bug, include memory leak. There is a rpm in Fedora Core 3 CD. You can get it from CD or download the source code from their website. Moreover, this tool is a Free Software, and is freely available under the GNU General Public License. You can use it to debug Linux programs and it’s very easy to use.
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.
A stroll with Friends
Due to the long distance between Gongqing Forest Park and the place where I live, the original barbecue plan in this weekend was canceled. But I am feeling a little regretted now about the decision I have made. Fortunately, Yixuan didn’t change his mind and came to shanghai again. He brought us a heavy downpour and took a QUANJUDE roast duck back to Hangzhou.
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”
Single party
I went to a party for single this Saturday. The matchmakers were my colleagues and his girlfriend. It seems that the guys in my department is a little introverted and the result is that only 3 guys attended this party while there are 11 girls show up.
My Experience of Learning English
The mail and question:
大哥。最近挺忙å§ï¼Ÿ
æ˜¯è¿™æ ·ï¼Œæˆ‘æ˜¨å¤©è¢«å‘ŠçŸ¥ï¼Œæˆ‘å¯ä»¥å‚CET4考试,还有2个多月的时间å§ã€‚
æ¥åˆ°å¤§å¦æ„Ÿè§‰è‹±è¯çš„å¦ä¹ 很被动,并且也很éƒé—·ï¼Œä¼¼ä¹Žè‹±è¯èƒ½åŠ›è¿˜ä¸å¦‚高ä¸äº†ã€‚è§‰å¾—ä½ è‹±è¯å¾ˆæ£’,有没有什么ç»éªŒå¯ä»¥åˆ†äº«ä¸€ä¸‹ï¼Ÿthanks
注æ„身体
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