Ben Chuanlong Du's Blog

It is never too late to learn.

Debug C/C++ Code Using GDB

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. lines use : while functions use ::

  2. use relative path from the executable to implementation files!!!

    b ../../tree.cpp:31 if knot->name()=="GO:0006139"
    
  3. it seems that there is a bug in …

Tips on C++

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

IDE

  1. Eclispe CDT is a good IDE for C/C++ development in Unix/Linux sytem. Configuration of Eclipse CDT in Windows system is not pleasant. Netbeans and code::blocks are good …

Algorithms and Tools for Encryption

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. RSA is most widely used algorithm but is computationally expensive.

  2. A good compromise is to use RSA to encrypt the symmetric key that is then used in AES encryption of the …

Common Errors Encountered in Scala and Solutions

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. Java Version Issue

    Unsupported major minor version

    https://stackoverflow.com/questions/22489398/unsupported-major-minor-version-52-0

java.lang.NoSuchMethodError: scala.Product.\(init\)

Fixing the Scala error: java.lang.NoSuchMethodError: scala.Product.\(init\)

It probably …

Maven Dependencies

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Properties

<properties>
  <scala.version>2.11.11</scala.version>
</properties>

Dependencies

Unit Test

<dependency>
    <groupId>junit</groupId>
    <artifactId>junit</artifactId>
    <version>4.11</version>
    <scope>test</scope>
</dependency>

specs

<dependency>
    <groupId …

Upgrade Release of Ubuntu

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

https://help.ubuntu.com/community/EOLUpgrades