Extreme Blue Internship, Uncategorized 0 comments on Week 3 – San Jose – Yosemite Trip

Week 3 – San Jose – Yosemite Trip

This was a good week for us at work. We’ve built a prototype which is going to get showed off at the IHE Workshop in Chicago. I guess that means we’re officially a big deal. Our mentor is really excited with the work we’ve done. I think we’ve taken something that could have been good, and set it up to be great. That’s really an exciting feeling. Up next is documentation and architecture. A lot of that is done, but I think it’s going to take us cleaning everything out and starting over to show step-by-step how to setup the various environments. Getting Tomcat, OSGi, Axis, working and talking isn’t exactly easy. Up next is entering the open-source community in such a way that they’re excited about what we’re getting started for them.

Monday night, I had my first soccer game. I’m on a team called RSI Random at the Off the Wall Soccer Center in Santa Clara. It’s 3 light rail and 6 CalTrain stops away from me. Then, it’s a 2.5 mile walk from there. It’s quite a trek, but could you imagine a summer without soccer? It’s just not an option. I have 2 teammates who live near me, and hopefully, I’ll be able to bum rides off of them in exchange for some gas money. It was quite the experience. I’ve never thought of the Soccer Dome in Raleigh to be cutting edge or brand new, but it definitely feels that way compared to this place. The one cool thing was the surface. They’re using the carpet filled with carbon approach that creates a very realistic surface without the knee pains associated with concrete, or the rug burns associated with carpeting. Quite cool, but I might need to find a pair of cleats. On to the game results. We tied 8-8 and I had one goal. I was able to play through the first half, but I died about 5 minutes into the second half, and played goalie the remainder of the time. It was killer. I let in 4 goals, but it could have been a lot worse. I’m a little lucky. That was a good time.

Next came the trip to Yosemite National Park. It was absolutely amazing.

I have plenty of pictures up on my online gallery of images. Here’s the story on Saturday. We arrive in Yosemite Valley at 10am. This happens to be relatively late as far as arrival time goes apparently. We start climbing, and it’s up. With very little relief, we start our journey. The view, amazing. Imagining how crazy it must have been to build the steps that we were climbing, amazing. Looking down the cliff, not amazing. I was very scared. We get to the 4 mile point, and stop to have lunch. About this time it’s 12ish, maybe 1ish. I didn’t have much water, but I didn’t think I needed much. I did have a lot of camera gear. Which happened to be a mistake. I kept going after lunch until the 2 mile marker. I was 2 miles away from Half Dome. I just couldn’t make it. I just wasn’t good enough. Well, more accurately, my legs weren’t enough, my water wasn’t enough, and my load was too much. So I snapped a shot at that point, and turned around.

I thought my adventure was done. I was wrong. We started back to Glacier Point which is where our new car was to be found. It was a 5 mile hike straight up. The elevation at the top was near 7000 feet. I couldn’t breathe. It was the longest day of my life. The memories were great. But 18 miles of walking is killer. Especially when it’s switchback after switchback, rock after boulder, and only hill ahead. Fortunately, I survived, and saw Half Dome in the evening sun. That was a beautiful image. I was too tired to take the shot. It was great.

Extreme Blue Internship, Uncategorized 0 comments on Week 2 – San Jose – Let the Fun Begin

Week 2 – San Jose – Let the Fun Begin

There’s something about working on a project that might get out there and change the world that makes the week fly right by. I couldn’t believe how quickly this second week passed. We had a protoype due on Friday, and it wasn’t easy, but the job got done. My only complaint right now is that we’re constantly going into meetings and talks that have very limited point. The staff is great, but the program seems to be holding us back a little bit. We’re the only group that really has started putting something together. Everyone else is in a design phase. I have to agree with my mentor and say that designs made without a hands-on approach to the technology will be quickly modified.

