Kernel, Virus and Programming

Map pgup and pgdown keys to page up and down in msi notebook in ubuntu

xmodmap -e “keycode 112 = Home”xmodmap -e “keycode 117 = End”

2022/11/28 0

Change qemu to use 16M ram for xv6-riscv

After testing, the minimal memory of xv6-riscv needed is 3MB

2022/10/30 0

Force gdb to read .gdbinit in current folder

GDB User Initialization File The user initialization file contains commands that are executed upon the startup of GDB. It is located in your home directory under the path: ~/.gdbinit Create/edit this file and add the following line to this file: set auto-load safe-path / This allows our programs to use a current directory initialization file,…
Read more

2022/10/16 0

Sync qemu fork

After I forked qemu, these comands can sync the origin repo

2022/10/14 0

Resolved : fatal error: ‘zstd.h’ file not found

Compiling LLVM and have “fatal error: ‘zstd.h’ file not found“, fix it by manually build the zstd git clone make sudo make install

2022/10/08 0

WordPress Component

To redesign our first app engine, we reference WordPress. This is its loading sequence

2022/09/10 0

Change SP list into MS list

just add “?env=WebViewList” at the end of URL

2022/08/25 0

Very good micro python board

2022/08/22 0

Tiny STM32 board (STM32F103C8T6) STM32F103C8T6

2022/08/16 0

Generate verilator coverage report in html

Remark: brew install iconv or apt-get install lcov

2022/08/06 0

Solved: The request message is too big. The server does not allow messages larger than 2097152 bytes.

SharePoint Online CSOM error : The request message is too big. The server does not allow messages larger than 2097152 bytes.

2022/07/19 0



2022/07/17 0

Great ByteBuddy tutorial

refer to

2022/07/02 0

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

2022/06/29 0

Clean Architecture

1. 一棟大廈不可能分成兩棟能完全獨立運作的大廈,但軟件通常由能獨立運作的小軟件所組成,所以有理由相信軟件工程比土木工程複雜 2. 軟件工程是內循環的,意思是用軟件A創造軟件B,之後又用軟件B改進軟件A,而土木工程是單向的,所以有理由相信軟件工程比土木工程複雜 3. 就算摩天大廈,起第一層和起第一百層的技術差不多,但軟件中不同層數的建築方法是完全不同,例如os層和web層,所以有理由相信軟件工程比土木工程複雜 4. 軟件工程中做同一件事的方法比土木工程多很多,所以有理由相信軟件工程比土木工程複雜

2022/06/26 0

SharePoint Error: apps are turned off

Solved by these commands

2022/06/17 0

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 0

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 0

正点原子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 0

Python read/write jtag via FTDI chip Read PWM Pins reference :

2022/03/03 0

Arduino Uno programme ATTiny85 works


2022/02/20 0

MRK Wifi 1010 serial is different

MRK Wifi 1010 serial is different than Nano and Uno, the usb in serial and in D13/14 are separate, so code them this way

2022/02/20 0

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…
Read more

2022/02/13 0

Compile libsigrok and pulseview in windows by msys2

This is the tutorial to build libsigrok and pulseview in windows Download msys Open “MSYS2 MinGW x64”, don’t use “MSYS2 MSYS” 3. git clone 4. cd sigrok-utils/cross-compile/msys2 5. ./sigrok-native-msys2 prepare , it will auto install all necessary packages Compile libsigrok 6. git clone 7. cd libsigrok 8. ./ 9. vi configure and…
Read more

2022/02/06 0

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 Download flatlaf-intellij-themes-2.0-rc1.jar and flatlaf-2.0-rc1.jar from . If you has any project used it by maven, just copy it from your .m2 folder Put those jars in C:\Program Files\NetBeans-12.5\netbeans\platform\lib Edit netbeans.conf , add below to netbeans_default_options Below is…
Read more

2022/01/08 0

Openlane init files

If run fail, have to remove the “runs” folder before rerun, otherwise same error will be shown my_design.v config.tcl

2021/12/31 0

Arithmetic Circuits & Multipliers

2021/12/12 0