Past papers 5

“Past papers” means “past HKCEE/HKAL examination papers”. The topic is for Hong Kong students who are facing HKCEE or HKAL. But the general principles can also be used for tackling other public examinations.

基本上,你把每天的溫習化成模擬考試(即是按年份做 pastpaper)就可以。然後根據每日的分數和每日的錯處,來決定下一日溫什麼。

有一個原理就是,千萬不要企圖完成所有事情。大部分的情況下,你的時間只會足夠完成 “所有事情” 中的一小部分。你可以達到的,就是選最重要的事去做。

比喻說,有一個人入了急症室。他的 心、眼、手 都有危險。那樣,醫生應先救哪一個器官呢? 

— Me@2010.03.06

2010.03.07 Sunday (c) All rights reserved by ACHK

天空堤壩

Talent at its best and character at its worst

.

Lord Acton said we should judge talent at its best and character at its worst. For example, if you write one great book and ten bad ones, you still count as a great writer — or at least, a better writer than someone who wrote eleven that were merely good. Whereas if you’re a quiet, law-abiding citizen most of the time but occasionally cut someone up and bury them in your backyard, you’re a bad guy.

— Paul Graham

.

才能方面,如果一個人的最高點是可以接受的話,你就可以錄用他,即使他有其他任何才能缺點;

品德方面,如果一個人的最低點是不可接受的話,你就千萬不要錄用他,即使他有其他任何品德優點。

— KinOn’s presentation, modified by Me@2010.03.06

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

才能方面,一個太陽可以照亮整個天空;

品德方面,一條裂縫可以摧毀整個堤壩。

— Translation by Me@2010.03.06

.

.

.

2010.03.07 Sunday copyright ACHK

Hacker ethic

* Access to computers — and anything which might teach you something about the way the world works — should be unlimited and total. Always yield to the Hands-On Imperative!
Levy is recounting hackers’ abilities to learn and build upon pre-existing ideas and systems. He believes that access gives hackers the opportunity to take things apart, fix, or improve upon them and to learn and understand how they work. This gives them the knowledge to create new and even more interesting things (Levy, 1984:226). Access aids the expansion of technology.

* All information should be free.
Linking directly with access, information needs to be free for hackers to fix, improve, and reinvent systems. A free exchange of information allows for greater overall creativity. In the hacker viewpoint, any system could benefit from an easy flow of information.

* Mistrust authority — promote decentralization.
The best way to promote the free exchange of information is to have an open system that presents no boundaries between a hacker and his quest for knowledge. Hackers believe that bureaucracies, whether corporate, government, or university, are flawed systems.

* Hackers should be judged by their hacking, not criteria such as degrees, age, race, sex, or position.
Inherent in the hacker ethic is a meritocratic system where superficiality is disregarded in esteem of skill. Levy articulates that criteria such as age, sex, race, position, and qualification are deemed irrelevant within the hacker community. Hacker skill is the ultimate determinant of acceptance. Such a code within the hacker community fosters the advance of hacking and software development.

Testament to the hacker ethic of equal opportunity, L. Peter Deutsch, a twelve-year-old hacker, was accepted in the TX-0 community, though was not recognised by non-hacker graduate students.

* You can create art and beauty on a computer.
Hackers deeply appreciate innovative techniques which allow programs to perform complicated tasks with few instructions. A program’s code was considered to hold a beauty of its own, having been carefully composed and artfully arranged. Learning to create programs which used the least amount of space almost became a game between the early hackers.

* Computers can change your life for the better.

Hackers felt that computers had enriched their lives, given their lives focus, and made their lives adventurous. Hackers regarded computers as Aladdin’s lamps that they could control. They believed that everyone in society could benefit from experiencing such power and that if everyone could interact with computers in the way that hackers did, then the Hacker Ethic might spread through society and computers would improve the world. The hacker succeeded in turning dreams of endless possibilities into realities. The hackers primary object was to teach society that “the world opened up by the computer was a limitless one” (Levy 230:1984)

… free and open source software allows hackers to access the code used to create the software to improve or reuse it. In effect the free and open source software movements embody all of the hacker ethics.

