Latest articles under Programming category

Performing Optical Character Recognition in Java

Overview There are several engines to perform optical character recognition (OCR) in Java. This stackoverflow question is precisely regarding to that. Personally, I’ve tested Abby and Tesseract. Although I found Abby has better result, but I don’t think it worth the price tag. So I’ve chosen to go with Tesseract. Java bindings for Tesseract There […]

Posted on June 8th, 2015 under Java Tags: , , ,  •  1 Comment

Brain teaser: splitting revenue fairly.

While this brain teaser can be applied to more than programming, I think it’s a very nice one to sharpen our problem-solving solution required to do a good programming. There were 2 people, A and B. They joined together to have a meal. Person A brought 3 loafs of bread. Person B brought 5 loafs […]

Posted on October 30th, 2010 under General / Algorithm  •  No Comments

PHP exception handling.

I normally post tutorials, how-tos or the likes. This post is a little bit different than the others. It’s more like a thought that I came across when I finally decided to use PHP’s exception handling. Here’s the basic form of PHP’s exception handling. The purpose of having the ability to have multiple catch blocks […]

Posted on August 23rd, 2009 under PHP  •  No Comments

Solving sudoku using PostgreSQL PL/pgSQL

I have no idea why I would want to solve sudoku in PostgreSQL PL/pgSQL. My guess would be just for the fun of it. I’m also hoping that it can serve as a tutorial example in programming PostgreSQL PL/pgSQL. So what is sudoku? It is basically a number puzzle where the objective is to fill […]

Posted on August 19th, 2009 under General / Algorithm, PostgreSQL  •  4 Comments

XML and Ampersand (&)

I’m not sure if many programmers know this. But it’s always a good thing to make sure that they (including me) do. XML specification doesn’t allow ampersand (&). Here’s a quote from W3c.org XML recommendation with bold emphasis added by me. The ampersand character (&) and the left angle bracket ( 5C’. How would you […]

Posted on August 4th, 2009 under General / Algorithm, PHP  •  3 Comments

Page 1 of 41234