Subscribe to RSS Subscribe to Comments Blog of Roy Chan

Blog of Roy Chan

Stardict debian 套件相依關係圖

早幾天突然留意 apt-rdepends -d 個指令可以將一個或多個套件的相依關係用 springgraph 的格式列出來。再經 springgraph 就可以產生一幅 PNG 格式的相依關係圖。

 $ apt-rdepends -d stardict >stardict.dot
 $ springgraph <stardict.dot >stardict-dependency.png

Stardict Dependency


Share It: [del.icio.us] [Technorati] [Google Bookmark] [Yahoo MyWeb] [Furl]


中國人與汽車

這期《便利》有篇 陶傑訪問談及『中國發展汽車的開題』頗有趣。

中國現時有 13 億人,假設 10 年後,有 1 億人開車,就即刻死! 第一,石油不夠。現時每年石油的需求量為 230,000,000 噸,如果中國這麼多人開車,佔了全世界三分之一。未來,北京、青島、上海和大連,這些所謂中產階級城,又要學西方國家人人駕車,浪費幾多汽油?另外,城市基建配套又怎樣?你有沒有這麼多車位?以後可能要大興土木興建多層停車場,要破壞多少古蹟?拆多少舊屋?拆多少有特色和具歷史性 building? 街邊又要泊表位呢。

還有,驗車呢?現時大陸的汽車全部都『光頭胎』,日後個個都有私家車,一定要有嚴格的驗車標準。中國咁多貪污,到時求其塞二百元給他,又可以過關,點算?還有考牌呢?考牌最容易『濕水』,香港60年代都曾經出現這些情況,學神一上車就俾利是個官,就唔會『肥』,將來大陸一定重蹈覆轍,到時個個未考到牌就飛車,請不要忘記,自七十年代開始,中國個個家庭都實行『一胎化』,個個細路仔都在寵愛中長大,因為受到溺愛,他們的性格多是天不怕地不怕,一有錢,就一定買架車亂咁掟,到時意外率數字一定好高。

西方國家其實己經行過這條路,證明這樣對環境對生態都冇好處,點解要行舊路?自已又話有三千年歷史文化、又話有儒家道家、又話喜歡山水,現在就跟美國佬行舊路,就算幾有錢都被別人看扁。中國文化已經無法發揮出一個與眾不同的典範,最好就係:我唔需要開你那些名牌車,都可以過精神富足的生活。 美國佬只得三億人,但佔用了全世界七成天然資源,他們可以這樣,你唔好以為我們都可以!……….[略]

[略]………假如中國有一個好有智慧和魅力的領袖,可以怠化全國人,像以前的印度甘地,他教印度人用手織布,棄用英國佬發明的機器,不要經過英國加工的貴價棉花,有個這樣的人便成功。你現在去印度看看,其影響力到今時今日仍在,他所消耗的能源少於中國,因為他們過著自己傳統(簡樸)生活,印度好多有錢佬,但唔係個個阿差開車。 總之,國家要建立自己的 philosophy ,一種對生活的態度,要有『水』,開車唔係為自己comfort,是為了威,威俾以前老細睇,威俾仇家睇,威俾老竇老母睇,威俾舊同學睇,x! 我以前會考肥佬,宜家開靚車,靚過晒你︳你有 冇呢? 都唔知做乜叉!

英國佬好鍚身,唔想交通意外有死人,交通 system 做得好穩陣,每樣東西設計得好完善。香港人車品好差,唔打燈,唔遞手,冇禮貌。英國人有理性,唔會胡亂響按,中國人就好躁。冇架車時都似番個人樣,上了私家車就變了一頭畜牲,哈哈…….. 德國道路冇車速上限,人人靠自我約束自律,作為汽車工業大國有它的原因。慶幸地,香港現在仍然食英國制度留低的老本,唔係太夠膽衝紅燈,這是法治的最基本精神,大陸就唔係,紅燈當綠燈,隨時 u-turn …… 如果有一日見到交通好似大陸咁,那時你就要移民!


Share It: [del.icio.us] [Technorati] [Google Bookmark] [Yahoo MyWeb] [Furl]


政治牛

從 Rich Burridge 的 blog 找到了一篇用兩隻牛去解釋各種政治制度的文章。特別要留意 Hong Kong Capitalism 。 ; -P

A Bovine Guide to Political Theory from The Utne Reader:

Feudalism: You have two cows. Your lord takes some of the milk.

Fascism: You have two cows. The government takes both, hires you to take care of them, and sells you the milk.

Pure socialism: You have two cows. The government takes them and puts them in a barn with everyone else’s cows. You have to take care of all the cows. The government gives you as much milk as you need.

Pure communism: You have two cows. Your neighbors help you take care of them, and you all share the milk.

Bureaucratic socialism: You have two cows. The government takes them and puts them in a barn with everyone else’s cows. They are cared for by ex-chicken farmers. You have to take care of the chickens the government took from the chicken farmers. The government gives you as much milk and as many eggs as the regulations say you should need.

Russian communism: You have two cows. You have to take care of them, but the government takes all the milk.

