CS 4010 Spring 2018

Lab 1

Due: February 7, 2018

Find a computer and log into the OSX side using your new login name and password.

Open Firefox and find the class web page.

Find the Terminal and BBedit (TextWrangler) - use the finder window and go to applications.



Once you have the Terminal open, you can change your password.
    First think of a good password, here is some advice from Dr. SarraillĂ©:

You must construct your password according to the following requirements:

Additionally:


Change Password: Now that you have a password that is secure and you can remember, you can change to it by typing passwd at the prompt in the Terminal.
You will be prompted for your old password and then have to enter your new one (usually twice to verify).

NOTE: If you are asked to "Create a new Key chain" answer yes. If you answered no, you will need to go to your Library directory and delete the existing key chain folder, then logout and log back in to ensure that your old password is no longer required.

Set up a directory for this class in your home directory using finder. You may want to add some subdirectories, such as Tools, Lab Assignments, etc.

Download the examples from the book web site.

In TextWrangler - start on page 19 of the book:
Here is the text from the book to play with

Agalma elegans
Frillagalma vityazi
Cordagalma tottoni

Mus musculus

+40 46'N +014 15'E
+21 17'N -157 52'W

Use Find - command f, to find and replace "galma" with ".", using Case Sensitive and Grep, in
Agalma elegans

Then try it again on all three names.

Continue to work through Chapter 2 as time permits.


What to turn in:
Create a new file in TextWrangler called <your name>Lab1.txt
For example my file would be called MelanieMartinLab1.txt

For the examples on pages 21-27 of the book.

In this file, for each example, cut and paste:
Make sure to separate with blanks lines to make it readable.

Here is an example:

===================================================
Data:
-9 59.8'S -157 58.2'W
+21 17.4'N +157 51.6'W
+38 30.5'N +28 17.2'W
+40 46.1'N +14 15.8'E
+10 24.8'N +51 21.9'E
Find:
(.\d+) (\d+\.\d)\'\w\s+(.\d+) (\d+\.\d)\'\w
Replace:
\1\t\2\t\3\t\4
Result:
-9    59.8    -157    58.2
+21    17.4    +157    51.6
+38    30.5    +28    17.2
+40    46.1    +14    15.8
+10    24.8    +51    21.9

======================================================

Turn it in:
Go to the CS Homework Submission System: https://www.cs.csustan.edu/cshomework/
Choose: instructor Martin,  use your CS login and password
              Spring 2018
              CS4010
              Lab1
Upload the files as prompted.