Kernel, Virus and Programming

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. read count : 29


2019/06/15 0

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…
Read more


2019/06/08 0

基本上掌握到JVM生成byte code

基本上掌握到JVM生成byte code,初步了解jvm的指令,能夠徒手用apache bcel生成class文件. 但感覺上jvm比.net core的vm重,所以先看看CLR才作最後決定。 題外話:基於jvm的語言除了java之外,沒一隻能夠有大的成功。 read count : 9


2019/06/02 0

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 read count : 4


2019/06/02 0

一本唔錯的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寫一次!!! read count :…
Read more


2019/06/01 0

Java is fast

read count : 8


2019/05/31 0

佛教超心理學

禪定引發超自然能力,而最詮譯禪定的就是華人所寫的”釋禪波羅密”和”摩訶止觀”,古印度禪定專用書暫時沒發現所以沒法搜獵。係所有心力專注一處嘅時侯思想不再被習氣所影響之下所顯示的那一個真正嘅我,是我還沒遇見的。 究竟是佛教教集體痴Q左線?定係真係有那一個境界,非常想知!   read count : 28


2019/05/27 0

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…
Read more


2019/05/13 0

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 read count : 6


2019/05/13 0

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. read count : 16


2019/05/12 0

Destroyed Yamato

By a level 8 Russian Destroyer read count : 7


2019/05/12 0

SharePoint再次提升速度

經過上星期重大upgrade, 而家速度大量提升,Create communicate site只需五秒。Deploy App 10秒內。Search亦都有肉眼看得見的速度提升。 read count : 5


2019/05/06 0

Simplest way to add fontawesome to spfx webpart

Do this on the top of you tsx file Then put this in your render function read count : 11


2019/05/06 0

Software Stack Tool

from a book call “DTrace” read count : 8


2019/05/04 0

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: read count : 26


2019/04/30 0

Powershell to get SharePoint group by ID

Usage: Get-SPGroup https://cf.peter.com 705 read count : 10


2019/04/26 0

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到了。 read count : 20


2019/04/25 0

不同project的不同webpart也是有機會撞ID的

寫太多webpart,終於遇到第一次撞WebPart ID,在兩個不同的spfx project裏webpart個ID重複,唯由手動改一改就可以deploy了 read count : 7


2019/04/22 0

佛教 VS 西方心理學

書中見到,不知對不對:西方心理學認為潛意識不可受控,但佛教認為只要通過禪定就可以控制潛意識。之前見過一遍報導就係科學家檢測人腦,在你做決定之前已經知道到你會做什麼決定,代表潛意識有份參與決定。所以西方不認同潛意識可以受控,就代表人做決定根本不由己,這點我比較認同佛教多一點。 http://sa.ylib.com/MagArticle.aspx?Unit=featurearticles&id=2329 read count : 27


2019/04/22 0

CPU由Soft core變Hard core的步驟

(Disclaimer: This might not be completely accurate since my experience in ASIC design is only that I took a course in integrated circuits a few years ago where we designed a small analog ASIC, basically just an op-amp). My understanding of the process for taking verilog and making it into an ASIC is something like:…
Read more


2019/04/17 0

Build library for SPFx 1.8.0 project use has to be careful the variable name

We have a library call quantr-spfx-library, which is a supporting library for our SPFx project. I tried to update a spfx project to 1.8.0 and unable to bundle it. The error is: Here is the original code from our library: As you can see, in the second line of above code, we have a library…
Read more


2019/04/13 0

Another great book about cpu design

Shatin library is great read count : 7


2019/04/06 0

一條必讀關於Teams控制Guest login嘅link

https://blog.syskit.com/ultimate-admin-guide-to-microsoft-teams-guest-users read count : 5


2019/04/06 0

CPU預研

read count : 27


2019/04/05 0

再度苦練Illustrator

read count : 6


2019/04/04 0

Share data between SPFx webpart

https://www.linkedin.com/pulse/share-data-between-spfx-webpart-ramakrishnan-raman read count : 17


2019/04/04 0

Build dynamic SharePoint search experience using refiners and paging with SPFx, Office UI Fabric and PnP JS library

http://thecollaborationcorner.com/2017/10/16/build-dynamic-sharepoint-search-experiences-with-refiners-and-paging-with-spfx-office-ui-fabric-and-pnp-js-library/ Recently, I’ve submitted a SPFx Web Part sample showing how to build a dynamic search experience using Office UI fabric components and SharePoint search REST API. This sample comes directly from a real intranet project within SharePoint Online. Why you would you like to do this? Well, if you’re currently implementing a new intranet using SharePoint…
Read more


2019/03/31 0

Using PnPjs to send requests to MS Graph with SharePoint Framework 1.6

SPFx 1.6 was released recently and a lot of new and interesting features were introduced. AadTokenProvider, AadHttpClient, MSGraphClient  went to GA, which are my favorite features. One of the common thing in SPFx development is accessing other resources, protected with Azure AD. For example you might have your LOB API with Azure AD protection and you want to…
Read more


2019/03/30 0

經過中央圖書館,練AI

Both are great book read count : 11


2019/03/10 0

苦練AI做好Design

必需做要所有web part Ico read count : 13


2019/03/06 0

I need to learn fast-reading technique

Usually i arrive shatin library 7pm so i got only one hour before close. So better to learn fast-reading technique. These two books are great. I think i need to buy some design sample books. read count : 15


2019/03/06 0

SharePoint Site Provisioning in Office 365 with defined permissions

Provision a site with a pre-set permissions is always a trouble for us. I found a great article here https://medium.com/provisionpoint/sharepoint-site-provisioning-in-office-365-27eaa2897776 about using pnp site template to complete this job in a easy way. read count : 25


2019/02/09 0

Universal App可以收工了?

Microsoft宣佈不玩Windows Phone了, Universal App意義何在? 加上Universal App有分C#和Javascript, C#是用Waml, 而Javascript就類似ElectronJS, 世界一早不同, 加上火不起來, 估計下一個要死的是Universal App了. read count : 52


2019/02/05 0

Coder Metrics – Way to measure coders

This book talk about how to measure coders. It stated three metrics: Skill, Response and Value. I think passion is also another important metric, but hard to be measure. If in Hong Kong, anti-blaming by project manager is also another important metric, there are too many skill-less managers in here, all their daily jobs are…
Read more


2019/02/04 0

PowerApps做唔到cross account的calendar真係一種遺憾

PowerApps每一次Export package去另一個Tenant,就算SharePoint Site裏面連個Site名都一樣,佢都係無法自動化完成所有import流程,一定要人肉入去搞一次,好花時間。而個calendar基本上只可以read當前登入者嘅calendar,如果唔係就要經group calendar或sharepoint list,設計唔算完美。 read count : 14


2019/02/03 0

I think i found a Microsoft Flow bug

I am trying to move all file from google drive to one drive business, so i think of flow. But I found if my folder name starts with a number, in microsoft flow i am unable to select it, it is not exist in the folder selection dialog. Even if i type the folder name…
Read more


2019/02/03 0