— Wikipedia on Hacker ethic

.

“Hacker” here means a highly skilled programmer, not a computer criminal. — Me

The basic difference is this: hackers build things, crackers break them. — Eric S. Raymond

“In academia, a “hacker” is a person who follows a spirit of playful cleverness and enjoys programming.” -– Wikipedia on Hacker (academia)

.

.

2010.03.06 Saturday ACHK

Past papers 4

“Past papers” means “past HKCEE/HKAL examination papers”. The topic is for Hong Kong students who are facing HKCEE or HKAL. But the general principles can also be used for tackling other public examinations.

這個原理除了可以應用在溫習的時間管理外,也可以應用在考試時的時間管理上。例如,整份試卷共有五題。很多人做第一題時,往往會力臻完美:寫字慢慢地寫,字體很優美;錯了又要用塗改液塗,然後慢慢等它乾;答案過份詳細;有少部分不懂,又要堅持想不到不罷休 … … 那樣的話,通常其餘四題會不夠時間做。

question 1 20/20
question 2 15/20
question 3 10/20
question 4 10/20
question 5 05/20

total 60/100

正確的政策是,要根據題目的分數多少,來決定應花多少時間在每一題。例如,某一題的適當時限是半小時,大概在 25 分鐘的時候,你就應該準備收筆,趕快寫下最後一句,然後立刻問始做下一題。無論心裡有多麼不舒服,你一定要迫自己停筆,迫自己趕快開始下一題。寧願在所有題目都大概完成了後,還有剩餘時間的話,才回第一題,修正不完美的地方。即使沒有時間給你修正,導致不能取滿分,起碼所有題目都大概完成,保證你會有一個不低的分數。

question 1 15/20
question 2 15/20
question 3 15/20
question 4 15/20
question 5 15/20

total 75/100

— Me@2010.03.05

2010.03.05 Friday (c) All rights reserved by ACHK

Category Theory | Lisp

My current self-study programme includes

1. read almost everything written by Paul Graham

public domain image
Wikipedia

2. learn Lisp programming language (Common Lisp/Scheme) by reading Paul Graham’s textbooks

3. learn Category Theory so that I can read almost everything written by John Baez

public domain image
Wikipedia

Yester-night and tonight, I discovered that they are related:

“Lists, and recursive operations on them, are an excellent case in point. But the path connecting them to their mathematical underpinnings is a long and winding one, which lays in the realm of Category Theory.” — jao

I had never expected that. They are one thing.

Paul Graham –> Lisp –> Category Theory –> John Baez

I have been learning Lisp since 2000 (Machine Intelligence course), since 2006 (Structure and Interpretation of Classical Mechanics, Structure and Interpretation of Computer Programs), since 2010. I have been learning Category Theory since 2006-2008 (John Baez), since 2008 (Sets for Mathematics), since 2010. I had never expected that they are just two different languages of the same thing.

— Me@2010.03.04

2010.03.05 Friday (c) All rights reserved by ACHK

Hacker ethic

Hacker 4

.

.

* Access to computers — and anything which might teach you something about the way the world works — should be unlimited and total. Always yield to the Hands-On Imperative!

* All information should be free.

* Mistrust authority — promote decentralization.

* Hackers should be judged by their hacking, not criteria such as degrees, age, race, sex, or position.

* You can create art and beauty on a computer.

* Computers can change your life for the better.

… free and open source software allows hackers to access the code used to create the software to improve or reuse it. In effect the free and open source software movements embody all of the hacker ethics.

— Wikipedia on Hacker ethic

.

.

.

[10] Hacker here means a highly skilled programmer, not a computer criminal. — Me

The basic difference is this: hackers build things, crackers break them. — Eric S. Raymond

“In academia, a “hacker” is a person who follows a spirit of playful cleverness and enjoys programming.”

– Wikipedia on Hacker (academia)

2010.03.05 Friday  ACHK

Past papers 3

“Past papers” means “past HKCEE/HKAL examination papers”. The topic is for Hong Kong students who are facing HKCEE or HKAL. But the general principles can also be used for tackling other public examinations.

