Building Dice # turn correct pips on if value == 1: self.pip4.setFill(self.foreground) elif value == 2: self.pip1.setFill(self.foreground) self.pip7.setFill(self.foreground) elif value == 3: self.pip1.setFill(self.foreground) self.pip7.setFill(self.foreground) self.pip4.setFill(self.foreground) elif value == 4: self.pip1.setFill(self.foreground) self.pip3.setFill(self.foreground) self.pip5.setFill(self.foreground) self.pip7.setFill(self.foreground) elif value == 5: self.pip1.setFill(self.foreground) self.pip3.setFill(self.foreground) self.pip4.setFill(self.foreground) self.pip5.setFill(self.foreground) self.pip7.setFill(self.foreground) else: self.pip1.setFill(self.foreground) self.pip2.setFill(self.foreground) self.pip3.setFill(self.foreground) self.pip5.setFill(self.foreground) self.pip6.setFill(self.foreground) self.pip7.setFill(self.foreground) Python Programming, 3/e 102
View full slide show




Building Dice # turn correct pips on if value == 1: self.pip4.setFill(self.foreground) elif value == 2: self.pip1.setFill(self.foreground) self.pip7.setFill(self.foreground) elif value == 3: self.pip1.setFill(self.foreground) self.pip7.setFill(self.foreground) self.pip4.setFill(self.foreground) elif value == 4: self.pip1.setFill(self.foreground) self.pip3.setFill(self.foreground) self.pip5.setFill(self.foreground) self.pip7.setFill(self.foreground) elif value == 5: self.pip1.setFill(self.foreground) self.pip3.setFill(self.foreground) self.pip4.setFill(self.foreground) self.pip5.setFill(self.foreground) self.pip7.setFill(self.foreground) else: self.pip1.setFill(self.foreground) self.pip2.setFill(self.foreground) self.pip3.setFill(self.foreground) self.pip5.setFill(self.foreground) self.pip6.setFill(self.foreground) self.pip7.setFill(self.foreground) Python Programming, 2/e 101
View full slide show




REFLECTIVE JOURNALING TOOLS Reflective J ournalingTools LEARNING: • How is practice different from theory? Did this exercise help you to understand your theory and the application of theory better? How? Why? • Did you learn anything that helped you to better understand a theory, the use of a test that you were taught in lectures/labs? • What did you learn that were not taught in lectures (e.g. communication with patients), and how did you cope or learn more about this to improve your performance? Or how can this be incorporated into lectures? • Did this exercise help you to remember or recall later other aspects of previous experiences that you have forgotten? • Did this exercise help you identify areas that need to be changed, improved etc. in yourself/peers/staff/clinical training etc. Why and how? • What actions did you take you take and what are the results (what did you learn)? SELF ASSESSMENT: • Did you identify areas/issues that you were unclear of, or disagreed with your supervisors/peers, or different from what you have learned in your past lectures? Justify the actions taken. Did this help you in your learning? How? • Have you been open to share with others and to listen what others have to say? • Have you paid attention to both your strong and weak points? Can you identify them? What are you going to do about them? • How did faculty supervision/RW help you in your clinical experiences in relation to your professional growth? (eg. did it encourage you to be more independent, to become more confident in professional activities and behaviors etc) • What have you noted about yourself, your learning altitude, your relationship with peers/supervisors etc. that has changed from doing this exercise? COMMUNICATION: • What have you learned from interacting with others (peers/supervisors/staff etc)? • Did your peers gain anything from YOUR involvement in this exercise and vice versa? • Did this exercise encourage and facilitate communication? • Did you clarify with your supervisors/peers about problematic issues identified? Why (not)? What are the results? • How could you/your peers/staff help you overcome negative emotions arising from your work? Did your show empathy for your peers? PROFESSIONALISM: • Did you learn that different situations call for different strategies in management? • What are the good and bad practices that you have identified? How would you suggest to handle the bad/poor practices identified (if any)? • Did you learn to accept and use constructive criticism? • Did you accept responsibility for your own actions? • Did you try to maintain high standard of performance? • Did you display a generally positive altitude and demonstrate self-confidence? • Did you demonstrate knowledge of the legal boundaries and ethics of contact lens practice? EMOTION & PERSONAL GROWTH: • Did you reflect on your feelings when dealing with the case/peers/supervisor (eg. frustration, embarrassment, fear) for this exercise? If not, why not? If yes, who should be responsible — you, your patient or your supervisor? Why? • Did you find reflection (as required for this exercise) helpful, challenging, and enjoyable, change the way you learn? How? Why (not)? • How and what did you do to handle negative emotions arising from doing this subject? How could these feelings be minimized? • Did you try to find out if your feelings were different from your peers? Why? What did you do to help your peers? • Did you reflect on your learning altitude? How was it? Is there room for improvement? How? Why (not)? • What did you learn about your relationship with your peers/supervisors? What did you learn about working with others? Ideas for Reflective Journaling Writing Contributor(s): Dr. Michael Ying and Dr. Pauline Cho
View full slide show




