CakePHP in USERDIR

Posted by Quinn at September 27th, 2006 10:23am under OpenSource 1 Comment Permalink

I have been setting up my laptop with Gentoo Linux. So far, it's working almost like a Mac OS X. I even get to listen audio CDs, stream radio, chat with AIM/MSN/Y! or Skype, while running server applications like MySQL, PostgreSQL, PHP and Apache.

Well, I want to do lots of experimental stuff on this system, so I tried CakePHP this time. CakePHP is a well known framework that just works for rapid web development made with PHP scripts. Developing application under CakePHP is just like Ruby on Rails or sort of. It uses MVC (Model, View, Controller) architecture.

Anyway, I encountered a very little problem while trying it setup. Even though I think the installation manual is written very nicely, it was missing something for me. This post is going to be about a small tip on CakePHP but hoping to help someone somewhere.

The installation goes as configuring Document Root in Apache as an option. Or I could still go without editing httpd.conf file if installation is under Document Root. All I have to do is activate Rewrite Engine for the directory.

Installing just under Document Root like this:

/var/www/localhost/htdocs/cake_install/

become accessible as:

http://127.0.0.1/cake_install/

This works fine just as the installation document says. However, it didn't work installing it under USERDIR like this:

/home/user_dir/public_html/cake_install/

This was not accessible at:

http://127.0.0.1/~user_dir/cake_install/

Then, I noticed there is no RewriteBase in .htaccess file. So, I add this line:

RewriteBase /~user_dir/cake_install/

just after the line of RewriteEngine On to two .htaccess files which are:

  • /cake_install/.htaccess
  • /cake_install/app/webroot/.htaccess

Then, yes! It's working now. I went through The Cake Blog Tutorial very smoothly. It is like coding with only a few lines can built a simple web application. I am not sure what kind of usage I can come up with this framework at this moment, but I am sure I am going to have more fun playing with this cool tool.

Taiko Arcade Game

Posted by Quinn at September 26th, 2006 4:58pm under Japan 0 Comments Permalink

Taiko Arcade Game Taiko Arcade Game While the trip to Fukuoka two weeks ago, we stopped by at arcade for a few hours. These photos show that young people enjoy playing Taiko drums, which are usually known to be ones of traditional Japanese intruments [Wikipedia]. So, I thought sharing these photos might be interesting. Then, I found that the game software for PS2 is sold at Amazon, so maybe this is not so new to some of you, but I bet those sticks and drums can't be found at arcades outside of Japan. Or, I could be wrong..

Kids Taiko Drum Performance Then, I had an opportunity to watch Taiko performance at a local elementary school last weekend. It was awesome! I suppose not many kids have chances to do this kind of stuff, especially in cities. Well, it was simply great to watch their performance.

Hojoya Festival

Posted by Quinn at September 25th, 2006 11:47am under hearts, Japan 0 Comments Permalink

Lanterns I just made a new photo set, Hojoya 2006 at Flickr. Hojoya is one of the three major festivals in Hakata, Fukuoka, Japan. Our family visited there as the second time together. The last one was two years ago and it was rainy. This year, a big typhoon was coming but didn't rain much at that time. It has become as the annual family event since this gives us a nice excuse to see my wife's sister who lives in Fukuoka, at least once a year. There are some not pretty photos of gabage and stuff. I thought they might be interesting to some who never been in Japan. I didn't put a photo with many people in it, but there were lots of people later in the evening. Well, I hope you enjoy the photos.

IEs for testing

Posted by Quinn at September 14th, 2006 1:00pm under web 0 Comments Permalink

ie7 I need IEs only for testing. Today, I just installed standalone IE7RC1. It was so easy. I should give Jon Galloway a big hug. Anyway, it doesn't look any differnt in rendering websites that I made. It looks min-width is working some but not complete. I should give more testing though.

Another thing, IEs4Linux is pretty good too. It runs with Wine on Linux/UNIX systems. It is perfectly working on my Gentoo system.