2011年7月30日星期六

给父亲的一个短信

正在写我的第一个游戏,这个游戏是移植另外一个pygame所写的游戏:krank.写这个游戏的初衷其实是想给我的Nokia N900用Qt写一点什么。作为Nokia Developer Community的一员,自从去年年中拿到了这台N900以后,一直答应要给Nokia写个程序作为免费拿到手机的回报。虽然那之后写了一个简单的抓取google movie网页的程序,用来显示新加坡岛内所有电影院的电影信息,不过一直没有把程序呈交给Ovi程序商店。到了最近N9都快出来了,才下定决心真正的做点什么,为了自己,为了那些喜爱N900的朋友们。

写这篇文章是因为刚才突然给父亲发了一个短信,希望明年他能够用上我给他买的手机,一方面是因为从大学直到出国的头两年,所有的手机都是他给我买的,现在我有了经济实力,也想回报他。另外更重要的一个原因是自从最近自己也当了爸爸以后,对于父母对子女的期望,子女对父母的不负期望的感觉,有了越来越多的理解。所以我很希望自己的父亲能够玩上我写的游戏,为我自豪,为我欢呼。

今天写下这段话,是为了告诉自己,我对自己有承诺,对父亲有承诺,如此就能让自己坚持把游戏写出来。也是为了自己鼓劲加油。fighting!呵呵

2011年1月13日星期四

Use VLC to forward streaming in Ubuntu 10.04

My recent project needs a video stream relay server that forwards MJPEG stream from a camera (Panasonic BL131) to client. I install VLC (v1.0.6) through "apt-get" in Ubuntu 10.04. However, it can't display the video from the HTTP server in the camera. The error message repeatedly tells "can't reach the host" as it always looks for the proxy. I disable the proxy in the system and firefox web broswer. Then I can use firefox to display the video streaming from camera but still fail to use VLC to retrieve the video. My colleage uses VLC (v1.1.5) in his Fedora and suceeds to display and relay the streaming. So it is clear that there is something wrong in Ubuntu but not VLC. It takes me almost one working day to find the reason. Finally I doubt it is related to firewall configuration in Ubuntu. So I disable the firewall in Ubuntu and reboot the system. Surprisingly, it succeeds to show the streaming.
THIS IS NOT FIRST TIME THE DEFAULT FIREWALL ENABLE STATE THAT SUCKS IN MY WORK.