千萬不要打算 “溫完書” 才做 pastpaper。因為書是溫不完的,你打算 “溫完書” 才做 pastpaper 的話,你將會沒有時間做 pastpaper。

我以前中五時有考會考(公開試)美術科。中三時的美術老師教了一樣考試技巧。會考時,會有三小時畫一幅畫。例如,那幅畫是一幅郊外風景圖。畫內有一間屋、一棵樹 和 一隻狗。假如,你畫那間屋時力臻完美,你就會花了大部分時間,導致沒有足夠時間畫那棵樹和那隻狗。整幅畫只有那間屋是完整的,你的美術科會不合格。

正確的方法是,第一步,先簡略描繪了屋、樹、狗的外型。然後,為 屋、樹、狗 加第一重的細節。還有時間的話,就加第二重的細節。還有時間的話,就加第三重的細節。如此類推。這個方法的好處是,無論考官在什麼時候宣佈 “停筆”,你也可以宣稱,你已經完成了那幅畫,不會不合格。

這可以引申做溫習和考試的什麼道理呢?

如果你打算 “溫完書” 才做 pastpaper,又或者 打算 “溫完” 一個 topic 才溫下一個 topic 的話,你很容易會不自覺地花了大部分時間於一個 topic,導致你沒有足夠時間溫其他 topic。例如,你對 mechanics 很熟,其他 topics 沒有足夠時間溫習,你整份 physics 卷的分數將會很低,甚至不合格:

    mechanics 18/20

    EM 05/20

    wave 05/20

    optics 05/20

    atomic physics 05/20

    total 38/100

但是,如果你不斷按年份做 pastpaper 的話,因為每年的 pastpaper 都有多個 topic 的題目,你每個 topic 即使不太熟,也不會太生疏。你整份 physics 即使不高分,也不會不合格:

    mechanics 12/20

    EM 12/20

    wave 12/20

    optics 12/20

    atomic physics 12/20

    total 60/100

在這個基礎,想再提升分數的話,可以用梅花間竹的方法,按年份做 pastpaper:

按年份做 pastpaper(要計時間和計分數)–> 溫習特定 topic –> 按年份做 pastpaper –> 溫習特定 topic –> …

溫習特定 topic 和按年份做 pastpaper 之間就有這個關係。兩者其實是相輔相成的。例如,你按年份做 pastpaper,發現次次也是因為某一個 topic 導致損失十幾分的話,你就可以知道那個 topic,正正就是你特定要溫的 topic。那你在溫習時,就可以重點出擊。

溫習特定 topic = 溫習課文 + 做特定 topic 的 pastpaper

— Me@2010.03.04

2010.03.04 Thursday (c) All rights reserved by ACHK

Y Combinator

A fixed point combinator (or fixed-point operator) is a higher-order function that computes a fixed point of other functions.

— Wikipedia on Y Combinator

2010.03.04 Thursday ACHK

Hacker 3

.

The Jargon File has had a special role in acculturating hackers since its origins in the early 1970s. Many textbooks and some literary works shaped the academic hacker subculture; among the most influential are:

* Hackers: Heroes of the Computer Revolution, by Steven Levy
* Godel, Escher, Bach, by Douglas Hofstadter
* The Art of Computer Programming (TAOCP), by Donald Knuth
* The Mythical Man-Month, by Brooks
* Compilers: Principles, Techniques, and Tools (“the Dragon Book”), by Aho, Sethi, and Ullman
* Structure and Interpretation of Computer Programs (SICP), by Abelson and Sussman
* The C Programming Language (K&R), by Kernighan and Ritchie
* The Hitchhiker’s Guide to the Galaxy, by Douglas Adams
* The Tao of Programming, by Geoffrey James
* The Illuminatus! Trilogy, by Robert Shea and Robert Anton Wilson
* Principia Discordia, by Greg Hill and Kerry Thornley
* The Soul of a New Machine, by Tracy Kidder
* The Cuckoo’s Egg, by Cliff Stoll
* The Unix System, by Stephen R. Bourne
* Hackers & Painters, by Paul Graham
* The Cathedral and the Bazaar, by Eric S. Raymond
* The essays of Richard M. Stallman (many published in Free Software, Free Society: Select Essays of Richard M. Stallman)

