Sunday, November 27, 2011

Assignment 33: Image Encoding

1. An image is 800 by 500 pixels, and each pixel can be one of four color. How much memory would it require?
Four color = 2-bit code       800 pixels x 500 pixels = 400,000 pixels
A 00                                      2 x 400,000 = 800,000 bits
B 01                                      800,000/8 = 100,000 bytes
C 10                                      kilo = 1,000 so, 100,000/1,000 = 100 kBytes of memory
D 11


2. An image is 800 by 500 pixels, and each pixel can be one of four colors. How much storage space would it require?
Four color = 2-bit code     800 pixels x 500 pixels = 400,000 pixels
A 00                                    2 x 400,000 = 800,000 bits
B 01                                    800,000/8 = 100,000 bytes
C 10                                    kilo = 1,000 so, 100,000/1,000 = 100 kBytes of storage
D 11

3. How many different colors could one represent using two, three, and four bit codes?
2-bit code = 4 colors        3-bit code = 8 colors          4-bit code = 16 colors
A 00   C 10                        A 000      E 100                  A 0000      E 0100      I 1000      M 1100
B 01   D 11                        B 001      F 101                   B 0001      F 0101      J 1001      N 1101
                                          C 010      G 110                   C 0010      G 0110     K 1010     O 1110
                                          D 011      H 111                   D 0011     H 0111      L 1011     P 1111

4. When you add one bit to a code, what happens to the number of possible colors?
The number of possible colors increases if you add one bit to a code.
                                                                                      
                                                                                     

Sunday, November 6, 2011

Encoding text

1. If you took a picture of your car, could you store that using the ISO 8859-1 character standard? Explain your answer.
I cannot store a picture of my car using the ISO 8859-1 character standard because the ISO is used only for text.

2. Write the word Hello using the ISO 8859-1 character standard.
01001000 - H
01100101 - e
01101100 - l
01101100 - l
01101111 - o

a. How many bits did it take? It took 40 bits.
b. How many bytes did it take? It took 5 bytes.
c. Would it take more bytes in memory than in storage? It would not take more bytes in memory than in storage because bytes are the same whether it's stored in memory or storage.

3. At 10 bits per second, how long would it take to transmit Hello from one computer to another?
It would take 4 seconds to transmit Hello from one computer to another.
40 bits/ 10 bits per second = 4 seconds

4. Which contains more information 100 random bits or 1,000 random bits? Explain your answer.
Both contain zero information because it needs a code to connect data to information.

Friday, November 4, 2011

Image processing practice (Image 1)

                        BEFORE



                         AFTER

Image processing practice (Image 2)

                                   BEFORE


                                          AFTER

Image processing practice (Image 3)

                                            BEFORE


                                                 AFTER

Sunday, October 16, 2011

Write a blog post

Steve Jobs was given up for adoption, he dropped out of college, was diagnosed with pancreatic cancer and he still managed to have the most successful company in the entire world. Steve Jobs was given up for adoption because his biological parents were not ready to take care of a baby. And seventeen years later, he went to Reed College, Steve did not find any value of going to college because he had no idea what he wanted to do with his life. So, he dropped out and started looking at the classes that were a bit more interesting to him, so he took a calligraphy class. Steve thought that none of this would had any use in the future, but ten years later when he was designing the first Macintosh computer it was the first computer with beautiful typography. If he had never dropped out, he would have never dropped in on that calligraphy class and computers wouldn't have the wonderful typography that they do. Steve Jobs and Woz started apple in his parents' garage when he was twenty. They worked hard and in ten years, Apple had grown from just the two of them in a garage into a $2 billion company with over 4,000 employees. Steve was later fired from the company he started because there were different visions for the company. He was devastated and so he decided to start over. During the next five years he started a company named NeXT, another company named Pixar and fell in love with an amazing woman who would become his wife. In a turn of events, Apple bought NeXT and he returned to Apple. He's sure none of this would have happened if he hadn't been fired from Apple. It was an awful tasting experience but doing what he loved kept him going. Around the year 2004 Steve Jobs was diagnosed with cancer. The scan showed he had a tumor on his pancreas. Doctors told him that type of cancer is incurable and he lived with that diagnosis all day. He had surgery and turned out to be fine. He finished his speech by saying "Stay hungry, Stay foolish because it will get you where you want to be at.

I chose this post because I admired how Steve Jobs had several obstacles in his life and he was able to overcome them and become one of the successful man on earth. If it wasn't for Steve Jobs we wouldn't be enjoying all these electronic devices there is. He was one of the smartest man on earth to come up with these devices that are popular in today's society, if its not a Mac, it's an ipod, an iphone, or an ipad. His products are used all over the world and I think it will always be a brand that will never go away. This post fits in the application development of our class outline.

Post Link: http://cis471.blogspot.com/2011/08/steve-jobs-stanford-commencement-speech.html