My adventures this week took me all over the Bay area. Wednesday I tried to go play soccer at a local park. By local, I mean 25 stops by light rail and then 3 miles up the road. This area is very spread out. I really hate that. That’s the downfall of Raleigh, and it’s quickly become the downfall of this area. There is public transportation, which we don’t have in Raleigh, but it just isn’t quick. I guess that’s the fallacy of it all. The people who ride the light rail are a story of their own. It’s truely the most eclectic group of people. I met a guy who carries his dog in a baby carriage. The breed was Papillon which is French for Butterfly. It looked like a Collie to me, but I don’t know any better. Then this group of San Jose youth got on the light rail, and started talking about how one of them just got a deal with the DA on some petty crimes that he committed. A couple in ethnic African garb joined us for the last few stops. It was quite the adventure. I didn’t make it in time to play soccer, but the day was well worth the journey. Thursday night saw us walk to a local sports bar that’s about 1.5 miles up the road. Our waitress Barbie hosted us at the Britannia Arms Sports Bar which has existed since at least 1987. The crowd was really good, and we watched the NBA Championships. It was a good night.

The Weekend
Friday was the beginning of the World Cup. On the West Coast the games are at 5:55am, 8:55am, and 11:55am. That’s too early/during the work day. Hence, the gameplan was to not know the scores, and to only discover them after watching the TIVOed versions of the game. As soon as I get to work, I get a broadcast across Sametime that Germany has scored. Before the day ended, I knew all the scores, and all the information about the games. I was so mad. We watched the games after work, and then headed up to San Francisco. Meshkat, my roommate, found an Arab restaurant/club where they had 2 DJs, belly dancers, and lots of fun to be had. It was a great night. The music was awesome. The dancing was exotic. The belly dancer wasn’t bad. Meshkat is a lot of fun to go out with as well. Saturday was a lazy day. I watched a lot of sport. The Argentina/Ivory Coast game, the horse race, the Hurricanes game, it was great. We went to a hookah bar later that night. The music was great, and the guys smoked the same hookah for 2 hours. I’ve never seen a hookah last that long. It was a lot of fun. Sunday turned into a day of recovery. A definite necessity I must say.

Off to bed.

Extreme Blue Internship, Uncategorized 0 comments on Week 1 – San Jose – New town, New start

Week 1 – San Jose – New town, New start

One week has passed since I’ve come to California. The first week was really one long adjustment period. It’s a week worth of learning a new town, getting used to a new time zone, and, ultimately, trying to impress the boss. My manager’s, what IBM calls my mentor, name is Eishay Smith. He’s a really smart guy who has essentially created the project we’re doing in the field. Our challenge now is to get the basics of the technology working and in place after which we’ll change the world. It’s the beginning of something that’s going to be great.

In town we’ve gone out once. We went to a bar called Tres Gringoes, which happened to be a terrible idea. It was 95% guy with a small percentage of attractive girls amongst the 5% that were there. My roommate did however find himself a local. I don’t think it really worked out, but he tried. Saturday night I went to go see the Break Up which wasn’t bad, but it wasn’t good. It exists somewhere in the contiuum between the two. Total craziness.

Also, how about them Hurricanes? Down 3-0, they come back to win the game 5-4. I just hope people don’t try to marginalize the win based on the goalie situation. 4 goals were scored on their starting goalkeeper. Also, my boss at the Cary News, Grant Halverson, got the front image on ESPN.com, which totally rocks socks.

Anyway, so far so good. Off to bed.

Technology, Uncategorized 0 comments on MySQL: Startup Error 2002 (HY000)

MySQL: Startup Error 2002 (HY000)

I installed MySQL 5.0 on my MacBook Pro and got the following error when I tried starting the server after a computer restart:

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)

It turns out that others were having this problem, and I wanted to go ahead and post the solution that I found to work the best:

Type the following commands into a Terminal window:

$ cd /usr/local/mysql
$ sudo ./scripts/mysql_install_db –rpm
$ sudo chown -R mysql data

Note that the line /usr/local/mysql is looking for the symlink at which your MySQL installation points. I pointed mine to /Library/MySQL and changed the line appropriately for my setup. After this, make sure you set the root password to access MySQL, and you should be all set.

*Note* I haven’t investigated this all the way through yet, but I now have to start using

myqld_safe –skip-grant &

as my daemon starting command. I will research this to understand what’s going on, and update this entry.

Technology, Uncategorized 0 comments on Installing Tomcat 5.5.17 and Mod_Jk 1.2.5 on Apache 1.3 for Mac OS 10.4

