admin's blog

Running multiple PHP+MySQL sites locally on Mac OS X 10.6 Snow Leopard

Enabling PHP

1. Goto System Preferences>Sharing.

2. Enable "Web Sharing".

3. Open Terminal.app. Enter "sudo apachectl restart".

4. Navigate to "localhost" in a web browser. You should see the welcome page.

5. To make sure PHP is working, create phpinfo.php in /Users/Sites. *** There is a way to create phpinfo.php in command line, but I forget how to do it. ***

6. Create php.ini. In terminal, type:

cd /etc sudo
cp php.ini.default php.ini sudo chmod 666 php.ini

Virtual Hosts

Calculate the distance between two geopoints in Javascript

I was working on a prototype that for an geo location based app. Originally I found the algorithm that calculates the distance between two geo points on this page http://www.movable-type.co.uk/scripts/latlong.html . and then I added a little touch up to make it easier to understand and easier to use.

Enjoy! If you like this post, please Like my website by clicking the like button on the home page here.

Happy first day of summer and of Google Voice Search

Google Voice Search 1

It's the first day of summer, and it's time to celebrate some small wins in hour life. Wake up this morning, my stackoverflow points went up by 4 over night, YEAH!!! No sure why but freebie are always good.

Google's logo has been customized more than often this year. Today's feature is a very cheerful illustration to celebrate of the first day of summer by Takashi Murakami. Come to think of it, everything could be a celebration in life, and that's great.

Use Case Converter

One of the golden rules of being a developer is the "no typing". Developers should never create any content or fix any problem in the copy deck because it's the client's job to create or approve the copy deck, and the client takes full responsibility of their work.

Protect your Javascript

Javascript has gone so long to be what it is today. jQuery pushes the bar to a much higher leave that change the landscape of the way we use the web. What ever happened to VBScript? While Javascript is meant to be free and for sharing, with the increasing use of ajax technology, Javascript is no longer snippets of code that power little decoration of your web page like the sliding news or blinking text, in fact a lot of times in the branding business the use of advance Javascript technology such as OOP can be a major player in the game.

Tired of texting.

What's happening in communication? A while back I realize people don't even answer phone calls any more. Voice mail became personal call center, the facility that wastes time yet solves any problem. More and more txt plans flowing all over the news while people reportedly getting thumb soreness and mental disorder because of over texting and twittering.

Drupal 7 test drive

The long expecting Drupal 7 was finally release on Jan 5, 2011. The news has got the entire community heat up. For a lot of web designers and developers out there, this is like MJ's new album amount pop music fans or the new generation of Air Jordan for basketball lovers. Drupal.org has also made major changes on its UI, but without the test drive who's to say what's good and what not. With a load of excitement and curiosity, I down a copy of Drupal 7 to test out.

Mr. Children

in

During the weekend an old friend posted a song by Mr. Children, a Japanese pop band est. 1988. Although 90% of the time I don't know what they are singing without the subtitle, again the melody of their songs remind me that young and energy theme of most Japanese pop songs back in the 90's. Out of curiosity, I dig a little deep about his group on Grooveshark. For the last two days I have been listening to a bunch of "non sense", lol. However I feel peace and comfort though out every song. Music is just amazing.

LOST TV self-guided tour in O'ahu

LOST campsite

If you are a LOST fan, going to Hawaii to visit the film locations of LOST could be a good idea for your next vocation.

touchMe - a jQuery plugin for iPad web apps

Introduction

You have touched an iPad. Flipping page after page to skim though a digital magazine, zooming images in and out, even rotate them if you like, pretty cool uh? If you are a web developer and you want to integrate these unique input features all iDevices offer into your applications but you don't have time to read the Object-C Bible, now with Safari mobile browser and its support to CSS3 you can bring them to your audiences by including touchMe jQuery plugin to your next project.

Syndicate content