— Wikipedia on Hacker (programmer subculture)

.

.

[10] “Hacker” here means a highly skilled programmer, not a computer criminal. — Me

The basic difference is this: hackers build things, crackers break them. — Eric S. Raymond

In academia, a “hacker” is a person who follows a spirit of playful cleverness and enjoys programming.

— Wikipedia on Hacker (academia)

.

.

.

2010.03.04 Thursday ACHK

Past papers 2

“Past papers” means “past HKCEE/HKAL examination papers”. The topic is for Hong Kong students who are facing HKCEE or HKAL. But the general principles can be used for tackling other public examinations.

A:你有沒有按年份做 pastpaper(歷屆試題)?

KWY:我有按 topic(課題)做 pastpaper。我有做已溫習了的 topic 的 pastpaper。我打算溫完書後,才開始按年份做 pastpaper。

A:可以。這樣可以。但是不要太遲。例如,你打算按年份做十年的 pastpaper 的話,其實是要花很多時間的。

LKF:哪應該是集中先把一個 topic 溫完,才溫下一個 topic,還是一開始就分散溫比較好?

A:分散溫。主要應該用按年份做 pastpaper 的方法來溫比較好。如果你打算 “溫完” 一個 topic 才溫下一個 topic 的話,你到會考(公開試)前的一晚,也不會 “溫完” 所有課程的內容。

LKF:但是我已經沒有什麼時間溫 physics 了。 

A:現在,距離公開試只有三個多月的時間,是不會有一段時間,給你特意溫熟某一個課題的。即使有,因為任何一個 topic 都可以無限鑽研,你讀多久,也會覺得不夠熟。哪你如何可以客觀知道自己對某一個 topic 夠不夠熟呢?到頭來,你也是要在做會考題(pastpaper)時,才會知道。

其中一個方案是梅花間竹地按年份做 pastpaper:

按年份做 pastpaper(要計時間和計分數)–> 溫習特定 topic –> 按年份做 pastpaper –> 溫習特定 topic –> …

溫習特定 topic 和按年份做 pastpaper 之間就有這個關係,兩者其實是相輔相成的。例如,你按年份做 pastpaper,發現次次也是因為某一個 topic 導致損失十幾分的,你就可以知道那個 topic,正正就是你特定要溫的 topic。

— Me@2010.03.03

2010.03.03 Wednesday (c) All rights reserved by ACHK

diff

In computing, diff is a file comparison utility that outputs the differences between two files. It is typically used to show the changes between a file and a former version of the same file.

— Wikipedia on diff

2010.03.03 Wednesday ACHK

Hacker 2

.

* Creating software and sharing it with each other
* Placing a high value on freedom of inquiry; hostility to secrecy
* Information-sharing as both an ideal and a practical strategy
* Upholding the right to fork
* Emphasis on rationality
* Distaste for authority
* Playful cleverness, taking the serious humorously and their humor seriously

The difference between hackers and crackers, according to them, is that where hackers use their skills and knowledge to learn more about how systems and networks work, crackers will use the same skills to author harmful software (like viruses, trojans, etc.) and illegally infiltrate secure systems with the intention of doing harm to the system.

「hacker」們建設,而「cracker」們破壞。

真實的黑客所指主要指的是高級程式員,… 而不是為人所誤解專指對電腦系統及程式進行惡意攻擊及破壞的人。

— Wikipedia on Hacker (programmer subculture)

.

.

.

2010.03.03 Wednesday ACHK

Free Software

自由軟體

GNU GPLv3 Logo

“Free software” does not mean “noncommercial.” A free program must be available for commercial use, commercial development, and commercial distribution. Commercial development of free software is no longer unusual; such free commercial software is very important. You may have paid money to get copies of free software, or you may have obtained copies at no charge. But regardless of how you got your copies, you always have the freedom to copy and change the software, even to sell copies.

