Category Archives: Programming
Tutorial to setup RF-Nano

https://item.taobao.com/item.htm?_u=ibuhab0bb1b&id=628418040642&spm=a1z09.2.0.0.76e02e8dYbXP6k
STM32 + DHT11 example

https://gitlab.com/peter-example/stm32/thei-stm32-demo-stm32f411ceu6
PhpIsDead framework init idea

How laravel can inject function to object in their ORM

The technique they have used are “trait“, “magic function” and “call_user_func_array“. The whole thing work in runtime, not compile time. 1. Php trait PHP trait is just like copy and paste the code from trait into the injected class. 2. Magic function When calling a not exist function, the __call function will be called. Laravel […]
This book is totally outdated

This book is totally outdated because the official facebook PHP SDK is already deprecated. Now we should go for facebook javascript SDK
如果想知道容器嘅原理

如果想知道容器嘅原理,我圈起左
Simplest standalone ApacheDS server

This code run a standalone ApacheDS server, you can use ApacheDS studio to connect to it, it host localhost:10389 pom.xml Then you can connect it by ApacheDS Studio
How to make your netbeans more beautiful

Set to a better font size 4. Set the color
Quantr Dwarf Library – Print address/lineNo/ColNo from specific address

Linear Regression in java

Latest SPFx, web parts not appear

Using latest SPFx with node v18, pack and deploy the app no error, but web parts not appear, because you missed this. When you upgrade your SharePoint project, beware of this
Netbeans programmatically add watch expression to the “watch window”

use this code pom.xml
WordPress Theme to support post-views-counter

To make the plugin works, need to call wp_footer() in footer.php
syscall.c for STM32 + XCubeAI

Funny lesson today to build few 8-bit registers

Teaching teens for electronics is a rewarding and fulfilling experience. Electronics is a fascinating field that combines creativity, logic, and problem-solving. By teaching teens for electronics, you can help them discover the joy of learning new skills, creating useful devices, and exploring the world of technology. You can also inspire them to pursue their passions, […]
COSCUP 2023

多謝hkcota同oshk安排, 今次台灣可以係coscup 2023講個talk實在開心.
PNP create a new list get 403 access denied

Create a new list in SPO via PNPjs will get 403 access denied, run this script to solve it
Load jar and dynamically create object from it

Two maven project, project A load the project B jar, create the object dynamically and invoke the method Project A: Project A: Project B:
WordPress Component

To redesign our first app engine, we reference WordPress. This is its loading sequence https://medium.com/@dendeffe/wordpress-loading-sequence-a-guided-tour-e077c7dbd119
Change SP list into MS list

just add “?env=WebViewList” at the end of URL
Very good micro python board

https://item.taobao.com/item.htm?spm=a1z09.2.0.0.15412e8duBDI2J&id=645704746945&_u=mbuhab0da05
Very good lucene book in cityu library

Tiny STM32 board (STM32F103C8T6)

https://item.taobao.com/item.htm?spm=a1z09.2.0.0.67002e8ddznHy0&id=630403001847&_u=gbuhab04cbb STM32F103C8T6
Great ByteBuddy tutorial

refer to https://blog.csdn.net/wanxiaoderen/article/details/106544773
Solved: SharePoint 2019 ERR_HTTP2_PROTOCOL_ERROR 

Navigate to the registry key 2.HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HTTP\Parameters. Add 2 new REG_DWORD values, EnableHttp2Tls and EnableHttp2Cleartext, to this registry key. Set both values to 0. Reboot the server  refer to https://stackoverflow.com/questions/67747270/reactjs-neterr-http2-protocol-error-200-with-netcore-in-https/67767129#67767129
SharePoint Error: apps are turned off

Solved by these commands
Code to set accent color of FlatLaf

Convert 64 bits binary string to BigInteger and maintain the sign

The first and third method converted successfully with sign. The second one fail. The reason 3rd way working is : It convert to biginteger and convert to long (then we have sign),then convert back to biginteger (also with sign)
Netbeans : communicate with other JTopComponent in the same module

OpenEdx knowledge base – get all comments for a specific discussion thread

Don’t use “skip” in antlr grammar for netbeans syntax highlight

use “channel (HIDDEN)” instead of “skip”, otherwise the netbeans will throw exception.
validate() in TableCellRenderer affect performance in windows

validate() in TableCellRenderer affect performance in windows, just read the source code of DefaultTableCellRenderer, just override it with empty function body will increase huge performance. Only windows affect this, mac and linux wont.
Microsoft Online Services SLA

SharePoint Online奇怪現象

呼叫SharePoint Online Restful api時,如果ISPHttpClientOptions是空一樣能成功,但返回之時間值會錯timezone
SPFX init pnpjs

Export Folder Permission to csv

Nice book

A very good provision tutorial

https://plumsail.com/docs/actions/v1.x/flow/how-tos/sharepoint/create-list-library-pnp.html
Good book about search design

spfx v1.12因為太多bug強行下架

spfx v1.12因為太多bug所以咪記已經強行下架而家變返v1.11, 之前用左v1.12請人手downgrade。玩咪記野跟車太貼有一定風險。