Author Archives: admin
Azure CDN SAS token expired will give you wrong error message

Azure CDN SAS token expired will give you wrong error message of the expired period 2024/10/08
Resolved : Mac pip unable to get local issuer certificate
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)’))’: /simple/matplotlib/ 2024/10/08
Statistics formula in Excel

2024/10/02
HKPS First RISC-V Board

2024/09/28
Weact Logic Analyzer

https://github.com/WeActStudio/LogicAnalyzerV1 2024/08/27
Remove old node_modules
2024/08/08
M2/M3 hole size
https://www.accu.co.uk/p/117-iso-metric-thread-dimensions Bolt Sizes Chart & Metric Bolt Dimensions THREAD SIZE MAJOR DIAMETER (MM) MINOR DIAMETER (MM) THREAD PITCH (MM) PITCHDIAMETER(MM) TAPPINGDRILL DIAMETER(MM) CLEARANCEHOLE DIAMETER(MM) M1 1.0 0.729 0.25 0.838 0.75 1.3 M1.1 1.1 0.829 0.25 0.938 0.85 1.4 M1.2 1.2 0.929 0.25 1.038 0.95 1.5 M1.4 1.4 1.075 0.30 1.205 1.10 1.8 M1.6 1.6 1.221 […] 2024/07/31
A simple hex dump for dns request and response
2024/07/27
Mac command to view all opened port

2024/07/19
All the gates I have

2024/07/08
如果想知道容器嘅原理

如果想知道容器嘅原理,我圈起左 2024/07/01
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 2024/06/09
THEi課程體驗日2024/05/24

教中學生玩STM32開發板,感覺到佢地開心 2024/05/25
How to make your netbeans more beautiful

Set to a better font size 4. Set the color 2024/04/27
IoT sensors

2024/04/14
Good ELF diagram

http://blog.k3170makan.com/2018/10/introduction-to-elf-format-part-vi.html 2024/04/13
Fixed dwarf bug

When i change kernelvec.S to -ggdb, my dwarf library broken but now fixed. Commit :e640c3d9 And I still don’t understand why .S won’t be an compile unit in dwarf, why design like that. 2024/04/09
Quantr Dwarf Library – Print address/lineNo/ColNo from specific address
2024/04/07
Teaching students for competition in THEi

2024/03/31
Install apache and php for http research

I need a super clean apache and forward all PHP requests to a independent php-cgi process which host by a specific port 1. Install Apache Mac In ubuntu, no need to build apache from source, just “sudo apt-get install apache2” Linux 2. Install PHP Mac Linux if you meet this error “configure: error: re2c 1.0.3 […] 2024/03/30
Dinner with HKI MEICOM

2024/03/17
有關於ESG之IT項目
IT projects play a crucial role in advancing Environmental, Social, and Governance (ESG) goals. Let’s explore how digital initiatives can contribute to ESG efforts: In summary, IT projects can drive positive change by integrating ESG principles, optimizing energy usage, and contributing to global sustainability. 2024/03/06
ubuntu , allow root to login mysql without sudo
2024/03/03
公關力

2024/03/02
fix TS1005 in spfx project
“extends”: “./node_modules/@microsoft/rush-stack-compiler-3.9/includes/tsconfig-web.json”, 2024/02/25
Linear Regression in java
2024/02/14
Road map to learn AI

2024/02/12
The way to extend qemu TCG plugin functionality

Hi, if want to to provide other function-calls to TCG plugin, such as reading guest memory, follow these steps: https://peter.quantr.hk/2024/01/qemu-risc-v-log-all-memory-operations/ 5. Run in qemu 6. Edit xv6-riscv Makefile: References: 2024/02/10
QEMU risc-v , log all memory operations

Step 1: Step 2: modify ./tests/tcg/plugins/mem.c , add this code in vcpu_mem() Step 3: in xv6-riscv change this to Then you see this References 2024/01/27
Qemu’s trace_memory_region_ops_write

I was trying to find the body of trace_memory_region_ops_write function in qemu source code, can’t find it. It is generated by python script (log.py) 2024/01/17
X11 is good but slow in starbucks

I am sitting in Starbucks with network speed 15Mbps and try to use X11 forward for Netbeans coding. XMing is very low screen resolution so I changed to x410. The text is super clear now but the bandwidth not enought, so a little bit lagging. You can see xming font is not clear in my […] 2024/01/16
Corsair MP600 needs to upgrade SSD firmware otherwise speed is very slow

2024/01/12
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 2024/01/12
Netbeans programmatically add watch expression to the “watch window”
use this code pom.xml 2024/01/05
RISC-V qemu doesn’t log “PRIV” in every instruction

RISC-V qemu seems wrong because it doesn’t log “PRIV:” in every instruction in qemu.log. Even mret is execute and the mode is changed, it doesn’t log “PRIV”. To fix this: 2023/12/27
Create a breadboard FPGA

We tried to ask GOWIN to let us generate the bitstream but seems they are not willing to open their standard, xilinx and altera has no hope too. So for education purpose we now go for build a simple one. We found the way to break logic into LUTs, so we want to build a […] 2023/12/24
NOR vs NAND flash

i finally found the differences between NOR and NAND flash, but just dont know what is it 2023/12/22
WordPress Theme to support post-views-counter

To make the plugin works, need to call wp_footer() in footer.php 2023/12/04
ENC28J60 + Arduino

2023/11/09
CS人如何同EE人溝通
首先,你要承認幾點先 千萬唔可以俾佢地知你知呢幾樣野,否則死得好慘 要不停贊美呢幾樣野 2023/11/09