Archive for February, 2009

PHP : Masking image with GD

My friend : Is it possible to use PHP and GD for croping image not in rectangle?

Me : Hmm, well so far I just play with GD only for creating thumbnail or crop an image. What exactly do you mean by that?

My friend : I need to crop an image and need the result in ellipse, so there will be an ellipse showing part of the image, and outside that ellipse should be transparent.

Me : What do you need that for?

My friend : Hmm, well just for some project I’m currently handle.

Me : I promise you nothing, but I’ll give it a shoot. Continue reading »

Getting started with XML/SWF Charts

Requirement

  • web browser with Flash Player 9 or later
  • XML/SWF Charts

Installation

  1. Download XML/SWF Charts, extract the download package, and put somewhere on your web server. I put mine into folder charts.
  2. Open your browser, and go to http://localhost/charts/sample.html

Continue reading »

CakePHP Tutorial:Installing CakePHP on Ubuntu

Yes, this is another cakephp on ubuntu. Most of them were not detail enough for beginners. So here I am and here is my version of installing cakephp on ubuntu. Continue reading »