This semester, you will use Autolab for submitting your work. Be sure to sign in by clicking Sign in with your CMU account, not the big red sign-in button! The only people who will see this work are you, the professor, and the course teaching assistants. Instructions for using Autolab are below.
DO NOT HAND IN YOUR PROGRAM FILES VIA EMAIL TO YOUR INSTRUCTOR OR TEACHING ASSISTANT. THESE WILL NOT BE GRADED! FILES SUBMITTED AFTER 11:59PM ON THE DUE DATE ARE CONSIDERED LATE. Please review the course late policy for more information.
A zip file is a single file that contains copies of a collection of files in a compressed format. Since assignments often contain multiple files, a zip file is a way to transfer not just the content but the organization of the collection of files needed to run your programs. You can make zip files using command line tools or graphical desktop tools.
Note that in all cases, you should name or select the containing folder for all your project files rather than selecting individual files!
In general, you will hand in multiple assignments and projects for the week in a single zip file. The organization of your work is important. The directory/folder hierarchy should look like this:
handin-02 acarnegie-02-assignment index.html sketch.js acarnegie-02-concepts.pdf acarnegie-02-project index.html sketch.js
Checklist for submission directory:
Next, hold down the right mouse button (or on a Mac hold down the Control key, then use the mouse or trackpad button) to get a menu:
Select the “Compress” menu item (Mac) or “Send To.. Compressed (zipped) folder” (Windows) to make a zip file. You should see the newly created zip file in the same parent directory (folder):
Note that on Windows, if you “open” the zip file, Windows will “look inside” the zip file as if it is an ordinary directory, but on Mac OS X, if you “open” the zip file, it will be decompressed and expanded back into a regular directory.
On a Mac, open a Terminal application. Here are some commands that you would type in shown in bold with annotations (do not type the annotations) to guide you, assuming you have a Documents folder with a class folder inside of that with a 15104-f23 folder inside of that and a p5js folder inside of that:
~$ — initially you are prompted for commands (the $ means the computer is waiting) — the computer starts you in your home directory represented by the tilde (~) ~$ cd Documents/class/15104-f23/p5js/ — cd means change directory; change to the directory with your project — note that the computer always tells you what subdirectory you’re in ~/Documents/class/15104-f23/p5js$ ls — ls means list directory; see what’s in your directory spiral template — I have these two sub-directories representing two assignments in my p5js directory. I want just the spiral directory in a zip file. ~/Documents/class/15104-f23/p5js$ zip -r spiral.zip spiral — this command zips everything inside spiral to the zip file named spiral.zip — output from zip showing what it is copying: adding: spiral/ (stored 0%) adding: spiral/.DS_Store (deflated 96%) adding: spiral/index.html (deflated 57%) adding: spiral/libraries/ (stored 0%) adding: spiral/libraries/p5.dom.js (deflated 77%) adding: spiral/libraries/p5.js (deflated 77%) adding: spiral/libraries/p5.sound.js (deflated 78%) adding: spiral/sketch.js (deflated 44%) ~/Documents/class/15104-f23/p5js$ ls — now list what’s here; see if spiral.zip created spiral spiral.zip template ~/Documents/class/15104-f23/p5js$ mkdir tmp — now let’s unzip the file and make sure it’s all OK (you won’t have to do this later on once you get comfortable with this process, but it doesn’t hurt) — first, make a directory named tmp in the current directory shown ~/Documents/class/15104-f23/p5js$ ls spiral spiral.zip template tmp — list to see what’s in your main project directory — the tmp directory has been added ~/Documents/class/15104-f23/p5js$ cd tmp — change current directory to tmp ~/Documents/class/15104-f23/p5js/tmp$ unzip ../spiral.zip — unzip the file. “../spiral.zip” means look in the parent directory (“..”) for spiral.zip, the file to unzip. The unzip utility tells us what it copies out of spiral.zip Archive: ../spiral.zip creating: spiral/ inflating: spiral/.DS_Store inflating: spiral/index.html creating: spiral/libraries/ inflating: spiral/libraries/p5.dom.js inflating: spiral/libraries/p5.js inflating: spiral/libraries/p5.sound.js inflating: spiral/sketch.js ~/Documents/class/15104-f23/p5js/tmp$ ls — list the tmp directory spiral — good, we confirmed that spiral is in the zip file ~/Documents/class/15104-f23/p5js/tmp$ ls spiral index.html libraries sketch.js — what is in spiral; did we get everything? — contents of the spiral directory are shown, looks good, our zip file is ok
There are many programs for Windows that work with zip files, but none are built-in. A simple-to-use program is 7-zip, which you can download from https://www.7-zip.org/ .
The 7-zip screen looks like this:
Navigate in the window to find your project directory, and select it:
Click on the “Add” button to create a zip file:
A dialog box will appear. Just click “OK”:
Your new zip file will appear in the 7-Zip window. (Your zip file will probably have a different icon.) The location of zip file will be the same location as your project directory: