Scott Wallace | 5 Jul 2005 01:57

Re: overlapsAny:, having trouble using

Hi, Dave,

Works for me -- see e.g. the attached project.

Are you certain you are making "true siblings" (olive halo handle) 
rather than simple "deep copies" (bright green halo handle)?

If ever in doubt about which objects on the screen are actually 
siblings of one another, use "indicate all siblings" from the 
"siblings..." submenu of the halo menu of one of them, and you will 
be given visual feedback showing all the objects on the screen that 
are actual siblings of the chosen one.

Cheers,

  -- Scott

At 12:51 PM -0700 7/4/05, Dave Briccetti wrote:
>Hi. overlapsAny looks like a very useful feature. I can't get it to 
>work. It works with the Morph I give it, but not siblings of that 
>Morph. Are there some commonly-made mistakes, or is it perhaps not 
>working? Thanks.
>
>Dave Briccetti
>Lafayette, California
Attachment (%overlapsAnyDemo-sw.001.pr): application/applefile, 135 bytes
Attachment (overlapsAnyDemo-sw.001.pr): application/octet-stream, 60 KiB

(Continue reading)

Dave Briccetti | 5 Jul 2005 06:01
Favicon
Gravatar

Re: overlapsAny:, having trouble using

Scott, thanks. I like the example, and it works for me in 3.8 6665. 
"Indicate all siblings" (thanks for the tip) does indicate that all the 
objects are siblings. I don't know what could be the trouble except that 
the objects are dynamically generated with Morph makeSiblings: :

makeTargets
| morph |
    self removeTargets.
    morph _ Target costume.
    targets _ morph makeSiblings: self getNumTargetsRequested.
    Transcript show: targets class; cr.

    targets do: [:n |
        n position: (500 atRandom  <at>  500 atRandom).
        n show.
    ].
    ^ self

The logic works if I use "color sees," as you can see in this script 
that uses one of the two approaches depending on the value of the 
"altColDetectMethod" variable.

Perhaps I could post the project somewhere and you, or someone, could 
take a look at it. I'd love to have feedback anyway, as I'm trying to 
teach some of these things to kids and I'd like to know if there are 
better ways of doing things.

Dave

Scott Wallace wrote:
(Continue reading)

Scott Wallace | 5 Jul 2005 07:23

Re: overlapsAny:, having trouble using

Hi, Dave,

Yes, please do post the project somewhere, and I (and others) will be glad to have a look at it.

Your #makeTargets: code looks fine and ought to work.  Indeed, I just now tried something equivalent to it in my example and it worked just as well as if I'd created the siblings manually.

I think perhaps you intended to include another code snippet into your email, the one that queries "altColDetectMethod," as per your penultimate paragraph, but omitted it.  I presume that will be present in the project you post, but if not, please send that along as well.

We'll get to the bottom of this...

Cheers,


 -- Scott

PS:  How old are the kids you're working with?

PPS:  By the way, fwiw, you can actually achieve the same effect as your #makeTargets entirely within the tile-script regime, without needing to resort to textual scripting, using code like the following to create, add, and position each sibling:




At 9:01 PM -0700 7/4/05, Dave Briccetti wrote:
Scott, thanks. I like the example, and it works for me in 3.8 6665. "Indicate all siblings" (thanks for the tip) does indicate that all the objects are siblings. I don't know what could be the trouble except that the objects are dynamically generated with Morph makeSiblings: :
makeTargets
| morph |
   self removeTargets.
   morph _ Target costume.
   targets _ morph makeSiblings: self getNumTargetsRequested.
   Transcript show: targets class; cr.

   targets do: [:n |
       n position: (500 atRandom <at> 500 atRandom).
       n show.
   ].
   ^ self

The logic works if I use "color sees," as you can see in this script that uses one of the two approaches depending on the value of the "altColDetectMethod" variable.

Perhaps I could post the project somewhere and you, or someone, could take a look at it. I'd love to have feedback anyway, as I'm trying to teach some of these things to kids and I'd like to know if there are better ways of doing things.

Dave

Scott Wallace wrote:
Hi, Dave,

Works for me -- see e.g. the attached project.

