Please produce useful error messages

I just helped someone whose Fedora Core 3 installation was producingthe following error message:

# yum check-updateSetting up repositoriesCannot find a valid baseurl for repo: updates-released

This is a beautiful example of a Unix tendency that people gripeabout: technically correct but completely useless error messages.While yum is correctly complaining that it cannot generate a valid URLfor the 'updates-released' RPM repository, it would be much moreuseful if it told us why, with an error message such as:

Cannot fetch


20050720網摘 – Web2.0狂潮

網頁技術

傳媒相關


男友一百戒條

1. 唔准同任何15歲以上35歲以下無血緣關係既女性單獨外出或者傾超過5分鐘電話。
2. 我‘meet’你既時候你唔准縮。
3. 我唔會check你既來電顯示,但係你最好唔好俾我聽到你同不明來歷既女人講電話。
4. 你個電話裡面

我的 Bloglines 都沒有了

這一陣子 Bloglines 的水喉匠經常出現,要修做補工作,不知道是不是因為 blog 的內容日益增加,而 Bloglines 自身的 Server 已不敷應用?本來都只是暫停服務比較多,但今天吃過午飯後,看一看我的 Bloglines …. Oh my god~~

bl

幸好,在不早之前也有 Backup 自己的 Subscription


Exceptions and casual programming

Exceptions have somewhat of a bad reputation in serious programmingcircles. People feel that they are troublesome for various reasons,including that they are non-local gotos and they make it hard toguarantee that you really are cleaning up after problems. (You canfind posts about this at Joel on Software and in Raymond Chen's blog,among other places.)

I don't know about that, but I do know that exceptions are really goodfor casual programs, which is what I mostly write. Casual programs


Exceptions as efficient programming

Python likes to make programming efficient: that is, to make programsfast and easy to write, and eliminate the tedious drudgery. Prettymuch all dynamically typed languages do, since static typing is a lotof effort (except in languages with a lot of type inference, where itis only some effort).

After writing yesterday's entry ,it's struck me that exceptions are a form of efficientprogramming, because they let you aggregate error checking and errorhandling across a large block of code.

Without exceptions


第一次練習

星期日晚去了第一次的 GBA 練習。

有關 GBA ,我之前已有寫過,他們是中大的一隊 A capella ,全名是 Girls & Boys A capella ,也就是無伴奏和聲。在之前大專賽奪得冠軍而揚名,所以多了演出的機會,下一個表演需要比較多人 ( 是否有保密協議? )


熱到飛起

今日真係熱到飛起哦~
我平時真係盡量都唔開冷氣的,特別在屋企的時候.今日要在屋企攪觸映份子的網頁,已經開晒窗打開埋大門,但係一點風都沒有.終於要開足一日冷氣哦~~

攪左一日的網頁更新已經做好了 ,有時間上來

20050718網摘 – 3721當然是病毒!

網站發展

Blog and RSS

聽聽歌,PodPodCast


Steamboy – 科技「以人為本」的疑問

steamboy

其實自己想看《Steamboy》好久,始終是大友克洋的作品嘛,但卻一直未買 DVD,所以也未看。而意外地發現,竟然在百老匯電影中心有上《Steamboy》,立即二話不說,乖乖買票。

上一年的日本動畫界是非常熱鬥的,三大動畫巨頭都有作品: