Thursday, January 6, 2011
Goal: Familiarize yourself with your D4 account. Try out some python: call functions, call functions with parameters, write functions and write functions with parameters. Create a basic html home page.
Action:
1a. Open a command prompt, ssh -l <your d4 login> anitpasto.union.edu
1b. When you are connected, type yppasswd and follow the instruction to change your password.
1c. Type exit to disconnect from antipasto and quit the command prompt.
2. Use Connect to server... under the Go menu in the finder to connect to smb://antipasto.union.edu
3. Create a folder called "src" (for source code) in your home directory on antipasto and a folder called "Lab 1" in src.
4. Start up JES, copy and paste the code from http://cs.union.edu/code/logo.py into the program area (like we did yesterday) and save the file in your Lab1 folder.
5. Re-create the square function, which takes 1 parameter that is the length of the side, we worked on yesterday.
6. Define some new functions. Can you make other shapes? Triangles? Pentagons? Rectangles? Draw a picture? We will have a logo art contest with your final picture from lab 1.
7. Open your WebFiles folder on antipasto.
8. Open the default index.html page in TextEdit and make a basic webpage for yourself.
9. Create a new html page, add a picture of the art you created in logo, and link this page from your home page.
Deliverables:
1. Complete the lab as part of your homework and hand in a digital copy on Blackboard (using send file in the digital drop box) and a hard copy in class on Monday.