COMP 2021: Unix & Script Programming (Spring 16)

HKUST / Department of Computer Science and Engineering

Announcements

  • (01/02/2016) Lab starts from week 2.
  • (01/02/2016) Welcome to COMP2021.

Course Information

    Course Descriptions

    Unix utilities and file structure; links and symbolic links; data processing and process control in the Unix shell; regular expressions; script programming in the Web environment.

    Prerequisites

    COMP 1002 OR COMP 1004/104H (prior to 2009-10) OR COMP 1021 OR COMP 1022P OR COMP 1022Q; OR a passing grade in HKALE Computer Studies or HKCEE Computer Studies; OR level 3 or above in HKDSE Information and Communication Technology.

    Reference Textbook
    UNIX System V: A Practical Guide (3rd Edition)
    Mark G. Sobell
    Pearson Education Inc.
    ISBN: 978-0805375664
    Lectures
    Section Instructor Meeting time Venue
    L1 LI Xin Cindy Tue 11:00 - 12:50 (New) Room 2404
    Labs
    Section Meeting time Venue TA
    LA1 Thur 09:00 - 10:50 Room 4214 Chang Zhangyu
    Academic Integrity

    Exams, homework, papers and other kinds of assessments are essential to the learning process. Honesty and integrity are central to academic work. See regulations for student conduct and academic integrity.

    Grading Scheme
    Lab attendance 5%
    Homework assignments 20%
    Project and Presentation 35%
    Final Exam 40%

Syllabus and Lecture Notes

Week Date Topic/Notes Extra
Week 1 Feb 2 Intro to Unix, Unix Utilities Example:
USPresident, USPresidentDuplicated, SecretMsg
Week 2 Feb 9 No Lecture
Week 3 Feb 16 Unix File, Security and Link
Week 4 Feb 23 Regular Expression
Week 5 Mar 1 Intro to Shell Programming Sample Shell Script
Week 6 Mar 8 Web Programming Fundamentals Sample Shell Script 2
Week 7 Mar 15 Intro to PHP phpIntro.php
Week 8 Mar 22 PHP Form FormExample.html
PHPProg.zip
Week 8 Mar 29 No lecture
Week 9 Apr 5 PHP File PHPFile.zip
Week 10 Apr 12 Object-oriented PHP PHPOO.zip
Week 11 Apr 19 PHP Cookies and Sessions PHPCookieSession.zip
Week 12 Apr 26 Project Presentation and Demo (tentative)
Week 13 May 3 Project Presentation and Demo (tentative)

Project


Related information
  • Project registration and project proposal
  • Project Grading Scheme and Assessment Rubric
  • Vote for "Best 3" projects
  • Project Marks
  • COMP2021 2013 Project List
  • COMP2021 2014 Project List
  • COMP2021 2015 Project List
  • COMP2021 2016 Project List
Dates
  • Apr 13 5pm: Project team registration and project proposal due
  • Apr 26 and May 3: Project presentation and demo
  • May 9 5pm: Project submission
Notes
  • The project can be of any topic. Final codes should contain at least 50% of PHP or Shell Script.
  • In-class presentations will be arranged on Apr 26 and May 3 lecture. All students are required to attend both project presentation sessions. 1 point from final score will be deducted if you fail to attend any of the sessions.
  • The project submission deadline is May 9 5pm. You need to submit your project report, PowerPoint slides, project video (if any) and source code via Canvas. One submission for each group. Make sure you have student ID, name and email for each group member in the cover page of the report, slides and front lines of the code.
  • All students can vote for "Best 3" projects. The final decision is made by instructor and teaching team. Team members of "Best 3" project earn a bonus 2 points to their final score.

Labs

Date Labs Topic
Week 1 Feb 4 No Lab
Week 2 Feb 11 Lab1 Linux and Unix Basics
Week 3 Feb 18 Lab2 More Linux Utilities
Week 4 Feb 25 Lab3 Regular Expressions and its Unix Utilities
Week 5 Mar 3 Lab4 Shell Programming
Week 6 Mar 10 Lab5 HTML and CSS (Ref: EN/CH)
Week 7 Mar 17 Lab6 PHP Environment Setting (Ref: EN/CH)
Week 8 Mar 24 No Lab
Week 8 Mar 31 Lab7 Homework 1 Solution PHP Sample
Week 9 Apr 7 Lab8 PHP Sample
Week 10 Apr 14 Lab9 PHP: Object-Oriented Programming
Week 11 Apr 21 Lab10 Hashing password cookielab.zip
Week 12 Apr 28 Lab11
Week 13 May 5 TBD

Homework & Exam

Homework 1

  • Due: Saturday Mar 26 11:59PM, submission via Canvas.
  • Download HW1 description here, code here
  • Homework 2

    • Due: Monday Apr 22 11:59PM, submission via Canvas.
    • Download HW2 description here
    • The final exam will cover everything we learned in this course. You can bring a single-side A5 size cheat sheet.

Past Exams

NACHOS Info

Menu

  • Home
  • Announcements
  • Course Information
  • Lecture Notes
  • Project
  • Labs
  • Homework & Exam
  • Useful Links

Instructor

  • LI Xin Cindy (web)
    Room 3535

TAs

  • LA1 (Thur)
  • Chang, Zhangyu

Page maintained by: Cindy LI       Powered by: styleshout