Lab 2
FTP, Honor Statement, Scheme

[Turnin: A signed version of the Honor Statement using Webwork]

This lab is due by:
8 AM, Tuesday May 29, 2001

Objectives

  1. Learn what FTP is and how to transfer files.
  2. Learn how to use WS_FTP LE and UNIX FTP programs.
  3. Learn how to use WebWork to turn in your assignments.
  4. Become familiar with the Honor Statement and turn in a signed version.
  5. Learn what Scheme is and how to navigate the Dr. Scheme environment.

 

FTP

File Transfer Protocol (FTP) is a set of agreed upon commands used to transfer ascii and binary files between two computers.

 

Why is an FTP program useful?

Initially, you will be using FTP programs to transfer homework from your computer to your acme account so that it can be turned in. Other courses at Georgia Tech (such as CS1322) may require you to transfer files from a remote computer to your own so that assignments can be completed.

Introduction to WS_FTP LE

WS_FTP LE is a graphical FTP program for the Windows environment. It is particularly easy to use because of its graphical interface. This means that instead of typing in commands at a prompt to transfer files, you can just click on the file or files you want to transfer. It is also free for students and can be downloaded at the following web address:

http://atlsky.tucows.com/preview/041-011-003-024C.html

If you are not at your computer, WS_FTP LE is also located on most of the computer cluster machines around campus. In addition, there are similar products for the Macintosh, such as Fetch, that do basically the same thing.

 

Before you Transfer a File

Before transferring files, you need to connect to the computer you want to transfer files from or to. Open up WS_FTP LE (Start->Programs->Ws_ftp->WS_FTP LE), and you should see a window similar to the one below. If you do not see a window similar to this one, click on the "connect" button and it should appear. This window is where you specify the remote computer and your user information for that remote computer.

 

 

Profile Name:

This is a shortcut of sorts. It saves the current Host Name, Host Type, User ID, Password, and Account information so that during future session you don't have to retype all of the above information. By clicking on the profile name, WS_FTP will automatically fill in that information for you.

Host Name/Address:

This is the remote computer that you will transfer files from or to. For the purposes of 1311x, this computer is most likely going to be acme machines. The address to connect to the acme machines is 'acme.gatech.edu'.

Host Type:

This is the type of compute that you are connecting to. For the purposes of this class, this should be set to "Automatic detect".

User ID:

This is where you type in your remote system User ID. For the acme machines, your User ID is your GT account login (gtxxxxx).

Password:

This is where you type in your remote system password. For the acme machines, your password is the one that you chose when you set up your GT account.

Go ahead and log on to the acme machines by typing in the following information and press "Ok":

Host Name: acme.gatech.edu
  User ID: Your GT account login
 Password: Your GT account login password

 

File Transfer Window

You will now see a window similar to the one below. For our purposes this window will be known as the "File Transfer Window", and it is where you will transfer all of your files.

 

 

Ok, you are almost ready to transfer a file, but before you do so, you need to know whether the file mode should be set to Binary or ASCII.

 

Binary and ASCII File Modes

Binary and ASCII are the two types of file modes. One or the other needs to be set before transferring a file. In general, ASCII mode should be set for transferring plain text files (a file that can be read and edited by a text editor). Binary mode should be set for transferring all other non-ASCII mode files. If you look at the bottom of the File Transfer Window, you will see two round buttons where you can set the Binary or ASCII file modes. In addition, there is a square checkbox marked "Auto". By selecting "Auto" WS_FTP LE will automatically select the correct file transfer mode for you. This is particularly useful for transferring many files at one time that may not all be binary or all ASCII. At times, the "Auto" checkbox does not select the correct file mode. When this happens, your files will not transfer correctly. More importantly, your homework will not run! For this reason it is recommended you select the file mode, and leave the "Auto" box unselected. In addition, you may actually want tolook at the files after they have been transferred to make sure they did indeed transfer correctly. This is a particularly smart thing after you FTP your files to acme to be turned in!

 

Putting a File

"Putting" a file means to transfer a file from your computer to a remote computer. So if you were connected to acme, putting a file would transfer a file from your computer to your acme account. Note that when you put a file it does not actually move the file, but rather makes a copy of it.