Designing with Lists and Classes # dieview2.py # A widget for displaying the value of a die. # This version uses lists to simplify keeping track of pips. class DieView: """ DieView is a widget that displays a graphical representation of a standard six-sided die.""" def __init__(self, win, center, size): """Create a view of a die, e.g.: d1 = GDie(myWin, Point(40,50), 20) creates a die centered at (40,50) having sides of length 20.""" # first define some standard values self.win = win self.background = "white" # color of die face self.foreground = "black" # color of the pips self.psize = 0.1 * size # radius of each pip hsize = size / 2.0 # half of size offset = 0.6 * hsize # distance from center to outer pips # create a square for the face cx, cy = center.getX(), center.getY() p1 = Point(cx-hsize, cy-hsize) p2 = Point(cx+hsize, cy+hsize) rect = Rectangle(p1,p2) rect.draw(win) rect.setFill(self.background) # Create 7 circles for standard pip locations self.pips = [ self.__makePip(cx-offset, self.__makePip(cx-offset, self.__makePip(cx-offset, self.__makePip(cx, cy), self.__makePip(cx+offset, self.__makePip(cx+offset, self.__makePip(cx+offset, cy-offset), cy), cy+offset), cy-offset), cy), cy+offset) ] # Create a table for which pips are on for each value self.onTable = [ [], [3], [2,4], [2,3,4], [0,2,4,6], [0,2,3,4,6], [0,1,2,4,5,6] ] self.setValue(1) def __makePip(self, x, y): """Internal helper method to draw a pip at (x,y)""" pip = Circle(Point(x,y), self.psize) pip.setFill(self.background) pip.setOutline(self.background) pip.draw(self.win) return pip def setValue(self, value): """ Set this die to display value.""" # Turn all the pips off for pip in self.pips: pip.setFill(self.background) # Turn the appropriate pips back on for i in self.onTable[value]: self.pips[i].setFill(self.foreground) Python Programming, 1/e 63
View full slide show




 I am sorry I did not know no one told me besides  had a final in women self defense class last night how can I make this up I am so sorry I was not notified.
View full slide show




Separation Andrea Dworkin Night is magical for men. They look for prostitutes and pick-ups at night. They do their so-called lovemaking at night. They get drunk and roam the streets in packs at night. They fuck their wives at night. They have their fraternity parties at night. They commit their so-called seductions at night. They dress up in white sheets and burn crosses at night.... Any hated group fears the night, because in the night all the despised are treated as women are treated: as prey, targeted to be beaten or murdered or sexually violated. We fear the night because men become more dangerous in the night. Seduction is often difficult to distinguish from rape. In seduction, the rapist often bothers to buy a bottle of wine. Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
View full slide show




 I am sorry. I did not know. No one told me. Besides I had a final in women’s selfdefense class last night. How can I make this up? I am so sorry. I was not notified.
View full slide show




Developing a GUI class GraphicsInterface: def __init__(self): self.win = GraphWin("Dice Poker", 600, 400) self.win.setBackground("green3") banner = Text(Point(300,30), "Python Poker Parlor") banner.setSize(24) banner.setFill("yellow2") banner.setStyle("bold") banner.draw(self.win) self.msg = Text(Point(300,380), "Welcome to the dice table.") self.msg.setSize(18) self.msg.draw(self.win) self.createDice(Point(300,100), 75) self.buttons = [] self.addDiceButtons(Point(300,170), 75, 30) b = Button(self.win, Point(300, 230), 400, 40, "Roll Dice") self.buttons.append(b) b = Button(self.win, Point(300, 280), 150, 40, "Score") self.buttons.append(b) b = Button(self.win, Point(570,375), 40, 30, "Quit") self.buttons.append(b) self.money = Text(Point(300,325), "$100") self.money.setSize(18) self.money.draw(self.win) Python Programming, 2/e 113
View full slide show




Developing a GUI class GraphicsInterface: def __init__(self): self.win = GraphWin("Dice Poker", 600, 400) self.win.setBackground("green3") banner = Text(Point(300,30), "Python Poker Parlor") banner.setSize(24) banner.setFill("yellow2") banner.setStyle("bold") banner.draw(self.win) self.msg = Text(Point(300,380), "Welcome to the dice table.") self.msg.setSize(18) self.msg.draw(self.win) self.createDice(Point(300,100), 75) self.buttons = [] self.addDiceButtons(Point(300,170), 75, 30) b = Button(self.win, Point(300, 230), 400, 40, "Roll Dice") self.buttons.append(b) b = Button(self.win, Point(300, 280), 150, 40, "Score") self.buttons.append(b) b = Button(self.win, Point(570,375), 40, 30, "Quit") self.buttons.append(b) self.money = Text(Point(300,325), "$100") self.money.setSize(18) self.money.draw(self.win) Python Programming, 1/e 113
View full slide show




