Wednesday, February 19, 2014

Invictus


Out of the night that covers me,
Black as the Pit from pole to pole,
I thank whatever gods may be
For my unconquerable soul.

In the fell clutch of circumstance
I have not winced nor cried aloud.
Under the bludgeonings of chance
My head is bloody, but unbowed.

Beyond this place of wrath and tears
Looms but the Horror of the shade,
And yet the menace of the years
Finds, and shall find, me unafraid.

It matters not how strait the gate,
How charged with punishments the scroll.
I am the master of my fate:
I am the captain of my soul. 

Monday, February 7, 2011

add trash can icon

http://www.howtogeek.com/howto/ubuntu/add-the-trash-can-icon-to-your-ubuntu-desktop/

Just type gconf-editor into the Alt+F2 run dialog to open the Gnome Configuration Editor

Saturday, February 5, 2011

Weka

I use head -2496 filename.csv > filename2496.csv to copy the first 2496 lines to the file as 6000 are too big for weka.

Convert from csv file:

the first row of the csv file should contains the header-->column names
java weka.core.converters.CSVLoader /media/SAMSUNG/Experiment/Isolet/isolet1+2+3+4.data1000.csv > isolet1+2+3+4.data1000.arff

Install Sun Java dk on ubuntu

1. $ sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk
2. $ sudo update-java-alternatives -s java-6-sun
3. vi $HOME/.bashrc
4. export JAVA_HOME=/usr/lib/jvm/java-6-sun
export PATH=$PATH:$JAVA_HOME/bin
5. Test using java -version

Thursday, January 20, 2011

weka

http://maya.cs.depaul.edu/classes/ect584/WEKA/classify.html

Sunday, November 14, 2010

KD_Tree

http://en.wikipedia.org/wiki/Kd_tree