Why is the HTML represented as an ordered collection? Did you write the parser? If so, why are you just representing an ordered collection? Are you using HtmlParser? Then it's not an ordered collection – it's an HtmlDocument. (Did you attend lecture this last week? I think I addressed all of the above...) Mark Guzdial |
This sounds like a dependency relationship – a "temporary Has-A" as I say in the book. Mark Guzdial |
Of course! I said so in class! You have several options for the parser: Build your own with recursive descent, build your own with T-Gen, use HtmlParser. All are acceptable. Mark Guzdial |
In general, that's considered very bad UI, to limit where the cursor can go. You're essentially creating an invisible "mode" – very yucky. You can limit the targets that can accept a grabbed morph, but you can't limit where the Hand goes. Mark Guzdial |
Ohhhhh...I get it. What's going on in scrollbars is not a case of grabbing, dropping, nor carrying. Rather, the scrollbar catches mousedown and then polls the mouse and updates itself based on the mouse position. Since it's the scrollbar moving itself, it can limit it's position. There are some mechanisms for doing this generally (often called pin and groove mechanisms), but I don't know if any are built in to Squeak. You're welcome to build one! Mark Guzdial |
You're the publisher – it's certainly your perogative what to include and what not to include. Yes, I think it's safe to say that Slashdot is just technology-oriented. Mark Guzdial |
How does 2 minutes per number of sites visited sound? Mark Guzdial |
I think that your understanding of the problem is correct. You need to deal with all these cases. Mark Guzdial |
'From Squeak2.7 of 5 January 2000 [latest update: #1762] on 1 March 2000 at 4:41:00 pm'! !String class methodsFor: 'internet' stamp: 'mjg 3/1/2000 16:40'! valueOfHtmlEntity: specialEntity specialEntity = 'quot' ifTrue: [ ^$" ]. specialEntity = 'lt' ifTrue: [ ^$< ]. specialEntity = 'amp' ifTrue: [ ^$& ]. specialEntity = 'gt' ifTrue: [ ^ $>]. specialEntity = 'nbsp' ifTrue: [ ^ Character nbsp ]. (specialEntity beginsWith: '#') ifTrue: [ ^Character value: ((specialEntity copyFrom: 2 to: specialEntity size) asNumber min: 255)]. ^nil ! !
No. Mark Guzdial |
Yes, it's due at my office, CCB 254, before 4:30 pm Friday. If I'm not there, slide it under the door. (This is also on the Fall 2002 Announcements page.) Mark Guzdial |
How does it read in the FileList? If it's readable in Squeak, you're golden. Mark Guzdial |
It is, but that's my mistake. I should have required you to specify the website at least for each article. I may yet add that to the final assignment. Without it, there is the potential for copyright violation. Mark Guzdial |
Yes. What's happening is that the server is going away during the connection. Use [DoSomething] ifError: [Error recovery code] to trap and deal with the error. Mark Guzdial |
Sure, you can combine for that site. That's fine to skip History, Home, and Garden for BBC. Mark Guzdial |
Double the single quotes: 'This isn''t a problem' Mark Guzdial |
Actually, most of the TA's (I think) know about these problems and are careful with their own Squeak usage. You can't ask the TA's to work on a particular platform, but you can ask the TA's to be aware of the limitations of their own platform so that Squeak has network and file accessibility. A similar example: You don't have to deal with the Domain Name Server (DNS – NetNameResolver in Squeak) possibly going away or not being present. Yes, that's possible, but that's not something we expect you to deal with – it's a platform limitation issue. Webservers going away IS a real issue. Mark Guzdial |