Monthly Archives: August 2010

Hadoop example for Exim logs with Python.

The following is an example of parsing an exim_mainlog using Hadoop streaming. I’ve implemented both the mapper and the reducer in Python. The mapper and reducer don’t handle all of Exim’s log formats yet but this can be easily extended in the mapper and reducer if you actually end up using the output (this is [...]

Posted in Programming | Tagged , , , | Comments closed

Facebook’s Connect on WordPress.

So after several hours of beating my head against the keyboard I’ve finally been able to integrate Facebook’s Connect feature to http://blog.gnucom.cc – mainly for the comments box. I decided not to go with a WordPress plugin and instead modified the comments.php section of my WordPress installation. This URL made the process sound mindlessly easy [...]

Posted in Wordpress | Tagged , | Leave a comment

Sorting methods in Java.

I made this during school and have used it many a times while preparing for an interview or checking my new work in new languages. The class has static methods for all of the classic sorting methods like selection sort, bubble sort, insertion sort, heap sort, merge sort and quick sort. public class Sorts { [...]

Posted in Programming | Tagged , , | Leave a comment