Pure democracy: You have two cows. Your neighbors decide who gets the milk.

Representative democracy: You have two cows. Your neighbors pick someone to tell you who gets the milk.

American democracy: The government promises to give you two cows if you vote for it. After the election, the president is impeached for speculating in cow futures.

Capitalism: You have two cows. You sell one and buy a bull.

Local governmental capitalism: The government condemns your cows under rights of eminent domain, knocks them over, and allows the mall to expand its parking lot.

Hong Kong capitalism: You have two cows. You sell three of them to your publicly listed company, using letters of credit opened by your brother-in-law at the bank ,then execute a debt-equity swap with associated general offer so that you get all four cows back, with a tax deduction for keeping five cows. The milk rights of six cows are transferred via a Panamanian intermediary to Cayman Islands company secretly owned by the majority shareholder who sells the rights to all seven cow’s milk back to the listed company. The annual report says that the company owns eight cows, with an option on one more. Meanwhile, you kill the two cows because the feng shui is bad.

Totalitarianism: You have two cows. The government takes them and denies they ever existed. Milk is banned.

Anarchism: You have two cows. Either you sell the milk at a fair price or your neighbors try to kill you and take the cows.

Dictatorship: You have two cows. The government takes both and shoots you.

Surrealism: You have two giraffes. The government requires you to take harmonica lessons.


Share It: [del.icio.us] [Technorati] [Google Bookmark] [Yahoo MyWeb] [Furl]


blog.xychen.org

Blog of Roy Chan - Blogging again

I have migrated all my blog including some comments from xychen.org and DebianHK to blog.xychen.org and now it is running WordPress


Share It: [del.icio.us] [Technorati] [Google Bookmark] [Yahoo MyWeb] [Furl]


Gnome 2.6 Usability 報告和 OpenSync

由 Jeff Waugh 的網站看到這 User Instinct 刊出了一份 Gnome 2.6 的 Usability 測試執告

Freedesktop 新了個專案 OpenSync旨在架構一個同步化 framework 的標準。


Share It: [del.icio.us] [Technorati] [Google Bookmark] [Yahoo MyWeb] [Furl]


Debian Release Cycle

It is said that Debian Release Cycle is the longest among those major GNU/Linux distros and the package in stable release is very old. Sometime ago, I collect the release date of debian and make a table.

Ver. Name Date Period Packages. Developers Features
1.1 Buzz 1996-06   474   2.0 kernel, fully ELF, dpkg
1.2 Rex 1996-12 6m 848 120  
1.3 Bo 1997-07 7m 974 200  
2.0 Hamm 1998-07 1y 1500+ 400+  
2.1 Slink 1999-03-09 8m ~2250   Add Alpha and sparc support
2.2 Potato 2000-08-15 1y 5m 3900+ 450+ Add PowerPC & ARM
3.0 Woody 2002-07-19 1y11m 9000+ ~1000 Add HP, PA-RISC, IA-64, MIPS, MIPS (DEC)
3.1 Sarge 2004-08? 2y      

Surprised me that the release cycle is slowing down in recent releases because of the increasing of supporting architecture. Debian policy stated they will try to backport security fix rather update on stable release to confirm the while debian is as stable as possible. Therefore, it is better to compare the release cycle with Redhat Adv. Server (RHAS) and SuSE Enterprise Server. The release cycle of RHAS is around 12-18 month.


Share It: [del.icio.us] [Technorati] [Google Bookmark] [Yahoo MyWeb] [Furl]


bookmarks

Many discussion about the spatial way of Gnome 2.6:

  • http://www.osnews.com/story.php?news_id=7548
  • http://www.osnews.com/story.php?news_id=7661

Found a ssh client for Palm.

Here is a site collection some case of migrate to firefox.

Some article stated that digital data have shorter life:

  • http://list.softwareliberty.org/pipermail/slat-talk/2003-November/004539.html
  • http://www.philly.com/mld/philly/business/5009309.htm
  • http://jouston.no-ip.com/archives/000041.html

Share It: [del.icio.us] [Technorati] [Google Bookmark] [Yahoo MyWeb] [Furl]


I’m back

Yes, I’m back but now in Zhuhai again. I had arrived HK around 4:30am on 5th July (I saw Greece holding the cup when I back home) and online around 6:00am. But I’m busy to setup my photo gallery and haven’t wrote anything til now. So, I haven’t mention that where I have gone. I take some AL and goto Silk Road for vacation. From 26th June to 4th July, “9″ days trip. And I haven’t online for more then 9×24 hours - my new record.

Indeed, I decided I should have a vacation this summer long time ago but never confirm the date and location. One of my choice is London. Coz I would like to watch Les Miserable again. A Musical trip which is attractive enough to make me throw out everything and take a real rest. But Raymond and Danny, my friends in PolyU Drama Society, ask me if I would like to goto Silk Road with them in mid-June. Then I decide postpone my Musical trip to next year.


Share It: [del.icio.us] [Technorati] [Google Bookmark] [Yahoo MyWeb] [Furl]


Based on Fluidity© 1998-2007 Roy Hiu-yeung Chan