Totally Nerdy Information

Mike Heath's Blog

CS 462 – Lab 5

My Lab 5 is finally done. Apparently I’m the last one to be getting it passed off. I guess that’s what happens when you have deadlines at work, a thesis proposal, a family… I really enjoyed Lab 5. It took far longer than it should have for me but that was due mostly to playing [...]

CS 462 – Lab 4

I submitted my Lab 4 late because I spent all of last week at ApacheCon US 2007 in Atlanta, GA. ApacheCon was awesome, BTW. Lab 4 was very straight forward. I did this lab with Python and the Akismet module for Python works very well. I used uuidgen to generate my UUID. uuidgen is a [...]

CS 462 Lab 3 and Stuff

Lab 3 went pretty well.  It took longer than I thought it would but they always do.  One of the things I wanted to do was write parse the XML using SAX since I’ve never actually written a SAX parser before.  SAX takes more work than using DOM and XPath but I got the experience [...]

Lab 2 in Review

No matter how much time I’m given, I always wait until the last minute to get my labs done. This lab was no different. Lab 2 was very straightforward. The hardest part of Lab 1 was getting up and running on EC2. The hardest part of Lab2 was figuring out JSON and that was easy. [...]

Accessing PATH_INFO

If you want to get the path information appended to your script URL, you can use the PATH_INFO CGI variable. Consider the following CGI script: #!/bin/bash echo “Content-Type: text/plain” echo echo $PATH_INFO all this script does it output the PATH_INFO. This script is available at http://swamp.homelinux.net/cgi-bin/pathinfo. If you click on the link, you will see [...]

To automatically register with the load balancer when my EC2 node starts up, I placed the following script in /etc/init.d/registerlb: #!/bin/bash # # registerlb Startup script for registering and deregistering with the load balancer # # chkconfig: – 90 10 # description: Script for registring and deregistering with load balancer LB_REGISTER_URL=http://wslb-p.webappwishlist.com:8080/pound/subscribe LB_UNREGISTER_URL=http://wslb-p.webappwishlist.com:8080/pound/unsubscribe LB_STATUS_URL=http://wslb.webappwishlist.com:8080/pound/list PRIVATE_IP=`ip -4 [...]

« Previous Entries  Next Page »

Calendar

February 2012
M T W T F S S
« Mar    
 12345
6789101112
13141516171819
20212223242526
272829