About This Blog

This is Chunhao's Blog

I'm writing something about life and technology here. As a practice of English writing.

My Chinese Blog: http://blog.chunhao.net

My Chinese Page: http://chunhao.net/index-cn.html

Subscribe

The books I’m reading

The items I’m interested in

License

23 July 2009 - 14:30Partial Eclipse

Thanks Newton for his discovery of the law of the universe, and so can we predict the occurrence of eclipses so accurately.

On July 22, the solar eclipse occurred in the Yangtze River Basin in China. However, in my hometown, there was only partial eclipse. Following are some photos taken by me, with the assistant of a telescope.

before most eclipse

before most eclipse

Read more…

No Comments | Tags: other

18 April 2009 - 20:11My Chinese Blog

A new blog has been set up. I will post my Chinese articles there.

Here, only English contents will appear from now on. All the old articles in both languages here will be reserved. I will use this blog to post some technique articles related to Linux, programming in English. It should be a good way to practice my English writing.

My Chinese blog: http://blog.chunhao.net

No Comments | Tags: other

22 February 2009 - 23:02Unify the themes

My site is based on various applications. The blog is based on Wordpress, the wiki is based on Dokuwiki, the photo gallery the Simpleviewer. Other pages are written by hand.

Originally, each part had its own theme. It’s hard to acces other parts directly from one part. For example, there are no links from my blog or wiki to my homepage. I decided to change this. Eventually, the goal is achieved.

The theme of my blog is blue-pix. I like it for its briefness. The first thing I did is to port this theme on my home page. This work is pretty simple. I only changed the tags of the CSS file. Then, I modified the blog’s theme, added a link to homepage. The themes of homepage and blog was unified.

Next thing is my wiki. I have no idea about how to create template on dokuwiki at the beginning. When I refered to this link, I started my work. I did a lot of change on CSS and PHP files. Finally, my own template of dokuwiki was created. Now the themes of the whole site is unified, except for the photo gallery.

For the blog’s theme, blue-pix, I also did lots of modification. The originally version did not support widget, and it did not support Google Analytics and other things. It also did not support thread comments. Now, it works fine. If you are interested in this theme, just feel free to contact me.

I am not an expert on PHP, CSS, and HTML. However, I like hacking. All the problems are solved with the help of Google. I believe one sentence–don’t learn to hack, just hack to learn.

———–

Supplement:

Just now, I finished the modification of my photo gallery. Now, everything in my site are following the same theme!

1 Comment | Tags: other, programming

9 February 2009 - 22:57Site moved here

I have successfully backordered this new domain name “chunhao.net“, which is better to stand for me than my old domain name “chunhao86.cn”.

I am using 000webhost for the old site, which is really a good free host provider. However, due to my misoperation,  the new domain cannot be located in the free web host any more. I switched to another non-free host provider–GoDaddy.

Now, most part of the site have been transferred to the new domain here. All the posts and comments in my blog have also been moved properly. The old domain(chunhao86.cn) will keep alive for a long time. However, no upgrading will be presented there any more.

Most things are the same with old ones, except for some some changes. There most significant is  Wordpress. This new blog is built using Wordpress 2.7, while the old one Wordpress 2.3. There are lots of changes between the two versions, escpecially in the admin page. The new version is more user-friendly and integrated with much new feathers. Thanks for the small quantity of the posts and comments in my old sites, it’s very easy to move them correctly!

So sorry for you inconvenience! And thank you for touching my new site here. Please keep trace of my new site: http://chunhao.net, as well as my blog: http://chunhao.net/blog.

No Comments | Tags: other

22 November 2008 - 21:49Home updated

前一段时间一直忙着其他的东西,博客也两个多月没更新了。最近一直觉得以前的首页布局很土,和博客的风格差异很大,而且内容也严重过时,现在有了点时间,终于决定大更新了。

经过几天的忙活,现在基本算完工了。更新清单如下:

  1. 更改首页布局,使其和博客基本一致。
  2. 更新首页内容。
  3. 把wiki由原来的Tiddlywiki换成现在的Dokuwiki
  4. 增加了resume和contact页面。
  5. 更新简历,增加中文简历。
  6. 增加了中文版的首页。

还好原来写主页的时候是用HTML+CSS驱动,现在改起布局,直接拿来Wordpress的CSS,再改一下首页一些标签的id就基本好了。难道这就是所谓的标准化带来的便利? :)

对于页面布局,我一贯的观点就是简单、大方。让人一下就能找到需要的信息。James的主页就是这种风格的典范(又给他增加了一点PR)。而有些网站尽管漂亮,却花里胡哨,让人很难找到有用的东西。这里有一些排名,都是所谓的“糟糕设计”。

对于换wiki我也构思了很久了,原来用的Tiddlywiki不错,是一个纯HTML+JS驱动的单网页文件,简单方便。最适合在本机上运行。因为它只有一个HTML文件,随着内容的增加,尤其是插件的安装,它会越来越大。现在我的那个tiddlywiki已经有400+K了,虽然在一般意义上来说是很小的,但是放在服务器上就不太合适了,如果用户下载文件的速度是100K/s的话打开这个页面也要4秒,更何况我的服务器在国外,一般连接速度只有几十K。我也曾经想过用Mediawiki,但Mediawiki适合多用户,而且需要数据库的支持,而我用wiki也就是简单记一些东西,用Mediawiki就好比杀鸡用牛刀。 这里要非常感谢实验室的一个师兄向我推荐的这个Dokuwiki,它只有php,不需要数据库的支持,而且还能控制编辑权限,非常适合我用。

Wiki还真是个好东西,就像Wikipedia一样,有点像“自己的百科全书”。平时可以把一些零碎的东西记在上面,需要的时候很快就会找到。Web给人带来的好处首先是搜索,还有就是超链接。记得小时候无聊的时候总会看辞海,每次查到一个词条后发现对里面的某几个词感兴趣,然后就继续查,如此一直要翻很久。现在有Wikipedia就方便多了,遇到文章中一个词只要点一下就可以了。即便这样,每次还是要看很久,可见我对知识还真是贪婪啊……

还有一个很有趣的事情就是增加了自定义的404页面,有兴趣的话可以去看一看。 另外,我还在首页隐藏了一个彩蛋,只有慷慨的人才能看到哦。 :)

为了做一个图标,我还刻了一个章。以前在还刻过一个,但是太烂了,磨掉重来。无奈技术有限,写也写得不好,刻也刻的不好,尽管比起上次强不少。小时候经常在橡皮上刻,上了大学才开始在石头上刻,比想象中的要难多了。

seal

首页尽管更新了,旧的页面也还会保留一段时间,可以对比一下看看原来是多么土:

No Comments | Tags: other

12 June 2008 - 21:18There’s no heaven in the world

Everybody want to go to heaven, but nobody wants to die.

每个人都想上天堂,但没有人想死。

地震整整过去一个月了, 人们已经渐渐地从地震的惊恐、忧虑中恢复过来,我也慢慢地淡忘了当时是怎样的心情。我不是一个感性的人,当时没有像很多人一样伤心地落泪,也没有难过地寝 食难安。我竟然也未曾为他们祈祷,因为我不相信上帝、佛祖能让那死去的六万人复活,能让灾区活着的人逃过劫难,哪怕是给亡灵小小的告慰。

我能做什么?我做了什么?除了捐款、默哀,我似乎无济于事。有人说:做好自己的本职工作就是最灾区最好的支持。 我不想过多的思考这句话,不想用理性的思维冲淡我对灾区哪怕微不足道的关心。然而,天往往不随人愿,余震不断地发生,遇难人数也在不断增加。没人知道到底 有多少人永远被埋在了废墟之下,也没人知道他们究竟能否上了天堂。

这个世界没有天堂,因为每个人都想上天堂,却没有人想死。

children.jpg

看看这些孩子,她们还没明白是怎么回事,就被压在坍塌的教室下,无法动弹,无法呼吸,无法思考。生命无法挽回,人们只能这样安慰自己:她们在天堂很幸福。然而她们的老师、父母、朋友,以及所有看到这照片的陌生人都宁愿她们不上天堂而留在他们身边。

天堂遥不可及,死亡却又无法想象。 我们只能不断地欺骗自己:生亦合欢,死亦和惧。

No Comments | Tags: Thinking about life, other

19 March 2008 - 0:16About my blog

This is Chunhao Wang, in Chinese, is 王春昊

I would like to share my experience and note about ubuntu/linux, vim, technology and other things with each other.

Also, if I make some project or write some articles, I will post it here to share them.

Competing in exams like 70-272 and 70-528 prepare one for 70-640 as well as 640-822, making it easier for one to clear 70-236 and 640-863 in the same go.

No Comments | Tags: other