======Part 2====== =====Entries===== ====Entry 1: October 10, 2012==== * ON THIS TREMENDOUS DAY, WE LEARNED OF THE BEAUTY OF STACKS (aka STAXX, YO). * Stacks are very similar to linked list, the access is the big difference. * In a stack, you can only access the values in it working from the top of the stack to the bottom, instead of grabbing any of the values at any time. * Stacks help keep things neat, no stabbing at the "pile" and loosing track of things this way! * I will be working on stacks and creating my own with the help of the linked list program ====Entry 2: October 31, 2012==== * So... **postfix notation**... MIND BLOWN. * As opposed to //infix notation// ( (1 + 7) * 6 ), **postfix notation** lists the operations at the end of the numbers involved. For example: * 1 7 + 6 * * 5 3 - 2 / * We were told about this concept with the unveiling of BINARY TREE BOOM!!!!! It is used with stack-based and concatenative programming. * It is also known as Reverse Polish Notation (RPN). ====Entry 3: October 19, 2012==== * I worked with the **grep(1)** command, which searches through plain text looking for lines that match a regular expression. * This is nice when you have a file, such as an html file, that has a lot of the html commands present, but you just want what the html file is going to be displaying (The example in class where we reduced the html file from the CCC course page to just the courses and such). * This command can be used right from the command line or in a program itself (Puzzle Box 2). * There is another type of **grep(1)** function that covers extended regular expressions, which is //egrep(1)//. ====Entry 4: October 17, 2012==== * I learned that there exists a tremendously hideous but interesting sorting algorithm called **Bogo Sort**. * The way **Bogo Sort** works is it takes a set of numbers, basically "throws them up in the air and however they land" is your new set, if the numbers aren't in numerical order, then the set will repeat the process and check again. This is done until the set is in correct numerical order. * This sorting algorithm is very inconvenient, can be finished within the first ten tries or never even complete, and can use up a great amount of memory. * However, it is very interesting knowing how it works and seeing how long and how many tries it takes to find the correct sort. =====Keywords===== {{page>datapart2&nofooter}} {{page>discretepart2&nofooter}} {{page>unixpart2&nofooter}} =====Experiment 2===== ====Question==== I downloaded VirtualBox and Debian to run on it, but when everything was installed, the possible resolutions were not available to me. I am going to experiment with it and figure out how to fix it. ====Resources==== I installed it with the help of Evan Olson, but the rest of my help will come from the internet and whatever I can find. Any websites used will be listed below: * http://www.calebscreek.com/2010/08/how-to-install-virtualbox-ose-guest-additions-in-debian-testing-squeeze/ * http://community.linuxmint.com/tutorial/view/739 ====Hypothesis==== I believe that I will need to install packages for the resolution. I don't think there will be much more to it, maybe some command line arguments to actually use the packages or something along those lines. ====Experiment/Data==== I will research VirtualBox and Debian and find how to fix the problems. I will document my research and experiment in the data section below with the use of screenshots and such! Well, the first problem I ran into was that I wasn't a sudo user, so with your help, I made myself one by going to the terminal, going to the root command prompt, accessing the visudo file, and adding myself as a user. From there, I typed in **//sudo apt-get install virtualbox-ose-guest-x11//**, which, I think, installed the Guest Addition Driver X11. I ended up getting a larger resolution (1024 x 768) instead of the monitor's natural resolution (1600 x 900). I tried the other website's tactics, which were to update Debian, remove the OSE guest additions using **//sudo apt-get remove virtualbox-ose-guest*//** and then mounted the VBOXADDITIONS ISO by using the command **//sudo sh /media/cdrom/VBoxLinuxAdditions.run//**. ====Analysis==== Based on the data collected: * Yes, but it isn't working very well. I still haven't been able to use the correct resolution. * I couldn't get past the 1024 x 768 resolution, even when I tried the things I was told to try on the websites, and I can't think anymore! I'm too tired! * I probably could have tried more, but I am going to do that tomorrow when I come in before class starts. * The data showed a change in resolutions, it was a better resolution than the one that I started with, but it isn't the best and I can find the best. ====Conclusions==== I can conclude that I have an extremely hard time messing around with operating systems and it is a lot harder than I thought it would be.