






Hotspots: Admin Pages | Turn-in Site |
Current Links: Cases Final Project Summer 2007
Summer 2001 Turnin Information
Design documents should be turned in on paper in class. That includes CRC cards, but preferably do not turn in piles of index cards for your CRC analysis; please photocopy them or reprint them from a computer program.
Code fileouts should be turned in electronically, as described below. (To learn about fileouts, look in section 4.7 of the book).
Electronic Submission of Code
To electronically turn in a milestone or mini-assignment, you can simply the script below from inside Squeak. There are five things you need to edit in the script below:
- MYFILE: the filename you want to submit (for example "Foo.st" or "Foo.zip" or "foo.tar.gz")
- MYGTNUM: your gtnumber (gtxxxxx) without the @ prism part
- FIRST LAST: your name ("John Doe")
- MYTA: your TA's email address
- PROJECT: which assignment you are submitting (like "P2" for milestones, like "m3" for mini-assignments)
If you have only one file to submit (like "Foo.st"), you can use it as MYFILE. If you have multiple files (like "lab2.txt" and "Lab2.st"), then you should zip them up:
- from windows, create a zip file (like "Foo.zip")
- from unix, create a tarred gzip (like "foo.tar.gz")
and use the zip filename as MYFILE.
The Summer 2001 TA/Student Grading Assignments page tells you which TA is yours. You need to know who your TA is so you can fill in their email address in the script below. (Email addresses for TAs are on the Admin Pages.)
When you run the script, it will send your submission to your TA. It will also send a copy to the cs2340@cc account. That account should bounce a copy of your mail back to your prism mailbox–this way you can get confirmation that the script "worked" simply by seeing if you receive a copy of your submission in your mailbox. (It should take at most a minute or two before you should get your confirmation mail.)
Cut and paste the text below into a squeak workspace:
| message fileName studentEmail tAEmail
connectedSMTP projectName studentName fileStream
studentGTNum|
"-----------------------------------"
"Variables that you need to set"
"-----------------------------------"
"Filename to be sent. If you have multiple files,
please pkzip or tar-gzip"
fileName _ 'MYFILE'.
"Enter your gt number (gt####x) without the @prism.gatech.edu"
studentGTNum _ 'MYGTNUM'.
"Enter your name as it appears on the roles."
studentName _ 'FIRST LAST'.
"Enter your TA's e-mail"
tAEmail _ 'MYTA@cc.gatech.edu'.
"Enter the project name. This will be either
p<num> or l<num> where <num> is some number"
projectName _ 'PROJECT'.
"------------------------------------"
"You can ignore the rest of this"
"------------------------------------"
studentEmail _ studentGTNum, '@prism.gatech.edu'.
"Get the file and Mime encode it"
fileStream _ StandardFileStream oldFileNamed: fileName.
fileStream binary.
message _ Base64MimeConverter mimeEncode: ((MIMEDocument content:
(fileStream contentsOfEntireFile)) contentStream).
"Create the header"
header _ 'To: ', tAEmail, String cr,
'CC: cs2340@cc.gatech.edu', String cr,
'Subject: [cs234x] - ', projectName, ' - ', studentGTNum, ' - ', studentName, String cr,
'Mime-Version: 1.0', String cr,
'Content-type: APPLICATION/OCTET-STREAM; charset=US-ASCII; name="',
fileName, '"', String cr,
'Content-Transfer-Encoding: BASE64', String cr,
'Content-Description: ', studentName, ' submission for',
projectName, String cr,
'Content-Disposition: attachment; filename="',
fileName,'"', String cr, String cr.
"Connect to the SMTP server and send it off to the TA
and cs2340 account"
"If you are sending from off campus you may need to
change this smtp server"
connectedSMTP _ SMTPSocket usingServer: 'smtp.prism.gatech.edu'.
connectedSMTP mailFrom: studentEmail.
connectedSMTP recipient: tAEmail.
connectedSMTP recipient: 'cs2340@cc.gatech.edu'.
connectedSMTP data: (header, (message contents)).
"Tell them it's ok"
(PopUpMenu labels: 'ok') startUpWithCaption: 'Files Transmitted'
Links to this Page