Jun 3, 2015
K-Means Clustering with 80 lines of Scala —
I just implemented the K-Means clustering algorithm with 80 lines of Scala. read and createRandomCentroids methods are quite dummy and can be written much better. You can access to the gist via https://gist.github.com/metanet/a385d42fd2cab9f3d20e
…
Oct 12, 2014
cd to the directories you "frequently and recently" use pretty easily with Z —
Z is a command line tool that helps you to cd to directories you use with just a few key stores. It manages this by tracking the directories you visit, and weighting them by how frequently and how recently they have been visited. I have been using it happily for a long time, and now I think that I can recommend it to other people. It uses a term frecent for ranking directories.…
Sep 2, 2012
Embedding Groovy scripts into your Java application —
I like Groovy for a lot of things like being easy to learn, its dynamic feature, readable syntax etc. But one of the things I like and utilize most is its embedding feature which helps you to run Groovy scripts in your already-running Java application. If you have a stateful Java application, running arbitrary Groovy scripts to examine your state can be very useful when things screw up on run-time.…
Jun 20, 2012
A Simple Jedis Publish / Subscribe Example —
Hello again, after more than 4 months :) So many things have changed in my life since my last blog post. I will try to talk about them from time to time, which I am not very sure about that actually :)
I have been playing with Redis and its Java client Jedis lately. It looks very promising. I’m making experimental things on it and I really liked it. I will probably use it one of my personal projects for some use cases.…
Dec 25, 2011
Integration Testing with Maven, Jetty and Selenium 2 —
For the last few days, I was busy with preparing a integration test environment for our PrimeFaces showcase. Showcase project was already a Maven project, so I made a little research about maven phases, maven plugins, Selenium and Jetty and figured out how can I make things work. You can see similar blog posts on Google about the topic. I looked at most of them and they helped me on the way.…