% Author: Ian! D. Allen - idallen@idallen.ca - www.idallen.com % Date: Winter 2011 - January to April 2011 - Updated 2011-03-26 04:03 EDT % Title: Week 08 Notes for CST8281 - Winter 2011 - [Course Home Page] - [Course Outline] - [All Weeks] - [Plain Text] Second Midterm Test =================== - The Second Midterm Test date is posted on the [Course Home Page]. - The Second Midterm covers material on Assignments 01 through 08 inclusive and Week Notes 01 through 08 inclusive. (Exclude the guest lecture on Internet.) - For full mark credit, read the [Test Instructions] for important directions on how to enter your answers on the mark-sense forms. Lecture Notes for This Week =========================== From the Class Notes link on the Course Home Page ------------------------------------------------- - [Course Home Page] - [All Weeks] - [Assignment #07] - Floating Point, Endian, Shifts, Characters, Booleans - [Assignment #08] - Bitwise, Boolean, Memory (cache, virtual) - [cst8281_11w_week8_michael_anderson.mp3] - Guest Lecture on HTML and CGI by Mr.Michael Anderson ([CC License]) - [510_disclaimer.txt] - Acceptable Use Warning for Algonquin Internet Access - [520_internet_basics.html] - Internet Basics - URLs, protocols, EMail, Addresses, DNS names - [530_internet_robustness_principle.txt] - The Internet Robustness Principle: Be liberal in what you accept, and conservative in what you send. - [550_web_what_vs_how.txt] - Presentation vs. Content - Keeping “How” separate from “What” in Web design (See also - The machine is Us/ing Us) From Blackboard Course Documents -------------------------------- These documents have restricted distribution and cannot be put on the [Course Home Page]. - [06.ppt] - Memory - ignore slides 12-34, 37 - memory types, memory hierarchy (speeds), cache, virtual memory From the Internet ----------------- About The Internet and its protocols: - - The Internet - - How The Internet Works - - TCP, UDP, IP addressing and ports - - Java networking examples - - Internet Protocol Example: HTTP (World Wide Web) - - Internet Protocol Example: SMTP (EMail) Social Commentary: - - What the Internet Is and How to Stop Mistaking It for Something Else - - The machine is Us/ing Us: Separating form and content About creating good HTML web pages: - - Web Accessibility Guidelines - - Web Content Accessibility Guidelines (WCAG) Overview - - Canadian Government: Common Look and Feel for the Internet 2.0 - - To Hell with WCAG 2 (critique of WCAG2) - - WCAG Samurai (corrections for, and extensions to, WCAG 1.0) - *Tables for layout and frames are banned and all guidelines relating to tables for layout and frames are deleted.* From the Classroom Whiteboard/Chalkboard ---------------------------------------- - Your in-class notes go here. - What you might need is a Binary Watch - see image. ![Binary Watch (photo courtesy of Lucas)] - The six biggest misconceptions about IPv6: - Monday: Guest Lecture by Mr.Michael Anderson - [cst8281_11w_week8_michael_anderson.mp3] - Guest Lecture on HTML and CGI by Mr.Michael Anderson ([CC License]) - - a test site used by Michael; you will have a different one - default *index.html* page: `http://netlabtest.algonquinhosting.ca/index.html` - uploading/downloading (which is which?) - detecting the remote O/S type in the FTP banner - how the world-wide-web works - you usually fetch a default *index.html* (or *index.htm*) page - where you put HTML documents depends on the server configuration - basic HTML tags for a simple (*but invalid*) web page - using a text editor to create a text file web page - tags identify content (and sometimes content format): html, bold, italic, underline, title, heading, body - most tagging is done in pairs: opening tag, closing tag, e.g. `` and `` - but note that `
` is an exception and has no closing tag - cascading style sheets (CSS) tell the browser *how* to format; more on that later - SSH transfer vs. FTP tranfer - security implications - wireshark to verify absence/presence of SSH server - FTP sends your password and data in clear text, no protection - don’t use FTP on your job! - **output:** static web pages (text editor) vs. dynamic content (e.g. scripts) - on the server, scripts and programs can generate the HTML for your browser dynamically - - a simple Perl CGI (scripted) dynamic web page - can run DOS commands inside the Perl script - some commands are not allowed; error messages appear in web page - need to tell the browser to insert line breaks (`
`) in generated output - **input:** POST vs. GET - not covered today - Tuesday: review of Cache and Virtual Memory - cache hit, miss - three types of locality - basic feature VM allows - physical address vs. virtual address - page fault, thrashing, working set - why does page fault code have to reside in physical memory - bitwise operators: `AND OR XOR NOT` -\> `& | ^ ~` - for any values *a* and *b*, explain what happens after the following two XOR operations (e.g. try a=5,b=10 and see what happens): - `a = a^b` - `a = a^b` - for any values *a* and *b*, explain what happens after the following three XOR operations (e.g. try a=5,b=10 and see what happens): - `a = a^b` - `b = a^b` - `a = a^b` - Internet Tools Disclaimer, Internet Basics, Presentation vs. Content - [510_disclaimer.txt] - Acceptable Use Warning for Algonquin Internet Access - [520_internet_basics.html] - Internet Basics - URLs, protocols, EMail, Addresses, DNS names - [550_web_what_vs_how.txt] - Presentation vs. Content - Keeping “How” separate from “What” in Web design -- | Ian! D. Allen - idallen@idallen.ca - Ottawa, Ontario, Canada | Home Page: http://idallen.com/ Contact Improv: http://contactimprov.ca/ | College professor (Free/Libre GNU+Linux) at: http://teaching.idallen.com/ | Defend digital freedom: http://eff.org/ and have fun: http://fools.ca/ [Plain Text] - plain text version of this page in [Pandoc Markdown] format [Course Home Page]: .. [Course Outline]: 2010-2011_CST8281.pdf [All Weeks]: indexcgi.cgi [Plain Text]: week08notes.txt [Test Instructions]: 000_test_instructions.html [Assignment #07]: assignment07.txt [Assignment #08]: assignment08.txt [cst8281_11w_week8_michael_anderson.mp3]: cst8281_11w_week8_michael_anderson.mp3 [CC License]: http://creativecommons.org/licenses/by-nc-sa/2.5/ca/ [510_disclaimer.txt]: 510_disclaimer.txt [520_internet_basics.html]: 520_internet_basics.html [530_internet_robustness_principle.txt]: 530_internet_robustness_principle.txt [550_web_what_vs_how.txt]: 550_web_what_vs_how.txt [06.ppt]: http://blackboard.algonquincollege.com/ [Binary Watch (photo courtesy of Lucas)]: binary_watch.jpg [Pandoc Markdown]: http://johnmacfarlane.net/pandoc/