Labels

Wednesday, February 27, 2013

CLUTO

I have been dumb!! And even DUMBER!

Waha! But finally trying hard to think out of the box~ I got myself a mini solution!

This is pretty technical, but just don't mind me, I just wanna let out some happiness xD.

Stuck for 2 weeks [procrastinating] because I didn't know how to use cluto in java. It came in a executable tool, .lib and .h files. But I was using Java in my project! I didn't know how to use C++ in Java!

Until after 2 weeks, I started worrying that: oh die...the deadline is coming soon. I read up a little more on linking java and c++ using this JNI interface x.x and its gets more and more complicated then I told myself:

"Time to get another clustering tool ^^"

I went to WEKA. Just lol played with it for a day, in the midst of writing a few lines of code. It had exhausted me already x.x [ok, I am just lazy ;p] Then I met up with my supervisor, asked a bunch of questions and I was answered with ...

"Weka is slow..."

So umm~ I was recommended to some other tool, which for god's sake - lacked documentation x.x Its all good though - so I went to search up other tools. :p. Lol You seem I am being dumb? Never trying to learn the tools just want a shortcut to easy coding and the "final correct answer". Sigh!

So last night, I was trying to google up how to use JNI to link up java and C++. Oh well, it might be a good experience to learn. Sigh...the thing that comes next is: I haven't downloaded a c++ compiler x.x. Then it gets lamer from  there:

-Yet another search on easy to use tool.

I spent the whole morning, searching, then I tried yet another tool! Its a cute name, especially loved by rabbits. ^^. Oh well, it wasn't what I was looking for, but hey o.o they already have something thats similar to what I am doing for my project. Okies, then I will have to...

-Search for other tools again.

Then anyways, I gave up. I would never know what is a good tool until I tried it. Looking at WEKA code. ;x Nope, I don't wanna go there. Lol. So...

I took another look at Cluto. Command line ...
Yeah, maybe java can run command line...
Ohohoh it does?


            Runtime rt = Runtime.getRuntime();
            Process pr = rt.exec("vcluster");

This works. xD!!!!!! Ok I better get back to coding :)
No more changing tracks!

No comments:

Post a Comment