![]() ![]() |
| |||||||||
| Hotspots: Slides and Code TA Corner Comments? Announcements FAQ Static Webspace | ||||||||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Friday Sept. 10 at 7pm Amanda Bennett |
| The username is attach and the password is carmen Kelly Lyons |
| You don't need to return it. You also don't need to show it. | Bill Leahy |
| No, the instructions say that the function will take in as input a picture | Bill Leahy |
| You shouldn't need to return anything from posterize. The picture that you pass in will be posterized so use the name of the picture that you passed in. | Bill Leahy |
| Try quitting JES and restarting to fix the never ending load problem. You can copy/paste both the top and bottom windows of JES and email them to me. Might be easier to just see an instructor of a TA (or use IM) | Bill Leahy |
| This error can occur if you are passing arguments when none are required or when you are not passing arguments that are required. It can also occur if you are trying to do something like adding a number to a string. Best bet is to get an instructor or TA to look at your code via email, IM or in person. | Bill Leahy |
| You run your posterize function and then save the posterized picture using the writePictureTo(picture, filename) function. The picture in the function call is the name of your picture. The filename is the name of the file where you want to store your picture. Note: If you just enter a file name in quotes like 'myfile.jpg' it will store the file in the directory where JES is located. Then, when you upload to the swiki, just browse to the new file you have just created. | Bill Leahy |
| Yes, the instructions call for your posterize function to accept a picture as input. So you should not have pickAFile nor makePicture inside your function. You can do those steps in the command area and then call your function. The picture will be modified and you can save it using the previously explained writePictureTo function. | Bill Leahy |
| Was it working before? If not, use the alternative method to turn in the assignment (upload it directly onto your TA's turnin coweb page. Angela Liang |
| Try again. I made some changes so turning it in through JES might work. If it doesn't work, upload it under your TA's name. If you're in Section B3 and your TA is NOT Summer, upload your assignments under Robert Edmonds. He will be your new TA. Angela Liang |
| This will happen if you are off campus. Use username: attach, password: carmen | Bill Leahy |
| After you run the code do a "show(pic)" and it should be obvious. From the assignment: 'Turn in your program via JES as "hw1".' You may also optionally upload your posterized picture to the swiki. See the assignment for details. | Bill Leahy |
| "Access is denied" is a very weird error, Brent. Where were you running this? My guess is either (a) the Library, and for some reason, the .zip file got created in a place where JES can't get to it or (b) (and I think that this is more likely) you're trying to run JES off the CD. If you're running off the CD, then JES can't save the .zip file (it can't write to the CD), so it can't turn in for you. Mark Guzdial |
| You can but it isn't required | Bill Leahy |
| So you do something like this: file = pickAFile(); pic = makePicture(file); posterize(pic); show(pic) (where the ;'s mean new lines)? And your posterize function takes the passed in picture and modifies it? In other words, you don't do pickAFile() or makePicture inside of posterize? If none of the above helps you'll need to contact a TA or an instructor via email, IM or in person. | Bill Leahy |
| EVERYONE needs to turn in a program for HW1. Be sure that you give the people that you worked with on the program credit under the "notes to TA" section of JES. Lauren Walker |
| I'm quessing that you mean greater than or equal to, and less than or equal to. Here ya go...>= and =. As for plain old equals...Use one = sign to set something equal to something else (file = pickAFile()). Use == to test equality (123==345). Lauren Walker |
| Did you pass a picture into the posterize function (which then modified it) or did you create the picture inside the function? The former will work (and is what the assignment calls for). | Bill Leahy |
| No, but everyone will think you're really cool if you do. | Bill Leahy |
| Make sure the picture isn't too big (maybe that's why JES is "thinking hard". You also need to use the writePictureTo function to save the picture. Angela Liang |
| Strictly speaking all you need to do is write the posterize function and turn it in. Now if you have used your posterize function to posterize some cool picture and you're proud of the results you can save the picture as a file using the writePictureTo(pic, 'filenam.jpg') function. Once you have save the file you go to this page: Fall 2004 HW1 Posters and follow the instructions there to upload your picture. Good luck. | Bill Leahy |
