I’ve posteda while back. Now I’m getting tired of these bozos trying to hack my system in vain, wasting my bandwith and driving up fake page views on my StatPress. So I decided to patch wp-ban to include what I considered bad URLs.
Since I’ll be using wp-ban, it should go without saying that you need [...]
Posted on September 6th, 2009 under Security • 2 Comments
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.
try {
// Do something
} catch (DataErrorException $e) {
// Handle data error here
} catch [...]
Posted on August 23rd, 2009 under PHP • No Comments
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 9×9 [...]
Posted on August 19th, 2009 under General / Algorithm, PostgreSQL • 4 Comments
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 write [...]
Posted on August 4th, 2009 under General / Algorithm, PHP • 3 Comments
As you may know, Microsoft released its search engine (they call it decision engine) sometime last June 2009. The new search engine is bing. Since they launched, I’ve been waiting for an update of StatPress to include bing. After waiting for almost 2 months with no updates, I thought I’ll take matters into my [...]
Posted on July 23rd, 2009 under Administration • No Comments