CSCI 150 Tips and Handouts

We will post general tips and handouts on this page. Please check often to make sure you do not miss any important information.

Lab Feedback and Grades

You will receive feedback and grades for each lab assignment about one week after it is turned in. To view the feedback and grades for your lab assignments, please go to: https://mail.cs.oberlin.edu/ and login with your same username and password as the lab machines. Grades (without feedback) will also be posted to Blackboard.

Problems with Komodo and Firefox on the Lab Machines

If you cannot get Komodo to load on the lab machines, it might not have closed properly the last time you used it, and it thinks that it is still open. To fix this problem, open up Terminal, and type in the following commands (without the %):

    % cd
    % rm -rf .komodoedit
                                

Please make sure that you do NOT put a space between the period and the komodoedit in the second command.

Likewise, Firefox might also fail to load on the lab machines for the same reason. To fix this problem, again open up Terminal, and type the following commands (without the %):

    % cd
    % rm -rf .mozilla
                                

Please again make sure that you do NOT put a space between the period and the mozilla in the second command.

General Tips

Slides from Class

The course slides are posted on Blackboard under "Slides and Example Code" -> "Adam's Slides" and "Slides and Example Code" -> "Cynthia's Slides"

Example Code from Class

The example code demonstrated in class is posted on Blackboard under "Slides and Example Code" -> "Adam's Example Code" and "Slides and Example Code" -> "Cynthia's Example Code"

Installing Python 3 (for Mac)

  • Go here to get Python 3.
  • Download Python 3.7.0
  • Double click on the Python.mpkg file (inside of the .dmg file you just downloaded); you'll be greeted with a screen that looks something like this:
  • Follow the installation instructions.
  • You now have Python on your computer! Yay!

Installing Python 3 (for Mac)

  • Go here to get Python 3.
  • Download Python 3.7.0
  • Double click on the python-3.7.0.exe file that you just downloaded; you'll be greeted with a screen that looks something like this:
  • Make sure to check the checkbox next to "Add Python 3.7 to PATH", or else you won't be able to run Python programs from Powershell (the Windows version of Terminal)
  • Follow the installation instructions.
  • You now have Python on your computer! Yay!

Installing Komodo Edit

  • Click here to download Komodo Edit.
  • Make sure that you are downloading the free version, and not the IDE.
  • Follow the installer's instructions!
  • To run Komodo, you can just find it in your applications, by searching on spotlight, etc!
  • NOTE: It can take a while for Komodo to start up for the first time.

Using Terminal (on a Mac)

Type Terminal into spotlight, like this:

Alternatively, you can go to Applications>Utilities>Terminal. To run Python programs, type "python3 progName.py", or whatever the name of your program is. It'll run as such.

Using Powershell (the Terminal alternative on Windows)

Click on the Start Menu button, and type Powershell

Select the "Windows Powershell" application (not "Windows Powershell ISE")

To run Python programs, type "python3 progName.py", or whatever the name of your program is. It'll run as such.

Submitting labs remotely (on a Mac)

  • Open Terminal.
  • To copy files onto the CS server: if your files are in the directory "lab1" on your current computer, you can type: "scp -r lab1 your_username@cs.oberlin.edu:~/cs150" to copy all of the files into your CS150 folder. You can replace lab1 with whatever the name of your path is.
  • Type "ssh your_username@cs.oberlin.edu". Replace your_username with the username you use to log into CS machines.
  • Type "cd cs150", or whatever the name of your 150 directory is.
  • Assuming lab1 is already in there, type "handin".
  • You should be prompted for a class number, assignment number, and the directory of your submission. Your class number is 150, your assignment number is 1 (not 01, lab01, or lab1), and the directory of your submission is whatever you named it! So, usually just "lab1".
  • You should get confirmation that the lab was successfully handed in. You can also type "lshand" into the terminal to see your submitted assignment.
  • To exit OCCS, type "exit".