閱讀理解 1.3.2

這段改編自 2010 年 6 月 2 日的對話。

如果不幸,一道題目不單是「沒有道理」,而且還是「沒有系統地沒有道理」的,那就代表那道題目,其實沒有明確的目標。換句話說,那道題目的作答自由度較大。那樣,你就倒不如,選擇最方便自己取得高分的作答方法。但是,你同時要保證,你的答案沒有離題。

比喻說,上司叫你去香港的某一區,買一部電腦。但是,無論你怎樣追問,他也不肯明示或者暗示,「某一區」究竟是「哪一區」。換句話說,你去哪一區買電腦都可以。那樣,你就倒不如,選擇最方便自己的地區。但是,你同時要保證,一方面,你的沒有離開香港;另一方面,你所買的是電腦。

最不幸的情況是,上司既不肯給予明確的指示,又不肯容許你自由選擇。換句話說,無論你做什麼,他也不可能會滿意。那樣,你就早應該另謀高就,尋找合理的上司。

— Me@2012.06.07

2012.06.07 Thursday (c) All rights reserved by ACHK

Bayesian spam filtering, 2

General applications of Bayesian filtering

While Bayesian filtering is used widely to identify spam email, the technique can classify (or “cluster”) almost any sort of data. It has uses in science, medicine, and engineering. One example is a general purpose classification program called AutoClass which was originally used to classify stars according to spectral characteristics that were otherwise too subtle to notice. There is recent speculation that even the brain uses Bayesian methods to classify sensory stimuli and decide on behavioral responses.

— Wikipedia on Bayesian spam filtering

2012.06.06 Wednesday ACHK

The why of love, 2.2

Batman Begins, 3

.

Qualities are not some external things. Qualities are what define you.

That’s why it is impossible to change your qualities; unless you are willing to redefine yourself; by replacing your present self with a better version.

That’s why you cannot change another person; unless he is willing to change.

— Me@2011.10.18

.

.

2012.06.06 Wednesday (c) All rights reserved by ACHK

刺蝟

The phrase hedgehog’s dilemma refers to the notion that the closer two beings come to each other, the more likely they are to hurt one another; however if they remain apart, they will each feel the pain of loneliness.

This comes from the idea that hedgehogs, with sharp spines on their backs, will hurt each other if they get too close.

This is analogous to a relationship between two human beings. If two people come to care about and trust each other, something bad that happens to one of them will hurt the other as well, and dishonesty between the two could cause even greater problems.

Origin

The concept originates from Arthur Schopenhauer’s Parerga und Paralipomena, Volume II, Chapter XXXI, Section 396. In his English translation, E.F.J. Payne translates the German “Stachelschweine” as “porcupines”. Schopenhauer’s parable describes a number of hedgehogs who need to huddle together for warmth and who struggle to find the distance where they are warm without hurting one another. The hedgehogs have to sacrifice warmth for comfort. The conclusion that Schopenhauer draws is that if someone has enough internal warmth, he or she can avoid society and the giving and receiving of irritation that results from social interaction.

It is also important to note that hedgehogs do not actually hurt each other when they get close, human beings tend to keep themselves more “on guard” in relationships and are more likely to sting one another in the way that a relaxed hedgehog would if spooked. When living in groups, hedgehogs often sleep close to each other.

– Wikipedia (All text is available under the terms of the GNU Free Documentation License)

.

.

2008.01.12 Saturday CHK^2

Impossible to fail

The difference between devices which are possible to fail

and the devices which are impossible to fail

is that

when an impossible-to-fail device has failed,

you don’t know how to fix it.

2012.06.05 Tuesday ACHK

魚目混珠 3

Second best 5

The enemy of the “best” is the “good.”

Decisions are easier when it’s a question of “good” or “bad.” We can easily see how some ways we could spend our time are wasteful, mind-numbing, even destructive. But for most of us, the issue is not between “good” or “bad,” but between the “good” and the “best.” So often, the enemy of the best is the good.

— First Things First

— by Stephen R. Covey

The greatest enemy of “the best” is “the second best”.

— Me@2010.11.14

2012.06.05 Tuesday ACHK

