Course Information

  • The course information sheet (pdf format for printing) (webpage)
  • Instructor email policy: E-mail is a very effective way for you to consult the instructor about course matters. However, though the turnaround is usually fairly quickly, no specific response time can be guaranteed. If you are emailing the evening prior to an assignment due date, do not expect an answer in enought time for you to do something about it. For this reason, you should clarify your assignments early, either through the bulletin board or in office hours.

    Every email should contain "CSC104 in the subject header". As well, please include your real first and last name (and your student id if necessary) so that the instructor (who teaches other courses) can properly identify you. Failure to do this may result in a failure to respond. Finally —Do not send HTML e-mail. See http://www.expita.com/nomime.html for an explanation and for advice on disabling HTML transmission in a variety of mail programs.

Working on the CDF lab machines

  • When you sign-up for this course, an account on the CDF lab machines is automatically assigned to you. This account will allow you to use the machines in the lab to complete and submit your assignments. To find your CDF account, go to www.cdf.toronto.edu/cgi-bin/webfinger.
  • Guides to working in the CDF lab can be found here

Accessing the CDF computers from home

If you have internet access at home, you can log in to your CDF account and work from home, to some extent.

Running programs which do "graphical user interface" operations from home is somewhat difficult, and requires compatible graphics software on your home computer. However, getting a command-line interface on CDF, basically identical to what you get in the "terminal" window in the lab, is relatively straightforward.

There is a remote login protocol called "ssh" which is supported by the CDF computers. That is, the CDF computers run the "server"; what you need for home is the "client" software, which is the other side of a "server-client" connection over the internet. (Similarly, your web browser is a "client" and it connects to a "web server" over the internet.)

Possible client software (all freely distributable) is:

  • for unix/linux, OpenSSH. Probably included with your modern OS distribution; try typing "ssh user@cdf.toronto.edu".
  • for Mac OS X, also openssh. Use a terminal window (in Utilities under Applications) and type "ssh user@cdf.toronto.edu".
  • for MS-Windows, PuTTY.
  • for Mac OS 9, NiftyTelnet SSH.

To establish an "ssh" connection to CDF, you need to enter your CDF logname (c8whatever) and the name of the computer to which you are connecting, for which you can use "cdf.toronto.edu". The first time, it will ask you if you are willing to trust this new computer by saving its public key. After you confirm that, then you will be connected and the CDF computer will demand your password.

When you are connected in this way, as noted above, without extra software you won't be able to run anything "graphical" (i.e. opening its own windows, accepting mouse clicks, etc). You get a terminal window only. But you can do most things in the terminal window.

In particular, you won't be able to run the "SciTE" editor over an ssh-only connection (without the X windows software). However, there are a number of editors you can use, which work only within the terminal window, using only text. The one I recommend is "pico", which is the editor portion of the "pine" e-mail reader you've been using. You can type "pico file" to start editing the file named "file", etc.

Copying files between your home computer and your CDF account is more complicated. I suggest simply working on your CDF account in the first place, whether from home or in the lab. This way your files are always there, all the same, like the advantage of "centralized storage" mechanisms as discussed in lecture.

Copying files between CDF and other computers using the ssh protocol

Copying files between your home computer and your CDF account is more complicated than simply logging in, and it is recommended that you work on your CDF account in the first place, whether from home or in the lab. This way your files are always there, all the same, like the advantage of "centralized storage" mechanisms as I'm discussing in lecture.

That is to say, your goal of using a computer at home to do your CSC 104 course work does not mean that the files have to be on your home computer. You can simply log in to the CDF computer over the internet, avoiding any need to copy files around the place; you can use a text editor such as "pico", and run your Python programs simply with "python file".

However:
If you must copy files to and from cdf unix/linux, try:

  • for unix/linux (including Mac OS X), openssh (or any other version of ssh) has "scp" and "sftp". I use scp, and also often "rsync -e ssh".
  • for MS-Windows, PuTTY comes with "pscp" from the same site. I'm sure there are GUI-clicky sftp clients too.
  • For Mac OS X, a nice GUI-clicky sftp client is "Fugu".