Category: Programming

A working tutorial to support jsp in spring-boot

https://www.javacodegeeks.com/2014/06/spring-boot-fast-mvc-start.html


2016/05/10 0

Having a exe in a java project is trouble when you have AVG anti-virus

I have 3 exe files in my java project, those exe are develop by me but AVG think one of them is virus and block my file. So my eclipse is not able to compile it by maven and my project that depend on it got fail compile too. You can’t white list that files,…
Read more


2016/04/26 0

spring-boot with restful api get 406

spring-boot with restful api get 406, follow these steps to fix it: Add this to pom.xml Create WebConfig.java in your project


2016/04/24 0

Hibernate is trying to fetch table meta from different database

Hibernate is trying to fetch table meta from different database, why? It is very trouble because the tables in my databases have the same name, but why can’t?


2016/04/24 1

My netbeans plugin finally appears on official plugin portal

My netbeans plugin finally appears on official plugin portal , thanks to Mr Markiewb for helping out https://github.com/markiewb . This plugins show a tree view of all maven goals of all projects, you can double click the goal name on tree to execute it, helping people to save time.


2016/04/02 0

Nodejs is very fast, at least faster than java and c#

Nodejs is very fast, at least faster than java and c#, here is my test case: JMeter send rest api request from Tai Wai to Mong Kok, below is the trace route /Users/peter>traceroute 210.5.164.14 traceroute to 210.5.164.14 (210.5.164.14), 64 hops max, 52 byte packets 1 192.168.10.1 (192.168.10.1) 2.463 ms 3.169 ms 0.995 ms 2 058176102001.ctinets.com…
Read more


2016/03/28 0

Maven Runner update – now it reads nbactions.xml

now it reads nbactions.xml added a button (with star icon) to hide default maven goals.  


2016/02/12 0

Flashing bin file to nucleo-L476RG

This command works!!! /root/Desktop>st-flash –reset write Nucleo_blink_led_NUCLEO_L476RG.bin 0x8000000 2016-01-17T15:53:54 INFO src/stlink-common.c: Loading device parameters…. 2016-01-17T15:53:54 INFO src/stlink-common.c: Device connected is: L4 device, id 0x10076415 2016-01-17T15:53:54 INFO src/stlink-common.c: SRAM size: 0x18000 bytes (96 KiB), Flash: 0x100000 bytes (1024 KiB) in pages of 2048 bytes 2016-01-17T15:53:54 INFO src/stlink-common.c: Attempting to write 16544 (0x40a0) bytes to stm32 address:…
Read more


2016/01/17 0

Nucleo STM32F103 dev board with built in STlinkV2-1 programmer

http://openenergymonitor.org/emon/node/6189   1. GNU ARM Tool Chain 2. IDE Eclipse 3. STmicro libraries 4. GDB Server 1. GNU ARM Tool Chain https://launchpad.net/~terry.guo/+archive/ubuntu/gcc-arm-embedded $ sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded (if using 14.04 follow extras steps when adding PPA) $ sudo apt-get update $ sudo apt-get install gcc-arm-none-eabi if 64bit, we need 32-bit libs $ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 2. Eclipse…
Read more


2016/01/17 0

I use this script to check all projects for outdated maven dependency

I use this script to check all projects for outdated maven dependency


2016/01/12 0

Tutorial : import svn with all history into github

Tutorial : import svn with all history into github Step 1) Create a project on github Step 2) Init the github project by : Step 3) git clone https://github.com/mcheung63/GKD.git <— replace your project url Step 4) cd to that directory Step 5)  user https://github.com/nirvdrum/svn2git and run: Step 6) svn2git –rebase Step 7) git pull Step…
Read more


2015/09/22 0

Netbeans – Maven Runner

Eclipse has a great plugin call “Eclipse runner” https://marketplace.eclipse.org/content/eclipse-runner , i found out netbeans doesn’t have any similar one. So i develop one for netbeans. You can add maven goals under the tree node of any project. Double click the goal name will run maven in netbeans. You can download it from http://plugins.netbeans.org/plugin/60381/?show=true, or search “Maven…
Read more


2015/09/16 5

This battery save my apple magic mouse

When you change your mouse from logitech mouse to magic mouse, the first feeling is that magic mouse is much much heavier. This battery save my apple magic mouse, although it has lesser mah, but it is 5 times lighter than normal battery, so i much my magic mouse much lighter weight. And it is only…
Read more


2015/09/08 0

hard to theme netbeans perfectly

It is hard to theme netbeans using traditional swing look & feel. The reason is netbean’s tab container is not traditional swing JTabbedPane. See the post https://netbeans.org/bugzilla/show_bug.cgi?id=150393 Netbeans use a AbstractViewTabDisplayerUI to support only few “default look & feel”, such as Metal, Nimbus, Aqua. see below: The problem is : This default look & feel tab container…
Read more


2015/08/06 0

Peter-swing java look & feel

https://github.com/mcheung63/peter-swing


2015/08/03 0

grub is slow on bochs

if grub is running slowly on bochs, try to add “–no-rs-codes” to your grub-bios-setup command. It will be 0.5 sec versus 5 seconds different.


2015/08/02 0

binutils compile error

If you compiling binutils and have these error, just remove d-exp.c and try again. d-exp.c should be generated by d-exp.y but binutils makefile won’t delete it during “make distclean”


2015/05/03 0

compile dwarfdump in mac

CFLAGS=’-I /opt/local/include -L /opt/local/lib’ CXXFLAGS=’-I /opt/local/include -L /opt/local/lib’ ./configure –prefix=/peter-dwarfdump make make install Because mac gcc doesn’t search for the /opt/local, so need to specific the path manually.


2015/03/07 0

Thinkaholic open source event 2015/2/10

Thinkaholic open source event 2015/2/10


2015/02/15 0

Empty bochs instrument crash in linux, but not in mac

Empty bochs instrument crash in linux, but not in mac. My instrument code is nearly empty. core dump: configure: run by: bochsrcSDL.bxrc: instrument.h: instrument.cc:


2014/12/25 0