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. So to get thing going, here’s what I did. 1 2 3 4 $ brew unlink percona-server $ brew install mysql-connector-c $ brew link percona-server $ brew install sphinx --mysql \m/ ...

January 22, 2015 · Batista Harahap

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 affect benchmarks particularly with classification performance. The repo for the codes is at Github here. During time span of the first batch of codes until now, I have made lots of changes to the codes and also the data store. I wasn’t sure at first, which database will bring the best performance. I’m testing on a fairly low spec hardware which is a Macbook Air Late 2011 with 4 GB DDR3, SSD and Intel Core i5 1.7GHz, this is nothing compared to a real server relatively. By the way, although relatively low spec, she’s got a name, it’s Claire. ...

October 16, 2012 · Batista Harahap

Urbanesia - Open Source & Microsoft

Today I was a speaker at Microsoft’s SQL on PHP event and I’m displaying the slides for the presentation below. It was a fun moment of sharing experiences, laughters and geekdom. Urbanesia - Open Source & MicrosoftView more presentations from Batista Harahap.

July 7, 2012 · Batista Harahap

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 book, it’s quite trivial since most of the information out there regarding it is too messy for newbies like myself. ...

February 27, 2012 · Batista Harahap

HandlerSocket Client Library for CodeIgniter

These past weeks, I’ve been amazed by the amazing performance offered by HandlerSocket right out of the box. You’d amaze yourself after reading a blog post by Yoshinori Matsunobu about the topic, he managed to get 750 thousands queries per second! Well I wanted to try it on my own and see how it goes. Here’s a CodeIgniter library intended just for that! ...

January 25, 2012 · Batista Harahap

Small is NOT so small

It’s been like a few months not posting into my own blog. The 24th day of 2011 and it seems that months have passed by just like that. In the span of 24 days that have passed, every single day is cramped with all the aspects of being a startup. Just today, I went from a programmer, a cable crimper, a business partner, a troubleshooter, a mobile app consultant, a colleague to a friend for a friend, all in just one day. Multiply that by 24 and that’s exactly what’s been going on. The dynamics revolving is mind blowing. ...

January 24, 2011 · Batista Harahap

KanalFOTO.com - Stock Photo Indonesia

This website is aimed as THE portal of Indonesian stock photos. Currently still in the process of piecing it all together. What I can tell you, it’s a purebred of OpenSource magic and Facebook will be its best friend. A first for me to incorporate Facebook wonders with websites. My first start was Facebook Connect. The Connect feature is already live on the homepage. Although now not 100% yet, it’s a preview of what’s to come. The next step is an application. ...

March 25, 2009 · Batista Harahap