Posts

  • | Source | Signature

    要求增加《警隊(濫用權力)條例》

    除咗追究濫權,亦必須修例改革警隊,要求增加《警隊(濫用權力)條例》

    初稿

    1. 簡稱
      本條例可引稱為《警隊(濫用權力)條例》。

    2. 釋義
      (初稿,未寫)

    3. 截查或搜查
      任何警務人員(或自稱為警務人員之人士),如無合理及由客觀事實所支持的理據,而截查任何人士,或對任何人士進行搜身,或搜查任何人士之隨身物品,即屬犯罪。

    4. 非法進入或搜查
      任何警務人員(或自稱為警務人員之人士),如無法庭手令及無合法原因,而進入任何私人處所,或搜查任何須法庭手令方可搜查之物品,即屬犯罪。

    5. 逮捕
      任何警務人員(或自稱為警務人員之人士),如無合理懷疑,而逮捕任何人士,或於逮捕其間或逮捕後對被逮捕人士作出任何犯罪行為,即屬犯罪。

    6. 使用武力
      任何警務人員(或自稱為警務人員之人士),如故意或非故意對任何人士使用武力,而該等武力在該場合並非必要,即屬犯罪。

    7. 妨礙傳媒採訪
      任何警務人員(或自稱為警務人員之人士),如故意妨礙傳媒進行任何合法的採訪或拍攝工作,即屬犯罪。

    8. 妨礙某些公職人員
      (a) 任何警務人員(或自稱為警務人員之人士),如故意妨礙任何消防員、救護員、立法會議員或區議會議員執行職務,或妨礙他們行使他們的法定權力,即屬犯罪。
      (b) 就本條而言,立法會議員及區議會議員之職務,包括公眾普遍認為屬於其職務範圍內之工作,即使該等工作未必在他們的法定職責內。

    9. 執行上級命令不是抗辯理由
      凡被控告干犯第3至8條所列之罪行的人,不得以執行上級命令作抗辯理由。

    10. 罰則
      任何人被裁定干犯第3至8條所列之罪行,即須被處凌遲之刑,惟認罪及有悔意者,法庭亦可酌情判處絞刑。

    11. 審訊
      第3至8條所列之罪行,須循公訴程序起訴,並須由法官會同陪審團審理。

    12. 法律援助
      任何自然人如有合理證據,欲就第3至8條所列之罪行進行起訴,並為此向法律援助署申請法律援助,則法律援助署須批准其申請。

    Preview clipped. Expand | Read full post in new tab

  • | Source | Signature

    陳浩南

    chanhonam.png
    (Signature)

    Preview clipped. Expand | Read full post in new tab

  • | Source | Signature

    O記

    ocb.jpg
    (Signature)

    Preview clipped. Expand | Read full post in new tab

  • | Source | Signature

    TATP

    tatp.png
    (Signature)

    Preview clipped. Expand | Read full post in new tab

  • | Source | Signature

    Apple Daily login bypass -- GreaseMonkey

    Released under WTFPL.

    HK

    // ==UserScript==
    // @name        HK Apple Daily login bypass
    // @namespace   0x97ED093989537541
    // @description HK Apple Daily login bypass
    // @include     https://nextplus.nextmedia.com/article/*
    // @include     https://hk.video.appledaily.com/actionnews/*
    // @include     https://hk.*.appledaily.com/*/realtime/article/*
    // @version     1.0.1
    // @run-at      document-end
    // @grant       none
    // ==/UserScript==
    
    var node = document.createElement('script');
    node.innerHTML = 'function uReadDisplayMsgBox() {}';
    document.head.appendChild(node);
    

    TW

    // ==UserScript==
    // @name        TW Apple Daily login bypass
    // @namespace   0x97ED093989537541
    // @description TW Apple Daily login bypass
    // @include     https://tw.appledaily.com/*
    // @version     1.0.1
    // @run-at      document-start
    // @grant       none
    // ==/UserScript==
    
    var node = document.createElement('script');
    node.innerHTML = 'const paywall = function(){};';
    document.head.appendChild(node);
    

    Preview clipped. Expand | Read full post in new tab

  • | Source | Signature

    Octave vs MATLAB

    Top mysteries of the world:

    1. Octave can export plots to LaTeX, MATLAB can’t.

    Preview clipped. Expand | Read full post in new tab

  • | Source | Signature

    When you're cold but the radiators are broken

    ace@e520:~$ python3
    Python 3.5.2 (default, Nov 12 2018, 13:43:14)
    [GCC 5.4.0 20160609] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> while True:
    ...  pass
    ... 
    
    

    Preview clipped. Expand | Read full post in new tab

  • | Source | Signature

    Reed-Solomon code on a chessboard

    Prisoners smart enough to use Reed-Solomon code with rate 3/7 bits/symbol and erasure probability > 13%, not smart enough to use a subset of inputs to get rate 2 bits/symbol and erasure probability = 0?

    rs1.jpg
    (Signature) rs2.jpg
    (Signature)

    Preview clipped. Expand | Read full post in new tab

  • | Source | Signature

    Odd one out

    odd-one-out.jpg
    (Signature)

    A because all the other shapes are convex, B because it has no right angles, and C because it only has four sides? How am I supposed to know what criteria to use?

    Preview clipped. Expand | Read full post in new tab

  • | Source | Signature

    Musical Christmas lights on Arduino

    (Signature) | Video released under CC BY 4.0.

    The nice thing about Christmas holidays is that you actually have the time to make shower thoughts a reality.

    Materials

    • 1 × Arduino Uno. It will also work on other Arduinos (subject to pin number changes), and should also work on other boards, as long as there are 3 digital GPIO pins that can sink ~30mA, 1 PWM output pin, and a 5V rail.
    • 3 × red LEDs, 3 × yellow LEDs and 3 × green LEDs. I’m using whatever comes with the Arduino kit. It should work if it drops ~2V drawing ~10mA each. The code can be easily adapted if you want to add more colours, as long as you have three LEDs for each colour.
    • 3 × 100Ω resistors. I don’t have them so I’m using two 220Ω resistors in parallel to replace each 100Ω.
    • 1 × passive buzzer or speaker. I’m using a KC-1206 which came with the Arduino kit, but I’ve also tested an AST-030C0MR-R (which came with the Chaotic Oscillator kit) and a 4Ω 3” speaker (part number starts with EAS8 but the rest is illegibe due to rust) which I scavenged from an FM radio receiver.
    • A breadboard and a bunch of breadboard wires.
    • A power supply. I’m using USB.

    Schematics

    schematic.png
    (Signature)

    gEDA schematics: xmas.sch (Signature), arduinoUNO.sym (Signature), speaker.sym (Signature).

    Code

    A score for the song was looked up and its melody was written out as an array of the standard pitches in int song[]. int durations[] has the same length as song and denotes the relative length of each note. int durationScaleFactor controls the tempo of the song.

    Arduino code: xmas.ino (Signature), pitches.h (Signature).

    Preview clipped. Expand | Read full post in new tab

subscribe via RSS