======Part 2======
=====Land of the Lost=====
====Entry 5: March 6, 2012====
gcc -Wall -g -o prog prog.c
==GNU debugging==
gdb ./program
break- can recognize functions or it can be used to place breaks in particular lines.
(gdb) run
Starting program: /home/jdavis34/src/cprog/m61
total is: 734
total is: 937.299438
Program exited normally.
(gdb) break main
Breakpoint 1 at 0x40053d: file m6_1.c, line 13.
(gdb) break 17
Breakpoint 2 at 0x40058f: file m6_1.c, line 17.
(gdb) break 23
Breakpoint 3 at 0x400620: file m6_1.c, line 23.
(gdb) run
Starting program: /home/jdavis34/src/cprog/m61
Breakpoint 1, main () at m6_1.c:13
13 value.x=0;
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) n
Program not restarted.
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/jdavis34/src/cprog/m61
Breakpoint 1, main () at m6_1.c:13
13 value.x=0;
(gdb)
(gdb)
(gdb)
(gdb)
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/jdavis34/src/cprog/m61
Breakpoint 1, main () at m6_1.c:13
13 value.x=0;
(gdb)
print- allows to print values in code
(gdb) run
Starting program: /home/jdavis34/src/cprog/m61
total is: 734
total is: 937.299438
Breakpoint 1, main () at m6_1.c:26
26 }
(gdb) print i
$6 = 73
(gdb) print & i
$7 = (int *) 0x7fffffffe20c
(gdb) print value
$8 = {x = 1147818794, f = 937.299438}
(gdb)
!dice: 1d99
8-ball: question ?
1 struct person {
2 char name;
3 unsigned char age;
4 short int weight;
5 float gpa;
6 };
7 typedef struct person P;
8
9 P.age
10 P.name
11 P.gpa
====Entry 6: March 8, 2012====
C++
OOP-Object-Oriented Programming
Classes & Objects
Inheritance/Multiple Inheritance
Polymorphism
Templates
====Entry 7: March 13, 2012====
==hpc==
ssh -g -L port#:vm##.student.lab user@lab46.corning-cc.edu
ssh -X root@vm34.student.lab (use for wine on vm server to use a GUI app)
Xming32 "fancy X window for windows that lets us do our fancy window servery stuff"
CYGWIN
winecfg <-- to access wine
==c++==
Function overloading, can have numerous variations of a function of the same name with different parameters.
steps on own header.
1. make copy
2. remove all but dec
3. remove dec in orig
4. add " name.h" to the orig
Now in separating main, from the functions of the program, be sure to compile each separate file using
g++ -c file.cc do this for each of the Objects
It will print out file.o
next once all objects compiled,
g++ -o programname (each object created previously) ex1.o ex2.o etc etc
====Entry 8: March Day, 2012====
This is a sample format for a dated entry. Please substitute the actual date for "Month Day, Year", and duplicate the level 4 heading to make additional entries.
As an aid, feel free to use the following questions to help you generate content for your entries:
* What action or concept of significance, as related to the course, did you experience on this date?
* Why was this significant?
* What concepts are you dealing with that may not make perfect sense?
* What challenges are you facing with respect to the course?
Remember that 4 is just the minimum number of entries. Feel free to have more.
{{page>cprogpart2&nofooter}}
{{page>hpc0part2&nofooter}}
{{page>unixpart2&nofooter}}
=====Experiments=====
====Hydro-Ponics====
===Question===
This project more or less is not based off the format of being a question, but a periodical observation of a process. It also maintains the ability to monitor and maintain a system of suitable environmental aspects for efficient growth.
===Resources===
All of our resources exist within the "Lair" and or previous knowledge acquired as of now. (With the setting up the server and IP cam and other various monitoring instruments I am sure this will extend its welcome to the interwebs.
===Hypothesis===
Will our plants effectively survive for the remainder of the duration of this semester that we get to spend with such a outstanding group of individuals???? YES CAUSE WE ARE OP...
I have a garden at home, and so maintaining plants is already known, also in middle school for like 8th grade we have to develop our own hydroponics system from various jugs and tubes. The one we made was prior to spring break and had to be able to survive for the duration of our absence. (mine survived)
===Experiment===
1. We began with the three of us prepping the area for the experiment.
2. We then all chose two specific slots each for our plants.(8/3 = WTF.... we gave Matt 2, so this complex math was resolved(6/3))
3. Set the timers for the lights to be on for 16 hours (6am turn on, 10pm turn off)
4. We prepped the proper amount of nutrients for the water A B C. (I am adding I refused the way they were added... I wanted it put in the gallon of water not directly into the resivior)
5. We all chose our seeds to plant in our specific slots, and assembled it with the water just touching the bottom of the baskets.
6. The air pump was also plugged in and submerged under the water.
7. We then began to fiddle thumbs and stare dumbfoundly at the rapid progression of our success.
===Data===
Perform your experiment, and collect/document the results here.
===Analysis===
Based on the data collected: (TO COME)
* Was your hypothesis correct?
* Was your hypothesis not applicable?
* Is there more going on than you originally thought? (shortcomings in hypothesis)
* What shortcomings might there be in your experiment?
* What shortcomings might there be in your data?
===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. (TO COME)
====Experiment 5====
===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:
* Was your hypothesis correct?
* Was your hypothesis not applicable?
* Is there more going on than you originally thought? (shortcomings in hypothesis)
* What shortcomings might there be in your experiment?
* What shortcomings might there be in your data?
===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 2====
Perform the following steps:
===State Experiment===
Whose existing experiment are you going to retest? Provide the URL, note the author, and restate their question.
===Resources===
Evaluate their resources and commentary. Answer the following questions:
* Do you feel the given resources are adequate in providing sufficient background information?
* Are there additional resources you've found that you can add to the resources list?
* Does the original experimenter appear to have obtained a necessary fundamental understanding of the concepts leading up to their stated experiment?
* If you find a deviation in opinion, state why you think this might exist.
===Hypothesis===
State their experiment's hypothesis. Answer the following questions:
* Do you feel their hypothesis is adequate in capturing the essence of what they're trying to discover?
* What improvements could you make to their hypothesis, if any?
===Experiment===
Follow the steps given to recreate the original experiment. Answer the following questions:
* Are the instructions correct in successfully achieving the results?
* Is there room for improvement in the experiment instructions/description? What suggestions would you make?
* Would you make any alterations to the structure of the experiment to yield better results? What, and why?
===Data===
Publish the data you have gained from your performing of the experiment here.
===Analysis===
Answer the following:
* Does the data seem in-line with the published data from the original author?
* Can you explain any deviations?
* How about any sources of error?
* Is the stated hypothesis adequate?
===Conclusions===
Answer the following:
* What conclusions can you make based on performing the experiment?
* Do you feel the experiment was adequate in obtaining a further understanding of a concept?
* Does the original author appear to have gotten some value out of performing the experiment?
* Any suggestions or observations that could improve this particular process (in general, or specifically you, or specifically for the original author).