Archive

Archive for the ‘Web/Tech’ Category

Setup virtual directory on Apache in Windows XP

September 20th, 2009 No comments

Years ago, I developed PHP in Windows using IIS (Internet Information Services) as web server. I had no problem to setup virtual directories under IIS because I could just right click the web server and click Add Virtual Directory.

However now I am using Apache in Windows XP, I need to configure the virtual directory manually by editing httpd.conf file. The reason why I want to setup virtual directories is because I want to concentrate my projects code in drive D:\ instead of C:\inetpub\wwwroot\ or C:\xampp\.

After searching Google and read few websites, I have my answer on how to configure virtual directories, here is code to be added in to my httpd.conf file:

Alias /krova "D:\projects\krova"

<Directory "D:\projects\krova">
DirectoryIndex index.html index.php
Options FollowSymLinks
AllowOverride None
order allow,deny
allow from all
</Directory>

After restarted my Apache server, and pointed my browser to http://localhost/krova/, it works!

Categories: Web/Tech Tags:

Ubuntu 9.04

April 30th, 2009 No comments

Downloaded Ubuntu 9.04 (Jaunty Jackalope) last night. Burned into CD and had a quick test with Live CD. It’s greatly improved, now I do not need Google all around just to get my TP-LINK TL-WN321G wireless adapter to work, the driver is included and it just run! :D

Need to find a time to install and use it, before that, settle my pending stuffs first. :(

This blog post was written using Firefox 3 under Ubuntu 9.04.

Ubuntu 9.04 screenshot running under Live CD

(Click to view full size)

Categories: Web/Tech Tags: ,

Streamyx – The BEST broadband service in Malaysia

April 3rd, 2009 11 comments

screamyx - the best broadband in Malaysia

Paid for broadband 512k and get 9.6k dial up modem speed, this is the BEST broadband service in Malaysia. In Taiwan I can download whole Ubuntu CD in 30 minutes while watching Youtube without lagging.

Categories: Web/Tech Tags:

Google Chrome

September 3rd, 2008 1 comment

I like Google’s stuffs (except for Picasa, I prefer Flickr). Been downloaded Google Chrome, a new browser from Google. Works like charm, looks cool too. No problem at all to write this post. :D

Greetings from Taiwan!

Categories: Web/Tech Tags:

MySQL round down decimal number to nearest 0 or 5

June 4th, 2008 1 comment

Inspired by this post, I came out a way to round down a decimal number to nearest 0 or 5 in MySQL.

For example: 1.27 -> 1.25, 3.23->3.20

MySQL code:

SELECT TRUNCATE(value * 2, 1) / 2;
Categories: Web/Tech Tags: