h1

Binary Practice Game!

April 23, 2008

Along the lines of the post that I wrote earlier about converting binary to decimal, I found an excellent way to practice that is much more fun than breaking out a piece of paper and covering it with 1’s and 0’s.  The networking gods (i.e. Cisco) have provided us with a game practicing binary to decimal and decimal to binary conversions.  Here’s the link.  Have fun!

h1

The Sad Sad Life of Jon Arbuckle

February 29, 2008

I stumbled upon Garfield Minus Garfield today.  I think we all know that Jon Arbuckle has some problems, but when you take Garfield out of the Garfield comics, Jon’s life becomes even more depressing than you thought it was.  This one was posted on my birthday:

And if you think about it, having Garfield in the comic doesn’t really change it too much.  I mean, Jon is just saying these things to his cat as opposed to himself, which really doesn’t change the context all that much.

Anyway, have a look!

h1

Nobody Likes SLIP

February 7, 2008

Yay!  I passed the CompTIA Network+ certification test today!  According to Network+ Study Guide by David Groth and Toby Skandier, “The Network+ exam was designed to test the skills of network technicians with 18 to 24 months of experience in the field.”  Now I just need to convince potential employers of that.

One thing I noticed while studying for the test was that nobody likes Serial Line Internet Protocol (SLIP).  It was originally designed in 1984 by students at UC Berkley and is meant to transmit TCP/IP (the protocol that the internet runs on) over serial connections (like modem connections over a phone line).  It has now been made obsolete due to Point-to-Point Protocol (PPP), which is a newer protocol that has the same main objective, but has a lot more features and is much easier to use.

Anyway, while taking practice tests in preparation for the real test, every time there was a question that dealt with SLIP in any way, the answer was always something along the lines of, “Stop using SLIP and switch to PPP.”  The answer was never something about changing the configuration of SLIP or other problems.  It was always to get rid of SLIP and use PPP.

Poor SLIP.

h1

Converting Binary to Decimal

January 26, 2008

I currently work at a job that often leaves me time with nothing to do, and I’m not allowed to read a book or browse the Internet or anything like that.  I have two options for these times:  I can drag my work out so that something that would normally take 5 minutes takes me an hour, or I can do things that aren’t productive but at least look like I’m doing something productive to the casual onlooker.

Well, I like to get things done as efficiently and as quick as possible, so the first option doesn’t sit well with me most of the time.  That leaves me with the second option, and one of my favorite pastimes for these situations is converting binary numbers to decimal and vice-versa.  Here’s how it works:

The decimal system counts numbers based on ten separate digits, 0-9.  Once you get to 9, the next number is 10.  In other words, you increase the 10’s column by one and reduce the 1’s column back to 0.  Okay, we all know that.

The binary system counts numbers based on only two digits, 0 and 1.  So, you start out with 1, and then since there is no 2 to go to, the next number is 10.  It’s the same thing as decimal, you increase the 10’s column by one and reduce the 1’s column back to 0.  Therefore, counting would go something like this: 1, 10, 11, 100, 101, 110, 111, etc.

As you can see, binary 1 is equal to decimal 1.  Binary 10 is equal to decimal 2.  Binary 100 is equal to decimal 4.

So, how do you convert binary to decimal then?  Well, if you notice above, 1=1, 10=2, 100=4, and if you continue that pattern, then 1000=8, 10000=16, 100000=32, 1000000=64, 10000000=128, and so on.

Now let’s say you wanted to get the decimal value of 01011001.  What you want to do is add up all the values for each column, so we get: 1000000 (64) + 10000 (16) + 1000 (8) + 1 (1) = 89.

Here’s a table to make it easier to visualize:

  Binary  

  10000000     1000000     100000     10000     1000     100     10     1  

  Decimal  

  128     64     32     16     8     4     2     1  

Now, to convert from decimal to binary.  Let’s take the number 173 for example.  To make this conversion, think back to the table.  The highest value on the table that fits into 173 is 128.  Now subtract 128 from 173 and add 1000 0000 to our binary number.  So now we are left with 45 in decimal and 1000 0000 in binary. 

(Note that you can put spaces between every four digits in binary to make it easier to read the same way you would put commas between every three digits in decimal.)

Next, 64 doesn’t fit into 45, but 32 does, so we subtract 32 from 45 and add 10 0000 to our binary number, leaving us with 13 in decimal and 1010 0000 in binary.

