Author: admin

Assembler嘅HLA邊界

寫Assembly用到Marco就試過N次,之前都係用到點就學到邊,無了解過佢嘅邊界,而家差唔多去到要為自己嘅assembler研發marco,所以要先睇下HLA嘅Marco大約可以做到啲乜。沙田圖書館係有唔少好書。 書中講左句: 啲人係用Assembler嘅Marco有幾勁黎判斷個assembler有幾勁,無錯,啲人確實係甘諗。以下就係關於assembler功能上嘅總結: Compile Time Operators. (E.g. : +-*/, <<, >> =, <>) Operator Precedence and Associativity (E.g. : !, -, div, mod) Compile Time Functions Type conversion Numeric functions Character-Classification functions (E.g. : isAlpha, isDigit, isSpace) String functions Symbol information (E.g. : @size, @define @typeName, @elements, @elementSize) Misc compile time functions (E.g. : @odd,…
Read more


2018/05/17 0

Microsoft workflow foundation係幾勁嘅, 不過香港少人知

Microsoft workflow foundation係幾勁嘅, 不過香港少人知。成套野包哂所有你要做一個完workflow engine嘅framework。Nintex係由WF做出黎就足以證明呢套野係work嘅!SharePoint個workflow engine係建基於workflow foundation上,了解WF同SharePoint workflow嘅分別從而推考到佢嘅好處同缺點就係學習SharePoint最堅實嘅方法,係一種深刻反醒佢本質嘅正確手法。


2018/05/13 0

The setting to identify an SPO/Onprem project for spfx

In file .yo-rc.json, the value of “environment” is either “spo” or “onprem”, it identify your project is on-premises or sharepoint online. If you want to create extension, you have to use “spo” { “@microsoft/generator-sharepoint”: { “version”: “1.4.1”, “libraryName”: “quantr-express”, “libraryId”: “1a6a217f-6fb8-44b4-981f-35d0ebe7025b”, “environment”: “onprem” } }


2018/05/12 0

My notes on command set development for SPO

current list id : this.context.pageContext.list.id current list title : this.context.pageContext.list.title for (let row of event.selectedRows) { let itemId: number = row.getValueByName(‘ID’); Dialog.alert(`${itemId}`); } Get current user email : this.context.pageContext.user.email import * as strings from ‘SpfxCloneCommandSetStrings’; this._fieldTypesToIgnore = new Array( strings.typeCounter, strings.typeContentType, strings.typeAttachments, strings.typeModStat, strings.typeComputed ); this._fieldsToIgnore = new Array( strings.fieldModified, strings.fieldCreated, strings.fieldAuthor, strings.fieldEditor, strings.field_HasCopyDestinations, strings.field_CopySource,…
Read more


2018/05/12 0

I think i found an azure bug

I think i found an azure bug, the ftp option is disappear when i create a “NodeJS Empty web” app service.


2018/05/06 0

MODRM


2018/05/06 0

m8 vs m16

The reason nasm need to add the keyword “byte” in “adc byte [si], 0x12” is that in intel manual, m8 and m16 are same, so without this keyword the assembler don’t know what you want for.


2018/05/03 0

Hook a new url and new post type

It can be done by calling “register_post_type()”


2018/04/30 0

Finally deployed nodejs+express to azure

Finally deployed nodejs+express to azure, I failed a fews time using the examples https://docs.microsoft.com/en-us/azure/app-service/app-service-web-get-started-nodejs and https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-nodejs-develop-deploy-express-app . The easiest steps for me are: 1. Create the App service manually in Azure portal 2. Create you express 3. Ftp to the app service. 4. Download server.js , copy content from bin/www to it and modify “var…
Read more


2018/04/29 0

My default vscode setting

tslint.json


2018/04/29 0

The hard part of developing assembler

One of the hardest part of developing assembler is to make your grammar correctly display the error message and pointing to the correct token.


2018/04/28 0

Data analyst talk in HKU 2018/03/17

Data analyst talk in HKU 2018/03/17


2018/04/28 0

I like this syntax

use a style as a tag, love it


2018/04/23 0

Token table is constructed by lexer, not parser

Netbeans Antlr Plugin’s Token table is constructed by lexer, not parser. So even your grammar is wrong, you still know what your text are being recognised into tokens.


2018/04/22 0

We will launch quantr partner central soon

We will send out lot of free/cheap webpart to the market, we need a partner central for our partners to manage all license keys and deliver customer services. Here is some concept screens.


2018/04/21 0

Netbeans outline plugin can parse antlr4 and cpp file

Netbeans outline plugin can parse antlr4 and cpp file now. Just press ‘ctrl+p’, it will be popup.  


2018/04/15 0

Antlr4 error listener can’t hit with non-exist token

Antlr error listen can’t hit with non-exist token, so my netbeans antlr plugin can’t highlight the non-exist token. The error listener is generated by official antlr4 grammar https://github.com/antlr/grammars-v4/tree/master/antlr4


2018/04/14 0

SharePoint Online with webhocks

Thanks to MS tech community people, the webhocks solution is the key for SPfx to add remote event receiver function to SharePoint Online. https://github.com/SharePoint/sp-dev-fx-webparts/tree/master/samples/react-webhooks-realtime


2018/04/14 0

Bimodal distribution

Studying Bimodal distribution, but don’t know what function can detect that in R


2018/04/09 0

why one-column in SharePoint online is not full width

why one-column in SharePoint online is not full width? why one-column in SharePoint online has a fixed max-width and not adjustable? I don’t understand why Microsoft put such a hardcode setting


2018/04/08 0

unsolved : site column does not refresh

When i redeploy my SharePonit spfx extension, the new site column name never refresh. I tried to delete the app and redeploy the app. Or even change the version number in package-solution.json. It is no hope. The steps i pack the sppkg file are: This issue is reported to github https://github.com/SharePoint/sp-dev-fx-webparts/issues/472


2018/04/08 0

Microsoft doc is MAD for sharepoint spfx dev

Microsoft doc teach us to hard code the cdn path with tenant name, first, it is wrong, if we want to deploy our webpart to office365 cdn, just leave it as “cdnBasePath”: “” , see the below image. Second, even we follow the doc to hardcode the cdn path, it doesn’t work !!! See my…
Read more


2018/04/08 0

Office 365 cdn sometime is slow

Deployed a webpart to office 365, it pop out an error, it is just because office cdn is slow and the javascript is not updated yet. All we have to do is wait.


2018/04/08 0

I am very good at developing SharePoint modern webpart now

I am very good at developing SharePoint modern webpart now, below is my learning curve for you to reference. I know nodejs 2 years ago but i didn’t take any commerical project for that, so my nodejs skill is not very hands-on. I spent two days to review everything i need to start nodejs programming.…
Read more


2018/04/07 0

icon will not distort in v1.4 sharepoint sdk

When you are creating modern webpart, you need to upgrade your node modules to v1.4 manually by “npm updated” and “npm install –save @microsoft/sp-build-web@latest”, icon will not distort in v1.4 sharepoint sdk now.


2018/04/06 0

Just tried Powerapps to build form in SharePoint Online

My first impression is, powerapps doesn’t support safari and i am in mac. I found a few bugs. The form designer is fast but if compare the functionalities to Nintex or AgilePoint, it still lacks of advance features, such as custom javascript, custom layout.


2018/04/05 0

Good morning AgilePoint

Training Wilson on Saturday morning to develop agilepart for v5. We can now develop it, but we have some unknown questions: 1. We can only create agilepart project in vs2010, but vs2010 failed to open it, then we use vs2017 to open and dev, it is wried. 2. Everytime we change code, we need to…
Read more


2018/04/02 0

Lion club – 長者樂齡電競

長者樂齡電競頒奬


2018/03/31 0

mvn versions:display-dependency-updates command has bug

mvn versions:display-dependency-updates command has bug, it found a non-exist version number. There is no 8.0.9 version in the maven central repository.


2018/03/31 0

Agilepoint v5 manual is here

http://documentation.agilepoint.com/SupportPortal/DOCS/ProductDocumentation/05.02.0100/DocumentationLibrary/maps/index.html#devAgileWorkProjectTemplate.html


2018/03/30 0

Break through agilepoint v5 smtp authentication problem

I can’t successfully config agilepoint to send email through smtp server with authentication. I finally able to find the project template in visual studio 2010 to create my own email stub. Still trying !


2018/03/30 0

Generate dynamic lexer from antlr grammar

Generate dynamic lexer from antlr grammar and try to parse something, because it is a lexer only, so it returns tokens not grammar tree.


2018/03/26 0

Make changes to Netbeans IDE is just so easy

If you want to modify something to Netbeans IDE, just git clone the source, change its code, type “ant” and “ant try me”, very simple


2018/03/24 0

Netbeans talk in Cocoon seminar

Netbeans talk in Codeaholics seminar. A lots of people, i have demo to people create a simple plugin to extends Netbeans is just so easy.


2018/03/17 0

Netbeans lexer problem : Fix the lexer to not return null token in this state

I have met the problem “Fix the lexer to not return null token in this state.” (see below) and used one week to fix it by hacking netbeans source code. I found out Netbeans will not pass the whole file to lexer to parse. So if your antlr grammar used “skip” syntax, it has a…
Read more


2018/03/13 0

Redirect local IIS to SharePoint Online

Install Application Request Routing https://www.iis.net/downloads/microsoft/application-request-routing Make sure “url rewrite” is in your IIS Follow the below screen to add rule


2018/03/13 0