Kernel, Virus and Programming

Azure functions for java still not mature enough

I was trying to put my assembler on cloud and found out Azure functions for java still not mature enough, using some libraries such as antlr will cause unable to compile. Searching around google and seems no answer.


2018/02/17 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

Can write simple test bench in vivado

After reading my verilog book for few days, i can write test bench file to test my verilog program in vivado. I like vivado much more than altera quartus, the UI is much more clean.


2018/02/02 0

For the user interface, Vivado is much nicer than Quartus

For the user interface, Vivado is much nicer than Quartus. Better to stick into Xilinux to build my soft core.


2018/01/27 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

Netbeans + Azure functions

If you are programming Azure functions in Netbeans, when you run “azure-functions:run”, you will have this bug: azure function “sh: func: command not found” Just manually copy your $PATH variable into netbeans, bug will gone


2017/12/11 0

Solved: Error while finding module specification for ‘azure.cli’ (ModuleNotFoundError: No module named ‘azure’)

when you have the follow error when running azure-cli az command: /Users/peter/lib/azure-cli/bin/python: Error while finding module specification for ‘azure.cli’ (ModuleNotFoundError: No module named ‘azure’) Just run directly


2017/12/10 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

Display gitlab projects in your wordpress page

It seems there is no plugin to display a project list of your gitlab, so do this Step 1) Install this plugin Step 2) Generate a access token in your gitlab https://docs.gitlab.com/ce/user/profile/personal_access_tokens.html Step 3) Paste the token in to line 4 below Step 4) Paste the these code https://gitlab.com/snippets/1686114 into your page Step 5) For the…
Read more


2017/11/25 0

I got over 2000 commits to open source projects

My github account is destroyed by a crazy Christian. I got over 2000 commits to open source projects, and 669 commits in last year. These screens are the only prove of my contribution now.


2017/11/25 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

FPGA talk in HKIE meetup

FPGA talk in HKIE meetup in 2017 Nov 17, invited by Daniel Ng, he is actively engage in FGPA technologies.


2017/11/18 0

Pentaho community can’t run in mac

When you run “Data Integration.app” in mac by double click it, you will have this error: /Users/peter/Downloads/data-integration>open Data\ Integration.app LSOpenURLsWithRole() failed with error -10810 for the file /Users/peter/Downloads/data-integration/Data Integration.app. fixed by:


2017/11/09 0

Pentaho maven development

Need to change your setting.xml because able to compile the pentaho sdk


2017/10/21 0

Met java bug JDK-8055829 in netbeans module

I am calling below code in netbeans, and it failed to retrieve any cookies from server. If i run these code in standalone, it got no problem. This only happen in Mac, to fix this by adding “CookieHandler.setDefault(null);” , see more detail https://bugs.openjdk.java.net/browse/JDK-8055829


2017/10/08 0

Netbeans antlr plugin great enhancement

I embed the Jgraphx library to netbeans antlr to provide interactive with the parser-tree. Now, the development methodology is: Create a g4 file Set the compile target, netbeans antlr plugin will real time generate a parser from your g4 file and try to parse the target file One the compile is success, that means your…
Read more


2017/09/26 0

Netbeans anltr alpha version is done

Netbeans anltr alpha version is done, now you can keep changing your g4, it real time generate a parser to parser your specified file, generate the parser tree graph at the bottom. What i will do is: you click on any text on your target file, if highlight the node in the graph, so you…
Read more


2017/09/24 0

Professor Terence Parr replied

Professor Terence Parr (Antlr creator) replied, this is a major different between foreigner professor and Hong Kong professor. Professor from Hong Kong never reply any technical question from public.


2017/09/19 0

Netbeans antlr can real time compile your g4 and test it using the selected target file

Netbeans antlr can real time compile your g4 and test it using the selected target file. If something goes wrong, it display the error messages at bottom window.


2017/09/17 0

My netbeans antlr plugin will do this: select the file you want to compile (see the combo box above), when you editing the .g4 file, it keep using the latest g4 to compile to file you have selected, and see the result in the bottom window. Is it a good design?


2017/09/17 0

Code to get all TopComponents and EditorPanes in netbeans

Code to get all TopComponents in netbeans, here is very useful link http://wiki.netbeans.org/DevFaqGetOpenEditorWindows


2017/09/16 0

Very good introduction to netbeans lookup

Very nice http://www.ssw.uni-linz.ac.at/Teaching/Lectures/KompTech/Netbeans_Platform_Introduction.pdf


2017/09/15 0