My 10-years-have-not-seen classmate Yin Huanhuan added to my MSN messenger contact list yesterday. It is unbelievable that she is a writer now and is very famous in my hometown. She wrote a river novel called “柔柔女å©å¿ƒ”. I guess every section of this fiction is the reflection of her.
Why So Many People come to Shanghai
I left my office with one of my colleagues very late yesterday. It was valentine’s day, of course, we talked about the feast day at first. Then, our topic changed to his high school life. He is from Shandong Province where high school students’ Gaokao(National College Entrance Examinations) mark is very high and now he have graduated from Shanghai Jiao Tong University. He said he was No.1 when he was high school student, but when he came to the university, he found that so many talent students in the university.
A trick using #if pre-processor
I hit a small C++ grammar trick which I have never met before in my project. The problem is how to deal with the situation that two defined identifiers have the same compilation behavior. A simple solution to this is to write two same block code like this:
My MovableType Archive Template
The original archive template in MovableType 3.2 will list all the articles in block. Of course, I do not like showing my articles in such a chaos. Obviously, My Readers will suffer a lot as the total of my articles increase to a considerable number. So I search the Internet and try to find a way that displaying the articles more friendly. Well I find a yearly archives template is very similar to my demand, but what I prefer is list my articles all together separated by month not year.
Feedback of This Site
I guess you have some interest in this site when you come here! Since this site is built not very long and only maintained by myself, of course, there are many bugs in this site. So if you have any unconvenience when browsing this site, please do not hesitate to post a comment here!
I appreciate all your suggestions!
Display Code In Entries
Maybe there are many reasons that you want show the source code in your MT entries, such as HTML, C++, Perl etc. However, if you simply type that code in while writing the entry, the resulting page will not show the tags and code. So how do you display code in entries? There are several methods and currently my method is using code2HTML and design a CSS style for it.
Programming in the UNIX Environment
There are two books that I have read when I began my programming career.
One is <Advanced Programming in the UNIX Environment> written by W. Richard Stevens. The other is <Linux Device Drivers, 2nd Edition> written by Alessandro Rubini and Jonathan Corbet
Thinking in C++
I have read the volume 1 of the book during the last month.
It is a very famous book about C++. When I was searching the way to master the C++ language, everyone recommend this book to me.
Windows file permission influence my blog
Since I installed the Movable Type on my laptop which runs Windows xp, I have suffered a lot from the windows file system permission settings. Here is some typical errors if you do not set the proper permission of your files in the “Intepubwwwroot” directory.
Continue reading “Windows file permission influence my blog”
IE And Firefox CSS Compatibility Problem
There are many differences between firefox and IE in terms of parsing CSS file and rendering web page.
When I built this site, I suffered the pain, that when I designed a HTML page with a CSS style, it looks pretty fine in Microsoft’s IE but terrible in Firefox. Here is an example, people often use nested “<div>” tag in their HTML file and so do I. If you also do such things and hope people have good experiences when browse your website using Firefox you should be careful with your CSS style design.
Update my CSS style
It is really complicated, I think, at least for me! I havn’t learnt CSS before, therefore, it took me lots of time to change the default CSS style to the current one.
Here is some useful site that I visit on a regular basis :
456 Berea Street
A personal blog that concerns CSS.
W3Schools
Huge resources including CSS tutorial with examples, quizzes, references in this offical site.
HTML dog
HTML and CSS Tutorials, References. This is the first site I refered to when I plan to study HTML and CSS.
Recommend a Website Host
I just find a website host service called dreamhost by accident when surfing on the internet. I am not using their service at present, but I think I will plan to transfer my site to dreamhost. (update: I am using their service now) The “Crazy Domain Insane!” level hosting cost $7.95/mo–as I know, it is not expensive,If you enter a promotion code when you sign up, the price will be much lower!