Installing Tomcat 5.5.17 and Mod_Jk 1.2.5 on Apache 1.3 for Mac OS 10.4

I’ve seen a general lack of content on the latest versions of Tomcat and how to install it on the Mac operating system. This is really frustrating when you don’t know what you’re doing, and you just need some help. After compiling a bunch of how-tos into my memory, I decided to go ahead and post one myself that might help others out.

The latest versions of the software involved were found at these links:

I’ve posted this zip file which comes with all the files you will need for Tomcat including the deployer, admin-related folders, and compatibility package in case you’re still on Java 1.4

On to the install…

Installing Tomcat

  1. I’m assuming that you unzipped the zip package on your Desktop. Given that this is true, it’s probably best to move it to your /usr/local/ folder, and then create a symlink to it in your Library. This is pretty simple to do.
    • sudo cp -rf apache-tomcat-5.5.17/ /usr/local/apache-tomcat-5.5.17/
      • Note: You need to know your administrator password, and either su into the terminal or use the sudo command
    • ln -s /usr/local/apache-tomcat-5.5.17 /Library/Tomcat
      • This creates a symlink to which you can point any version of Tomcat as newer versions are released, or older versions need to be tested
  2. Next let’s go ahead and setup your bash environment
    • Head to your home directory and enter the following lines into a .bash_profile file
      • export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/
        Versions/CurrentJDK/Home
      • export CATALINA_HOME=/Library/Tomcat
  3. The environment is setup. Now we need to setup the start and stop files for Tomcat. This is borrowed from Apple’s how-to on setting up Tomcat.
    It’s suggested to go ahead and setup a bin folder in your home directory, and I did this because it starts organizing your scripts. The content of the files should look like this:
    • startup.sh
      • #!/bin/sh
      • $CATALINA_HOME/bin/startup.sh
    • shutdown.sh
      • #!/bin/sh
      • $CATALINA_HOME/bin/shutdown.sh
    • Then execute the following command
      • chmod ug+x start_tomcat stop_tomcat
  4. If everything has been configured correctly, then you can go ahead and go to http://localhost:8080 and see a running instance of Tomcat. Congratulations!

Configuring Mod_JK

So, it turns out that I was making this way too difficult. It is in fact quite simple to get mod_jk working on your computer. You do need some knowledge of how Apache works, and enough permissions to set some things ups on your computer, but I’m sure you already have that if you’re reading this tutorial. On with the installation:

  1. Move the mod_jk.so file that you should have downloaded as a binary into the appropriate folder with the following command:
    • sudo cp {CURRENT_PATH_TO_MOD_JK.SO}/mod_jk.so /usr/libexec/httpd/mod_jk.so
  2. To setup the workers.properties file, take the following steps:
    • cd $CATALINA_HOME/conf
    • sudo touch workers.properties
    • sudo vi workers.properties
    • Type in the following to setup the workers.properties file
      • worker.list={any_username}
      • worker.{any_username}.type=ajp13
      • worker.{any_username}.host={HOSTNAME_OF_SERVER}
      • worker.{any_username}.port=8009
    • Mine looks like this:
      • worker.list=tomcat
      • worker.tomcat.type=ajp13
      • worker.tomcat.host=localhost
      • worker.tomcat.port=8009
  3. Now let’s move on to setup the Apache HTTP server. Move to the Apache configuration directory to update httpd.conf.
    • cd /etc/httpd
    • sudo vi httpd.conf
  4. And now let’s add the following lines to the httpd.conf file
    • LoadModule jk_module libexec/mod_jk.so
    • AddModule mod_jk.c
    • JkWorkersFile {CATALINA_HOME}/conf/workers.properties
    • JkLogFile {CATALINA_HOME}/logs/mod_jk.log
    • JkLogLevel error
  5. Now let’s add the VirtualHost necessary to mount the paths. Type the following into your httpd.conf file
    • <VirtualHost {HOSTNAME_IN_WORKERS_FILE}>
    • DocumentRoot {DIRECTORY_YOUR_HTML_FILES_ARE_IN}
    • JkMount /{webapp_name}/* {any_username}
    • JkMount /{webapp_name} {any_username}
    • </VirtualHost>

There you go, now you should be able to restart Apache and have Tomcat working through Apache serving both your dynamic and static content.