First, you need to upload your code files onto the Stanford unix (leland) machines. All of the Stanford machines share the same AFS file system, so you can upload your files to any machine and they should be accessible from all other machines.
From a Windows machine, you can use SecureFX. The "Configuring SecureFX" section at the bottom has fairly detailed instructions on installing and setting it up.
It may ask whether you want to upload the files as ASCII or binary. Choose ASCII for text files (code, README, etc.), and binary for everything else (.class, executables, etc.). In general, If you can view it legibly with a text editor, it should probably be ASCII.
Unfortunately, SecureFX only works on Windows machines. Fortunately, you can still use scp to transfer your file over by opening up a terminal and running the following line:
scp -r <DirectoryWithYourCodeFiles> <SUNetID>@myth.stanford.edu:<LocationOnLelandMachines>
For instance, my SUNet ID is tonyw85. If I'm currently in the directory containing my hw1CodeCamp directory on my mac, and I want to copy it over to ~/cs108 on the leland machines, I can run the following line:
scp -r hw1CodeCamp tonyw85@myth.stanford.edu:~/cs108
For more information about scp, see the "man page" by typing the following into your terminal:
man scp
To submit a directory of your files, first create a README file in the directory (the file name should be exactly "README"). Near the top of that file put a line like the following that gives your username and real name, with the name in (last, first) form...
user: jsmith05 (Smith, Jane)
Ideally your name will match up with the way the registrar has it when we file grades at the end of the quarter. We only need your name for the first assignment. For later assignments, we only need the username.
For a team project, just include a line like the above for each person on the team (the real name may be omitted), like this..
user: jsmith
user: kjones
user: chrisyay
On the later lines you can put any notes for the grader.
user: jsmith80
I honestly can't tell you how much I enjoyed this assignment.
And it made me miss the season finale of Friends.
And I didn't do part b, so sue me.
Before submitting, remove the .class, ~file, and other leftover files from your directory. The submit script will complain about them if they are there, and it also does not like files larger than 500k (if needed, you can go ahead and submit with those files anyway.)
To automatically clean up these files, uust run the following line from your project directory:
/usr/class/cs108/bin/cleanup
The above script calls the rmclass and rmtilde scripts that delete .class and ~ files from the directory (you can, of course, use rm manually, but the scripts have the advantage that they will not accidentally delete your sources).
Aside: how to clean up in Eclipse: in the project menu, temporarily turn off the Build Automatically option. Select, the Clean command, with the Start A Build Immediately option off. This will remove all the .class files from your project directory.
Due to some recent upgrades to the Stanford servers, the submit script is causing errors on certain leland machines. For now, only run the submit script on the following machines:
Once you are on one of the above machines, run the following line:
/usr/class/cs108/bin/submit
The script itself should then guide you through the submission process.
Email problems with these instructions to cs108staff@gmail.com