Author Archives: admin
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 2022/06/29
Clean Architecture
1. 一棟大廈不可能分成兩棟能完全獨立運作的大廈,但軟件通常由能獨立運作的小軟件所組成,所以有理由相信軟件工程比土木工程複雜 2. 軟件工程是內循環的,意思是用軟件A創造軟件B,之後又用軟件B改進軟件A,而土木工程是單向的,所以有理由相信軟件工程比土木工程複雜 3. 就算摩天大廈,起第一層和起第一百層的技術差不多,但軟件中不同層數的建築方法是完全不同,例如os層和web層,所以有理由相信軟件工程比土木工程複雜 4. 軟件工程中做同一件事的方法比土木工程多很多,所以有理由相信軟件工程比土木工程複雜 2022/06/26
SharePoint Error: apps are turned off
Solved by these commands 2022/06/17
四十業處表

2022/06/04
Code to set accent color of FlatLaf
2022/05/09
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) 2022/05/08
Netbeans : communicate with other JTopComponent in the same module
2022/05/01
OpenEdx knowledge base - get all comments for a specific discussion thread
2022/04/03
Resolved ICESugar pro blink.v :
ERROR: Module rst_gen contains processes, which are not supported by JSON backend (run `proc` first). Edit Makefile $(TARGET).json: $(OBJS) # yosys -p "synth_ecp5 -json $@" $(OBJS) yosys -p "read_verilog -sv $<" -p "synth_ecp5 -json $@" $(OBJS) 2022/03/27
正点原子Mini STM32F103RCT6在STM32CubeMX中玩UART

正點原子的教程是在Keil, 如果要在STM32CubeMX裏玩UART可跟以下步驟 Step 1. Step 2. Comment the whole file Step 3. Add these 3 files from the CD Step 4. Modify usart.c , default example override fputc never works, we have to overrid _write Step 5. Add this 2022/03/25
Python read/write jtag via FTDI chip

Bought from here . Example is here https://ftdichip.com/wp-content/uploads/2020/08/AN_110_Programmers_Guide_for_High_Speed_FTCJTAG_DLL-1.pdf Read PWM Pins reference : https://ftdichip.com/wp-content/uploads/2020/07/AN_184-FTDI-Device-Input-Output-Pin-States.pdf 2022/03/03
LuaNode running arduino setup
2022/02/28
ICESugarPro board blinking example work

2022/02/27
Arduino Uno programme ATTiny85 works
following https://jimirobot.tw/arduino-tutorial-attiny-attiny85-uno-burn/ 2022/02/20
MRK Wifi 1010 serial is different

Arduino MRK Wifi 1010 serial is different than Nano and Uno, the usb-to-serial and in D13/14 are separate, so code them this way 2022/02/20
start point to build our own jtag for our risc-v cpu

After days of hacking, i finally found out there is a dummy driver in openocd. just ./configure --enable-dummy and run it by ./bin/openocd -c 'interface dummy' -c 'adapter_khz 1' , you can see the dummy driver is running and in the function "static int dummy_write(int tck, int tms, int tdi)", we can manually toggle the […] 2022/02/13
Compile libsigrok and pulseview in windows by msys2
This is the tutorial to build libsigrok and pulseview in windows Download msys https://www.msys2.org/ Open "MSYS2 MinGW x64", don't use "MSYS2 MSYS" 3. git clone https://github.com/sigrokproject/sigrok-util.git 4. cd sigrok-utils/cross-compile/msys2 5. ./sigrok-native-msys2 prepare , it will auto install all necessary packages Compile libsigrok 6. git clone https://gitlab.com/quantr/toolchain/libsigrok.git 7. cd libsigrok 8. ./autogen.sh 9. vi configure and […] 2022/02/06
CPU ex.v progress 2022/01/10

2022/01/10
Using FlatArcOrangeIJTheme gives me a new fresh look of NetBeans

I am not sure I add this L&F right, but it just works. Below are the steps Below is the code to use FlatArcOrangeIJTheme in your swing app I am thinking to create a NetBeans plugin to let users switch themes, but the above code has to be run before any swing component is unitized. […] 2022/01/08
Openlane + wsl2 : repository does not exist or may require 'docker login'
when you have this problem 2022/01/01
Openlane init files
If run fail, have to remove the "runs" folder before rerun, otherwise same error will be shown initProject.sh runProject.sh my_design.v config.tcl 2021/12/31
Arithmetic Circuits & Multipliers
https://web.mit.edu/6.111/www/f2016/handouts/L08_4.pdf 2021/12/12
Dataverse bulk delete today records

2021/12/07
Don't use "skip" in antlr grammar for netbeans syntax highlight

use "channel (HIDDEN)" instead of "skip", otherwise the netbeans will throw exception. 2021/11/16
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. 2021/11/06
HLS

Synthesis-ed part of XV6 into Verilog 2021/10/13
Best post to explain php and fastcgi
https://cloud.tencent.com/developer/article/1442424 2021/10/10
Very good AI book by examples

2021/09/19
Good web to learn RISC-V interrupt

https://github-wiki-see.page/m/ianchen0119/AwesomeCS/wiki/Hello%2C-OS%21 https://github-wiki-see.page/m/ianchen0119/AwesomeCS/wiki/2-5-RISC-V::%E4%B8%AD%E6%96%B7%E8%88%87%E7%95%B0%E5%B8%B8%E8%99%95%E7%90%86----PLIC-%E4%BB%8B%E7%B4%B9 https://github-wiki-see.page/m/ianchen0119/AwesomeCS/wiki/2-4-RISC-V::%E4%B8%AD%E6%96%B7%E8%88%87%E7%95%B0%E5%B8%B8%E8%99%95%E7%90%86----%E4%B8%AD%E6%96%B7%E7%AF%87 2021/08/29
RISC-V readelf may has bug on field Abbrev Offset

2021/08/05
Microsoft Online Services SLA
2021/07/26
SharePoint Online奇怪現象
呼叫SharePoint Online Restful api時,如果ISPHttpClientOptions是空一樣能成功,但返回之時間值會錯timezone 2021/07/22
Knowledge Management
2021/07/15
SPFX init pnpjs
2021/06/24
Export Folder Permission to csv
2021/06/23
Good electronic components book

2021/05/30
WebPart spfx section background color
2021/05/30
Create pfx file to add custom domain for Power Apps Portal
openssl pkcs12 -export -out certificate.pfx -inkey privkey1.pem -in fullchain1.pem 2021/05/17
Nice book

2021/05/16
Solved: liximomo error : file not found
https://stackoverflow.com/questions/67506693/vscode-error-no-such-file-sftp-liximomo-extension/67524099#67524099 This is apparently a brand new problem that has been introduced into the newer versions of VS Code. I have FOUND A SOLUTION that seems to work well, by modifying a single line in the extension code. This is only valid for version 1.12.9 of the liximomo.sftp extension. Here are the steps: Shutdown / Quit VS Code. Locate […] 2021/05/15