CIT 591 Previous Announcements
Fall 2009, David Matuszek
Somewhat relevant link: Book recommendation.
| Date | Announcements | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| December 12, 2009 | I've been asked to post more examples of "good" (well-written) programs. Here they are: |
||||||||||||
| December 8, 2009 | Questionnaire results
|
||||||||||||
| December 7, 2009 | It turns out that adding a KeyListener to a JPanel or a JFrame isn't enough; you also have to tell the JPanel or JFrame setFocusable(true). [Thanks, Vishal.] |
||||||||||||
| December 4, 2009 | I have been forgetting to post partner evaluation forms. My apologies. Remember, these are a required part of the course.
To keep from forgetting again, I have posted the evaluation form for the last assignment. Please fill out this form immediately after submitting the assignment. |
||||||||||||
| December 3, 2009 | Error: The instructions for the load(), save(), and saveAs() methods in the StudyList class are contradictory. They say to catch any IOException, but the method headers say that the exception should be passed on to the calling method.Correction: The above-named methods should not catch exceptions. The method headers are correct. |
||||||||||||
| December 1, 2009 | An improved version of SimpleIO.java has been posted. This version treats a Save command as a Save As command if no file has previously been loaded, and fixes a (hopefully uncommon) bug. |
||||||||||||
| November 20, 2009 | Because so many people will be leaving early for Thanksgiving, I have tried to make it as painless as possible to skip the November 25 class, by making it clear that no new material would be covered. I've now decided that's just foolish. |
||||||||||||
| October 29, 2009 |
|
||||||||||||
| November 12, 2009 | I recommend going to this talk. --Dave Cracking the Technical Interview: Gayle Laakmann |
||||||||||||
| November 12, 2009 | The Partner Evaluation form for 07 Fractions is now available. Please note that these forms are mandatory, even if you had no partner. If you have not yet filled out partner evaluation forms for previous assignments, they are available on the Previous announcements page. |
||||||||||||
| November 12, 2009 | No office hours today. I am staying home with a cold and sore throat. | ||||||||||||
| November 5, 2009 | In your public int compareTo(Object o) method, it's easy enough to test whether o is a Fraction: if (o instanceof Fraction)... However, there is no direct way to test whether o contains an integer. Here's a bit of hocus-pocus (which I will explain in the next lecture) that you can use: int n = (Integer)o;This will either (1) put the appropriate integer value into variable n, or (2) throw a ClassCastException. Since your compareTo method is supposed to throw this exception if it gets the wrong kind of argument, this statement does almost exactly what you need. |
||||||||||||
| November 3, 2009 | Because Dr. Dietz is giving an exam on Thursday, the Fractions assignment will be due by midnight Friday. | ||||||||||||
| November 1, 2009 | The Partner Evaluation form for 06 Balanced Ternary is now available. Please note that these form are mandatory, even if you had no partner. If you have not yet filled out partner evaluation forms for previous assignments, they are available on the Previous announcements page. |
||||||||||||
| October 29, 2009 | I've been forgetting to announce this . Hope you can all come!
|
||||||||||||
| October 28, 2009 | Wednesday help sessions resume today, approximately 4:45, in Jaffe B17. | ||||||||||||
| October 26, 2009 | I have posted the exam and its answer key. |
||||||||||||
| October 23, 2009 | The due date for the Balanced Ternary Assignment is midnight Thursday, October 29. | ||||||||||||
| October 22, 2009 | If you are having trouble submitting a partner evaluation form, please wait a bit and try again. The server is hosted at my home, and we are having intermittent telephone problems that Verizon is not rushing to fix. |
||||||||||||
| October 21, 2009 | No lab this Friday (although it would be a good time for you and your partner to come in to work on the final Python assignment). No help session today after class. Will resume next week. |
||||||||||||
| October 19, 2009 | Please submit this form: |
||||||||||||
| October 16, 2009 | I finally have the partner evaluation form program working again. Please fill in the following two forms: I will post the evaluation form for the Small Town assignment after the final due date for it. Again, these evaluations are mandatory and completely confidential. |
||||||||||||
| October 14, 2009 | The due date for the Small Town Traffic assignment is extended to Midnight Sunday. | ||||||||||||
| October 11, 2009 | Addendum to the Small Town Traffic assignment. | ||||||||||||
| October 11, 2009 | If you are getting readability scores that are slightly different from mine for Kant's Critique of Practical Reason, but the scores on other files are the same, don't worry about it. There is a special case, "THE END", that we handled differently. You won't lose points for this case. | ||||||||||||
| October 8, 2009 Updated October 10, 2009 |
Here are some sample files of varying levels of "readability: Below are examples of the numbers you should be getting. def testAllMeasures(self):
text = ['This is a simple sentence. This is a more',
'complicated sentence. This sentence is ',
'incredibly complicated and polysyllabic.']
countEverything(text)
self.assertAlmostEqual(8.383332, getKincaidMeasure(), 3)
self.assertAlmostEqual(7.99833, getARImeasure(), 3)
self.assertAlmostEqual(12.33278, getColemanLiauMeasure(), 3)
self.assertAlmostEqual(11.28888, getGunningFogMeasure(), 3)
self.assertAlmostEqual(9.725611, getSmogMeasure(), 3)
self.assertAlmostEqual(45.64501, getFleschMeasure(), 3)
self.assertAlmostEqual(50.44444, getLixMeasure(), 3)
|
||||||||||||
| October 7, 2009 | The deadline for the Readability assignment is moved to midnight Sunday. Nevertheless, we will have lab and an new assignment this Friday. | ||||||||||||
| October 7, 2009 | Sample code involving classes:
Notes:
|
||||||||||||
| October 6, 2009 | By popular demand |
||||||||||||
| October 5, 2009 | Dear MCIT students and any friends/guests/etc.... Our next event will be to watch Fermat's Last Tango together over self-brought dinner. Snacks and drinks will be provided.
This movie is a silly musical comedy, written for the "General Public" (not just mathematicians... but there are a few math-only jokes thrown in as well...) http://www.claymath.org/publications/Fermats_Last_Tango/ This link tells you more about this very silly musical. See you there!
|
||||||||||||
| October 4, 2009 | Made some further updates to the corrections and the Readability assignment. Important note: In the main() method, I've also asked for some additional information to be printed. |
||||||||||||
| October 3, 2009 | I've posted some corrections to the Readability assignment. | ||||||||||||
| October 1, 2009 | I've added pages about Grading Criteria and Style Rules. | ||||||||||||
| October 1, 2009 | In response to student questions:
|
||||||||||||
| September 28, 2009 | Clarifications (Playfair Cipher):
|
||||||||||||
| September 26, 2009 | Newly discovered web site: http://www.tutorialspoint.com/python/index.htm. I've only explored it a little bit so far, but it looks like a very nice Python resource. | ||||||||||||
| September 25, 2009 | Here are some programming suggestions. In it I talk about the Playfair assignment, but the advice applies to all programs. | ||||||||||||
| September 24, 2009 | I have posted my writeup on Unit Testing and TDD. I had a link to someone else's writeup on TDD, but that page seems to have disappeared. To replace it, I've linked to a page on TDD in a wiki. Please read as far as the comments (starting at the book image). There are a lot of interesting links here, which you can ignore but might find interesting. Note: When an article talks about a "green bar" or "red bar," they assume the testing is done from a graphical framework (green = all tests passed), which we don't currently have. |
||||||||||||
| September 23, 2009 | Error in code below! The file.close() must be just outside the
while loop, not inside it. |
||||||||||||
| September 21, 2009 | I think it is now possible to submit your FlashCards assignment via Blackboard. (Sorry for the delay--I'm still not used to the extra steps in the new "improved" Blackboard.) | ||||||||||||
| September 19, 2009 | Here's a version of readFlashCards that removes troublesome line
endings. It also ignores blank lines. (Changes are in red.)
|
||||||||||||
| September 17, 2009 | Response from Penn Libraries: Blackboard has been experiencing some system wide problems with uploading documents recently. The problem seems to especially affect users of Firefox. The current workaround is to use Internet Explorer after updating your machine to the most recent version of Java. Java can be downloaded here: http://www.java.com/en/download/manual.jsp If this does not resolve the issue, please ask the affected students to email us directly so we can troubleshoot the issue further. Emails can be sent to bb-support@pobox.upenn.edu |
||||||||||||
| September 17, 2009 | The Engineering Library now has a copy of the textbook (Budd, Exploring Python, QA76.73 P98 B84 2010) on reserve for CIT 591. | ||||||||||||
| September 17, 2009 | The following is from Karl E. Morris, at CETS: Some students
have reported problems when trying to login to the Linux workstations
in the lab. The solution is for the student to run The user should follow these steps:
The
user can also login to a Windows workstation in the computer
lab, open a session using SecureCRT to eniac.seas, login
to their account and run |
||||||||||||
| September 16, 2009 |
|
||||||||||||
| September 16, 2009 | Beginner's section 4:45-? Today (Wednesday),
in Jaffe B17. |
||||||||||||
| September 15, 2009 | As you probably know, we have already had confirmed cases of swine flu in SEAS. Please take some time to read the instructions at http://www.upenn.edu/pennnews/flu/#measures. | ||||||||||||
| September 15, 2009 | Submitting assignments via Blackboard (ignore last year's instructions):
Important changes from past years:
|
||||||||||||
| September 14, 2009 | Avi will hold office hours in Moore 207 today, from 5:15 to 7:00. I will have the first "Beginner's section" this Wednesday, starting at 4:45; the room hasn't yet been assigned. These may or may not become regular times; our schedules are still being determined. |
||||||||||||
| September 10, 2009 | The library has scanned in the first
two chapters of the Python book for us, and I have posted them
on Blackboard,
under "Course Documents." Note: I have added to Blackboard all the students who were on the waiting list and were admitted. Please note: In order to use the computers in Moore 207, (1) you must register for this course, and (2) once you are registered, CETS has to set the permissions for you. This doesn't happen instantly. If you have only recently registered, go to the lab well before class time, and see whether you can log in. If you cannot, contact CETS. Please don't bother them unnecessarily, as this is a very busy time for them. |
||||||||||||
| September 10, 2009 | Note that in the Links table below, I have added a link to the Errata for Python book. This page will be updated without notice as additional corrections are found. | ||||||||||||
| Before classes started |
Unless otherwise noted, assignments will be made each Friday in
Lab, and will be due 6AM the
following Friday. Once we begin pair programming, there will be a 5 point penalty if you miss lab or are sufficiently late that I reassign your partner. You can avoid this penalty if you give me sufficient advance warning (several hours) that you will miss or be late. |
||||||||||||