User Tools

Site Tools


opus:fall2012:eolson1:part3

Part 3

Entries

Entry 1: November 29, 2012

Today we will talk about graphics and creating them with the the gd library!! in class we will make a CCC logo. The logo is basically 3 consecutive half circles filled in red. When considering making an image you must consider the size if your image size is 600×800 you might want some white space and not make your image the full size. so we created margin variables that held the upper,lower, left and right margins. With these we were able to easily create parameters . Once all these are created you will fill the function with the parameters That were previously decided upon. When creating an image it is very important to “plan ahead” and what i mean by that is don't just start writing the code. This can be problematic. By “planning ahead' you have already done all the math and know all the dimensions you are working with and will be able to easily enter the information in to the function. Also do your research on the function itself. Knowing the parameters and what they mean and represent is very important. When i was creating the image that was what set me back, not being extremely familiar with the function.

Entry 2: November 9, 2012

Today we talked about a number of commands, some of which including head, and tail. These commands are mainly used in the filtering of data in large files ore outputs. First we will talk about head. head automatically will display the first 10 lines of a file or output. This can be notified. For instance if i were to type in the the terminal head -5 file.txt only the first five lines would be displayed. Now this may not seem very interesting but it can be very useful especially when combined with tail. Tail respectively automatically prints the last 10 lines ogf an output and also can be modified just like head. For example say you were only interested in a certain line of a file and you wanted it to be displayed. You could easily type “head -23 file.txt | tail -1” head would display the first 23 lines and when piped to tail it would only display the last line of that 23 therefore you have the 23rd line!!

Entry 3: November 30 , 2012

Today i spent most of my time in the lair working on the opus. I got a TON done. By the time i finish i will only have 2 demonstrations to do! This is good news!! Once the opus is finished i will then be able to start working more heavily on the binary tree and the EoCE. I plan on finishing the rest of the opus tonight which will mean i will have it done a day early!!!

Entry 4: November 30, 2012

In moy break between working on the opus and heading home i installed vlc on debian in the hopes to be able to play a dvd which happened to be in my disk drive.

Keywords

data Keyword 3

Recursive tree traversal

Definition

A tree traversal is the process of examining each node exactly once in a systematic way. Different traversals are classified and named by the process in which they examine the tree. A recursive tree traversal examines the tree recursively which is the process of calling a function within itself. One example of recursion is two mirrors faced towards each other creating an infinite recursion.

References

data Keyword 3 Phase 2

Recursive tree transversal

Definition

A form of going through a Tree via recursion. Recusion is calling the function while still inside the function before finishing the original function.

References

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

  • Reference 1
  • Reference 2
  • Reference 3

Demonstration

Demonstration of the indicated keyword.

This is an example of a basic tree setup. A recursive type tree traversal would have various “if's” or checks within the function before it calls itself again these check would ensure that the “tmp” or temporary variable or “position” would be sent to the right place.upon sending the tmp to that position the function might have the user enter a variable to a node that has just been created. or it might print the value that is has moved too. A recursive traversal is very AWESOME and versatile. The main processes in the recursive functions basically stay the same so only a few changes have to be made in order to create a printing function from a building function.

discrete Keyword 3

Turing machine

Definition

A Turing machine processes symbols on a strip of tape with a set of rules. A Turing machine is not really meant for practical use but more to help computer scientists understand the limits of mechanical computation. A hypothetical device to represent a computing machine.

References

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

discrete Keyword 3 Phase 2

push down automaton

Definition

Similar to a stack machine. There is a virtual stack machine that was shown to me by Presley in the form of a spark machine. The bios has a “stack machine”built in. Basically a stack machine can only access and work with the top value of the stack.

References

Demonstration

Demonstration of the indicated keyword.

Take a look at the spark machine in the back of the room using open firmware fourth interpreter.

ok 5 5 8 9 7 ok .s 5 5 8 9 7 ok

This is an example of the command line showing pushing numbers on the stack and then displaying them.

ok 5 5 + .d 10 ok

that for example is pushing two numbers on the stack adding them and then displaying the result.

unix Keyword 3

Cut

Definition

Cut removes sections of each line of files.

Print selected parts of lines from each FILE to standard output.

References

  • cut man page

unix Keyword 3 Phase 2

diff/diff3/patch

Definition

Operations used to compare files, outputting their differences, and is often used to tell the differences between versions of the same file.

References

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

Demonstration

In this demonstration I am simply using two files to demonstrate diff and all it is doing is showing the differences between the files.

lab46:~$ diff text.txt text2.txt 
2,3c2,3
< this 
< is 
---
> these 
> are 
4a5
> yo
lab46:~$ 

In this demonstration i am using diff3 to examine three files line by line

lab46:~$ diff3 text.txt text2.txt text3.txt
====
1:1,3c
  hi
  this 
  is 
2:1,3c
  hi
  these 
  are 
3:1,4c
  hello
  these
  are
  sooo
====
1:4a
2:5c
  yo
3:6c
   
lab46:~$ 

In this demonstration i created a patch file then used it.

lab46:~$ diff -Naur text.txt text2.txt > new-patch
lab46:~$ patch -p0 <new-patch
patching file text.txt
lab46:~$ 

Experiment 3

Question

Would a different configuration of the “two can and string model” increase the performance enough to be noticeable.

Resources

I basically used my own thoughts and knowledge to estimate what would be a better configuration that what was currently there.

Hypothesis

I believe that a central location on the can is ideal for the best acoustics of the can. Currently there was a central hole in the can but instead of tethering the copper wire directly to that central whole it was, loosely tied around and inside of the can. This did not make very much sense to me, i thought there would be a tremendous loss of signal. I decided to drill a second hole and tether the wire centrally on the can and not as loose.

Experiment

I AM GOING TO MAKE IT!!!

Data

After completion of the build we tested and it was clear that the system was a lot more effective. Although with a new system there will always b more bugs to figure out. I will continue toying with this system.

Analysis

Based on the data collected:

  • YES! IT WAS
  • Yes there is more. The copper wire when functioning “correctly” picks up alot of extra noise.
  • The noise issue that needs to be solved.
  • A loud room.

Conclusions

The experiment was a success and i got the results i was hoping for. I would still like to work with this idea and improve upon it.

opus/fall2012/eolson1/part3.txt · Last modified: 2012/11/30 16:49 by eolson1