Table of Contents

Part 3

Entries

Entry 1: November 2, 2012

Today I popped an old hard drive into foxtrot, to see if anything was important in there. After installing and turning it on i quickly realized that the drive was old and bad. But I do not want to unplug it now because I am working.

Wedge has notified me of the command hdparm. Reading into the man page, the -y appendage sends the drive into a shutdown state. Excelent.

I needed to point it at the drive “/dev/sdb” using sudo rights of course.

The command was “sudo hdparm -y /dev/sdb”

Entry 2: November 19, 2012

Today I am studying multi-threading within a computer and how it handles more threads then the general time-division multiplexing. The difference appears to be that in multi-threading, each core handles it's own thread. Whereas in time-division multiplexing only effects one thread at a time.

Entry 3: November 20, 2012

Today Pressly asked for a little help from me today involving some [DATA COMMUNICATIONS] stuff. He had configured a router to bridge connections from ethernet and also wireless connections. From there, we connected my macbook via ethernet to his router. From his computer [192.168.10.100] we pinged my computer [192.168.1.100]. This table can be shown using netstat -nr.

Entry 4: November 28, 2012

After talking about it for so long, On Friday we are about to partake in cleaning the cage by putting things into boxes. This is going to teach us many things that we overlook everyday. Cards that we never knew worked from old suns and pcs.

Keywords

data Keyword 3

Valgrind

Definition

A suite of tools used for debugging an existing program. Like Gcc, it uses a powerful debugging tool used by programmers to find breakpoints in their code.

References

data Keyword 3 Phase 2

prefix (polish) notation

Definition

Polish Notation, also known as Prefix Notation, is a form of notation that puts the operator at the beginning instead of between two numbers or other operations. Example:

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

Polish notation is widely used in SPARC's as a means of editing values in a stack.

ok 5 5 +
ok .c
10
ok / 2
ok .c
5
ok

datacomm Keyword 3

Virtual Private Network

Definition

A virtual private network extends a private network through a tunnel to other computers. It is highly secure and uses encryption to port network activity under a tunnel

References

datacomm Keyword 3 Phase 2 Phase 2 Phase 2

Virtual Private Network

Definition

A virtual private network extends a private network through a tunnel to other computers. It is highly secure and uses encryption to port network activity under a tunnel

References

Demonstration

Demonstration of the indicated keyword.

If you wish to aid your definition with a code sample, you can do so by using a wiki code block, an example follows:

/*
 * Sample code block
 */
 
 
====Demonstration====
Demonstration of the indicated keyword.
 
If you wish to aid your definition with a code sample, you can do so by using a wiki **code** block, an example follows:
 
<code c>
/*
 * Sample code block
 */
#include <stdio.h>
 
int main()
{
    return(0);
}

Alternatively (or additionally), if you want to demonstrate something on the command-line, you can do so as follows:

lab46:~$ cd src
lab46:~/src$ gcc -o hello hello.c
lab46:~/src$ ./hello
Hello, World!
lab46:~/src$ 

Demonstration

hpc1 Keyword 3

Threading

Definition

The art of Operating systems ripping running processes into much smaller strings to be delt with by the cpu.

References

hpc1 Keyword 3 Phase 2

Demonstration

A simple threading example in Java shows how it cycles through threads

//: c13:SimpleThread.java
// Very simple Threading example.
// From 'Thinking in Java, 3rd ed.' (c) Bruce Eckel 2002
// www.BruceEckel.com. See copyright notice in CopyRight.txt.

public class SimpleThread extends Thread {
  private int countDown = 5;
  private static int threadCount = 0;
  public SimpleThread() {
    super("" + ++threadCount); // Store the thread name
    start();
  }
  public String toString() {
    return "#" + getName() + ": " + countDown;
  }
  public void run() {
    while(true) {
      System.out.println(this);
      if(--countDown == 0) return;
    }
  }
  public static void main(String[] args) {
    for(int i = 0; i < 5; i++)
      new SimpleThread();
  }
} ///:~

Experiment 3

Question

Can I stream music from one computer to another using commands

Resources

Google Wikipedia http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&sqi=2&ved=0CDAQFjAA&url=http%3A%2F%2Fwww.videolan.org%2Fdoc%2Fstreaming-howto%2Fen%2F&ei=CcC8UIDgFZO30QHVq4G4DQ&usg=AFQjCNGA25CyF7j3BlA0-aEl0TqxNxcx1g&sig2=VMSnSLlDnBvlLVfh-7q9lQ http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&cad=rja&sqi=2&ved=0CEUQFjAC&url=http%3A%2F%2Fwww.engadget.com%2F2005%2F11%2F29%2Fhow-to-stream-almost-anything-using-vlc%2F&ei=CcC8UIDgFZO30QHVq4G4DQ&usg=AFQjCNHGShJygvCAeXSgZU59mDriTftecA&sig2=wQnAn8_7TzbSxlFLIohe0w

Hypothesis

Using vlc, I should be able to stream music over the network and pick it up on another machine

Experiment

I gots me two machines to use and im finna stream some music using vlc.

Data

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

Analysis

After several unsuccessful tries with udp, I had to mess with the configuration of the command i was sending out. I learned that ts=mux is needed for streaming (despite what the GUI tells you).

I ended up streaming over http protocol, which gave me better access. The udp packets were all being lost and I have no idea where they were going.

The command i used to stream was this: cvlc ~/Music/myheartwillgoon.mp3 –sout '#transcode {vcodec=h264,acodec=mp3,samplerate=44100}:std{access=http,mux=ffmpeg{mux=mp3},dst=0.0.0.0:12345/stream.flv}'

This allowed my computer to be set up as a web server for others to access and stream the music live.

Conclusions

This wasn't easy to do, but there is quite a bit of documentation on it online. Perhaps in the future this experiment can be enhanced.