Kernel, Virus and Programming

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

SharePoint 2016 Central Admin Functionalities summary

Application management Create/edit/delete web application Create/edit/delete site collection Assign site collection primary and secondary administrator Create or extend Web application Remove SharePoint from IIS Web site Delete Web application Define managed paths Web application outgoing e-mail settings Web application general settings Content databases Manage Web application features Web application list SharePoint Site Management Create site…
Read more


2018/03/12 0

Microsoft is fake again, node 8.9.0 is not working for office365 development

In SharePoint with NodeJs development, Microsoft was suggesting us to use Node 6.9.x, now microsoft website is updated and telling us to use Node8.9.x, I tried which failed. Lots of people on technet are saying they can’t compile their SharePoint project too. Microsoft need a better open source QC team.


2018/03/11 1

Microsoft outlook addins example is wrong

Microsoft outlook addins example is wrong if you use reactjs with webpack. Go to webpack.dev.js file, add the things in the below screen. After you run “npm start”, manually browse to “https://localhost:3000/function-file/function-file.html” and check all files referred by it are loaded successfully. Then the “Gist the gist” button will work. Peter


2018/03/11 0

Community Kit for SharePoint

Community Kit for SharePoint is a famous open source project in SharePoint world, it has some projects for reference designs.


2018/03/11 0

VSTO vs nodejs api for outlook plugin development

Microsoft technologies keep changing, if you want to develop addins for Microsoft outlook, you can choose VSTO api or nodejs api which is javascript based. VSTO api just like traditional outlook addins development, everything done in visual studio and output a Dll file for you to deploy the addins. Nodejs api is different, when you…
Read more


2018/03/11 0

Solved : “these characters need to be tokenized” for netbeans lang development

When developing highlight for new language, the antlr grammar has to return all tokens, you can’t skip token, otherwise your netbeans will throw this exception:


2018/03/10 0

Netbeans dev – file template iterator

This setting can define a new JPanel for new file creation. http://grepcode.com/file/bits.netbeans.org$maven2@org.netbeans.modules$org-netbeans-modules-cnd-asm@RELEASE712@org$netbeans$modules$cnd$asm$core$resources$layer.xml


2018/03/09 0

Deploy nodejs to azure, it just hang

Deploy nodejs to azure, it just hang. The “/usr/bin/npm-cli.js” install –production take forever time to complete, i have waited 10 mins, i think it is hang.


2018/03/04 0

Filter out 64 bits instructions

correct way to filter out 64 bits instructions in 16 or 32 bits mode in antlr grammar. Some intel instructions only support 16 or 32 bits mode, so assembler must tell user those instructions are wrong when they are in 64 bits mode.


2018/03/04 0

Added JUnit test case to test all byte code

Added JUnit test case to test all byte code with nasm, abandon the web interface because run a junit test is much more convenient.


2018/03/03 0

I am better to embed all testing assembly instruction in the antlr listener

I am better to embed all testing assembly instruction in the antlr listener rather than finding a way to embed them into the antlr grammar, because: Using parser of parser skill set to write a parser to parse antlr grammar and extract the testing asm instruction is too risky. One day the antlr grammar will…
Read more


2018/02/28 0

SharePoint left navigation bar in modern page

If you create a SharePoint site using the “communication site”, the left navigation is hidden and the top navigation menu appear. Which is different than the “Team Site” and there is no way to change it back unless you write code for custom branding. So need to beware of this when you create a SharePoint…
Read more


2018/02/28 0