Schedule

Schedule

Friday, August 1

1406912400 Tech News Today
1406916000 This Week in Law
1406923200 Android App Arena
1406934000 Tech News 2Night

Saturday, August 2

1407002400 The Tech Guy

Sunday, August 3

1407088800 The Tech Guy
1407103200 This Week in Tech

Monday, August 4

1407171600 Tech News Today
1407175200 Triangulation
1407180600 iPad Today
1407193200 Tech News 2Night
1407195000 Marketing Mavericks

Tuesday, August 5

1407258000 Tech News Today
1407261600 MacBreak Weekly
1407268800 Security Now
1407276000 Before You Buy
1407279600 Tech News 2Night
1407283200 All About Android

Wednesday, August 6

1407339000 FLOSS Weekly
1407344400 Tech News Today
1407348000 Windows Weekly
1407355200 This Week in Google
1407366000 Tech News 2Night
1407367800 redditUP
1407373200 Ham Nation

Thursday, August 7

1407430800 Tech News Today
1407434400 Know How...
1407438000 The Social Hour
1407443400 Coding 101
1407447000 Home Theater Geeks
1407452400 Tech News 2Night
1407454200 The Giz Wiz
1407463200 OMGcraft

Friday, August 8

1407517200 Tech News Today
1407520800 This Week in Law
1407528000 Android App Arena
1407538800 Tech News 2Night

Saturday, August 9

1407607200 The Tech Guy

Sunday, August 10

1407693600 The Tech Guy
1407708000 This Week in Tech

Most Recent Episodes

Home Theater Geeks

Scott and Joe discuss color and Ultra High Definition TV

The Giz Wiz

Put a stop to crying from onions.

Know How...

Man Made Leaf, Remote Desktop, and Linux Mint.

Tech News 2Night

USB's massive security problem.

Ham Nation

Bob reports back from Canada Hamfest, Gordo shows antennas for your mobile rig and more!

Coding 101

The Comprehensive Perl Archive Network

The Social Hour

The future of Twitter, Instagram's Bolt, Detour for audio tours.

OMGcraft

Parkour with no jumping.

Tech News Today

China hacking Canada

redditUP

What dinosaur would make the best pet?

Coding 101 1

Coding 01100101

January 23 2014

Hosts: Fr. Robert Ballecer, SJ and Shannon Morse

Welcome to Coding 101 - It's the TWiT show that gives YOU the knowledge to live in the wonderful world of the programmer. This week we are taking a look at binaries. You can also check out the transcript of the show here.

Ivory Tower: Binary

Binary is a base 2 system. With the total sum based on each binary value being either "on" or "off" (Which is why it's called "BINARY")

2-bit Binary Value

  • Each BIT can have 2 values - on or off - 1 or 0
  • Each Bit is worth the value of powers of 2, counting up from 0.
  • We count the values from right to left.
  • With two bits, that means the "first" bit can be worth either "1" (2(0)) or "0" while the second bit can be worth "2" (2(1)) or "0"
  • If we have a value of 00 = 0 :: 11 = 3 :: 10 = 2 :: 01 -1
  • If we have a n 8-bit value the maximum value will be (1+2+4+8+16+32+64+128) 255

Let's Break Down the process!

  • If I had a value like 10101010... what logic would I use to get to the DECIMAL value? (170)
  • I would create a "Total" Variable
  • I would look at each position, from left to right, giving each position a value of 0-7
  • If the value was "0" then I would skip to the next value.
  • If the value was "1", then I would raise 2 to the power of that position, then add that value to the "Total" Variable
  • Once I have no more values to calculate, I would report my total.

Code Warrior: Lou Maresca

Get the Code!

Get in Touch With Us!

Download or subscribe to this show at twit.tv/code.

Bandwidth for Coding 101 is provided by Cachefly.

Running time: 28:39

Sponsors: