It's not illegal – it's just not required. Mark Guzdial |
No. You shouldn't save the deselection information anywhere. Each visit gets just the original preferences stored on disk. Mark Guzdial |
Sure. Mark Guzdial |
Yes, you can, but it's not a good idea. Here's a better idea: There is a changed:with: (I think that's the name). You send the aspect and the data at once. It's still not as clean as the just-send-the-aspect version (e.g., if you include the data in the update, then you have another place where you're dependent on a particular form of the data.) Mark Guzdial |
I'll take a look at your code, but here are some issues to consider. Morphic update is independent of processes, so sure, you can whump the processor and screw up Morphic. Also note that it's pretty easy to terminate or even create a couple of Morphic update processes at once. Yes, processes are dangerous...and fun. :-) But I don't think that they are inherently faulty. Mark Guzdial |
You may not have realized that Squeak processes are cooperatively multitasked among processes with the same priority. You can explicitly yield control by saying "Processor yield". Inserting this command into one of your inner loops shows what is happening: all the processes are sharing the same x variable. I didn't notice any oddities with morphic after running your code a few dozen times. But I bet this wasn't the only thread experiment you did in that image. Probably one of the other experiments allowed an extra UI thread to get started. Often you can recover an image by jumping to an MVC project and watching all the notifiers pop up. When you jump back to Morphic, you should only have one UI thread left. By the way, Proceeding or Restarting a background thread from a debugger is an easy way to create these excess UI threads, so be careful not to do that. -Lex Spoon |
If you leave Morphic (i.e., go to MVC) and re-enter, other UI processes should go away. To get rid of other user-level processes, inspect Process allInstances and send terminate to the ones you don't want. Mark Guzdial |
Nope. You cover the news sources they pick, but nothing's primary, so you pick what to put where. Mark Guzdial |
"If they're in there"? What do you mean? I think that the easiest way to build a list structure from an orderedCollection would be using collect: or insert:into: Mark Guzdial |
If there is a method that the website object understands like "Are you up?" then a collect: method could be built with an ifTrue: inside the block to collect the appropriate code. Mark Guzdial |
Squeak doesn't know how to deal with multiple IP's for the same box. So, no, it won't work. Mark Guzdial |
I have almost the same setup (modem instead of ADSL shared out to the rest of the apartment - multiple ip's but there's only one network card since we're using a modem) and all I used was http://localhost:8080/ and that worked fine. If you want the actual ip so other people can test it use winipcfg and get the ip of the network card being used to share the internet connection. Worked for me. Kapil Chandra |