Table of Contents

Part 2

Entries

October 4, 2011

Today we went over regular expressions in class. We reviewed and played with basic regular expressions that one may encounter. I am starting to get a good feel for the regular expressions and with a little more practice, I should be fairly comfortable with using them. The biggest difficulty i can foresee with this is knowing precisely what I want to do with them but this is common for all new tools.

October 6, 2011

This week we learned some new things with regular expressions. Normally we would use a command like cut or grep to pick apart data and choose what we want to show. But with the regular expressions we were able to be even more precise in a more concise manner as well. They are a little hard to grasp because the concepts are kind of obscure, but for the most part i understand how they work. I just need to work with them more in my shell scripting or just in general like in my programs as well. We also did a script that will extract the data from our opus. It takes the total score you can get, the score you got and what percentage you recieve. We wrote that and added more on like cutting off the many decimal points after or similar stuff. We used some regular expressions in it as well which is really confusing but if i pick it apart piece by piece i can understand it.

October 18, 2011

Today we talke a little about wildcards and how to use them. I had read about them in in one of the books but had not played with them on my own. Today's class allowed me to see them in action. I see that they are very similar to regular expressions but with minor differences. The same basic principles applied to regular expressions can be applied to wildcards keeping in mind what symbols are used for what and when they can be used appropriatetly.

October 20, 2011

Today I brought in my laptop because there was an issue with java on it and i wanted to be able to run Minecraft. In case you didn't know Minecraft is a fantastical game where you can DO WHATEVER THE HELL YOU WANT!!!!! Sounds to good to be true right? Wrong. I myself am building an awesome Castle of Darkness. Anywho today we just worked on some more C programming which was not too difficult to understand. ^_^

Unix Topics

Remote Host

A computer that resides in some distant location from which data are retrieved. It typically refers to a server in a private network or the public Internet.

Current Working Directory

The current directory is the directory in which a user is working at a given time.

lab46:~$ 

Archiving

An archive is a collection of computer files that have been packaged together for backup, to transport to some other location, for saving away from the computer so that more hard disk storage can be made available, or for some other purpose.

lab46:~$ archive1

Compressing

Compressing files give you more storage space when using your OS, because it condenses the file down. Compressing a file can involve certain file extensions such as: .tar .zip .gzip etc.

lab46:~$ badname.tar

Viewing Files

In order to view files it depends on what type of file you want to view. You might have to use cd, cat, ./, etc.

lab46:~$ cat ascii
lab46:~$ cd closet
lab46:~$ ./burninator

The VI Editor

This is the greatest text editor EVAR!

The VI Editor: Insert Mode

There are certain commands to enter Insert Mode, but once you are in this mode it will tell you at the bottom. And once here you can type out anything that needs to be typed as well as creating programs that can be run once you change the permissions.

~                                                                                         
~                                                                                         
~                                                                                         
~                                                                                         
~                                                                                         
~                                                                                         
~                                                                                         
~                                                                                         
-- INSERT --                                                            0,1           All

The VI Editor: Command Mode

This is the starting area when you create a VI text. In here there are keys that do specific actions that can help you in creating/editing what you want in your VI text.

~
~
~
~
~
~
~
"alpha" [New File]                                                      0,0-1             All

The VI Editor: Extended Command Mode

The extended command mode begins with the colon : and from there you can add things like a number line or color. You can also save your work or discard when in this mode.

~                                                                                         
~                                                                                         
~                                                                                         
~                                                                                         
~                                                                                         
:q

$PATH

The PATH environment variable is a colon-delimited list of directories that your shell searches through when you enter a command.

lab46:~$ echo $PATH
/home/qclark/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games

Wildcards

A wildcard is a symbol that takes the place of an unknown character or set of characters. These characters are: ?, *, [], [^ ]

lab46:~$ grep '^r.*$' *d

Job Control

Job control facilities allow you to have the system work on a job in the background while you do something else at the keyboard.

unix Objective

Objective

The ability to accomplish/automate tasks.

Method

State the method you will use for measuring successful academic/intellectual achievement of this objective.

Measurement

Follow your method and obtain a measurement. Document the results here.

Analysis

Reflect upon your results of the measurement to ascertain your achievement of the particular course objective.

Experiments

Experiment 1

Question

What is the question you'd like to pose for experimentation? State it here.

Resources

Collect information and resources (such as URLs of web resources), and comment on knowledge obtained that you think will provide useful background information to aid in performing the experiment.

Hypothesis

Based on what you've read with respect to your original posed question, what do you think will be the result of your experiment (ie an educated guess based on the facts known). This is done before actually performing the experiment.

State your rationale.

Experiment

How are you going to test your hypothesis? What is the structure of your experiment?

Data

Perform your experiment, and collect/document the results here.

Analysis

Based on the data collected:

Conclusions

What can you ascertain based on the experiment performed and data collected? Document your findings here; make a statement as to any discoveries you've made.

Experiment 2

Question

What is the question you'd like to pose for experimentation? State it here.

Resources

Collect information and resources (such as URLs of web resources), and comment on knowledge obtained that you think will provide useful background information to aid in performing the experiment.

Hypothesis

Based on what you've read with respect to your original posed question, what do you think will be the result of your experiment (ie an educated guess based on the facts known). This is done before actually performing the experiment.

State your rationale.

Experiment

How are you going to test your hypothesis? What is the structure of your experiment?

Data

Perform your experiment, and collect/document the results here.

Analysis

Based on the data collected:

Conclusions

What can you ascertain based on the experiment performed and data collected? Document your findings here; make a statement as to any discoveries you've made.

Retest

If you're doing an experiment instead of a retest, delete this section.

If you've opted to test the experiment of someone else, delete the experiment section and steps above; perform the following steps:

State Experiment

Whose existing experiment are you going to retest? Prove the URL, note the author, and restate their question.

Resources

Evaluate their resources and commentary. Answer the following questions:

Hypothesis

State their experiment's hypothesis. Answer the following questions:

Experiment

Follow the steps given to recreate the original experiment. Answer the following questions:

Data

Publish the data you have gained from your performing of the experiment here.

Analysis

Answer the following:

Conclusions

Answer the following: