Posts

  • | Source | Signature

    Using webcam to control Live2D Cubism model in Linux

    TL;DR: Code: GitHub, self-hosted, demo: video below

    I was researching how to get FaceRig to work on Linux, and eventually concluded that it is pretty much impossible. So I thought, hey, why not just code it myself? It can’t be that difficult, right? I mean, it probably won’t be as feature-rich as the original, but all I need / want is the basic “avatar moving along with my face” functionality.

    So I spent a couple weekends, digging up the (very poorly translated) Live2D docs (but still, kudos to Live2D Inc for actually translating them), struggled with some questionable anti-patterns, and arrived with this:

    (Signature) Also available on YouTube

    Source code available on GitHub and my own server. Yes the code is kind of messy and could do some refactorings, but it works so I couldn’t be bothered. ¯\_(ツ)_/¯

    With some input and suggestions from another user I have also created a spin-off project, where instead of using facial tracking, the avatar is controlled by mouse cursor position and customizable via a UI.

    Some more demos (not really that important so I haven’t bothered self-hosting them):

    Source code for this spin-off project: GitHub, self-hosted.

    Please feel free to get in touch for any comments, suggestions, bug reports, questions, or any kind of feedback!

    Preview clipped. Expand | Read full post in new tab

  • | Source | Signature

    En passant bug in Clubhouse Games: 51 Worldwide Classics

    In a live stream by Oga Namome it has been discovered that in the chess game in Nintendo’s Clubhouse Games: 51 Worldwide Classics, a bug exists where if a player is:

    • in check, and
    • the only legal move is to take a pawn en passant,

    then the game will incorrectly announce checkmate.

    Below is a clip of that moment:

    (Signature)

    Transcript of the game:

    1. e4 e5 2. c3 Qf6 3. Nf3 c5 4. Bc4 Qg6 5. O-O Qxe4 6. Nxe5 Qxe5 7. Re1 Nc6 8. Rxe5+ Nxe5 9. Qe2 Bd6 10. d4 cxd4 11. cxd4 Ne7 12. dxe5 Bc5 13. Nc3 Bb4 14. Qf3 f5 15. exf6 Bxc3 16. f7+ Kf8 17. Qxc3 d5 18. Bh6 Nf5 19. Bxd5 Be6 20. Qc5+ Kxf7 21. Qc7+ Kg6 22. Bxe6 Nxh6 23. Qxb7 Rab8 24. Qe4+ Kf6 25. Bh3 Rbf8 26. Re1 g5 27. Qe6+ Kg7 28. Qe5+ Kf7 29. Qxg5 Ng8 30. f4 a5 31. Qd5+ Kg7 32. f5 h5 33. Re3 Rh6 34. Rg3+ Kh7 35. Qc5 Ra8 36. Qd5 Rf8 37. Qxa5 h4 38. Rf3 Rc6 39. Qa7+ Kh6 40. Kf2 Rc2+ 41. Ke1 Rxb2 42. Qe3+ Kh5 43. g4+

    Lichess study with some annotations: https://lichess.org/study/eR7oCNAX

    Preview clipped. Expand | Read full post in new tab

  • | Source | Signature

    SARS-2

    sars-cov-2.svg
    (Signature)

    CC BY-SA 3.0 Derivative work based on https://commons.wikimedia.org/wiki/File:Raven_Matrix.svg by Wikimedia Commons users Life of Riley and Jirah

    Preview clipped. Expand | Read full post in new tab

  • | Source | Signature

    Venus

    2020-01-28T17:45Z, Kings Langley

    Venus(?) next to the Moon, bright as fuck.

    Also saw two more fainter stars (to my right - North? Venus was to my left), one of them is probably Vega. The other Altair maybe?

    Preview clipped. Expand | Read full post in new tab

  • | Source | Signature

    7 hours later...

    on9draw.png
    (Signature)

    Preview clipped. Expand | Read full post in new tab

  • | Source | Signature

    Firefox 70 logo

    Am I the only one who doesn’t like the new Firefox 70 logo? Now it looks like yet another Chromium-derivative.

    Preview clipped. Expand | Read full post in new tab

  • | Source | Signature

    Citing sources

    citing-sources.png
    (Signature)

    Preview clipped. Expand | Read full post in new tab

  • | Source | Signature

    究竟而家係打風定係旱災?

    storm-or-drought.jpg
    (Signature)

    Preview clipped. Expand | Read full post in new tab

  • | 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

subscribe via RSS