Author: admin

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

gcc -O3 will auto remove frame pointer

gcc -O3 will auto remove frame pointer


2016/05/25 0

Pure c exception handler

Pure c exception handler


2016/05/22 0

export a function from gnu assembly to c++

export a function from gnu assembly to c++ then you are free to use it in cpp :


2016/05/22 0

linux elf dependency graph

linux elf dependency graph


2016/05/18 0

In shit again, c++ built-in function got divide by zero exception

In shit again, c++ built-in function got divide by zero exception


2016/05/16 0