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. [Read More]

Augmented Reality Browser in 10 minutes with Wikitude API

This blog post is a simple tutorial to demonstrate how easy it is to set up a full fledge Augmented Reality browser with Wikitude API. It will only take 10 minutes of your time in its most simplest form, ready to be customized with your own needs. It should be easy enough to let you innovate on your own. For this to happen, I assume you already have these items ready with your setup: Eclipse (Preferably Indigo) Android Developer Tools for Eclipse here Android SDK here Wikitude SDK here [Read More]

Code Hinting & Autocompletion for CodeIgniter in PHPStorm

Finally, moving back and forth between models, views and controllers is just too distracting and time consuming. I had to find another way to navigate my way between codes. I tweeted asking about alternative IDEs in Mac OS X to achieve this. Turns out there is a way! I got a tip from @LuisFAlonso (THANK YOU!) to check out instructions from a blog here. I followed the instructions and restarted PHPStorm afterwards. [Read More]

Jajan for Android Open Sourced at Github

Jajan for Android is now Open Sourced at Github a few hours ago. I personally hope that by looking at the source code provided, more and more developers will sync to the tune of how easy it is to create an Android application. I wrote most of the codes 7 August 2011 in under 4 hours. Using ready made libraries already available within Android and also other third party libraries, it helped to ease the complications. [Read More]

Hacking CodeIgniter for Persistent Timestamped Cache with Memcache

I’ve got myself a long title for a blog post this time. This post is exactly what the title says. Been twisting my head figuring out how to bypass CodeIgniter’s internal to hack CodeIgniter’s ability to do a persistent timestamped cache of generated HTML contents using Memcached. I couldn’t find any other way to speed up cached HTML content serving within the framework, so after a long talk with @chazzuka, I made the choice to skip framework. [Read More]

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!

[gist][/gist]

Amazon SES with Sendmail as Relay

Over and over, sendmail keeps getting whacked out of configuration and it’s puzzling why this keeps happening. I followed everything at Amazon SES’ instruction here with no luck. So to set things straight once for all, here are the steps to make the changes permanent. Open up sendmail.mc typically located at /etc/mail Add FEATURE(`mailertable’)dnl below where all the FEATURE() codes are Add the lines below at the end of file MAILER_DEFINITIONS Maws-email, P=/etc/aws/ses-send-email. [Read More]

OAUTHnesia for PHP

It’s 2012 now and Urbanesia is publishing a new OAUTHnesia client for Urbanesia’s API. This time it’s for PHP. Why it took so long to actually finish a PHP version is because we gave up on a third party library that is too complicated to do simple things. So without further ado, the codes are available below.

The Improbability of The Impossible

How many strands of thread does it take to keep us from being naked everyday? A whole lot for sure! How do you somehow collect all those strands and weave them into a single united strands that we wear everyday? Easy, a needle, strands with enough length and a significant amount of time and energy should suffice. So what’s the substance connecting all the dots? Technology. Dissecting and subordinating the impossible usually starts with HOW. [Read More]