Unit 2 Overview - SKIP UNIT???
Just as a scientist would need to understand units of measurement (length, mass, time, current) before conducting an experiment, you also need to understand units of measurement to advance as a programmer. We want to have a good understanding of terminology and general relationship between file types and sizes. Computers today are growing in power and speed, which raises opportunities and challenges in dealing with larger files.
We will review the following information taken from our curriculum:
Terminology - Byte
Recall that a single character of ASCII text requires 8 bits. The technical term for 8 bits of data is a Byte.
A byte is the standard fundamental unit (or “chunk size”) underlying most computing systems today. You may have heard “megabyte”, “kilobyte”, “gigabyte”, etc. which are all different amounts of a bytes. We’re going to learn more about them today.
How many bytes does it take to store the word 'hello'? Take a guess. We'll try with Notepad and Word.
Team up with a partner and complete the following activity sheet. Send it to me on Schoology.
Vocabulary
At some point we reach a physical limit of how fast we can send bits and if we want to send a large amount of information faster, we have to find a way to represent the same information with fewer bits - we must compress the data.
Activity Guide: Decode this message!
How much was it compressed?
Text compression widget with Aloe Blacc
Activity Guide - Text Compression
The main purpose of this lesson is to use some creativity while getting some hands-on experience manipulating binary data that represents something other than plain numbers or text.
Digital images can be stored in many formats, but one of the most common formats is “raster”. Raster images store the image as an array of individual pixels, each of which has a particular color. Higher-quality images can be obtained by decreasing the size of the pixels (resolution). While full color will be addressed in the next lesson, an important idea here is that images on computer screens are created with light by illuminating pixels on the screen. This is why it is typical in a black and white image for the value 1 to represent white - it means turn the light on - and 0 represents black - light off. If you were drawing on paper you might do the inverse.
Today we’re going to consider how you might use bits to encode a photographic image, or if you like: how could I encode vision?
Activity Guide - Invent a B&W Encoding Scheme
What was your method for encoding the image into binary?
How have you encoded white and black portions of your image?
Are your encodings flexible enough to accommodate images of any size? * How do they accomplish this?
Is your encoding intuitive and easy to use?
Intro to Pixelation Encoding B & W - This video will show us how to use the pixelation widget
Team up with a partner and complete the following activity sheet. Send it to me on Schoology.
Activity Guide - B&W Pixelation Widget
The way color is represented in a computer is different from the ways we represented text or numbers. With text, we just made a list of characters and assigned a number to each one. As you are about to see, with color, we actually use binary to encode the physical phenomenon of LIGHT. You saw this a little bit in the previous lesson, but today we will see how to make colors by mixing different amounts of colored light.
A Little Bit about Pixels - Video
Important ideas from this video:
Color Pixelation widget tutorial video - Part 1 - Video
Color Pixelation widget tutorial video - Part 2 - Video
Color Pixelation widget tutorial video - Part 3 - Video
Encoding Color Images - Activity Guide
Complete the following activity sheet. Send it to me on Schoology.
Personal Favicon Project - Activity Guide
- 24 bits will match up with hex codes online