Category: Programming

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

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

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

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

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

Test cases in antlr grammar file

I am developing an Assembler, i think the best way is to embed the test case into the grammer, all those test cases are just one single line of assembly code. But now no way to do this in Antlr grammar. I am thinking to create a maven plugin to pre-process the grammar file. Add…
Read more


2018/02/24 0

Why nasm support an instruction that doesn’t exist on Intel manual

Nasm support “mov al,0x1234” which is “ADC AL, imm16”. But on Intel manual, there is only “ADC AL, imm8”. Why?


2018/02/20 0

Spring-boot will ignore your own log4j.properties

Spring-boot will ignore your own log4j.properties, two ways to fix that Way 1: Way 2: Put the spring-boot dependency in higher positions in , but way 1 seems much better way to fix this problem. Peter.


2018/02/18 0

SharePoint – Patterns and Practices

These web are good for you to learn latest SharePoint dev patterns and practices – [PnP at dev.office.com](http://aka.ms/OfficeDevPnP) – Welcome page with sample and guidance search – [SharePoint Dev Group](http://aka.ms/sppnp-community) – Questions and feedback – [PnP at MSDN](http://aka.ms/OfficeDevPnPMSDN) – [PnP videos](http://aka.ms/sppnp-videos) at YouTube – [PnP at Docs.com](https://docs.com/OfficeDevPnP) – Docs.com – [PnP Sites Core Component](http://aka.ms/officedevpnpsitescore) –…
Read more


2018/02/13 0

Installed AgilePoint NX

Installed AgilePoint NX, start doing research


2018/02/13 0

My simplest bootstrap example

TestBootstrap


2018/01/24 0

Crazy icon size for sharepoint modern webpart

If using office fabric icon, it is 28px x 28px. If using iconImageUrl, is has to be 40px x 28px, which is much smaller !


2018/01/20 0

Added test case for api /doesuserhavepermissions

Added test case for api : _api/web/doesuserhavepermissions, you can use this example to test for a specific permission of a specific user. You must add the user to the SharePoint owner group, otherwise it will return false. If the user don’t event have right to enter the subsite, the api will return 403. https://gitlab.com/quantr/sharepoint/Sharepoint-Java-API/blob/83750c61ec040a699ca02525bc4402ad7ae69227/src/test/java/hk/quantr/sharepoint/TestHavePermissions.java The…
Read more


2018/01/01 0

spring-boot pack fat jar with jsp

Very important notes on spring boot https://github.com/spring-projects/spring-boot/issues/8299 , if you want to pack your spring-boot into an executable jar with jsp, wherever you put your jsp insrc/main/META-INF/resources orsrc/main/webapp, it will not work. The correct way to pack your application is : pack your spring-boot app into war instead of jar, but you can still execute your…
Read more


2017/12/29 0

SharePoint Online get all items with fields specified by view

I am not sure i am correct or not. There is no /_api/web/lists/GetByTitle(‘your list’)/View/getbytitle(‘your view’)/items restful api for SharePoint online. So to get the items with fields that specificed by a view, you need these steps: Call “/_api/web/lists/GetByTitle(‘your list’)/fields” to read all fields and save all “InternalName” and “FieldTypeKind” Call “/_api/web/lists/GetByTitle(‘your list’)/View/getbytitle(‘your view’)/ViewFields” to read…
Read more


2017/12/23 0

Grid in Office UI fabric js

Office UI fabric js library embedded a very old Fabric Core 5.0.1, so the grid example from Fabric Core will not work. All you have to do is change the class from “ms-lg2” to “ms-u-lg2”. Just go to https://github.com/OfficeDev/office-ui-fabric-core/releases , download the source and check all the class names you need.


2017/12/17 0

Greate tutorial : SharePoint Framework Tutorial 6 – Using Office UI Fabric Components

https://channel9.msdn.com/blogs/OfficeDevPnP/SharePoint-Framework-Tutorial-6-Using-Office-UI-Fabric-Components


2017/12/14 0

WordPress SharePoint tag to read document library

I want to display files in SharePoint’s document library in my wordpress. There is one big technical problem, javascript still can’t do external authentication to SharePoint, by default your browser blocked corss site script. Even you enabled it in command line, your javascript still can’t set the custom “Cookie” in the header that need to…
Read more


2017/12/12 0

Calling SharePoint authentication.asmx

Calling SharePoint authentication.asmx need to set the “Content-Type” in header. For SOAP 1.1 (namespaces “soap”) it’s needed to use “text/xml” content type, while for SOAP 1.2 (namespaces “soap12”) – “application/soap+xml”. “application.xml” is not working. Beware of this.


2017/12/07 0

For Java developer, login to microsoft api is a problem

I have developed a SharePoint library to read/write SharePoint Online restful api. As you can see the below image from Microsoft, we need to sign-in to Microsoft before we can get the access token. Access token is a value that you need to pass to every restful calls as a parameter, otherwise the restful call…
Read more


2017/12/07 0

PowerBI may not be a very good option to build stock chart

PowerBI may not be a very good option to build stock chart if your data set is over 10,000,000 records, it take too long to load in from MySQL.


2017/12/03 0

Azure functions first try

Azure functions first try, sending around 60,000 to a very simple function on Azure functions, just returning a random number. Speed seems good and the charges is very very low, my account only raised $0.01 HKD for those 60,000 requests. The dashboard is not very real time, the “number of requests” has some delay. Java…
Read more


2017/12/03 0

FPGA meeting with Cityu Professor Ray and students

FPGA meeting with Cityu Professor Ray and students in a fresh morning. They are young and passions, we listen to professor introduce Xilinx and FPGA principles.


2017/11/27 0

Learning the advance skills to build new webpart

Since the classic webpart will be nuked, i am learning the advance skills to build new webpart


2017/11/24 0

The simplest guide to setup dev environment for stm32l476rg

The simplest guide to setup dev environment for stm32l476rg: Step 1: Install eclipse Step 2: Download STM32 workbench from http://www.openstm32.org/HomePage Step 3: Create a “c project” in eclipse and choose the board stm32l476rg, all other settings remain defaults, there is a dialog popup and you can download the cube4l in there, which is stm32 library Step…
Read more


2017/11/21 0