Category: Programming

Provision a site with a pre-set permissions is always a trouble for us. I found a great article here https://medium.com/provisionpoint/sharepoint-site-provisioning-in-office-365-27eaa2897776 about using pnp site template to complete this job in a easy way. read count : 12

This book talk about how to measure coders. It stated three metrics: Skill, Response and Value. I think passion is also another important metric, but hard to be measure. If in Hong Kong, anti-blaming by project manager is also another important metric, there are too many skill-less managers in here, all their daily jobs are… Read more

I am trying to move all file from google drive to one drive business, so i think of flow. But I found if my folder name starts with a number, in microsoft flow i am unable to select it, it is not exist in the folder selection dialog. Even if i type the folder name… Read more

Netbeans has bundled an old Maven, version 3.3.9, it can’t print out colored text to the output window. But when we switch to latest Maven 3.6.0, all color gone. I asked Netbeans guys, maven guys and jansi guys for help, but can’t get a solution. So i try to hack the maven code, i found… Read more

Even the jansi library that built-in to maven 3.5.0 or above doesn’t work with netbeans, so we can’t output colored-text in Netbeans output window. But the “BUILD SUCCESS” word still in green. The reason is netbeans manually change the color to green. read count : 14

Love this book, a very easy way call “extension methods” can let you easily inject new method to existing classes (even you don’t have its source code). I tested it in windows with .net framework and mac .net core, both work correctly. read count : 24

If i pass an integer to the function’s parameter “from”, it will become integer and say it doesn’t has “includes” function, since it is belong to class string. This code is tested in SharePoint online with reactjs and typescript. Below is my tsconfig.json read count : 39

Unexplainable : Typescript compiler has bug, if i add anything above {this.toDoList}, a html tag or just a string, the variable become nothing, nothing is shown on the screen. I am not sure it is reactjs bug or typescript bug, or may be chrome bug. I am using latest spfx 1.7.0 with SharePoint Online for… Read more

When you login to central admin and found out your “new web application” button is disabled. Just run SharePoint configuration Wizard, logout and login admin your windows. Everything will be fine. !!! If still failed, try to login to windows via non-administrator account. Then start central admin by “run as administrator” read count : 9

Finally called the azure storage api, stucked for one hour in library. There is a / in + “/{0}/\ncomp:list”, Account); Remember two things:1. If you are calling to azure management api, you need a cert. Read https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-certs-create and https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-configure-ssl-certificate-portal2. If you are calling azure storage api, you just need a key, no cert if needed.… Read more

dotnet core will produce two exe if you make it self contained. One in win-x64\ and one in win-x64\publish\ . The different between it is referencing two different coreclr.dll. See the arrow in the below image. read count : 16

Thanks for Professor Ray from AppsLab holding this meaningful training for public about assembly language programming training, bringing system level programming experience to all joiners. Register links are http://www.hochk.hk/18-aug-registration-cityu and http://www.hochk.hk/25-aug-registration-cityu If you are interest to build a toolchain from the ground up, join us at https://gitlab.com/quantr/toolchain/Assembler or contact me at https://www.facebook.com/mcheung63 [slideshare id=110442329&doc=assembly-programming-i-180818154333&w=650&h=500] Course Materials: asm_example nasm… Read more

1. you have to run sharepoint shell using administrator 2. when credential dialog popup, you have to input the user name as machine_name\administrator 3. when hitting error, you must close the shell and restart it, otherwise whatever you do, last error message still happen Tips: 1. if you hit “Requested registry access is not allowed”,… Read more