% CST8207 Week 14 Notes – Data Mining, review % Ian! D. Allen - - [www.idallen.com] % Winter 2014 - January to April 2014 - Updated Mon Apr 21 19:23:35 EDT 2014 Readings, Assignments, Labs, and ToDo ===================================== - Read (at least) these things (All The Words): - [Week 14 Notes HTML] – this file – **Read All The Words** - [Data Mining] - [List of Commands You Should Know] - [Video Tutorials on Lynda.com] - Using your [lynda.com] account, watch [Unix for Mac OS X Users] Assignments and Lab work this week ---------------------------------- Check the due date for each assignment and put a reminder in your agenda, calendar, and digital assistant. - Read All The Words, Do, and then Submit via Blackboard: - [Assignment #12 HTML] – [Users and Groups] - Simpsons, StarWars, and the Megadeth Project - [Assignment #13 HTML] – Disks, Partitions, File Systems, single user - Really do **Read All The Words**. You don’t get a second chance to get it right. ### Optional Bonus Assignments – extra marks - [Assignment #03 HTML] – *Optional* BONUS VIM Text Editor Practice - this is an *optional* worksheet for a BONUS assignment using `vim` - Optional Reading: [The VI (VIM) Text Editor] - [Worksheet #06 HTML] – *Optional* VIM Text Editor Practice - this is an *optional* worksheet for a BONUS assignment using `vim` - Optional command-line VIM tutorial: the `vimtutor` program on the CLS. - [Assignment #09 HTML] – BONUS assignment to review second midterm test - this is an *optional* BONUS assignment worth extra credit - there is a checking script available to verify the format of your file - [Assignment #14 HTML] – BONUS Assignment for extra marks: Boot Process, GRUB, Run Levels - this is an *optional* BONUS assignment worth extra credit ### Assignment Marking Three assignments out of 14 are bonus. I add up 14 assignment marks and divide by 11. If the result is more than 100%, I set it to 100%. From the Class Notes link on the Course Home Page ================================================= - Review last week. Did you do everything assigned last week? From the Classroom Whiteboard/Chalkboard ======================================== - **Take notes in class!** Your in-class notes would go here. - I’ve extended all due dates to term end: April 17. - Heartbleed bug explained - [The programmer who made the SSL coding error] at the start of 2012. - [The code with the bug] - [How to update CentOS 6.5] - The useful `diff` command. - The `last` command. - In-class symlink exercise on the CLS: Create one of these symbolic link targets in /tmp Use your CLS userid as the link name in /tmp You may have to remove an existing name first Easy target: linux Medium target: symbolic link Hard target: $$$ It's a "symbolic link" $$$ You can check your work by executing the script `/tmp/do.sh` - Data mining: Looking for lines that contain more than one text string: - `$ fgrep 'string one' filenames... | fgrep 'string two'` - can be extended to any number of text strings with more `fgrep`: - `$ fgrep 'one' filenames... | fgrep 'two' | fgrep 'three' | fgrep 'four'` - Given a sector size of `512` bytes, approximately how many MegaBytes are unused before the start of a partition that begins on sector `4096`? - Unused space is `512` bytes times `4096` sectors, divided by a MegaByte to get the answer in MegaBytes. - Computer Math: `1 K` is `1024` - Computer Math: `1 M` is `1024 * 1024` or `K * K` - Computer Math: `512` is `0.5 * 1024` or `0.5 * K` - Computer Math: `4096` is `4 * 1024` or `4 * K` - Unused space is therefore `0.5 K` bytes times `4 K` sectors divided by `K * K` MegaBytes - `= 0.5 K * 4 K / (K * K)` MegaBytes - `= 0.5 * 4 * (K * K) / (K * K)` MegaBytes - `= 0.5 * 4 * 1` MegaBytes - `= 2` MegaBytes Real Sysadmin Work ================== - Optional: [Running commands on remote servers] - Selling the Web at CERN: An exchange between [Aaron Swartz and Tim Berners-Lee]. - Constraints on the flow of ideas: Patents as [Private Monopoly Taxation] - [Epic Rap Battle: Steve Jobs vs Bill Gates] Take Notes In Class! -------------------- - [Take Notes In Class] ![Take Notes in Class] - Dilbert: Work-Life Balance for Allen A Study in Studying ------------------- From the Class of Winter 2014: > Hi professor Ian. I hope you are doing fine. Today after our NOS exam, a > few of us were going to the E building to study for the linux exam and we > saw that the local church was giving away free breakfast. We stopped and we > decided to have Allen’s juice to study for linux. We were able to get work > done and we wanted to share this with you. Proof is attached in the > picture. Thank you for your time: ![Study Linux with Allen] -- | 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 [www.idallen.com]: http://www.idallen.com/ [Data Mining]: 805_data_mining.html [List of Commands You Should Know]: 900_unix_command_list.html [Video Tutorials on Lynda.com]: 910_lynda_index.html [lynda.com]: https://lyceum.algonquincollege.com/Lynda [Unix for Mac OS X Users]: http://wwwlyndacom.rap.ocls.ca/Mac-OS-X-10-6-tutorials/Unix-for-Mac-OS-X-Users/78546-2.html [Users and Groups]: 700_users_and_groups.html [The VI (VIM) Text Editor]: 300_vi_text_editor.html [The programmer who made the SSL coding error]: http://www.cnet.com/news/heartbleed-bug-what-you-need-to-know-faq/ [The code with the bug]: https://github.com/openssl/openssl/commit/731f431497f463f3a2a97236fe0187b11c44aead [How to update CentOS 6.5]: https://www.centos.org/forums/viewtopic.php?f=13&t=45827 [Running commands on remote servers]: 445_quotes_for_remote.html [Aaron Swartz and Tim Berners-Lee]: http://lists.w3.org/Archives/Public/www-archive/2009Aug/0014.html [Private Monopoly Taxation]: http://osi.xwiki.com/bin/Projects/draft-flow-syllabus#HConstraintsontheFLOWofIdeas [Epic Rap Battle: Steve Jobs vs Bill Gates]: http://www.youtube.com/watch?v=njos57IJf-0 [Take Notes In Class]: http://read101.ca/1013/03/algonquincollege.html [Take Notes in Class]: data/remember.jpg "Take Notes in Class" [Study Linux with Allen]: data/allen_juices.jpg "Study Linux with Allen" [Plain Text]: week14notes.txt [Pandoc Markdown]: http://johnmacfarlane.net/pandoc/