Change IP address for existing nodes in CDH 5.3

Today I discovered way to handle changes of IP address for Hadoop cluster managed by CDH 5.3. I think this should also be applicable for CDH 5.x. Took me couple of hours to figure this one out :/ I've done this previously but it was on CDH…

Creating Brew external command

Recently I had the need to create a homebrew external command to extend homebrew default behavior. My goal is to extend brew deps command by creating a new command brew deps-group. Executing the command will list all top-level packages in homebrew that is related to each other by common dependencies,…

Kaggle: Bike Sharing Demand Part 1

Finally had a chance to play around with Kaggle challenge, and bike sharing demand [http://www.kaggle.com/c/bike-sharing-demand] seems to be the easiest to tackle - no domain expertise required or atleast very minimal. This is going to be Part 1 where I'll go over how…

Image filtering with convolution matrix

I was reading reading about convolution matrix which was brillianty explained by Colah [http://colah.github.io/posts/2014-07-Understanding-Convolutions/]. If you're looking for good blog to follow, you might want to add him into the list. One of the application of convolution matrix is image manipulation like applying…

Face-tracking with OpenCV

I've been toying with OpenCV lately and surprisingly it is pretty easy to implement face-tracking using OpenCV. However, OpenCV documentation is a bit lacking especially with its Python binding. Installing OpenCV In OSX (yes, I've moved to OSX from Windows since I do a lot of…

Moving to Ghost

Haven't post anything for the past couple of months. I just started moving all the contents to Ghost [http://ghost.org] blogging platform. Previously, I was hosting my blog on Github pages, which means I have to use some sort of static generator and push the content to…

Creating Solr plugin

While trying to implement Solr indexer, I came across problem on how to actually normalize the date format according to Solr format. Surprisingly, this question was asked quite often in Stackoverflow. So, I decided to write a Solr plugin with the hope to solve this problem. However, at the end…

Cross-domain request with Rails + Angular.js

I was playing around with AngularJs recently and decided to integrate it with Rails. The goal is to have total separation between front-end and back-end. Back-end will act as a RESTful service that spits JSON. Both front-end and back-end will be served from different server and will have different domain,…