Posts Tagged ‘Development’

Leverage Browser Caching

Saturday, January 7th, 2012

In the previous post I wrote about enabling compression for your pages so that they would load faster to the visitor. Today I’m going to write about how you can make use of browser caching to save some bandwidth. Some people told me that their ISP or hosting provider requested that they upgrade the hosting [...]

SMTP Smart Host Setup for Postfix in Snow Leopard

Friday, August 6th, 2010

PHP does not have any SMTP authentication mechanism in its configuration, and most developer opt for PEAR packages to perform email sending via custom ports and SMTP authentication. I am one of those who will avoid using external packages as much as possible unless really necessary, and of course because I wanted a quick solution [...]

PHP Debugging on PDT using Xdebug, with PHP packaged in XAMPP

Saturday, June 19th, 2010

It has been a while since I posted something technical so here goes. This article is meant for someone who has done PHP development before, and already has a web server and a working PHP installation. Traditionally in the old days these are the things that I do to debug my PHP code: Put in [...]

Image Hotlink Protection

Sunday, March 1st, 2009

Have people been stealing images from your websites? Well, there are not so many interesting images in this site so I don’t really have that problem. You can add a watermark to your image, but I guess everyone knows that. Another form of image theft also involves bandwidth theft. It’s has many names – hotlink, [...]

Perl CGI + Apache + Windows

Saturday, February 14th, 2009

I have always thought it’s difficult to migrate Perl CGI script to Windows. I was wrong, and today I learned how to do it. The configuration part is actually 100% similar! # This line will ensure only .cgi and .pl files are executed as CGI AddHandler cgi-script .cgi .pl   Alias /request/ "C:/request/" <directory "C:/request"> [...]

Flash Uploader Error

Sunday, November 16th, 2008

I was using YUI Uploader for a personal project and it works very well on my development notebook and server. However when the code is live on the server the Flash uploader failed with this error message: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2038"] After a while I realized that it must be something server-side [...]

IE7 and document.body.scrollTop

Monday, December 24th, 2007

After being nagged by my Windows Automatic Updates for quite some time, I finally decided to give in and just install the IE7 update. I made a mistake by not backing up my IE6 files, or trying to find a method to have IE6 co-exist with IE7. Anyway, I found that the document.body.scrollTop method to [...]