2014/12/27

Ubuntu Install Oracle Java via PPA

sudo add-apt-repository ppa:webup8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

You can find the latest version available from the website:
http://www.ubuntuupdates.org/ppa/webupd8_java

2014/12/24

[C++] static_cast & dynamic_cast

以往都用(int) variable來強迫轉型,新的C++裏頭似乎比較鼓勵用static_cast
dynamic_cast在物件轉型時會檢查是否由父類別轉為子類別,接著才進行轉換

Reference:
http://windsplife.blogspot.tw/2010/09/cstaticcast-dynamiccast-reinterpretcast.html

2014/12/23

Installing Virtualbox Guest Additions in Ubuntu

Take VirtualBox 4.3.20.96996 for example: 


sudo -i

cd /media/username/VBOXADDITIONS_4.3.20_96996/

./VBoxLinuxAdditions.run


p.s
Change the username to yours, and make sure of the version.

2014/12/11

[Visual C++] MySQL Port Setting

connectstr = "Network Address="+server+";"+"Port=3307;"+"Persist Security Info=no;"+"User Name="+userID+";"+"Password="+password;