閱讀理解 1.3.1

這段改編自 2010 年 6 月 2 日的對話。

我不是叫你完全放棄。

假設「閱讀理解」部分佔了 14 分。我不是叫你,完全放棄那 14 分。我的意思是,你要有心理準備,你大概沒有可能,完全奪取那 14 分。甚至,那 14 分中,你將會失去大部分。

在這個「回到現實」的心理基礎上,才從長計議「如何盡量遠離零分」,你的策略會符合實際一點。

如果一道題目是「有道理」的,你只要根據那個「道理」作答,完全拿到那 14 分的機會就很大。比喻說,上司叫你去香港的旺角區,買一部電腦。你只要去香港的旺角區,買一部電腦,就已經完成任務。

如果一道題目是「沒有道理」的,你就不能明顯地按「道理」作答,完全拿到那 14 分的機會就很小。但是,你是有方法減低損失的。你就先看看,題目「沒有道理」之餘,會不會是「有系統地」沒有道理,每次也以同一類方法「沒有道理」。換句話說,題目雖然要求你答一些「沒有道理」的東西,但是,你大概知道,那類題目所要求的「沒有道理」東西是那一種。你只要答那類題目,所喜歡的那一種,就可以拿到一定的分數。

比喻說,上司叫你去香港的旺角區,買一部電腦。但是,根據你以往與他的相處,他每次叫你去旺角區時,其實是都想你去銅鑼灣區。那樣,你只要去香港的銅鑼灣區,買一部電腦,就可以完成任務。

— Me@2012.06.05

2012.06.05 Tuesday (c) All rights reserved by ACHK

Bayesian spam filtering

Bayesian spam filtering (after Rev. Thomas Bayes) is a statistical technique of e-mail filtering. It makes use of a naive Bayes classifier to identify spam e-mail.

Disadvantages

Depending on the implementation, Bayesian spam filtering may be susceptible to Bayesian poisoning, a technique used by spammers in an attempt to degrade the effectiveness of spam filters that rely on Bayesian filtering. A spammer practicing Bayesian poisoning will send out emails with large amounts of legitimate text (gathered from legitimate news or literary sources). Spammer tactics include insertion of random innocuous words that are not normally associated with spam, thereby decreasing the email’s spam score, making it more likely to slip past a Bayesian spam filter.

However with (for example) Paul Graham’s scheme only the most significant probabilities are used, so that padding the text out with non-spam-related words does not affect the detection probability significantly.

Words that normally appear in large quantities in spam may also be transformed by spammers. For example, ? Viagra ? would be replaced with ? Viaagra ? or ? V!agra ? in the spam message. The recipient of the message can still read the changed words, but each of these words is met more rarely by the bayesian filter, which hinders its learning process.

As a general rule, this spamming technique does not work very well, because the derived words end up recognized by the filter just like the normal ones.

Another technique used to try to defeat Bayesian spam filters is to replace text with pictures, either directly included or linked. The whole text of the message, or some part of it, is replaced with a picture where the same text is “drawn”. The spam filter is usually unable to analyze this picture, which would contain the sensitive words like “Viagra”.

However, since many mail clients disable the display of linked pictures for security reasons, the spammer sending links to distant pictures might reach fewer targets. Also, a picture’s size in bytes is bigger than the equivalent text’s size, so the spammer needs more bandwidth to send messages directly including pictures. Some filters are more inclined to decide that a message is spam if it has mostly graphical contents. Finally, a probably more efficient solution has been proposed by Google and is used by its Gmail email system, performing an OCR (Optical Character Recognition) to every mid to large size image, analyzing the text inside.

— Wikipedia on Bayesian spam filtering

2012.06.03 Sunday ACHK

The why of love, 2.1

軟硬智力 7.1

.

How to answer this kind of questions:

Why am I so stupid?

It is not a valid question.

It is not the case that there is a pre-existing “I”, to which we can assign some qualities such as stupidity.

Instead, I am the sum of all my qualities, including the quality of being stupid.

— Me@2011.10.18

.

.

2012.06.03 Sunday (c) All rights reserved by ACHK

應世守略 3.2

