22 January 2015 by Batista Harahap on mysql | sphinx | homebrew | percona | mac

Making Homebrew Play Nice with Sphinx & MySQL

So I'm revisiting an old friend, Sphinx. It's been a while and warming up to Sphinx's new features. However, when I tried to brew install it, I got no MySQL support. The above gets more complicated because I'm not using vanilla MySQL, instead I'm using Percona Server on my machine.

Read more
17 October 2012 by Batista Harahap on bayes | classifier | io | machine learning | mongodb | mysql | naive bayes classifier | node.js | php | redis | socket | websocket

Naive Bayes Classifier - Revisited

During the last week, I've been following up work with a side project to do machine learning with Urbanesia's comprehensive data. A lot of late night reading and fiddling with foreign codes were the highlights of my last week. Wanted to elaborate my implementations and how several kinds of technologies

Read more
28 February 2012 by Batista Harahap on bayes | bayesian | github | handlersocket | mongodb | mysql | naive bayes classifier | naive bayesian classifier | opensource | php | probability

Simple Naive Bayes Classifier for PHP

Recently Hacker News is flooded with numerous articles discussing or at least mentioning Naive Bayes Classifier algorithm. It's a basic algorithm to classify a set of words into a certain category (set) based on prior learning of words and its probabilities. It sounds simple enough but without actual technical guide

Read more