DOC PREVIEW
MIT 8 02T - Study Guide

This preview shows page 1 out of 2 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Version date: Feb 14, 2012 Setting Office Hours on Athena Login in to your Athena account, and if you are in L01 issue the following command (with the obvious generalization from L01 to L0N, where L0N is your section): cd /afs/athena.mit.edu/course/8/8.02t/www/L01/js/ Once in this directory you can set or change office hours for your section by using the vi editor to edit the file ModifiedContent.js as described below. OFFICE HOUR FUNCTIONS: FUNCTION: AddRegularOfficeHoursToSection(sectionID,email,officeDay,hoursString) This function schedules regular (ie. weekly) office hours a person, which will appear on the office hours calendar. The arguments are as follows:"sectionID" is the name of the section (ie. "L01"); "email" is the MIT email handle of the person whose office hours you are setting. This should be the same value used to add them to the section at the beginning of this file; "officeDay" is an integer representing the day of the week that these office hours occur, where Sunday = 0, Monday = 1, Tuesday = 2, etc.;"officeString" is a string describing the time and location (ie. "4pm @ 26-152") EXAMPLE: AddRegularOfficeHoursToSection("L01","jbelcher",2,"4pm @ 26-152"); In this example John Belcher, from section L01, has added a regular (weekly) office hour for himself. The office hour is scheduled for Tuesdays. The integer 2 corresponds to Tuesday (the days of the week are zero-indexed, so Sunday, the first day of the week, is 0). The office hours are at 4pm in 26-152. This information will appear on the office hours calendar. FUNCTION: AddSpecialOfficeHoursToSection(sectionID,email,month,date,year,hoursString) This function adds a one-time office hour on the date you specify. The field "sectionID" is the name of the section (ie. "L01"); "email" is the MIT email handle of the person whose office hours you are setting. This should be the same value used to add them to the section at the beginning of this file; "month" is an integer representing the month of the office hour, where January = 0, February = 1, ... , December = 11; "date" is an integer representing the day of the month of the office hour (ie. 1, 2, 3, 4, .. 28, 29, 30, 31); "year" is an integer representing the year of the office hour (ie. 2004).Version date: Feb 14, 2012 EXAMPLE: AddSpecialOfficeHoursToSection("L01","jbelcher",2,24,2012,"4pm @ 26-152"); In this example John Belcher, from section L01, has added a special (one-time) office hour for himself. The office hour is scheduled for March 24, 2012. The integer 2 corresponds to March (the months of the year are zero-indexed, so January, the first month of the year, is 0). The office hours are at 4pm in 26-152. This information will appear on the office hours calendar as a "Special Office Hour". FUNCTION: CancelOfficeHoursInSection(sectionID,email,month,date,year) This function allows you to cancel a specific "regular" office hour. The field "sectionID" is the name of the section (ie. "L01"); "email" is the MIT email handle of the person whose office hours you are cancelling. This should be the same value used to add them to the section.; "month" is an integer representing the month of the cancelled office hour, where January = 0, February = 1, ... , December = 11; "date" is an integer representing the day of the month of the cancelled office hour (ie. 1, 2, 3, 4, .. 28, 29, 30, 31); "year" is an integer representing the year of the cancelled office hour (ie. 2012) EXAMPLE: CancelOfficeHoursInSection("L01","jbelcher",2,6,2012); In this example John Belcher, from section L01, has cancelled one of his regularly scheduled office hours. Though he normally holds office hours on Tuesdays (as seen in the above example), he has cancelled them on March 6, 2012. His regular Tuesday office hours for that day will appear as "Cancelled" on the office hours calendar. The rest of his regularly scheduled office hours will remain in


View Full Document

MIT 8 02T - Study Guide

Documents in this Course
Load more
Download Study Guide
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Study Guide and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Study Guide 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?