Concepts in Computing
CS4 - Winter 2007
Instructor: Fabio Pellacini

Homework 1, due Friday, Jan 12

Do not leave this assignment to the last minute. Remember that no late assignments are accepted, and that includes this first one! Although it is simple, all the remaining homework in this course depends upon it.

  1. Apply for a personal web space on the Dartmouth web server. Do this immediately, as it may take a while for your account to be created. If you have problems with Kerberos on your machine, try using a Dartmouth computer, which will have Kerberos/SideCar correctly installed and configured (use your Blitz password).
  2. Once you get e-mail notification that your web space is available, create and upload an HTML file to your account, to make sure it is working. To do this:
    1. With a text editor such as JEdit, BBEdit, TextEdit, or Notepad, create a new file containing the following text, inserting your name in place of each occurrence of the string "Firstname I. Lastname":
      
      <html>
      <head>
        <title>Firstname I. Lastname</title>
      </head>
      <body>
      
      <h1>Welcome to Firstname I. Lastname's New Web Site</h1>
      
      </body>
      </html>
        
    2. Save this file with the name new.html. If your text editor does not permit you to save with file name extensions other than .txt, save it first as new.txt, then re-name the file in the Finder (for Macintosh users) or the explorer (for Windows users) to have the name new.html when you are done.
    3. Upload this file to the public_html folder of your new web account. Various FTP programs are availbe for doing the upload; Dartmouth supports Fetch (Mac) and FTP Explorer (PC).
    4. Type the URL you received from Computing Services when your new web account was created into your web browser, and add the file name new.html to the end. You should see a page with the message "Welcome to Firstname I. Lastname's New Web Site" on it. You don't need to keep this file around, if you don't want to.
    5. Note: if you want people to be able to visit your public web site via the base URL provided by Computing Services, upload a file called index.html to your public_html folder. You can put whatever you want in this file; we won't be using it in CS 4.
  3. Activate your ID card for access to Sudikoff and the laboratory in Rm. 005. To do this, bring your ID card to Kelly Clark in Rm. 101 Sudikoff on a weekday between 8:30am-12:00pm or 1:00pm-3:30pm, and let her know you are in CS 4. You will need to fill out and sign a simple form, and it takes at least one day to activate your access.
  4. Install a version of Firefox 2. Note that there are differences between the various web browsers, and you must make sure that your code works on Firefox 2, as this is what the TAs will be using to grade your homeworks.
  5. Create a "private" folder, with a code name as described in the course policies.
  6. Finally, the only thing you have to turn in:
    1. Create a file named hw1.html that is just like new.html, except that, instead of the welcome message, it says that you (give your name) have read and will comply with the CS 4 course policies. Include the piece of JavaScript code that will time stamp your assignment. Thus your file should like like this (with your name substituted).
      
      <html>
      <head>
        <title>Firstname I. Lastname</title>
      </head>
      <body>
      
      <h1>I, Firstname I. Lastname, have read and will comply with the CS
      4 course policies.</h1>
      
      Last modified: <em>
      <script type="text/javascript">
      <!--
      document.write(document.lastModified);
      // -->
      </script></em>
      
      </body>
      </html>
        
    2. Upload this file to your private folder.
    3. Print it out, write its URL, sign it, and turn it in.