Are you certain you are making "true siblings" (olive halo handle) rather than simple "deep copies" (bright green halo handle)?

If ever in doubt about which objects on the screen are actually siblings of one another, use "indicate all siblings" from the "siblings..." submenu of the halo menu of one of them, and you will be given visual feedback showing all the objects on the screen that are actual siblings of the chosen one.

Cheers,

 -- Scott

At 12:51 PM -0700 7/4/05, Dave Briccetti wrote:
Hi. overlapsAny looks like a very useful feature. I can't get it to work. It works with the Morph I give it, but not siblings of that Morph. Are there some commonly-made mistakes, or is it perhaps not working? Thanks.

Dave Briccetti
Lafayette, California


Bob Irving | 5 Jul 2005 05:14

Squeak at NECC

I've got a mini-report on Scott Garrigan's full-day workshop on Squeak
at NECC.  It's on my blog at http://www.e-lcds.org/wordpress/

Just scroll down a bit to get to it.

All the best,

Bob Irving
Middle School Technology Facilitator
Lancaster Country Day School
Lancaster, PA
Blog: www.e-lcds.org/wordpress/ 
"It is not necessary to change. Survival is not mandatory." W. Edward
Deming
Dave Briccetti | 5 Jul 2005 07:43
Favicon
Gravatar

Re: overlapsAny:, having trouble using

Scott Wallace wrote:

> Hi, Dave,
>
> Yes, please do post the project somewhere, and I (and others) will be 
> glad to have a look at it.

I am following your example and attaching it to this message.

>
> Your #makeTargets: code looks fine and ought to work.  Indeed, I just 
> now tried something equivalent to it in my example and it worked just 
> as well as if I'd created the siblings manually.
>
> I think perhaps you intended to include another code snippet into your 
> email, the one that queries "altColDetectMethod," as per your 
> penultimate paragraph, but omitted it.  I presume that will be present 
> in the project you post, but if not, please send that along as well.
>
> We'll get to the bottom of this...

I like that attitude!

>
> Cheers,
>
>
>  -- Scott
>
> PS:  How old are the kids you're working with?

Grades 5-9. Here are my announcements/reflections about the class:

http://dbschools.com/dbschools/servlet/main/action/SelectInfo?selann166=A

Tomorrow starts week 3 of 3, then there's a second session of the same 
three classes: Python, Squeak, and Multiplayer Network Games Programming 
(which I more and more want to do in Squeak [rather than Java or Python]).

>
> PPS:  By the way, fwiw, you can actually achieve the same effect as 
> your #makeTargets entirely within the tile-script regime, without 
> needing to resort to textual scripting, using code like the following 
> to create, add, and position each sibling:
>
Ah, good! And presumably there's a mechanism to invoke that script some 
arbitrary number of times.

Thanks so much.
Attachment (Tank.004.pr): application/x-squeak-project, 174 KiB
_______________________________________________
Squeakland mailing list
Squeakland@...
http://squeakland.org/mailman/listinfo/squeakland
Scott Wallace | 10 Jul 2005 14:07

Re: overlapsAny:, having trouble using

Hi, Dave, and all,

The near-term bottom line on this is that "overlapsAny:" is broken in 
Squeak 3.8.

It *does* work in the current Squeakland release, which by all odds 
is the ideal system for anyone doing anything serious with etoys to 
be working in.

The implementation in the Squeakland veresion relies on code from the 
Connectors package, which is included in the base Squeakland image 
but not in the base Squeak-dev image, so at least one crucial method 
is missing from Squeak 3.8.

Sorry for the delay in replying.  Various other interesting issues 
were exposed by looking at your terrific example.  About which more 
later...

Cheers.

   -- Scott

PS: Dave's email quoted below was bounced by the squeak-dev mailing 
list because the attachment was over the list's limit.  It *did* 
appear on the Squeakland mailing list but, ironically, the project 
will not load into a Squeakland system.

