140 likes | 305 Views
Hack the Code: Save the World. What do you think of when you hear the word Computer Science? Eileen Malick Computer Science Instructor (CSI) Atlee High School. Computers Don’t Have a Brain…. Number Puncher = User Number Cruncher/Math Muncher = Computer (“Chips”)
E N D
Hack the Code:Save the World What do you think of when you hear the word Computer Science?Eileen MalickComputer Science Instructor (CSI)Atlee High School
Computers Don’t Have a Brain… • Number Puncher = User • Number Cruncher/Math Muncher = Computer (“Chips”) • Even plugging values into a calculator can be cumbersome… That’s why we have Computer Programs!
What are Computer Programs? • Directions to specifically tell the computer what to do in “code” language. • Computer Science (CS) is just an interpretation of the “code” language. • If we wrote computer directions in complete sentences, the directions would go on for hundreds of pages.
What is “Code?” • Creating software (directions) by writing in computer language ("code") • The execution of code is made possible by “chips”
Math Fun & Games (Thanks to Smaller “Chips”) 100111010101010001011111010101 11001001110101 Whatever device is digital (phone, Video I-Pod, Happy Meal Toy), video games on that device are possible!
What is “Hacking?” • Fundamental notion in CS: Algorithm • Informally: a «recipe» for computing something • “Hacking” is to figure out the Algorithm and MODIFY the Code to do what you want (powerful stuff) • “With great Power comes great Responsibility.”
Hacking 01: The CC File • Download the CC Movie • First right-click on the blue download icon, ___ choose “Save Target As” and then place it in a folder on your computer • Then repeat the process, this time right-clicking on the “CC” icon • Adjust the CC settings within your Windows Media Player – CC settings
Hacking 01: The CC File • Things you can Hack • font-size: __pt; • color: ____; • Everything that is not encased in alligator braces < >
Hacking 02: The Chroma Screen • The Chroma Key in Movie Maker • Capture your subject in front of a chroma-colored . • Highlight the following xml code: <TransitionsAndEffects Version="1.0" > <Transitions> <TransitionDLL guid="{C5B19592-145E-11D3-9F04-006008039E37}"> <Transition name="Chroma " iconid="88"> <Param name="KeyType" value="1" /> <Param name="progress" value="0.0" /> </Transition> </TransitionDLL> </Transitions> </TransitionsAndEffects> • Copy the text into notepad and save it as chroma.xml in this folder: • C:\Program Files\Movie Maker\Shared\AddOnTFX • When you open movie maker, Chroma should appear as a transition in the transition folder. • Now, in your timeline you put your background picture first, and your foreground picture right after it. Then you drag the greenscreen transition between them, and stretch it to the length of both clips.
Hacking 02: The Chroma Screen • Hacking the code for the *.xml file tells you that you can change the values for ANY color (not just blue) • Blue screens are more forgiving if you cannot achieve full saturation (sky and ocean)
Hacking 03: Google Earth Description Box • Incorporating Dynamic Text into the Description Box of Google Earth
Hacking 03: Google Earth Description Box <OBJECT ID="MediaPlayer1" width=637 height=421 classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject"> <PARAM NAME="FileName" VALUE="file:///c:/foldername/filename.mp3"> <PARAM NAME="animationatStart" VALUE="true"> <PARAM NAME="transparentatStart" VALUE="true"> <PARAM NAME="autoStart" VALUE="true"> <PARAM NAME="showControls" VALUE="true"> <EMBED type="application/x-mplayer2" pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/" SRC=" file:///c:/foldername/filename.mp3" name="MediaPlayer1" width=637 height=421 AutoStart=true> </EMBED> </OBJECT> (Note for .mp3 files: change the height to 45 or 50 so only the controller shows) • Incorporating Multimedia into the Description Box of Google Earth
Hacking 04: Multimedia in any Dynamic Web file • Incorporating Multimedia into any dynamic HTML file is possible by simply copying and pasting the embed code into HTML mode
Am I a Hacker? • Enjoy building things or Figuring out how things work • Think Abstractly • Work in teams or as individuals • Work in many different fields • Problem Solvers not afraid to Save the World!