For the projects that use Rails (Projects 4, 5, 7, and 8) please clean up your Rails directory to eliminate unnecessary material, which will clutter the submit directories and possibly cause us to run out of space.
rake db:migrate:reset
rake tmp:clear rake log:clear
After cleaning up, it's a good idea to run a quick check just to make sure that your application still works.
Use an SSH client to connect to a Leland machine, e.g. elaine.stanford.edu or myth.stanford.edu. Upload your files to your AFS space. You should use a separate directory for each project. The submit script sends all files in the current directory.
If you haven't uploaded files to a Leland machine before, you may want to install one of several programs to help with this. If your laptop runs MacOS, we recommend Filezilla or scp. If your laptop runs Windows, we recommend WinSCP or SecureFX.
In addition to including any deliverables required by the project
instructions, you should include a file called ID
that includes your SUID, your leland username, and
your full name (last-name-comma-first-name). For example:
052340342 gluu Luu, Gary
From your project directory, type "/usr/class/cs142/bin/submit" and
answer the prompts.
When prompted "Which assignment are you submitting?" enter the project
number, e.g. 1
for Project 1.
You may submit multiple times. Your last submission is the one we'll
count, as well as any late days used for that last submission.
Note: if you are planning to use late days for an assignment, and you
have already submitted before the due date, please make sure your
most recent submission contains a file late
, which should
contain a note stating that you will be using late days for this
assignment. Otherwise we may grade the assignment you have already
submitted.
Here is an example submission of project 1 (all projects for this class are individual, so you should always answer "n" to the question about working with a partner):
myth12:~/project1> /usr/class/cs142/bin/submit The script is used for electronic submissions for CS142. [If you're having trouble, try running it on the sagas.] Submitting assignment for leland user: gluu What is your real name? => Gary Luu If you worked on this assignment with a partner, we expect the team to submit one version, giving both names so we can properly credit it. Did you work on this assignment with a partner? (y/n) => n Which assignment are you submitting? => 1 Directory where your assignment lives? (relative paths are ok) => . Looking for an ID file in your project directory...OK Checking to make sure the project directory is clean...OK Checking the size...OK It is currently 01/09/09 11:06:07 AM Checking on asssignment due date....on-time! SUBMIT SUCCESS! Gary Luu (gluu) submitted 1.
Once you have gone through the submission process, you can check to make sure your submission was received. To do this, enter a command like the following on the machine where you submitted your assignment:
ls /afs/ir/class/cs142/submissions/number/login*
(Replace number
with the assignment number and
login
with your SUNet ID). This will list all of the
files that you submitted. You should be able to examine the individual files
as well, if you wish. This mechanism should only allow you to view your own
submissions; if for some reason you discover you can see submissions from
other students, please let us know, since it means we have misconfigured
the class site!