07 March, 2010

Solving the PHP timezone on Snow Leopard

I had this problem for sometime, tried 100 times changing the /etc/php.ini.default and restarting the server.
But to say how stupid I am, it was only one more step for me to get this done.

Let me explain how I set the timezone on my snow leopard.

1. I got my /etc/php.ini.default opened in my text editor (I use textmate, and open it as the root user).

2. Find the date controllers, search for "[Date]".

3. Now I had to set my timezone which is "Asia/Colombo" (for PHP list of supported timezones click here)

; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = "Asia/Colombo"

4. Save the file and rename it to php.ini ( mv /etc/php.ini.default /etc/php.ini)

04 March, 2010

More CSS 3 - Analog Clock

It has been fun since today morning! (if you read my previous post, it was a DoS attack the hosting said, am waiting for that to be fixed. ) Anyway I have something to show which is a Clock done with CSS 3.

Playing with CSS 3

Today morning I got up early to do some work on a site. But its a pity that the server responded me with time out errors. So I was totally disappointed about what happened. But things are not too bad at all I got a chance to try out some CSS 3.

Following is an image rotation which I try to do with CSS 3. You will need firefox 3.5 + to view this.

Spent some time with Adobe Illustrator. Didn't know I could d... on Twitpic

This image is rotated using CSS.

Below is my CSS

<style type="text/css">

#IMG1{ -moz-transform: scale(0.6) rotate(335deg); border:3px solid #CCC; }

<style >

Cool isn't it?

See what more imagination can do