Search Posts

Category: Programming

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) – […]

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 […]

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 […]

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 […]

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 […]

Nucleo STM32F103 dev board with built in STlinkV2-1 programmer

http://openenergymonitor.org/emon/node/6189   1. GNU ARM Tool Chain 2. IDE Eclipse 3. STmicro libraries 4. GDB Server 1. GNU ARM Tool Chain https://launchpad.net/gcc-arm-embedded $ sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded (if using 14.04 follow extras steps when adding PPA) $ sudo apt-get update $ sudo apt-get install gcc-arm-none-eabi if 64bit, we need 32-bit libs $ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 2. Eclipse […]

Tutorial : import svn with all history into github

Tutorial : import svn with all history into github Step 1) Create a project on github Step 2) Init the github project by : Step 3) git clone https://github.com/mcheung63/GKD.git <— replace your project url Step 4) cd to that directory Step 5)  user https://github.com/nirvdrum/svn2git and run: Step 6) svn2git –rebase Step 7) git pull Step […]

Next Page » « Previous Page