Building Dice def __makePip(self, x, y): """Internal helper method to draw a pip at (x,y)""" pip = Circle(Point(x,y), self.psize) pip.setFill(self.background) pip.setOutline(self.background) pip.draw(self.win) return pip def setValue(self, value): """ Set this die to display value.""" # turn all pips off self.pip1.setFill(self.background) self.pip2.setFill(self.background) self.pip3.setFill(self.background) self.pip4.setFill(self.background) self.pip5.setFill(self.background) self.pip6.setFill(self.background) self.pip7.setFill(self.background) Python Programming, 3/e 101
View full slide show




Building Dice def __makePip(self, x, y): """Internal helper method to draw a pip at (x,y)""" pip = Circle(Point(x,y), self.psize) pip.setFill(self.background) pip.setOutline(self.background) pip.draw(self.win) return pip def setValue(self, value): """ Set this die to display value.""" # turn all pips off self.pip1.setFill(self.background) self.pip2.setFill(self.background) self.pip3.setFill(self.background) self.pip4.setFill(self.background) self.pip5.setFill(self.background) self.pip6.setFill(self.background) self.pip7.setFill(self.background) Python Programming, 2/e 100
View full slide show




Closed Area Checklist - Idea Closed Areas Interview Guide ___Is the media in the area marked properly? (classified, unclassified, and system software) ___Are both classified and unclassified computer equipment affixed with a label indicating their level of processing? ___ Review the visitor log. Pay close attention to the visitor’s company name. Did someone visit from an HVAC service? If so, ask the area custodian what they did. Did they put a hole in the wall or make a change affecting the area integrity or the 147? If so, is it greater than 96 square inches? Did someone visit from Xerox? If so, what did they do while they were there? Did they install a new copy machine with a hard drive? Did this get connected to the classified AIS? Did someone visit from a computer service vendor? If so, what did they do? Did they bring diagnostic equipment with them? If so, did they connect it to the AIS? Did any visitors have “keyboard” access? If so, was that authorized? Dispose of visitor logs from before the last DSS audit ____ Does the 147 note “open storage” of AIS? ____ AIS TEAM MEMBER: Dispose of system paperwork from before the last DSS audit (unless it is still relevant) ___ AIS TEAM MEMBER: Look around. Is there any new hardware connected to the AIS? If so, what is it? Does it have memory? ___ AIS TEAM MEMBER: Check the AIS system access list. Are all individuals still active employees? Balance the list against an active employee listing. Bring a list of recently terminated employees with you, too. Are all individuals on the system access list also on the Closed Area access list? If not, why not? Review the Closed Area access list. Do you see anyone who recently terminated? If so, request that they be taken off the Closed Area access list. Were they on the system access list? If so, has their account been disabled? Balance all the lists against each other. Has everyone on the system access list taken the required CBEs? (Verify.) ___ Are there Security posters in the area? ____ Are the FAX machines in the area marked to indicate “for unclassified use only”? ____ Are the shredders marked “for unclassified use only”? ___ AIS TEAM MEMBER: Do the classified printers have a sign “Output must be treated as classified until reviewed ….?” ___ Are the recycle bins labeled “for unclassified use only”? ____ Are the supplies in the area sufficient? (CD labels, classification labels, coversheets, etc.). ___ Does the area have a “marking guide” poster? ____ Does the area have an updated Security points of contact poster? __ AIS TEAM MEMBER: Before going to audit the system, read about what the system is used for and what it does. This will generate questions and help you understand what goes on in the area ___ AIS TEAM MEMBER: Have a user walk you through the steps they follow when they create classified data. What do they print out? Is it classified? If it’s not classified, do they verify that? How do they know what’s classified? (Do they refer to the program security classification guide? Do they know where the guide is located?) Where do they put the classified when it’s completed? Go look at their safe. Are things marked properly? Ask if the data in the safe is for a current contract. If not, explain the requirements for retention approval. (See NISPOM 5-701) Where does the data or hardware go from there? Is it sent to a customer? What is our relationship with the organization they send it to? Do we have DD Forms 254 in place to/from that organization? What is the classification of what they are working on? Is the system approved up to that level? ___ Do they support IR&D activities? If so, explain how IR&D documents must be marked “IR&D Document,” etc. in accordance with the NISPOM (11-304) ____ Are the above-the-ceiling checks being conducted on the required schedule? Look at the records. Dispose of records from before the last DSS audit __ AIS TEAM MEMBER: Review Trusted Download logs, ask people where the removed media is currently located (stored on a computer, CD, printout), and which method they used for the transfer. DSS is focusing on interviews with employees and may very well ask them to actually demonstrate a trusted download. Ask the employee to walk through the steps with you to prepare them for the audit.
View full slide show