The next number that fits into 13 is 8, so subtract from decimal, add to binary, and we are left with 5 and 1010 1000.

Next, with our decimal number 5, the next binary number that fits in is 4, so we are left with 1 in decimal and 1010 1100 in binary.

 Finally, 1 fits nicely into 1, so our final number is 1010 1101.  Tada!

Pretty simple, right?  A good way to check your answers is to use a calculator application like the one in Windows under Start>All Programs>Accessories>Calculator.  Go to the “view” menu and change the mode to scientific.  Then you’ll notice in the upper left part of the calculator, there are four radio buttons: Hex, Dec, Oct, and Bin.  These stand for Hexadecimal, Decimal, Octal, and Binary.  The default is Decimal, and you can change to any of the other modes by clicking on the corresponding radio button.  So, to check your answer for the above problem, enter 173 in Decimal mode, and then click on the Bin radio button, and it will come up with 1010 1101.  The same as what we got!  Good job!

Go ahead and practice next time you’re bored in class or at work.  If anyone walks by and sees the piece of paper in front of you filled with ones and zeroes and gives you a strange look, just say, “I am a robot, leave me alone!”

 Now, you may ask if this has any practical use.  Well, any computer scientist or network engineer can tell you that this is very important when dealing with computers and networks.  Why?  Because digital signals are sent using electrical pulses and there are only two kinds of signals: on and off.  Using binary, 1 represents on, and 0 represents off.  In a computer, one of these on or off signals is referred to as a bit, and eight bits equal one byte.  Sound familiar?  When you start getting into computers you see how this presents itself all over the place.

For example, IP addresses.  The number set 209.85.173.103 is the IP address for www.google.com.  (Try putting http://209.85.173.103 into the address bar of your browser and see what comes up)  An IP address is made up of four numbers that range from 0 to 255.  Hmm…  Each of these numbers is referred to as an octet.  Hmm… Well, if you didn’t catch the connection, an IP address is refered to as an octet because if you convert it to binary, each of the numbers has 8 digits.  So from 0 to 255, that’s everything from 00000000 to 11111111.  You’ll never see an IP address with a number higher than 255 in it.  So, if we convert Google’s IP address to binary, we get 11010001.01010101.10101101.01100111.  Pretty cool, huh?

Anyway, that, in a nutshell, is how to convert binary to decimal and vice-versa.  And that, in a nutshell, is how I spend my time when I’m bored at work.

h1

Books

January 24, 2008

My inner-nerd has recently resurfaced, and he’s found my level of knowledge to be severely lacking.  So, this year, here’s the list of books that I’ve started reading so far:

  1. Programming From the Ground Up – Jonathan Bartlett
  2. Starting Out with Java: Early Objects (Third Edition) – Tony Gaddis
  3. Calculus for Dummies (and the accompanying workbook) – Mark Ryan (Hey! He’s got two first names!)
  4. “Surely You’re Joking, Mr. Feynman” – Richard P. Feynman
  5. Freakonomics – Steven D. Levitt & Stephen J. Dubner
  6. Bhagavad Gita
  7. The Motley Fool Investment Guide – David & Tom Gardner

And I’m also reviewing a couple of books that I read last year because I’m working towards certifications:

  1. Managing and Troubleshooting Networks – Mike Meyers
  2. CompTIA A+ Certification Exam Guide – Mike Meyers
  3.  Network+ Study Guide (Fourth Edition) – David Groth & Toby Skandier

I also have a brother, a brother-in-law, and a friend who want me to read novels and short stories that they’ve written.  Anyway, I’ve been doing pretty good at getting myself to sit down and focus on reading and actually progressing through books recently.  One of my main problems is that I am interested in such a wide variety of different things and there’s so much that I’d like to learn that I have trouble focusing on just one thing.  I’ve been getting better at that though (I even managed to read the whole Harry Potter series in November and December last month), and right now the main books I’m focusing on are Programming from the Ground Up and Calculus for Dummies.  I should be done with both of them by the end of February (although ideally by the end of January).  I’m also planning on having my Network+ certification by the first half of February (I already bought a voucher and signed up for a test date).  I think I’m probably ready for the A+ tests as well, but there’s so much that’s covered that I want to be really sure I have it down before I put down $200 per test.

Anyway, I plan to set up a separate page with the books I’ve read this year.

Oh, by the way, I am not enrolled in any classes right now, and I’m working full time.  All these books are things that I want to learn on my own.  Call me masochistic if you must.