這段改編自 2010 年 3 月 20 日的對話。

.

(安:那有什麼方法,令到自己不再害怕孤獨呢?)

根據哲學家叔本華所講,人有如「寒冬裡的刺蝟」:

一方面,牠們要走近對方,互相取暖;另一方面,走得太近,又會刺傷對方。

那是一個兩難。

.

但是,「平民百姓刺蝟」以外,還有一些「至尊星級刺蝟」。牠們每隻的體內,都有一個「核子反應堆」,可以自己發熱發暖。所以,牠們中的每一隻,都無懼寒冷孤獨,毋須走近其他刺蝟。

那就化解了兩難。

.

一隻「至尊星級刺蝟」,間中會走近其他刺蝟。那並不是因為「被迫」或者「需要」,而是因為牠「希望」或者「享受」。如果牠去見其他「至尊星級刺蝟」,是因為牠想和其他刺蝟,交換「暖氣善意」;如果牠去見其他「平民百姓刺蝟」,是因為牠想在其他刺蝟之中,散播「暖氣善意」。

同理,你的精神世界越豐富,你就越不「需要」去見其他人。一方面,你會「希望」(而不是「需要」)與其他人相處;另一方面,你亦會十分享受,與自己相處。

相反,你的心靈生活越沉悶,你就越需要參加群體活動,以分散自己的注意力,盡力避免與自己相處。

— Me@2012.06.03

.

.

2012.06.03 Sunday (c) All rights reserved by ACHK

Humble Indie Bundle

The Humble Indie Bundles or Humble Bundles are a series of game bundles that are sold and distributed online at a price determined by the purchaser. The games are multi-platform, DRM-free, and independently developed, and buyers can set the revenue split between the developers, charities and humble bundle organizers.

    2.1 Main bundles
        2.1.1 Humble Indie Bundle 1
        2.1.2 Humble Indie Bundle 2
        2.1.3 Humble Indie Bundle 3
        2.1.4 Humble Indie Bundle 4
        2.1.5 Humble Indie Bundle V
       
    2.2 Game/Developer-specific bundles
        2.2.1 Humble Frozenbyte Bundle
        2.2.2 Humble Frozen Synapse Bundle
        2.2.3 Humble Voxatron Debut
        2.2.4 Humble Introversion Bundle
        2.2.5 Humble Bundle Mojam
        2.2.6 Humble Botanicula Debut
       
    2.3 Android-based bundles
        2.3.1 Humble Bundle for Android
        2.3.2 Humble Bundle for Android 2

— Wikipedia on Humble Indie Bundle

       
     
2012.06.02 Saturday ACHK

閱讀理解 1.2

這段改編自 2010 年 6 月 2 日的對話。

如果一份閱讀理解的答案,除了你覺得沒有道理外,你所有同學也覺得沒有道理,而你的老師又解釋不到,那些答案道理何在的話,那些答案就真的是,客觀地「沒有道理」。換句話說,錯不在你,只是那份閱讀理解本身沒有價值。既然是那樣,你就毋須去理會考究它。

(CYW:但是,有很多份閱讀理解的題目,都是給予我「穿鑿附會、沒有道理」的感覺。)

可能校內考試的題目,才會是那樣。公開試的會好一點。萬一公開試的題目,都是令你無所適從的話,你就看看「閱讀理解」部分的分數,佔了整個中文科多少個百分比。

(CYW:但是,你沒有理由,要我完全放棄「閱讀理解」。)

我不是叫你完全放棄。

假設「閱讀理解」部分佔了 14 分。我不是叫你,完全放棄那 14 分。我的意思是,你要有心理準備,你大概沒有可能,完全奪取那 14 分。甚至,那 14 分中,你將會失去大部分。

在這個「回到現實」的心理基礎,才從長計議「如何盡量遠離零分」,你的策略會符合實際一點。

— Me@2012.06.02

2012.06.02 Saturday (c) All rights reserved by ACHK

Emergent space and emergent time

General relativity has taught us that space and time should not be thought of as a static arena for other phenomena. Instead, they are dynamical players: the curvature of space and time tells matter how it should move, and matter influences spacetime’s curvature. But the lesson of quantum gravity and string theory in particular is more far-reaching: space and time do not have to exist at the very beginning – they are kind of illusions. Moreover, there can be many different illusionary geometries that emerge if we look at the same physical system.

Quantum mechanics guarantees that the concept of a completely smooth geometry is incompatible with quantum mechanics that make things fluctuate. But string theory goes much further. Geometric descriptions, such as general relativity, are only approximations valid at very long distances. At very short distances, comparable to the “length of the string” (string scale) or “the smallest meaningful black hole” (the Planck scale), physics does not admit a simple description in terms of usual geometry. Geometry is generalized to something much more grandiose, and the difference between geometry and matter disappears – this is the content of unification of gravity with other forces and matter.

— Emergent space and emergent time

— Lubos Motl

2012.06.01 Friday ACHK

應世守略 3.1

這段改編自 2010 年 3 月 20 日的對話。

.

香港是相對自由的地區。在自由的社會,沒有人可以迫你和什麼人相處。所以,至少在理論上,你不應該有「如何與很難相處的人相處」等問題。「與很難相處的人相處」的最理想(和唯一的)方法是,不要與他相處。

至於在實際上,要確切執行到這一點的話,你不可害怕孤獨。最理想是有好朋友。沒有好人和你做朋友的話,寧願沒有朋友,也不要與壞人結伴同行。

在感情上,你要做到「寧為玉碎,不作瓦存」。

— Me@2012.06.01

.

.

2012.06.01 Friday (c) All rights reserved by ACHK

The “$” Operator

Next to the “.” operator there is another function-oriented operator that you’ll see often in Haskell code. This is the function application operator and it’s defined like this:

f $ x = f x

Weird right? Why does Haskell have this?

In Haskell, normal function application has a higher precedence than any other operator and it’s left-associative:

f g h j x == (((f g) h) j) x

Conversely, “$” has the lowest precedence of all operators and it’s right-associative:

f $ g $ h $ j $ x == f (g (h (j x)))

Using “$” can make Haskell code more readable as an alternative to using parentheses. It has other uses too, more on that later.

— Using the Dropbox API from Haskell

— by Rian on January 02, 2012

2012.05.31 Thursday ACHK

Machinarium

Machinarium is a puzzle point-and-click adventure game developed by Amanita Design.

Development

Machinarium was developed over a period of three years, by seven Czech developers, who financed the project with their own savings. The marketing budget for the game was a scant $1,000.

The game was in development for the Xbox 360 platform for a period of six months; however, Microsoft, whom the developers had approached to publish the title on Xbox Live Arcade, ultimately decided not to do so. Microsoft does not allow games to be released on Xbox Live Arcade without a publisher attached to the title, and the developers were reluctant to approach a third party to publish the game, as this would mean that profits for the developers from sales over Xbox Live Arcade would be greatly reduced.

Subsequently, Amanita Design approached Sony, whose policies do allow for self-publishing on the PlayStation Network platform, and have submitted the game to them for approval, in order to release the game on the PlayStation Network.

— Wikipedia on Machinarium

2012.05.31 Thursday ACHK

閱讀理解 1.1

這段改編自 2010 年 6 月 2 日的對話。

(CYW:做中文科的閱讀理解題目時,我好像答來答去,都答不中要點。)

你比較一下,你的答案和老師的答案相差什麼。看看老師的答案,有沒有道理。知不知道什麼為之「有道理」?

(CYW:事後我會閱讀老師的標準答案。但我通常也不明白,那些答案在說什麼。那些答案的思想,有時是由文章之中,十分間接地歸納出來。坦白說,我覺得有些答案是「穿鑿附會」,只有題目的作者才會答得到。)

如果一份閱讀理解的答案,除了你覺得沒有道理外,你所有同學也覺得沒有道理,而你的老師又解釋不到,那些答案道理何在的話,那些答案就真的是,客觀地「沒有道理」。換句話說,錯不在你,只是那份閱讀理解本身沒有價值。既然是那樣,你就毋須去理會考究它。

— Me@2012.05.31

2012.05.31 Thursday (c) All rights reserved by ACHK