自由軟體因此並不是「非商業軟體」。自由軟體必須適用於商業用途。自由軟體的商業開發模式已很常見;這樣的自由商業軟體相當重要。

— The Free Software Definition, Free Software Foundation, Inc.

2010.03.02 Tuesday ACHK

自然定律

Stephen Covey 是一個真才實學的人。他不會給人一些輕率的提議。他不會隨便說:「你辭去現在的工作,去追求自己的理想吧!」

他不會不切實際的。例如,有一個讀者問他:「我想開一間咖啡館,哪我好不好辭去我的工作呢?」Stephen Covey 回答:「不要。先留住你現時的職位。執行你的理想往往比你想像中困難。所花的時間亦會比你想像中長。最好是先留住你現時的工作,然後用工餘的時間經營咖啡館的事務。〔如果你在咖啡館成功前就辭去現時的工作的話,你很可能沒有足夠金錢維生。〕」

又例如,另一個讀者問他:「如何問上司加薪呢?」他回答:「首先要做好你的工作。你的工作質素要好到你的上司不能失去你。那時,上司答允加薪的機會就很高。」

我在 18 歲時就已經看他的書。但是,他有些說話,我要在 27 歲時,才開始明白。例如,他說,做人處事,應該以原則為中心。我在 27 歲時,才明白他的意思是,不要做遺反自然定律的事。(自然定律包括物理定律和人情定律等。)例如,你要飛的話,如果你企圖遺反物理定律,從高樓大廈頂跳下來的話,你不但不能飛,而且會跌死。相反,你要飛的話,就應該學習物理定律,利用物理定律:先學好流體力學。透過對流體力學的了解去建造飛機。

(安:我初初也不明白。所以我在幾年前問過你什麼為之「以原則為中心」。)

我那時如何答你?

(安:我那時的問題是,世界社會有很多種原則,應以什麼原則來處事呢?例如,如果情義原則和經濟原則有衝突的話,哪應該以哪一套原則為依歸呢?

你當時的答法是,如果兩套都是完備準確的原則的話,它們應該不會有衝突。)

原來我這樣答,不錯呀。

如果兩套原則有衝突,即是它們其中一個有錯,或都兩個都有錯。

(安:不一定是錯,而可能是有所遺漏。)

要麼incomplete(不完備),要麼incorrect(不正確)。例如,相對論和量了力學是物理學最重要的支柱。但是物理學家每當把它們一同使用時,就會得出錯誤的答案。所以,物理學家知道,現時的相對論和量子力學,都是有漏洞的理論。

— Me@2010.03.01

2010.03.01 Monday (c) All rights reserved by ACHK

Categorical logic

In an even broader perspective, one might take category theory to be to the mathematics of the second half of the twentieth century, what measure theory was to the first half.

— Wikipedia on Categorical logic

2010.03.01 Monday ACHK

個人大組織 4

public domain
Wikipedia

Resistance to the organized mass can be effected only by the man
who is as well organized in his individuality as the mass itself.
–- Carl Jung

The reasonable man adapts himself to the world;
the unreasonable one persists in trying to adapt the world to himself.
Therefore all progress depends on the unreasonable man.
— George Bernard Shaw

蕭伯納說過:「”合理” 的人改變自己來遷就世界;”不合理” 的人改變世界來遷就自己。所以人類世界的進步,都是由 “不合理” 的人所引起的。」

(安:但是,”改變世界” 意思並不明確。所以,這個講法很空泛。)

其實,是有很明確的實際例子的。Richard Stallman 是 Copyleft 的發明者。他不只是對抗一間大公司,而是對抗整個制度。整個自由軟件運動是由他一個人開展的。

“他最大的影響是為自由軟件運動豎立道德政治法律框架。他被許多人譽為當今自由軟件的鬥士、偉大的理想主義者,但同時也有人批評他過於固執、觀點落伍。” — 理查·斯托曼, 維基百科

— Me@2010.02.28

2010.02.28 Sunday (c) All rights reserved by ACHK