Kernel, Virus and Programming

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


2017/11/21 0

FPGA talk in HKIE meetup

FPGA talk in HKIE meetup in 2017 Nov 17, invited by Daniel Ng, he is actively engage in FGPA technologies.


2017/11/18 0

Pentaho community can’t run in mac

When you run “Data Integration.app” in mac by double click it, you will have this error: /Users/peter/Downloads/data-integration>open Data\ Integration.app LSOpenURLsWithRole() failed with error -10810 for the file /Users/peter/Downloads/data-integration/Data Integration.app. fixed by:


2017/11/09 0

Pentaho maven development

Need to change your setting.xml because able to compile the pentaho sdk


2017/10/21 0

Met java bug JDK-8055829 in netbeans module

I am calling below code in netbeans, and it failed to retrieve any cookies from server. If i run these code in standalone, it got no problem. This only happen in Mac, to fix this by adding “CookieHandler.setDefault(null);” , see more detail https://bugs.openjdk.java.net/browse/JDK-8055829


2017/10/08 0

Netbeans antlr plugin great enhancement

I embed the Jgraphx library to netbeans antlr to provide interactive with the parser-tree. Now, the development methodology is: Create a g4 file Set the compile target, netbeans antlr plugin will real time generate a parser from your g4 file and try to parse the target file One the compile is success, that means your…
Read more


2017/09/26 0

Netbeans anltr alpha version is done

Netbeans anltr alpha version is done, now you can keep changing your g4, it real time generate a parser to parser your specified file, generate the parser tree graph at the bottom. What i will do is: you click on any text on your target file, if highlight the node in the graph, so you…
Read more


2017/09/24 0

Professor Terence Parr replied

Professor Terence Parr (Antlr creator) replied, this is a major different between foreigner professor and Hong Kong professor. Professor from Hong Kong never reply any technical question from public.


2017/09/19 0

Netbeans antlr can real time compile your g4 and test it using the selected target file

Netbeans antlr can real time compile your g4 and test it using the selected target file. If something goes wrong, it display the error messages at bottom window.


2017/09/17 0

My netbeans antlr plugin will do this: select the file you want to compile (see the combo box above), when you editing the .g4 file, it keep using the latest g4 to compile to file you have selected, and see the result in the bottom window. Is it a good design?


2017/09/17 0

Code to get all TopComponents and EditorPanes in netbeans

Code to get all TopComponents in netbeans, here is very useful link http://wiki.netbeans.org/DevFaqGetOpenEditorWindows


2017/09/16 0

Very good introduction to netbeans lookup

Very nice http://www.ssw.uni-linz.ac.at/Teaching/Lectures/KompTech/Netbeans_Platform_Introduction.pdf


2017/09/15 0

The fundamental function of our soul

This book is funny from shatin library, it talks about the the fundamental functions of our soul. Soul has two basic functions: Soul record our memory and habit, so that it can affect our next life Soul can affect our behaviour Henri Bergson said our soul is belong and not limit to our brain, if soul…
Read more


2017/09/11 0

crt{0,i,n}.o

crt{0,i,n}.o


2016/06/07 0

a super skill to help you understand .init and .fini

a super skill to help you understand .init and .fini, just do “LD_DEBUG=libs ./a.out”, read detail http://www.bnikolic.co.uk/blog/linux-ld-debug.html One thing need to remind you, loader pass control to a.out *BEFORE* it calls the fini.


2016/06/03 0

discovered something about .init and .fini sections

discovered something about .init and .fini sections, if you compile your source file into .o, no .init and .fini sections exist. But if you compile your code into target exe, .init and .fini are there. My question is: where does those .init and .fini come from the .o?


2016/06/02 0

i guess this is the reason i die in exception #0

I die in “divide by zero” exception, when i back trace, it was the destructor of class Vector, i guess the root cause is that: my newlib stub failed to work for the free() function.


2016/05/25 0

finally able to print out the fault address in exception 0 handler

finally able to print out the fault address in exception 0 handler, great step tonight


2016/05/25 0