意思是會先跑光所有embed action,然後才會跑listener裏面的function
Assembler Dev meeting #6, #7 and #8
Desmond typed all basic instructions to grammar. We found some translation are wrong. I fixed the full test so can test all translated instructions.
A nice book about how computer hardware works
I thought Java swing is pixel graphic
In last 20 years, I thought Java swing is pixel graphic, but i found out it is vector. I tried to draw a 1 pixel line with 45 degrees, and when i zoom out, i proved it is not pixel base. So all drawLine, drawRect function calls are vector graphic.
Calling Docusign Restful API with Bearer
In DocuSign, Bearer is same as access token, just two different names. It can be generated by this web https://developers.docusign.com/oauth-token-generator , make sure you have an sandbox account.
Net netbeans-antlr logo
Getting familiar with Adobe illustrator. For drawing GUI/logo from scatch, ai is better than photoshop. But photoshop is still good to draw on top of somebody designs.
Netbeans-antlr 2.5 plugin architecture diagram
Sequential logic, nice practice
C compiler pre-research preparation
Antlr C11 grammar is highly match with the C11 language specification, which is a very good news to us. https://github.com/antlr/grammars-v4/blob/master/c/C.g4
THE 6TH ASSEMBLER DEV MEETING
Peter updated netbeans-antlr plugin, increase our productivity: Jenny finished the REX.W translate, she keeps translating other instructions to see if our current coding facilities enough or not. Desmond is adding all the rest of the intel instructions to the grammar file, still need sometimes.
Ebook: Custom chips for dummies
https://peter.quantr.hk/wp-content/uploads/2019/07/custom-chips-for-dummies-arm.pdf
Flip flop family
完全痴線 – JTextComponent個setCaretPosition完來係錯
如果你放”abc\ndef”落JTextComponent, 佢會變Q左”abc\r\ndef”, 連帶影響埋setCaretPosition()會錯位,補救方法如下: 經過修正之後, 我個netbeans outline plugin回復正常了
The 5th Assembler dev meeting
Jenny has done SIB table, Kelvin is working on 66h 67h, Desmond is adding rest of the instructions. Thanks for Professor Ray visiting us and giving us advice.
x86 disassembler預研成功
x86 disassemble預研成功,感謝Rod Pemberton朋友在alt.lang.asm上面的幫忙,原來Intel instruction雖然係CISC但可以在未decode所有Byte之前把Instruction切割出來。還有,切割比我想像人來得簡單。我現在的問題就是,RISC的所謂固定長度指令好像不是傳說中所說的巨大優勢。
一本由讀computer science嘅人所寫嘅哲學書
我而家總結一下書中所帶出的哲學問題,所有讀computer science嘅人都應該花時間思考一下: 神。人。機械人。三者之關係 機械人的超限作用 人好明顯就是當機械人係奴隸 機械人之自我認同,自我意識 克隆人是機械人? 人是機械人?
Netbeans 11.0終於有plugin嘅library了
Netbeans自從貢獻左俾apache, maven central好耐無update, 由netbeans 9到netbeans 10都無library可用,以至8.1的plugin無從升級至netbeans 11. 今日check多次終於見到有11.0嘅lib了 https://mvnrepository.com/artifact/org.netbeans.api/org-netbeans-api-annotations-common
4th Assembler dev meeting
We heading into Antlr Grammar, got one problem : We don’t know how anltr prioritise parse rules, so next week will be our study week. A new friend https://www.facebook.com/waiwailk visited us in meetup too.
dotnet core dependency graph
My other open source project https://gitlab.com/quantr/toolchain/dotnet-core-dependence-walker can generate a dependency graph for dotnet core dll.
Framework 4.6 Namespace-to-Assembly Reference
Below is the table show you the mapping between namespace and assembly, thanks to the book “C# 7.0 in a Nutshell” Namespace Assembly Microsoft.CodeAnalysis Microsoft.CodeAnalysisMicrosoft.CodeAnalysis.CSharpMicrosoft.CodeAnalysis.VisualBasic Microsoft.CodeAnalysis.CSharp Microsoft.CodeAnalysis.CSharp Microsoft.CodeAnalysis.CSharp.Syntax Microsoft.CodeAnalysis.CSharp Microsoft.CodeAnalysis.Diagnostics Microsoft.CodeAnalysis Microsoft.CodeAnalysis.Diagnostics.Telemetry Microsoft.CodeAnalysis Microsoft.CodeAnalysis.Emit Microsoft.CodeAnalysis Microsoft.CodeAnalysis.Semantics Microsoft.CodeAnalysis Microsoft.CodeAnalysis.Text Microsoft.CodeAnalysis Microsoft.CodeAnalysis.VisualBasic Microsoft.CodeAnalysis.VisualBasic Microsoft.CodeAnalysis.VisualBasic.Syntax Microsoft.CodeAnalysis.VisualBasic Microsoft.CSharp System Microsoft.CSharp.Activities System.Activities Microsoft.CSharp.RuntimeBinder Microsoft.CSharp Microsoft.SqlServer.Server System.Data Microsoft.VisualBasic System Microsoft.VisualBasic.Activities System.Activities […]
基本上掌握到JVM生成byte code
基本上掌握到JVM生成byte code,初步了解jvm的指令,能夠徒手用apache bcel生成class文件. 但感覺上jvm比.net core的vm重,所以先看看CLR才作最後決定。 題外話:基於jvm的語言除了java之外,沒一隻能夠有大的成功。
A new SharePoint Online error
Haven’t seen this kind of error before, i was hijacking the css by my Embed webpart, suddenly becoming this
一本唔錯的vSphere SDK書
書中是6.0,雖然和6.7有點距離,但不失為一個入門書。 最重的是有一個學習規劃。 以下是一個vSphere programmer應該要懂的topic: managing inventory managing host systems managing virtual machines, snapshots, and vmotion managing clusters and resource pools managing networks managing storage and datastores event and alarms performance monitoring task and scheduled task user and license administration extending VI client scrioting the VI sdk with jython, perl and powershell 必需把以上topic用sdk寫一次!!!
Java is fast
佛教超心理學
禪定引發超自然能力,而最詮譯禪定的就是華人所寫的”釋禪波羅密”和”摩訶止觀”,古印度禪定專用書暫時沒發現所以沒法搜獵。係所有心力專注一處嘅時侯思想不再被習氣所影響之下所顯示的那一個真正嘅我,是我還沒遇見的。 究竟是佛教教集體痴Q左線?定係真係有那一個境界,非常想知!
今個月開發得比較滿意的WebPart
SharePoint “Menu Item Custom Action” – Host VS App
If you are trying to add an menu to SharePoint Online, make sure you chosee “Host Web” instead of “App Web”. If you chose wrongly, there is no way to convert it back in Visual Studio. You have to manually edit MenuItemCustomAction1\SharePointProjectItem.spdata , see below. You have to change the line from the top one […]
SharePoint App – Able to add most of the buttons
Great tutorials about SharePoint App – Ribbon button
https://mohitvash.wordpress.com/2011/07/20/ribbon-customization-add-control-to-existing-group/ http://aaclage.blogspot.com/2014/04/examples-of-customization-of-ribbons-in.html http://erikpool.blogspot.com/2011/10/understanding-crm-ribbon-xml-part-3.html
Found another way to hangs the SharePoint Online
Just created an SharePoint App project in Visual Studio 2019, create two ribbon buttons by this xml. Then back to classic mode, the ribbon tab “Items” will stop responding.
Destroyed Yamato
By a level 8 Russian Destroyer
SharePoint再次提升速度
經過上星期重大upgrade, 而家速度大量提升,Create communicate site只需五秒。Deploy App 10秒內。Search亦都有肉眼看得見的速度提升。
Simplest way to add fontawesome to spfx webpart
Do this on the top of you tsx file Then put this in your render function Or
Software Stack Tool
from a book call “DTrace”
Inline style of Office Fabric UI library in spfx webpart
After upgraded the @microsoft/sp-office-ui-fabric-core library, all inline styles gone, to get it back, you just need to do: Here is the test case:
佛教有宗和空宗爭論了一千年的就是這些東西
Powershell to get SharePoint group by ID
Usage: Get-SPGroup https://cf.peter.com 705
SharePoint的SPFX升級真的是千辛萬苦
由SPFx 1.0.0玩到昨天出的1.8.1,每一次升級framework都會遇到不同的麻煩。昨天Microsoft出了1.8.1,但我的Project還是用1.8.0,刪了node_module再npm i, 什麼也沒有做過就compile不到了,試了一回才發現最新版1.8.1剛出了,於是升級上去,結果又是什麼都沒有做,Project又變成可以compile到了。
不同project的不同webpart也是有機會撞ID的
寫太多webpart,終於遇到第一次撞WebPart ID,在兩個不同的spfx project裏webpart個ID重複,唯由手動改一改就可以deploy了
佛教 VS 西方心理學
書中見到,不知對不對:西方心理學認為潛意識不可受控,但佛教認為只要通過禪定就可以控制潛意識。之前見過一遍報導就係科學家檢測人腦,在你做決定之前已經知道到你會做什麼決定,代表潛意識有份參與決定。所以西方不認同潛意識可以受控,就代表人做決定根本不由己,這點我比較認同佛教多一點。 http://sa.ylib.com/MagArticle.aspx?Unit=featurearticles&id=2329