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
Category: Programming
Community Kit for SharePoint
Community Kit for SharePoint is a famous open source project in SharePoint world, it has some projects for reference designs.
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 […]
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.
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.
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 […]
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 […]
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?
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.
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) – […]
Installed AgilePoint NX
Installed AgilePoint NX, start doing research
My simplest bootstrap example
TestBootstrap
Quantr forms logo and icon
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 !
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 […]
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 […]
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 […]
Dead simple using reactjs with plain html (no nodejs)
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.
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
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 […]
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.
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 […]
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.
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 […]
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.
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
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 […]
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.
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:
Correct maven repository setting to compile pentaho plugin sdk
Pentaho maven development
Need to change your setting.xml because able to compile the pentaho sdk
A working tutorial to support jsp in spring-boot
https://www.javacodegeeks.com/2014/06/spring-boot-fast-mvc-start.html
Having a exe in a java project is trouble when you have AVG anti-virus
I have 3 exe files in my java project, those exe are develop by me but AVG think one of them is virus and block my file. So my eclipse is not able to compile it by maven and my project that depend on it got fail compile too. You can’t white list that files, […]
spring-boot with restful api get 406
spring-boot with restful api get 406, follow these steps to fix it: Add this to pom.xml Create WebConfig.java in your project
Hibernate is trying to fetch table meta from different database
Hibernate is trying to fetch table meta from different database, why? It is very trouble because the tables in my databases have the same name, but why can’t?
My netbeans plugin finally appears on official plugin portal
My netbeans plugin finally appears on official plugin portal , thanks to Mr Markiewb for helping out https://github.com/markiewb . This plugins show a tree view of all maven goals of all projects, you can double click the goal name on tree to execute it, helping people to save time.
Nodejs is very fast, at least faster than java and c#
Nodejs is very fast, at least faster than java and c#, here is my test case: JMeter send rest api request from Tai Wai to Mong Kok, below is the trace route /Users/peter>traceroute 210.5.164.14 traceroute to 210.5.164.14 (210.5.164.14), 64 hops max, 52 byte packets 1 192.168.10.1 (192.168.10.1) 2.463 ms 3.169 ms 0.995 ms 2 058176102001.ctinets.com […]
Maven Runner update – now it reads nbactions.xml
now it reads nbactions.xml added a button (with star icon) to hide default maven goals.
Flashing bin file to nucleo-L476RG
This command works!!!