At 10:43 PM -0700 7/4/05, Dave Briccetti wrote:
>Scott Wallace wrote:
>
>>Hi, Dave,
>>
>>Yes, please do post the project somewhere, and I (and others) will 
>>be glad to have a look at it.
>
>I am following your example and attaching it to this message.
>
>>
>>Your #makeTargets: code looks fine and ought to work.  Indeed, I 
>>just now tried something equivalent to it in my example and it 
>>worked just as well as if I'd created the siblings manually.
>>
>>I think perhaps you intended to include another code snippet into 
>>your email, the one that queries "altColDetectMethod," as per your 
>>penultimate paragraph, but omitted it.  I presume that will be 
>>present in the project you post, but if not, please send that along 
>>as well.
>>
>>We'll get to the bottom of this...
>
>I like that attitude!
>
>>
>>Cheers,
>>
>>
>>  -- Scott
>>
>>PS:  How old are the kids you're working with?
>
>Grades 5-9. Here are my announcements/reflections about the class:
>
>http://dbschools.com/dbschools/servlet/main/action/SelectInfo?selann166=A
>
>Tomorrow starts week 3 of 3, then there's a second session of the 
>same three classes: Python, Squeak, and Multiplayer Network Games 
>Programming (which I more and more want to do in Squeak [rather than 
>Java or Python]).
>
>>
>>PPS:  By the way, fwiw, you can actually achieve the same effect as 
>>your #makeTargets entirely within the tile-script regime, without 
>>needing to resort to textual scripting, using code like the 
>>following to create, add, and position each sibling:
>>
>Ah, good! And presumably there's a mechanism to invoke that script 
>some arbitrary number of times.
>
>Thanks so much.

Kim Rose | 11 Jul 2005 17:54

Less than 30 days until SqueakFest - register now!

Dear Squeaklanders,

If you plan to join us in Chicago for SqueakFest, it's less than a 
month away!   So, if you haven't yet, please take a look at the 
registration pages and send us your information.    This will be 
helpful to us in planning a great event.

http://interactive.colum.edu/partners/squeakfest/SFest05webwelcome.aspx

The site is now fully capable of handling credit card payments for 
registration, so if you haven't yet paid, you may also do so now. 
(We will accept onsite payment, but please send us your information 
so we know you are coming.)

Also, book your hotel now too!  We've had some difficulty with the 
Hilton in "finding" the conference agreement/rate, but they assure us 
all is worked out and they will honor the conference rate.

We've posted the schedule for the hands-on workshop day (Wednesday, 
August 10) and a rough schedule for Thurs-Sat.

http://interactive.colum.edu/partners/squeakfest/sced.aspx

If you plan to present and you don't see yourself or group on the 
schedule please send Wade and me a note.

This should be a great gathering! Come join us and bring your friends 
and colleagues!  We look forward to seeing you there.

regards,
Kim & Wade
Carolyn | 14 Jul 2005 16:53
Picon

blank

Hi everyone,
problem running some projects on Ibook OS 10.2.8 notably "a little 
tree" and the nasa connect tutorial project.
All I get is a nearly blank sqeaker - the navigator and supply tabs are 
visible and working

cheers,
Carolyn
Christian Grune | 18 Jul 2005 22:51
Picon

random numbers in etoys

how do I assign a random numer (a number between a given min & max) to a 
variable?
Couldn't find any tile in the viewer for that....

Wie kann ich Zufallszahlen einer Variable zuweisen?? Es scheint keine 
Kacheln im Betrachter dafür zu geben....

Thanks, Christian Grune
Scott Wallace | 19 Jul 2005 04:43

Re: random numbers in etoys

At 10:51 PM +0200 7/18/05, Christian Grune wrote:
how do I assign a random numer (a number between a given min & max) to a
variable?
Couldn't find any tile in the viewer for that....

Wie kann ich Zufallszahlen einer Variable zuweisen?? Es scheint keine
Kacheln im Betrachter dafür zu geben....
Thanks, Christian Grune

Hi, Christian,

It's at present only available from a Scriptor...

Click on the object's name at the top of a Scriptor:

  

...to get a menu:

  


... and from this menu choose "hand me a random number tile," to obtain:

  

Cheers,

  -- Scott
_______________________________________________
Squeakland mailing list
Squeakland@...
http://squeakland.org/mailman/listinfo/squeakland

Gmane