We talked about many things including the simplification of 

  if (n == 0) { b = true; } else { b = false; }

The simplified version is, of course: 

  b = ( n == 0) ;

Next we discussed the steps for Tomcat installation in the context of this week's lab: 

1. Log into silo.

2. Copy the .tar.gz file into your account.

 cp /l/www/classes/a348/spr2013/software/apache-tomcat-7.0.35.tar.gz .

3. Uncompress and unarchive it.

Then move into the resulting folder:

[stephart@silo apache-tomcat-7.0.35]$ pwd
/u/stephart/apache-tomcat-7.0.35
[stephart@silo apache-tomcat-7.0.35]$

4. Go into conf, place your ports into server.xml

[stephart@silo conf]$ mv server.xml server.xml-backup
[stephart@silo conf]$ ls ser*
server.xml-backup
[stephart@silo conf]$ pico -w server.xml
[stephart@silo conf]$ pwd
/u/stephart/apache-tomcat-7.0.35/conf
[stephart@silo conf]$ cat server.xml
<Server port="18943" shutdown="SHUTDOWN">

  <GlobalNamingResources>
    <!-- Used by Manager webapp -->
    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
       description="User database that can be updated and saved"
           factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
          pathname="conf/tomcat-users.xml" />
  </GlobalNamingResources>

  <Service name="Catalina">
    <Connector port="18942" />

    <Engine name="Catalina" defaultHost="localhost">
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase" />
      <Host name="localhost" appBase="webapps" />
    </Engine>

  </Service>
</Server>
[stephart@silo conf]$


5. Source the file start the server.

6. Stop the server

6. Make yourself manager-gui

7. Install Iceblox

8. Install the chat system