Monthly Archives: May 2016

C++ – Unit test framework “doctest”

This C++ testing framework is very light and only requires a header file to include. Above all it will allow to have testing code in production code. https://github.com/onqtam/doctest

Posted in C++, Programming | Leave a comment

C++ – loop optimization with Sentinel

It is possible to make the loop faster by using an guarded value so it doesn’t need to check the variable validation or extran comparing. https://en.wikipedia.org/wiki/Sentinel_node

Posted in C++, Programming | Leave a comment

Java – unmarshalling partial XML in XML schema

Posted in Java, Programming | Leave a comment

Etc – copying a file with putty scp example to linux machine

pscp.exe -i [ppk_path] [file_to_copy] root@[ip]:[dest_path] ex) pscp.exe -i c:\test\id_rsa.ppk c:\temp\test.txt root@[fe80::217:88ff:fe20:4d1]:/tmp

Posted in Etc | Leave a comment

Etc – Screen capturing with GIF animation

Quiet amazing free software on capturing screen shot with GIF animation http://screentogif.codeplex.com/

Posted in Etc | Leave a comment