How many?

Posted by Quinn at July 15th, 2008 2:26pm under hearts 0 Comments Permalink

It was fun to count this, how many states I have been in. Well, many comes from a trip to New York from California. It was a crazy driving trip with my best friend, celebrating his college graduation. There could be a few states I probably should not count in since I may only drove through, but I put them in anyway. So, mine came out as 20! How's yours?


Baking Tortillas

Posted by Quinn at July 12th, 2008 5:38pm under hearts 0 Comments Permalink

Oops, it's been quite awhile since the last post. Well, this story is also about a few weeks ago. Anyway, I finally learned to make tortillas, and I should give a big hug to this guy who inspired me with this awesome blog post.

Thanks Deas! This is the result. I enjoyed them so much.

Burrito

Like Deas was saying in the video about his current situation, I also live in rural Japan myself. I really needed this kind of help. While I was living in the Southern California as a poor foreign student, I survived by eating lots of cheep Mexican food, and YES, 2-dollar burritos were my favorites! Now, I can make my own. It just feels great. 

Multiple Rails on Subdirectories

Posted by Quinn at April 11th, 2008 10:13am under web 0 Comments Permalink

It has been way too long since the last time but I still wanted to play some with RoR. Setting up multiple rails on different directories under one domain was not easy. This is how I came up as the solution to it. I am using Apache virtualhost, mod_rewrite, and mod_proxy.

Ok, we are trying to set up rails for http://example.com/rails1 with http://example.com/ running under Apache.

 

Let's say web directory of example.com is /example.com/ and set up rails at /example.com/rails1.

$ mkdir -p /example.com/rails1
$ rails /example.com/rails1
$ cd /example.com/rails1
$ mongrel_rails -p 3000 start -d

Gotta create .htaccess file at /example.com/, not at /example.com/rails1/.

RewriteEngine   on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule rails1(.*) http://localhost:3000/rails1$1 [P]

And finally modify config/routes.rb.

map.connect 'rails1/:controller/:action/:id'

Well, this set up fails to show public/index.html. so it's probably not perfect. However, pointing controller after making one WORKS fine. And this actually generates links start with /rails1/. If this is working, another one must work on another directory too. Yay!

Very Strange..

Posted by Quinn at March 8th, 2008 7:52am under web 0 Comments Permalink

I just got somebody accept my friend request which I didn't. Very Strange.. Is there such a hole in Facebook?