Putting a file in WS_FTP LE is extremely easy. On the left hand side of the File Transfer Window, under the "Local System" heading, are the files on your machine. To put a file on the remote machine, click on the file that is on your machine and click the "->" button. That's it!

 

Putting More Than One File

You now know how to transfer one file, but what if you wanted to transfer 10 or 100 files? It wouldn't be much fun to transfer each one individually. Luckily, there is an easy way to transfer all your files at once. Actually there are three ways of doing this:

  1. Selecting the files with the 'Shift' key.
  2. Selecting the files with the 'Ctrl' key.
  3. Putting all the files in a separate directory.

 

Getting a File

"Getting" a file means to transfer a file from the remote machine to your local computer. This works by selecting the file you want to get under the "Remote System" heading, and then clicking the "<-" button. As with putting a file, getting a file does not move the file, but rather makes a copy of it on your local machine.

 

Getting More than One File

Getting more than one file at a time works exactly like it does for putting more than one file at a time. The only difference between these two transfers is the use of the "<-" to get the files. 

 

 

Introduction to UNIX FTP

Unix FTP is a text based FTP program for the UNIX environment. It works much the same was as WS_FTP LE, except that there are no pretty graphical menus used to transfer files. To start a UNIX FTP session you need to first be logged into a UNIX machine, either by sitting at a local UNIX machine or by telnetting into one. After you have logged in to a UNIX machine, type:

ftp

to start the FTP program.

 

Connecting to a Remote Machine

After you have started the FTP program, you need to connect to a remote machine (the machine from where you started the program is always the local machine). To do this, use the open command, followed by the address of the machine you want to connect to. For instance, if you wanted to connect to a acme, you would type:

open acme.gatech.edu

and then press "Enter". 

After connecting, you will be asked to provide your login name (gtxxxxx) at the "Name" prompt, and your password at the "Password" prompt. If you successfully logged in, you should see a prompt similar to the following:

ftp>

Binary and ASCII File Modes

As with WS_FTP, you need to set whether files should be transferred using binary or ASCII modes. To do this use the bin and ascii commands respectively. An example of what you would see when executing these commands is as follows:

ftp> bin
200 Type set to I.

ftp> ascii
200 Type set to A.

Putting a File

To put a file on the remote machine type "put" followed by the file name to put. An example of this is:

put fileToPut.name

Getting a File

To get a file from the remote machine type "get" followed by the file name to get. An example of this is:

get fileToGet.name

Closing and Quitting the FTP Session

After you have finished transferring files you will want to close and quit the FTP session. To close your connection to the remote computer type "close". To quit the FTP program type "quit".

     

Honor Statement

The Honor Statement is a list of rules, and regulations that all Georgia Tech students must adhere to. It was created by the Student Government Association (SGA) to promote honesty, academic integrity, and fairness among students.

What you are going to do with the Honor Statement

You are going to ftp a copy of the honor statement from acme to your machine. Retrieve the statement by logging into acme and typing


cp ~bk62/pub/honor_statement .

Note: there is a space and a period after ~bk62/pub/honor_statement

