Monthly Archives: January 2007

Ruby on Rails on Media Temple’s (dv) on Plesk on…

rails.png

So I’ve been fiddling around with trying to get my rails applications installed on Media Temple’s (dv) 3 server. It’s a pretty nice setup; basically a dedicated server (though virtual) that you can play around with to your heart’s content.

While they “support” Plesk 8.1 which in turn supports ruby on rails, they do not offer support for ruby on rails installation. Since I’m a pretty hardcore CS guy, I don’t mind learning stuff. It is easier when there’s support people to help you though.

At first I had tried using rails with fastcgi, but that’s apparently a bad idea. The dv supports fcgid anyway. Media Temple’s support told me it was already installed, but guess what? It wasn’t. I had to go into plesk and get the updater to install it.

I’ve been trying to get my apps to run for more than a week now. I’ve been working on it in my free time, and I finally got one of them to actually start doing something. There were a bunch of hurdles I had to jump over just to get it to work.

Here’s the last thing I needed to do:

I was getting some “Application error: Rails application failed to start properly” errors. The rails log wasn’t too helpful. The httpd one wasn’t either. I looked in the /var/log/httpd/suexec_log file and it said stuff like:

[2007-01-30 15:36:58]: file is writable by others: (/var/www/…/public/dispatch.fcgi)

I thought, “well okay, it’s just a warning.” Who cares if it’s group writable? After doing some other random stuff, and changing the permissions accidentally, I got this:

[2007-01-30 15:32:30]: file has no execute permission: (/var/www/…/public/dispatch.fcgi)

Okay, so now it’s complaining that it has no execute permission. Whoops. I chmodded it to something like 775 and I get the “file is writable by others” thing again, along with the application error. So I thought, “what the heck” and chmodded the file to a safer 755. It seems that did the job, so now I can execute the app!

I never knew that apache (or suexec or fcgid or whatever the heck is running dispatch.fcgi) really cared so much about permissions. I’ll have to be more thoughtful of logfiles from now on…

Wii Sports – Baseball

baseball.jpg

So I was playing with my new Wii. The sports game that comes with it is really fun. One game that I suck at in real life, but can do okay in with Wii sports is Baseball. Unfortunately, I just lost my first game. I think the game gets harder as your skill level progresses.

The first game, I got like, 11 runs or something. And there’s only 3 innings! I’d say that Wii Baseball is probably the most physically challenging, since you’re either flinging the remote as fast as possible when pitching, or doing an actual bat swing when batting. Eventually I got tired of doing the whole “hey batter batter” thing and just used one hand. I still use two when I’m not sore, though.

During my first loss, I found out that there’s a mercy rule. Yep, when you have 0 runs and the opponent has 5, it’s time to just give up. This is pretty much crap, since on my first game, I won by like, 10 runs or so. I totally would’ve made a sick comeback, too. Stupid Wii baseball…

Hung Truong Is The Sexiest Man Alive: The Song!

hung-truong-1.jpghung-truong-2.jpghung-truong-3.jpghung-truong-4.jpghung-truong-5.jpg

Back in High School, my friend Jennae wrote a song entitled “Hung Truong Is The Sexiest Man Alive.” While cleaning up my room, I found the original manuscript, so I decided to put it up on my blog for your reading pleasure. I think it started out as a one verse joke that got a little carried away. The song is pretty long, a veritable five page opus, so here are the main points:

  • I, Hung Truong, am the sexiest man alive
  • Women want me, and men want to be like me
  • The singer wishes she was my girlfriend, but she can’t be because I’m too good for her because I am the sexiest man alive
  • It is a fact that I am alive, and not dead
  • I can beat up superheroes and look better in their clothing
  • I am courageous and I recite poetry eloquently
  • A large statue of myself erected in the city center would be desirable to the singer

Maybe I can get Jennae to record it and release the thing as an MP3! If you want the long version, look no further. Since I’m narcissistic and bored, I’ve typed out the whole thing:

Continue reading Hung Truong Is The Sexiest Man Alive: The Song!

I Finally Got A Nintendo Wii! Wii First Impressions.

Wii Box.jpg

That’s right! Two months after the Wii was released in America, I finally got it! Yesterday was some kind of national Wii holiday. Apparently 1/21/06 was the day for all retailers to hold the Wii. This is probably why I couldn’t find one in stock for the past two weeks since my last attempt.

I decided to head over to Circuit City around 9am. That’s an hour before they open. I was surprised to see two guys standing there. They told me that the Circuit City guys only had 2 Wiis to sell to the general public, and that the others would go to their pre-order customers. False Advertsising!!! I’m probably going to file a compaint.

Next I got to Best Buy around 9:30. I was under the impression that the store would open at 11am, since that’s what the online store checker thing said. The opening time was actually 10am. So I got there only 30 minutes early. I saw a pretty long line and counted around 38 people in front of me. Still, I figured they might have a ton; they’re Best Buy.

So once 10am rolls along, they start herding us in there like cattle. One person remarked that it was a good sign that they didn’t hand out tickets. There must be enough for everyone in line. We snaked around the store until we got to the video game section. There we waited for each person to pick up a Wii and move along. It was kind of like the Soup Nazi thing from Seinfeld. When I finally get to the Wiis, there are about 3 left after mine. My linemates and I all share some high tens.

In my daze of my accomplishment, I decided to also pick up Legend of Zelda: Twighlight Princess at full price. This is even though I know I can get it cheaper. I’m a tool like that. I didn’t even use a gamer’s gift card…

As far as the Wii goes, it’s pretty darn cool. The remote control is neat because it can give you some vibration feedback when you’re going over buttons. The IR sensor is still kind of inaccurate, but maybe I need to do some more calibration.

Wii Sports is insanely fun. I could probably play the bowling game for hours at a time. That is, if my arm wasn’t so sore right now. My mom even played it, and did really well in bowling. My dad couldn’t quite get the hang of releasing the button before throwing the ball.

Zelda is pretty cool, but the graphics seem kind of lacking. I’m gonna go get a component cable and see if that doesn’t help things. I think the Wii graphics are only slightly better than the Gamecube, which was actually the strongest console of the last generation…

Another cool thing is that the Wii has full backwards compatibility for the Gamecube. You just flip open the top and find some memory card slots and controller ports. I really wish there was an option to save to internal memory, though. It kind of blows that I need to keep using the very small Gamecube memory card.

All in all, I think the Wii is very cool. Hopefully the good games will keep rolling in. I might have to pick up Trauma Center or Wario Ware. Wii Play is coming out soon, too.