Switches

When asking my sister to “switch” the tv channels, it came to my mind that the word had different meanings i know even solely in the technological field.

The most frequent usage means to swap or exchange something around.

Then switches commonly found in most houses control electrical devices, example the lights.

In (non-business) networking, a switch is a layer 2 device - the switch would forward packets based on hardware (mac) address, dividing or eliminating the collisions domains. Having a switch between a network of pcs means the bandwidth wouldn’t be shared like with a hub but the bandwidth has the capability of the medium being switched around to amount different network devices.

Interestingly, reading about PCI-Express, mentioned a switched controller to provide more speed compared to a shared bus.

Lastly, the switch is a keyword found in various programming languages, and 1 would be java.
switch (a){
}
It has the usage of multiple if-else conditions or a select-case like in Basic.

You can read more about switch - http://www.answers.com/switch&r=67

Okay a puzzle on switches I heard. Assuming there are 3 switches in a room connected to 3 light bulbs in another room wired in no particular order. Lets say you cannot see the lights from the room you operate the switches and you do not know which switch is connect to with bulb. What can you in the room of switches so that you only need to go over to the room of bulbs once to know which switch links to which bulb?

Answer

Asides (Feather server stuff)

So I tuned in to mostly-classical.com online shoutcast radio station on saturday night. Sadly since some time ago, 128kbps was removed and the highest now is 96kbps. Anyway I installed streamripper and tested it to (apt-get install streamripper). Was really simple to use, I use it as a relay for me to listen while it saves a copy to the harddisk (streamripper http://site:8080/blabla/ -r), then tunned in my xmms to http://localhost:8080. It could be an issue of ethics using it, but i think this is much ethical than stationripper. I left music playing and stream saving for about 2-3 days, and check my df (diskfree space) before and after, it took about 2GB. So not a bad idea if you want to filled your server space, which I don’t want to. Anyway its also a great way to start a collection to put on your portable player (save those 56 bitrates stream, there are actually encoded in mpeg ii layer iii so its listen-able)

Another apt-get installation was squid. The proxy, caching server plus many more features I haven’t bother to use. Anyway editing /etc/squid/squid.conf could allow me to set up my server as a relay for others to visit webpages are filtered by their cooperation. Another method was setting up nph cgi proxy. Anyway I was playing with my router, (could be due to faulty firmware) my connection was lost and reconnected (in a very long time).

0 Responses to “Switches”


  1. No Comments

Leave a Reply