First, we need to setup a few things and you need to learn a little about our computing environment.
In this class we will do all of our work on the Linux Operating System. Linux is a UNIX-based operating system that is widely used in both academia and industry. As computer scientists you need to become familiar with UNIX-like operating systems.
In addition to your USFconnect account, as a CS student you will have a special CS account that gives you access to the CS lab computers in Harney 235, 530, and 536. It will also let you access the cslabs wireless network in Harney 235 and in the 5th floor computer labs. Finally you will be able to login remotely to stargate.cs.usfca.edu.
Your CS account is the same as your USFconnect account name, e.g., jfkennedy.
Your initial password is the last 6 digits of your USF Student ID.
You should change your password the first time you login. To do this you need to open a terminal window and type the command:
You will be asked to type in your old password, then your new password.
You will be using your USF Donsmail account for both email and creating a CS 110 portfolio. You can also use this account for Google Docs, Spreadsheets, etc.
Google Sites: Your CS 110 Portfolio
You will be putting all of your lab work and course notes into your CS 110 Portfolio.
You will need to create a Google Site for this.
Go to: http://zorro.usfca.edu
Then select "Sites" from the top bar menu.
And create a site.
You will need to give it a name, something like jfkennedy-cs110-02-portfolio
I will walk you through the steps.
After you have created your site you need to send me the URL to your portfolio.
A computer language provides humans with a notation that computers can understand and execution.
Our job is to learn the foundations of computer language so that we can get computers to do what we want them to.
Python works in two ways: you can use it interactive or you can have it run a computer program in a file.
For example, you can use Python as a simple calculator:
Python 2.6 (r26:66714, Nov 3 2009, 17:33:18)
[GCC 4.4.1 20090725 (Red Hat 4.4.1-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 1 + 2 + 3
You can also put programs into a file:
$ cat > hello.py
print 'Hello World'
[benson@hrn23520 ~]$ python hello.py
The 'cat' command is a UNIX command that allows us to quickly put text into a file.
For anything more complicated, you want to use a text editor such as gedit:
$ gedit hello.py
Introduction to HTML
HTML (HyperText Markup Language) is used to describe how web pages look.
$ cat > test.html
Hello World from HTML!
Now you can use Firefox to see this file as a web page.