Subbu,
Thanks this is a lot of fun and useful. So I tried to use it for fractions
(although I really like your art work project at Ofset
<http://community.ofset.org/index.php/Grab_area_button>better, but I am
thinking about fractions lately)
I used the "do menu item | stencil a sketch" scripting tile in a "Mouse
Down" script. The rectangle then moves forward by its width. So with a
series of successive clicks you can make a fraction.
It get's my vote for inclusion in the next release.
Thanks,
Stephen
On Fri, Jul 22, 2011 at 10:02 PM, K. K. Subramaniam <kksubbu.ml(a)gmail.com>wrote:
> Hi Steve,
>
> I have attached a patch to Morphic that adds three functions to 'extras...'
> menu for any Morph. These enable anyone to quick convert an assembly of
> morphs
> into a sketch (e.g. a car assembled using rectangles and ellipses), use any
> morph as a stencil to cut out a sketch from underlying screen area and to
> create silhouette (shadow) sketch respectively.
>
> To use the patch, just drop it into Etoys and select "file it in". I would
> appreciate it if you could use it and let me know if it is useful. If so, I
> will send it to Etoys Inbox.
>
> Subbu
>
Hi
Anybody know the license to this project ?
http://languagegame.org:8888/zoo/241
I would like to work on a better paint system for Squeak / Etoys and this
is a nice starting point.
Karl
(Including etoys-dev list again)
It should be possible to batch change like that.
You probably would have to do some Smalltalk behind the Etoys to accomplish
it though.
Karl
On Mon, Nov 28, 2011 at 7:41 PM, Mike Lee <curiouslee(a)gmail.com> wrote:
> Karl,
>
> I'll try this file out later today. The sound compression could be very
> useful.
>
> One question occurs to me: Is there a process that can act on a batch
> of Etoys project files in succession to change an aspect of the
> contents? For example, in the about flap, there is some text that
> refers to the year published. Could a script traverse all 700 files at
> some future point to change the year?
>
> Mike
>
>
>
> On Mon, Nov 28, 2011 at 1:31 PM, karl ramberg <karlramberg(a)gmail.com>
> wrote:
> > Hi
> > Test the project attached here.
> > I fixed a couple of issues.
> > -A sound was attached to the project without a reference, so I deleted
> it.
> > -The preference sound reverb is now set to false on loading. Also the
> button
> > is working properly
> > A tip: You can compress sounds in the sound library with help of the
> sound
> > library halo menu.
> > That could help reduce size of projects.
> > Karl
> >
> > On Fri, Nov 25, 2011 at 6:51 PM, Mike Lee <curiouslee(a)gmail.com> wrote:
> >>
> >> Hi Karl,
> >>
> >> I just got a chance to try this file. Unlike the previous template,
> >> this version of the template does not seem ready to use. When I import
> >> a sound, it has reverb by default. Do I need to reset the preference
> >> somewhere?
> >>
> >> I do see that when I import a sound, it does appear right away in the
> >> sounds listing of the instance of the Sound Library in the Production
> >> Tools flap.
> >>
> >> Mike
> >>
> >>
> >> On Thu, Nov 24, 2011 at 8:56 AM, karl ramberg <karlramberg(a)gmail.com>
> >> wrote:
> >> > Hi
> >> > The Sound reverb was still not set correctly in the project.
> >> > A fixed version attached
> >> >
> >> > On Thu, Nov 24, 2011 at 4:35 AM, Mike Lee <curiouslee(a)gmail.com>
> wrote:
> >> >>
> >> >> Hi Karl,
> >> >>
> >> >> The files used in that screencast are attached. My answers below...
> >> >>
> >> >> On Wed, Nov 23, 2011 at 8:03 PM, karl ramberg <karlramberg(a)gmail.com
> >
> >> >> wrote:
> >> >> > Hi
> >> >> > Awesome project. I am really impressed. I see you put a lot of
> effort
> >> >> > and
> >> >> > hours into it.
> >> >> > And you have collected a lot of sound resources.
> >> >> > Reverb does not sound good at all on the spoken sounds.
> >> >> > The book turn page sound can be turned of.
> >> >>
> >> >> I'll place a note in the final documentation for the lesson files,
> >> >> which I will complete in January after the files are posted to the
> >> >> Lubuto web site, on how to change or deactivate the turn page sound.
> >> >>
> >> >> > I saw you had some issues that popped up. Like a pre-debugger
> window
> >> >> > at
> >> >> > some
> >> >> > point.
> >> >> > That should really not happen.
> >> >> > If I had access to the project I could take a look at it.
> >> >>
> >> >> Attached. Happy to supply anything else you may need.
> >> >>
> >> >> > The shared flap tools becoming duplicated is a maybe a feature :-)
> >> >> > We could do some checking if a similar named flap was present it
> >> >> > would
> >> >> > be
> >> >> > replaced by the shared one.
> >> >>
> >> >> Probably not worth the effort as this templating procedure is an edge
> >> >> case.
> >> >>
> >> >> > This we have to look into.
> >> >> > Karl
> >> >> >
> >> >> >
> >> >> > On Wed, Nov 23, 2011 at 7:05 AM, Steve Thomas <
> sthomas1(a)gosargon.com>
> >> >> > wrote:
> >> >> >>
> >> >> >> Mike,
> >> >> >> Great job, wonderfully documented. 700 Etoys lesson files WOW!!!
> >> >> >> Thanks,
> >> >> >> Stephen
> >> >> >>
> >> >> >> On Tue, Nov 22, 2011 at 2:11 AM, Mike Lee <curiouslee(a)gmail.com>
> >> >> >> wrote:
> >> >> >>>
> >> >> >>> Stephen,
> >> >> >>>
> >> >> >>> I just wanted to let you know that we were able to successfully
> >> >> >>> demo
> >> >> >>> our template file this past Sunday with about a dozen volunteers
> >> >> >>> from
> >> >> >>> the Special Libraries Association who will be working in the 700
> >> >> >>> lesson files in Etoys on their own in the coming days.
> >> >> >>>
> >> >> >>>
> http://www.flickr.com/photos/curiouslee/6376689783/in/photostream
> >> >> >>>
> >> >> >>> I made a 29-minute screencast of our process and posted it to
> >> >> >>> YouTube:
> >> >> >>>
> >> >> >>> http://www.youtube.com/watch?v=4LcwApLN7DA
> >> >> >>>
> >> >> >>> And the supporting document is on Scribd:
> >> >> >>>
> >> >> >>>
> >> >> >>>
> >> >> >>>
> >> >> >>>
> http://www.scribd.com/doc/73438581/LubutoLiteracy-Lessons-Production-Notes-…
> >> >> >>>
> >> >> >>> Mike
> >> >> >>>
> >> >> >>>
> >> >> >>> On Mon, Nov 14, 2011 at 1:53 AM, Steve Thomas
> >> >> >>> <sthomas1(a)gosargon.com>
> >> >> >>> wrote:
> >> >> >>> > On Mon, Nov 14, 2011 at 12:49 AM, Mike Lee <
> curiouslee(a)gmail.com>
> >> >> >>> > wrote:
> >> >> >>> >>
> >> >> >>> >> I'd still like the project local reverb disable button in the
> >> >> >>> >> Score
> >> >> >>> >> Player to work one day sooner than later.
> >> >> >>> >
> >> >> >>> > Tested in 4.1.2 Alpha (next version not yet released) and it
> >> >> >>> > seems
> >> >> >>> > Karl
> >> >> >>> > fixed the reverb problems. So hopefully sooner.
> >> >> >>> > Of course the really cool things in next version are: Pie's,
> >> >> >>> > Stencil's
> >> >> >>> > and
> >> >> >>> > perhaps one or two other surprises!!!
> >> >> >>> > Stephen
> >> >> >>
> >> >> >>
> >> >> >> _______________________________________________
> >> >> >> squeakland mailing list
> >> >> >> squeakland(a)squeakland.org
> >> >> >> http://lists.squeakland.org/mailman/listinfo/squeakland
> >> >> >>
> >> >> >
> >> >> >
> >> >
> >> >
> >
> >
>
Karl Ramberg uploaded a new version of Morphic to project Etoys:
http://source.squeak.org/etoys/Morphic-kfr.72.mcz
==================== Summary ====================
Name: Morphic-kfr.72
Author: kfr
Time: 24 November 2011, 5:35:47 pm
UUID: 9cd4d9db-3304-c844-8818-95f3bc1afa78
Ancestors: Morphic-kfr.67
Partial fix for triggering opening and closing scripts.
No fix for book pages yet.
http://tracker.squeakland.org/browse/SQ-999
=============== Diff against Morphic-kfr.67 ===============
Item was changed:
----- Method: PasteUpMorph>>triggerClosingScripts (in category 'world state') -----
triggerClosingScripts
"If the receiver has any scripts set to run on closing, run them now"
| aPlayer |
+ self allMorphsDo:[ :m|
+ (aPlayer := m player) ifNotNil:
+ [aPlayer runAllClosingScripts]]!
- (aPlayer _ self player) ifNotNil:
- [aPlayer runAllClosingScripts]!
Item was changed:
----- Method: PasteUpMorph>>triggerOpeningScripts (in category 'world state') -----
triggerOpeningScripts
"If the receiver has any scripts set to run on opening, run them now"
| aPlayer |
+ self allMorphsDo:[ :m|
+ (aPlayer := m player) ifNotNil:
+ [aPlayer runAllOpeningScripts]]!
- (aPlayer _ self player) ifNotNil:
- [aPlayer runAllOpeningScripts]!
Karl Ramberg uploaded a new version of Tools to project Etoys:
http://source.squeak.org/etoys/Tools-kfr..9.mcz
==================== Summary ====================
Name: Tools-kfr..9
Author: kfr.
Time: 21 November 2011, 11:57:52 am
UUID: 55d42d24-4804-d048-95a6-acd2b5fd2cd6
Ancestors: Tools-kfr.8
Inspectors where too cramped up. Adjust a little.
=============== Diff against Tools-kfr.8 ===============
Item was changed:
----- Method: Inspector class>>horizontalDividerProportion (in category 'instance creation') -----
horizontalDividerProportion
+ ^ 0.4!
- ^ 0.3!
Item was changed:
----- Method: Inspector>>initialExtent (in category 'accessing') -----
initialExtent
"Answer the desired extent for the receiver when it is first opened on the screen. "
+ ^ 300 @ 250!
- ^ 250 @ 200!
So the argument I have heard as to why Etoys does not have a single Step
Debugging like Scratch seem to go along the lines of "If we step one
script, the whole world waits".
I have two responses to this:
1. So?
2. Should we let the search for an elegant solution (that a few
developers will see and appreciate) prevent us from providing a tool that
can positively impact many children?
*So on "So?":*
So what if the whole world stops?
Yes, I know and can think of some cases where this will impact the ability
to debug certain issues, but my guess is these are a small minority of
cases and I do not see any negative consequences (other than the single
step debugging is not ideal in these few cases, but it would still be
better than no single step debugger).
*A solution versus an elegant solution:*
Another way to solve this problem (which I will assume others have thought
of, so I am probably missing something) is to do something similar to what
Bert did in his Squeakland presentation where you "roll your own tiles" and
place them in special holders (like "do together" or "do one at a time").
When you click on "debug" or some other similar script icon, a new
"special script" is instantiated that has a copy of each tile, but it
operates one "step" at a time, doing the step during its cycle. This would
allow the whole world to continue to run and provide single step execution
of tiles (or copies of those tiles inside a special scriptor, that runs one
tile at a time.).
The one addition I would make to the approach above is along the line's of
the one in Scott's recent
talk<http://tinlizzie.org/~bert/scott-2011-11-08-q35.mp4>.
Where you add an icon (the exclamation point in a yellow circle) to allow
the user to execute one tile at a time in any order/timing they want.
Another possibility would be to allow the user to "toggle" the visibility
of a yellow exclamation point for each tile, this would be to allow kids to
display the "fire tile" icon and just click through one at a time, which
would also allow single step debugging (versus run at a slow pace, and
frankly I prefer kids click each time, as it forces them to slow down and
think. When doing "Test" tiles not sure if you should highlight "Yes" or
"No" or just skip to the first tile in that section. I lean toward the
former.
Stephen
On 02.11.2011, at 14:15, Derek O'Connell (JIRA) wrote:
> [ http://tracker.squeakland.org/browse/SQ-998 ]
>
> Derek O'Connell commented on SQ-998:
> ------------------------------------
>
> Karl, color picker? Do you mean the button, PaintBoxColorPicker, or PaintBoxMorph>>eyedropper:action:cursor:evt: ? I have still to digest SketchEditorMorph>>mouseMove: but it mentions "eventRecorders", although I admit to finding the code a little tortuous so maybe there is a simpler solution.
Please don't use the bug tracker for discussions (*). That's what the mailing list is for :)
Basically, any direct reference to Sensor circumvents the Morphic event processing. It is from the old MVC days. The only legal usage is in HandMorph, which needs to read events from Sensor.
So there are a couple of offenders:
SystemNavigation default browseAllSelect: [:m |
(m hasLiteralThorough: #Sensor)
and: [m methodClass inheritsFrom: Morph] ]
PaintBoxMorph>>eyedropper:action:cursor:evt: is one of them, as is PasteUpMorph>>chooseClickTarget (which is used to select players).
- Bert -
(*) http://producingoss.com/en/bug-tracker.html
A new version of Etoys was added to project Etoys Inbox:
http://source.squeak.org/etoysinbox/Etoys-kfr..102.mcz
==================== Summary ====================
Name: Etoys-kfr..102
Author: kfr.
Time: 14 November 2011, 11:54:29 am
UUID: aa85848e-40a2-e649-8df9-d07d203c9718
Ancestors: Etoys-kfr..101
Stop playing current sound before starting another.
Avoids tight looping of sound playing, like pressing the (!) button or stepping a script several times a second.
Means that to play a polyfony you must have one player per sound.
Must be reviewed...
=============== Diff against Etoys-kfr..101 ===============
Item was changed:
----- Method: Player>>beep: (in category 'slots-user') -----
beep: anObject
"Play given sound or at least beep."
| sound |
+ self stopPlay.
anObject isString
ifTrue:
[sound := SoundService default playSoundNamedOrBeep: anObject.
(sound respondsTo: #stopGracefully)
ifTrue: [self costume setProperty: #sound toValue: anObject.
self costume setProperty: #playingSound toValue: sound]]
ifFalse:
[SoundPlayer resumePlaying: anObject quickStart: true]
!