and do the following:

  1. Edit it by substituting your name, post office box, and gt number for George P. Burdell, 9999999, and gt9999x, respectively (do not put any information on the dotted lines. You'll write on those later).
  2. Use an ftp program to move the file from acme to the computer that you're working at
  3. Print it out.
  4. Read it.
  5. Sign it and date it on the dotted lines.
  6. Scan your signed copy of the Honor Statement into a computer.
  7. If using the OIT scanners, you'll have to ftp your file to acme and then to your home machine. Otherwise, just keep the file on your home machine for turn in via WebWork.

Read on for more details about steps 6-7.

Scanning in the Honor Statement

Scanning is process for storing a piece of paper onto the computer in graphical format. It is very similar to making a photocopy except that the scanning software will usually allow you to do much more to a scanned document than you could do with a photocopy machine.

There are two public flatbed scanners located on campus. These are in the Macintosh cluster below the library, and in the Rich NT lab in the downstairs of the Rich building. Instructions on how to use the scanner, and the scanning software are available next to the scanners, or with the Lab UA. These should provide plenty of instructions on how to scan in your Honor Statement. If, however, you need further help, ask the UA or a friend.

Here are the settings you should use to keep your file size down:

Saving your Scanned Honor Statement

After you have scanned in your Honor Statement, you will need to save it so that it can be turned in. Save your file in JPEG format (these have a file extention .jpg). Using the settings we mentioned above, you should not go over quota when you transfer the file to your acme account.

NOTE: Scanning software may be different for the different clusters. For most Hewlett-Packard scanners, all the specified options should be under the "Settings" menu at the top of the screen.

FTPing the Honor Statement

After you have scanned in your signed copy of the Honor Statement, you need to FTP it to your acme account so that you can turn it in.

Note!

WebWork



Submitting files via Webworks is a fairly straightforward process. On the left hand side of the screen is an option to submit an assignment. Clicking on this link will bring you to another page where you can add and remove files to be submitted using the appropriate buttons.

YOU HAVE NOT SUBMITTED A FILE UNTIL YOU PRESS THE SUBMIT BUTTON!!

Deadlines

A warning:

TURN YOUR ASSIGNMENTS IN FREQUENTLY!

WebWork will automatically stop accepting assignments after the deadline for that assignment has passed. If you have not turned in your program before the set due date, 99.9% of the time it will not be accepted late! It is therefore recommended that you turn in your work often. This way we will at least have a partially completed copy of your assignment that can be graded. Note that you can turn in an assignment as many times as you like, but remember that the previously turned in copy will be overwritten.


What if Webwork isn't Working?

At times, WebWork may not be working for you to turn in your assignment. In cases such as these you should first read the newsgroup to see if anything has been posted about when it is going to be fixed. Do not post "hey, WebWork is broke!" if someone else has already done so! If, however, it is nearing the deadline and Webwork decides to die for some reason, you can email your work to us at:

To get credit, put your GT number and the assignment on the subject line of the email.

Scheme

Scheme is one of the programming languages that CS1321 uses to teach various concepts in Computer Science. It is a simplified version of the programming language LISP, but still retains much LISP's power. In addition, it has the added advantage of a quicker learning curve. This quick learning curve is desirable as it allows new programmers to generate programs in a relatively short period of time (as compared to a language such as C). As a result, programmers can "see" the results of the concepts that they are learning now instead of having to wait 3 weeks to learn a more complex language.

 

Which Scheme Implementation are we Using

For this class, we will be using Dr. Scheme version 103. This is a graphical implementation of scheme that was developed at Rice University. If you really want to, you can use another Scheme program for your assignments, but we will be using Dr. Scheme for testing purposes. If your program runs on your version of scheme, but not Dr. Scheme, you will not get credit!

 

Where can I get Dr. Scheme?

You can download Dr. Scheme from the following web address:

Once there, there should be specific instructions on how to install Dr. Scheme.

There is a guide to Dr.Scheme and Webwork. You are responsible for knowing all information in the guide.

The Assignment (what you have to do to get the grade)

  1. Turn in your scanned jpg honor statement file along with THIS FILE. You don't need to do anything with the second file, we just want to see that you know how to submit multiple files.
  2. Retrieve your submission and make sure that you get both files back. If you goofed up and didn't turn in both files then do it again and get it right. We will be checking the logs for retrieval! In this class you will be responsible for retrieving every assignment after you turn it in to make sure you turned in the right thing. If at any point during the semester you claim that WebWork "ate" your file or that WebWork goofed then we will check the logs to see if you tried to retrieve your file before the due date. If you didn't then you can expect little sympathy for your cause (long story short: retrive and check everything you submit).
Grading: This assignment will be graded with the following algorithm:
  1. Start with 100 points
  2. If you didn't turn in the honor statement then subtract 100.
  3. If you didn't turn in the second file then subtract 50.
  4. If you didn't retrieve your submission then subtract 50.
  5. If the score is below zero then round up to zero.
  6. This is your score.

Last Modified: May 22, 2001 by CS1321