Revisit: choosing virtualization solution

It has been almost 1.5 years since I wrote my original article. While I’m still cheap (read: always try to get the best deals out there) but other things have changed — especially in the built-in support of virtualization on some Linux distributions. My new (used) server So this time, I got my server Sun […]

Posted on October 30th, 2010 under Virtualization • No Comments

Adding support for SSH2 on MAMP

Recently, I am in need to use SFTP on one of my PHP script. Fortunately, PHP does support it through SSH2 binding. Unfortunately, however, MAMP doesn’t come with SSH2 extension. So it looks like I have to recompile myself. Adding SSH2 extension to your MAMP the easy way I’ve compiled SSH2 extension for Mac. Note […]

Posted on December 11th, 2009 under MacOS X • 5 Comments

Swap values in 2 rows SQL

I encountered a situation at work that I feel would be a good brain teaser. I was working on a project and needed a way to swap values from 2 different rows in a SQL table. Obviously I can do it on client side (like PHP) to do it; but that wouldn’t be a good […]

Posted on October 11th, 2009 under General SQL, MySQL, PostgreSQL • 16 Comments

Updating wp-ban to include bad URLs

I’ve posted a 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 […]

Posted on September 6th, 2009 under Security • 2 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

Page 2 of 1112345...10...Last »