Kernel, Virus and Programming

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 : 0

2019/04/06 0

一條必讀關於Teams控制Guest login嘅link read count : 1

2019/04/06 0


read count : 22

2019/04/05 0


read count : 2

2019/04/04 0

Share data between SPFx webpart read count : 9

2019/04/04 0

Build dynamic SharePoint search experience using 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


Both are great book read count : 5

2019/03/10 0


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

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 : 9

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 about using pnp site template to complete this job in a easy way. read count : 18

2019/02/09 0

Universal App可以收工了?

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

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 : 9

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

SharePoint alkamai error

Sometimes, SharePoint alkamai has lots of errors, but my webpart won’t dead and still run. But the left hand side bar will take a very long time (over 10 seconds) to load up. read count : 21

2019/01/28 0

Logical SharePoint Diagrams

read count : 21

2019/01/22 0


read count : 7

2019/01/15 0


雜心論對鬼有比較祥細的描述:1. 鬼有六識:眼意鼻舌身意,中國人普遍認為鬼無肉身,所以無身識2. 六道中各有不同的鬼,人死變人鬼,畜牲死變畜牲鬼,最特別的就是地獄眾生死後變死獄的鬼,由此可見地獄道眾生不是鬼,而餓鬼的眾生也不是鬼,如果不是鬼又怎會死了才變鬼呢3. 鬼經過女性的陰道投胎,而不是飛入個肚到投胎4. 有兩種說法,人道的鬼只能見到人道的鬼,第二種說法是人道的鬼可以見到比人道更低層次(地獄/畜牲/餓鬼)的鬼5. 鬼有時是見不到其它的鬼的,而中國的鬼應該是一定見到其它鬼的6. 鬼入胎後近右手為男,近左手為女,中國的鬼無此說法7. 地獄道的鬼頭向下腳向上而行走,只有天道的鬼才會飛8. 六道中各道的鬼與其道眾生,身型大小相差不遠 read count : 19

2019/01/15 0

Netbeans output window color not accurate

Although fixed the output window color, but the colors are not accurate, refer to read count : 61

2019/01/06 0

Assembler encoding test : 16-Bit Addressing Forms with the ModR/M Byte

Code to test “16-Bit Addressing Forms with the ModR/M Byte” // String instruction = “adc byte [ si+0x12], 0x1+0x20x3″; // String instruction = “adc byte [bx+si], 0x1+0x20x3″; // String instruction = “adc byte [bx+di], 0x1+0x20x3″; // String instruction = “adc byte [bp+di], 0x1+0x20x3″; // String instruction = “adc byte [si], 0x1+0x20x3″; // String instruction =…
Read more

2019/01/05 0

Same instruction, two opcode encodings

IA32 instruction “adc al,0x7” has two different opcode encodings. /Users/peter>ndisasm a00000000  80D007            adc al,0x7 /Users/peter>cat a.asmbits 16adc al,0x7 /Users/peter>ndisasm a00000000  1407              adc al,0x7 read count : 8

2019/01/05 0

Change github account in terminal

$git credential-osxkeychain erasehost=github.comprotocol=https[Press Return] To add your new account you can do the following commands:git config –global “YOUR NAME”git config –global “YOUR EMAIL ADDRESS” read count : 14

2019/01/05 0

Hex/Dec regex generator for continuous number

Decimal number: read count : 16

2019/01/05 0

A workable IIS module to log session to file read count : 20

2019/01/03 0

Solved – The root cause why Netbeans can’t print colored text using latest Maven

Netbeans has bundled an old Maven, version 3.3.9, it can’t print out colored text to the output window. But when we switch to latest Maven 3.6.0, all color gone. I asked Netbeans guys, maven guys and jansi guys for help, but can’t get a solution. So i try to hack the maven code, i found…
Read more

2018/12/30 0

Netbeans manually change color to green

Even the jansi library that built-in to maven 3.5.0 or above doesn’t work with netbeans, so we can’t output colored-text in Netbeans output window. But the “BUILD SUCCESS” word still in green. The reason is netbeans manually change the color to green. read count : 19

2018/12/29 0

Netbeans outline plugin runs fast

After changed to a new antlr grammar, now is parse java file in 1 second, before need 15 seconds to parse a 1000 lines file. read count : 22

2018/12/27 0


read count : 18

2018/12/27 0

Netbeans Antlr plugin初步頂到非Conbined grammar

Netbeans Antlr Plugins可以支持非Combined Grammar了,就是說如果你的Grammar和Lexer Grammar是在不同的文件也能支持 read count : 72

2018/12/26 0

Re-think query language – Linq

Think to develop a new query language for SharePoint to increase my dev speed, studying Linq. read count : 33

2018/12/24 0

SVG學習 – Viewport會自動有offset-x

如果SVG的大小比例和viewport不同,就會自動有一個offset x read count : 18

2018/12/24 0

終於publish左第一個reactjs+typescript的UI component上npmjs

Publish當中最唔明就係點解要自己寫tsconfig同gulp人手張typescript同scss去transpile,呢一點同java好唔同,jar就係jar,唔會理你係邊到行,但nodejs個世界唔同,production同dev版本分別好大。你自己用npx create-react-app去創建新project,的確可以係local行,但就publish唔到上npmjs成功俾人用(可能係typescript同scss太煩)。而家個我個package可以同時俾reactjs同sharepoint spfx去用,可以build UI component library了。 read count : 36

2018/12/24 0

bismarck 1 kill 5

read count : 18

2018/12/20 0