Handin Directories

by Mike Gleicher on October 16, 2015

in News

For future assignments, we will give everyone directories on the CS file system that will allow you to have your projects “hosted” so that there is an easy way to have a link to your assignment.

For Puzzle 2, using this is optional – but we encourage you to try it out so that you understand the mechanics for later assignments.

The class handin directory is on AFS (so you can access it from any CS department computer):

/p/course/cs638-gleicher/public/html/handin2015

(on windows it’s p:\course\ …)

Within this directory, there will be a subdirectory for each assignment (right now there is on that says “Puzzle2”). Within that directory, there is a directory for each person based on their CS login (not your NetID).

So, for me, there is a directory:

/p/course/cs638-gleicher/public/html/handin2015/Puzzle2/gleicher

And from a Mac or Linux machine, I can transfer my files to that directory with SCP (for Windows, you need a file transfer program. I used WinSCP.)

scp testpage.html gleicher@dolittle.cs.wisc.edu:/p/course/cs638-gleicher/public/html/handin2015/Puzzle2/gleicher

The cool thing about this, is that this directory is served by the web server. So I can see that file with:

https://pages.cs.wisc.edu/~cs638-1/handin2015/Puzzle2/gleicher/testpage.html

If you try that, you’ll see that you need to authenticate to the CS server (using your CS account, not your NetID). This is because we have set up everyone’s directory with an “.htaccess” file that limits access. You can empty out that .htaccess file so that the entire world can see your work.

If you’re a CS student, you should already know your CS account and should be familiar with AFS. (including how to log into one of the CS linux computers and see the directory).

Note: you still must turn things in using Canvas! But now, you turn in a link to the CS server (rather than, say, a JSBin link).

Also, if you turn in multiple versions of things – we would prefer that you do it in a way that keeps the old ones. So, if for a programming puzzle I turned in a first version of testpage.html as above, but then later turn in an improved version, I would call it “testpage_v2.html”. This way we can see that the original was turned in on time, but it will be obvious what the latest and greatest version is.

Print Friendly, PDF & Email

Previous post:

Next post: