Table of Contents

Part 3

Entries

Entry 1: November 14, 2012

Today was a work on stuff day. People were all working on the Super Puzzlebox 2 Turbo. I had it done so I worked on my Unix and Discrete keywords 3. I finished them pretty quick and just kept looking up different arguments for them to add in my definitions. Before class really started we were talking about ASCII art and 4chan.com. I wanted to go to it but we decided it probably wasn't the best idea to do it here. I also have to remember to watch the TED video of the guy who made or owns 4chan, moot I think.

Entry 2: November 28, 2012

Today we went over all the stuff we have to do for the EoC projects. After we got done going over everything we started a work on stuff day

Entry 3: November 29, 2012

Today we made the CCC logo with the gd library. Im really glad we did it because I wasn't real very confident with the gd library. After we got the first C in CCC the the other two C's went pretty easy. The only trouble I really had after the first C was trying to get them to touch just a little and make it actually look like the CCC logo.

Entry 4: November 30, 2012

Today was a work on stuff day. I started working more on my opus because for some reason I waited until the last day again. I did the combination and the cron/crontab/at demonstration. Hopefully I will get the experiment done before I leave today too.

Keywords

discrete Keyword 3

regular expression

Definition

Regular expressions are commands that match a pattern or characters in a string of characters or words. Some of the regular expression commands are the ^ that matches the beginning of a line, the $ matches the end of line, the \< matches the beginning of the line, \> matches the end of the word, . matches any single character, * 0 is 0 or more of the previous character or whatever you put in front of the *, [] matches any of the characters enclosed, [^ ] does not match any of the characters enclosed. Then there is also extended regular characters or egrep. Those are () which is like \( \), | which means or and + which matches 1 or more of the previous character. Usually you have to use a combinations of these to get what you want.

References

discrete Keyword 3 Phase 2

combination

Definition

A combination is a set containing a certain number of objects that have been selected from another set. In combinations, the order of the elements does not matter.

References

List any sites, books, or sources utilized when researching information on this topic. (Remove any filler text).

  • wikipedia
  • class

Demonstration

Demonstration of the indicated keyword.

Example:

If you have three people Ted, Sue and John there 6 different ways or combinations you can order them. 
Ted, Sue, John; 
Ted, John, Sue;
Sue, John, Ted;
Sue, Ted, john;
John, Sue, Ted; 
John, Ted, Sue;

unix Keyword 3

sort/uniq

Definition

The sort commands sorts the the lines of text files in order. You can use different arguments like -r to sort them in reverse order. The uniq command is used with the sort command to remove duplicate lines in the file that you are sorting. There are also arguments for uniq like -d that only prints duplicated lines or -u that only prints unique lines.

References

List any sites, books, or sources utilized when researching information on this topic. (Remove any filler text).

unix Keyword 3 Phase 2

cron/crontab/at

Definition

      Is the time-based job scheduler in Unix-like computer operating systems. 
      Enables users to schedule jobs (commands or shell scripts) to run periodically
       at certain times or dates. 
      It is commonly used to automate system maintenance or administration.
      
      __Crontab_ (cron table) file, a configuration file that specifies shell 
      commands to run periodically on a given schedule. 
      

References

  • Wikipedia
  • Sean Edwards
  • Harley Hahn's Guide to Unix and Linux

Demonstration

Demonstration of the indicated keyword.

lab46:~$ at 16:08 
warning: commands will be executed using /bin/sh
at> echo "hi"
at> <EOT>
job 319 at Fri Nov 30 16:08:00 2012
lab46:~$ at -l
319	Fri Nov 30 16:08:00 2012 a mwitter3

Experiment 3

Question

if you can use sort -r to reverse the order on the EoCE script in linux

Resources

I know thats what it does but I'm not sure if it will work with the EoCE script.

Hypothesis

I really don't think it will work, but I'm not positive. You never know it might work.

Experiment

Im going to test the experiment by changing the script a little and seeing if it works.

Data

I put sort -r in the script and it didn't seem to work.

Analysis

Based on the data collected:

Conclusions

The script in the EoCE is using something different than sort so sort -r is not working. My hypothesis was right but I was kind of hoping that it would work.