民主歌聲獻中華 Concert For Democracy In China 1989-05-27

Hong Kong people who grew up under the British rule (before 1997-07-01) generally respects freedom and genuine democracy (the western kind with separation of powers strictly enforced under the rule-OF-law, not Marxist-Leninsts’ People’s democracy which is the dictatorship of the Soviets).

They fought for freedom and genuine democracy in China in 1989 in response to the Tiananmen Square massacre. 30 years later the very same artists were bought by the Chinese Communist Party to relay their propaganda. It’s scary how many people will sell their souls and their freedom, especially other people’s freedoms, for some ‘easy’ cash (those easy cash has strings attached: you have to obey the CCP. It’s a contract with Satan).

The Chinese Communist Party did the same infiltration plans to America, which the Chinese Communist Party has made the break during the Clinton administration bribing American politicians which opens the door for them to WTO and other international organizations, allowing the evil transnational criminal organization Chinese Communist Party to have more access to trade and use the wealth to destroy and dominate the free world with communism. Time for us to either shoot down the communist party or be slaves of Xi Jin Ping.

For those who want to dive into the details, the infiltration plan is called the ‘Termite strategy‘ by Chinese Communist Party premier Zhou-Enlai: basically it sends infiltrators dressing up as innocent members of the society at all levels to emigrate to the victim country that the Chinese Communist Party wishes to corrupt. It goes as early as the 1940s, and the first attempt to subvert is the 1967 riots of Hong Kong. They did something similar with the underground communists worldwide disguising itself as the black rights movements (which repeats itself as the #BlackLivesMatter movement in 2020). There’s no surprise as the Chinese Communist Party has been sticking with the same plans ever since conception. Everything in between are just (like staying under the radar for a period of growth during Deng and Jiang dynasties) the process of helping them gain power to achieve the same evil goals of world domination by communism.

Here’s the playlist of the charity event “Concert For Democracy In China”.

 282 total views,  1 views today

Nested Ordered List Plugin Conflicts

I recently had problem with Enlighter plugin (for displaying code) being misaligned after upgrading my WordPress. The Enlighter text went outside the boxes in desktop browser mode and I contacted the author of the plugin for help in the forum, and learned it was actually Nested Order List (NOL) plugin that’s overriding the CSS rules that defines the margins.

Another user had similar problem NOL conflicting certain templates and the author of NOL suggested similar causes that the CSS style from the plugin messed with other styles:

.nested-list .entry-content ul,
.nested-list .hentry ul {
 margin:.8em 0 .8em 1.4em

The author suggested that the NOL plugin itself is not complicated to start with (it’s just adding a CSS), and the same functionality can achieved by adding this CSS to my WordPress theme template (pasting the following text under “Additional CSS”):

.entry-content ol,
.hentry ol {
.entry-content ol ol,
.hentry ol ol {
.entry-content ol ol ol,
.hentry ol ol ol {
.entry-content ol>li,
.hentry ol>li {
.entry-content ol>li:before,
.hentry ol>li:before {
 content:counter(level1,decimal)'. ';
.entry-content ol ol>li:before,
.hentry ol ol>li:before {
 content:counter(level2,lower-alpha)'. ';
.entry-content ol ol ol>li:before,
.hentry ol ol ol>li:before {
 content:counter(level3,lower-roman)'. ';

It worked like a charm!

 130 total views

Texas Gov Rick Perry’s response to Craig Ferguson’s honorary citizenship request Standard to become a proud Texan

I fondly remember Craig Ferguson’s skit on his Late Late Show reading a letter from Governor Rick Perry responding to his application to become an honorary citizen of Texas (part of his honorary citizen campaign before he became an US citizen). We hear bits and pieces on the show, but gladly Ed Bark has the whole letter down in his blog.

Since it’s very old material, and it seems such marvelous material is fading out from search engines, I made a copy here to preserve it. I hope somebody can find the letter and make a PDF out of it.

Here’s the letter:

Dear Craig,

There was a time when we granted the status of Texan to just about anyone, including criminals, drunks and Tennesseans. Today our standards are much higher.

We need to know first of all if you have a gun rack on your car — and we don’t mind gun racks on girlie cars, which I suspect you drive.

Secondly, we need to know if, upon approaching roadkill, you drive on by, or stop and throw it in the back so you can skin it and hang the pelt on your wall.

Third, we need to make sure you have never, and never would, deface the Alamo.

Lastly, we need to know if you are willing to stand guard on our border, and prevent the entry of illegals from Arkansas, Oklahoma, Louisiana and New Mexico.

Your citizenship as a Texan depends on your answers to these questions, and whether you can dip tobacco and eat chili at the same time.

Sincerely yours,

Rick Perry


 144 total views

System Engineers’ tip to HKCEE/HKALE Math and Physics

Shortly after I’ve graduated with Mathematics and Electrical (and Computer) Engineering degrees, I realized a few supposedly difficult topics in Hong Kong’s Mathematics and Physics (Electric Circuits) curriculum was taught in unnecessarily painful ways.

Here’s an article I’ve written to show that it is less work to teach secondary (high) school students a few easy-to-learn university math topics first than teaching them dumb and clumsy derivations/approaches to avoid the pre-requisitesHKDSE EE Tips

Here are the outline of the article

  • Complex numbers with Euler Formula
  • Trigonometric identities can be derived effortlessly using complex number than tricky geometric proofs
  • Inverting matrices using Gaussian elimination instead of messing with cofactors and determinants
  • Proper concepts of circuit analysis and shortcuts
  • Solving AC circuits in a breeze with complex numbers instead of remembering stupid rules like ELI and ICE rules and messy trigonometric identities.

 132 total views

變幻才是永恆 = 世界是線性?

羅文唱的「家變」中的歌詞提及到「不必怨世時變,變幻才是永恆」,表達了一個很大膽的理論: 「世界是線性的」,這是學術界不可思議的一大奇聞。如果世事真的是線性,那麼股市只可以永遠不停地上升,下降,或停滯。從微積分學中,我們可以看到為何如此簡單的一句歌詞醞含著那麼大的玄機:

我們先以 f(x) 代表世界的事情, x 陣列代表可變的事物,K 是永恆不變的固定數,那麼世事變幻便是 f'(x)。「變幻才是永恆」亦即譯作 f'(x) = K,把恆等式的兩邊積分,我們便得到 f(x) = Kx + C,不用多說,C 當然是隨意常數。從此可見世界是線性方程式!

– Sep 17, 2005

 292 total views

喼神 Paul Ho (God of Briefcase) PAUL HO's unHOLY QUOTATIONs

PAUL HO’s unHOLY QUOTATIONs (All in Chinglish/English because SPC is an EMI school)

  • Open the door and see the mountain (翻譯: 開門見山)
  • There is a Chinese saying … (翻譯: 俗語有話…)
  • Don’t put your hands under your desk. People might think you are playing some toys.
  • Why you should not put your hands in your pocket?
    People might think that you are having a lucky draw.
  • Why you should not put your hands under your desk?
    People might think that you are playing some toys.
  • Detention Club: Lifetime membership
  • Fishing Club (上堂釣魚/こっくり)
  • Mr. Tso, a poet who can make a poem in seven steps (翻譯: 七步成詩)
  • ICAC might stand for “I Can Accept Cash” (When he taught EPA)
  • The term “tertiary industry” (三級工業) might have a better Chinese translation…
  • ICAC might stand for “Ice-Cream And Coca-cola”
  • ICAC might meant “I Can Accept Cheques”
    (I overused his “I can accept cash” in his Econ class, so he changed it to checks)
  • Good Family Education (有家教)
  • If someone is not happy with you, they’ll say hello to your family(問候你全家).
  • If you use credit card in King Fu, they might say hello to your family(問候你全家).
  • People don’t cry until they see the coffin (翻譯: 唔見棺材, 唔流眼淚)
  • Lots of St Pauls boys go to HKU……………………….for lunch
  • Kill the monkey to warn the chicken (殺雞警猴)

編者的話: 喼神雖然係懶,但佢嗰種老狐狸智慧喺一般學校裡面唔會學到。教得唔好唔緊要(喺聖Paul度讀都予咗至少一半係咁,自己執生係一門必修課),最緊要係佢唔煩唔管小事。喼神口賤(尤其係sarcasm)嘅功力超深,我喺佢身上學到唔少。如果你能豁開要佢教econ嘅期望,俾佢教都幾頂癮。

我認為係聖Paul教書嘅先生,教得好唔好唔係最大嘅問題; 最重要嘅係識唔識得同學生相處,同埋醒唔醒目。聖Paul嘅學生一般都唔會因為你係學校教書嘅就尊重你,都係要靠自己嘅真才實料(人際技巧係其中之一)贏返嚟。好似龍捲風呢啲得把口講,同埋超叔呢啲無自知之明嘅低B動物,要贏得聖保羅學生嘅尊重起碼要等多十世。我承認間中有啲學生會去認同啲無料到但好努力嘅先生,但我唔會咁做。

總而言之,係聖Paul教書都咪話容易,好多時都要睇天份。好似Ms Wai呢啲遲到早退嘅,偏偏係有料之人。佢火爆嘅脾氣反而教曉我有時對人好口啲好多時會幫你逢凶化吉。仲有我F.1俾飛機張教Maths大考38分,F.2俾Ms Wai教Maths大考全級第二,你話呢。

 288 total views

The most important invariants in basic electronics

The two basic laws in circuit analysis, Kirchhoffs Voltage and Current Laws,

  1. [KVL] Voltage across the same pair of points is the same no matter what paths you take
  2. [KCL] Current stay the same along the same path

are often taught in basic circuit analysis, but most of the time, they taught it in the context of nodal analysis, which you have a little more complicated meshes with multiple theoretical power source (voltage or current) that simple series/parallel circuit rules are not enough to solve the puzzle.

However, these two fundamental concepts are useful to develop insights that help you estimate quantities in a circuit quickly like a pro.

Kirchhoffs Voltage Law [KVL] can be applied to a parallel circuit of 2 branches (often the case when measuring additional loading effect). Let say the two branches are applied (loaded) at a voltage output V_0, which V_0 might change depending on the branches (loading).

    \[V_0 = I_1 R_1 = I_2 R_2\]

You can exploit the algebra to quickly calculate the current of any branch without first computing the overall resistance or current:

    \[I_1 = I_2 \frac{R_2}{R_1}\]

Kirchhoffs Current Law [KCL] is useful in analyzing energy loss over resistance in wires R. For example, in high school physics, we discuss why we have high voltage power lines for bulk energy transmission despite it’s more dangerous. The traditional explanation is

    \[P_{wire loss} = I^2 R_{wires}\]

so the lower the current is (which can be done through stepping up the voltage, traditionally done with AC signal through transformers, to maintain the same power). But how about other form

    \[P = \frac{V^2}{R}\]

Technically, it’s possible, but you have to be very careful that the voltage we are talking about is across the wire with resistive losses V_{wire}, NOT the load voltage V_{load}.

    \[P_{wire loss} = \frac{V_{wire}^2}{R_{wire}}\]

V_{wire} changes depending on the output load R_{load}, so you have to derive the assuming an arbitrary R_{load}, which will happen to cancel itself out and end up the same as if you think of everything in terms of current first:

    \[P_{wire loss} = I^2 R_{wires}\]

So the bottom line is that most of the time, it is easier to think in terms of current in most circuit analysis because current won’t change along the same path. This is especially true when your problem has varying impedances/load which will disturb the voltage.

Of course, if the problem screams direct application using KVL, don’t go all the way converting it back to current. You will find the current-first approach useful when we get to semiconductors like diode, voltage references, BJTs,.

I usually think of voltage as a consequence or effect of current flushing into a transducer (e.g. resistor), so it’s subjected to change and therefore messy to use when solving circuit puzzles. Solving circuit analysis problems are often an exercise of identifying invariants and inferring the remaining quantities.

 137 total views