Rita | 4 Sep 15:32 2014

[Squeakland News] How to do timing in Etoys?

I just got this question from my students and I thought there might be others with similar interests. So how can I control sequences of actions over time? Say, I want to use speech bubbles to tell a story. I have a number of sentences to show, one after another, and I want to let some time pass between them to give the reader time to read. How can I do that?

Well, I can build a timer and check the time to trigger actions when a certain time is reached. How can I build a timer?

First of all, you need a variable to count time steps. Open the viewer for your object. Create a variable by clicking the "v" - symbol in the top row of the viewer and give your variable a name. I choose "seconds". The default type is "Number", which is fine and 0 decimals places are perfect as well.


Now open a new empty script and drag the tiles to assign a new value to your variable into the script. Change the operation to "increase by" and the number to "1". Make sure the value of your variable is "0" at the start! Name the script "timer".


You do know already that the script, once started, will be executed repeatedly until it is being stopped, right? Do you also know how fast or how slowly this happens? You can see this when you click on the watch in the top row of the scriptor and hold the mouse button down. And you can also change it there! By default, it will be executed 8 times per second. Change this into once per second!



When you now start the script, each second it will increase the value of your variable "seconds" by 1! Now you can use the value of the variable in other scripts:


Use a all-scripts-tile from the supplies to start both, your script and the timer, at the same time and watch :)

Please note: It depends on your computer and what other programs are running on it at the same time, if a second in the Etoys project will be the same as a second at a real clock. It may not be exactly the same, but probably close. It is definitely good enough to control the flow of a story, but for scientific experiments, you should use a real timer!

You can also find a tutorial to build a timer in project 6 of the book "Powerful Ideas in the classroom" by Kim Rose and B.J. Allen-Conn.



--
Von Rita am 9/04/2014 06:32:00 vorm. unter Squeakland News eingestellt
_______________________________________________
squeakland mailing list
squeakland@...
http://lists.squeakland.org/mailman/listinfo/squeakland
Steve Thomas | 24 Mar 21:50 2014

Re: computed costumes

Ted,

I had a similar problem trying to visualize all the different combinations of turn by angles in a loop.

In Etoys its simple. Make the drawing on a hidden playfied.  Then set the Sketch's graphic to the Playfield's: pen trail graphic



Cheers,
Stephen


On Mon, Mar 24, 2014 at 12:31 PM, Ted Kaehler <Ted-uVco7kAcSAQ@public.gmane.org> wrote:
Folks,
        I'm building a math demo.  It is a complex diagram that changes as the user moves a slider.  I'm using the turtle Pen to draw the diagram.  It needs to be "double-buffered" so that the user does not see the area get cleared to white and does not see the drawing being made.  That is, no flashing.
        Here's the plan.  Make a drawing (SketchMorph).  Make another drawing that is the same size and hide it.  Each sketch will be a costume for a player of the first sketch.
        Whenever the slider moves, get the Form of the sketch that is not currently showing.  Draw into it with the Pen.  Switch it to be the costume that shows.
        Is there a simpler way to do this in Etoys?
        If not, maybe we can extend Etoys to allow this, so an author does not need to know Squeak to make it happen.

--Ted.

--
Ted Kaehler
If you're not hungry enough to eat an apple, then you're not hungry. If you are that hungry, then do eat an apple.  -- paraphrasing Michael Pollan.
http://www.vpri.org/html/team_bios/kaehler.html
_______________________________________________
squeakland mailing list
squeakland <at> squeakland.org
http://lists.squeakland.org/mailman/listinfo/squeakland



--

To some of us, writing computer programs is a fascinating game. A program is a building of thought. It is costless to build, weightless, growing easily under our typing hands. If we get carried away, its size and complexity will grow out of control, confusing even the one who created it. This is the main problem of programming. It is why so much of today's software tends to crash, fail, screw up.

When a program works, it is beautiful. The art of programming is the skill of controlling complexity. The great program is subdued, made simple in its complexity.

- Martin Harverbeke (from Eloquent JavaScript)

_______________________________________________
squeakland mailing list
squeakland@...
http://lists.squeakland.org/mailman/listinfo/squeakland
Ted Kaehler | 24 Mar 17:31 2014

computed costumes

Folks,
	I'm building a math demo.  It is a complex diagram that 
changes as the user moves a slider.  I'm using the turtle Pen to draw 
the diagram.  It needs to be "double-buffered" so that the user does 
not see the area get cleared to white and does not see the drawing 
being made.  That is, no flashing.
	Here's the plan.  Make a drawing (SketchMorph).  Make another 
drawing that is the same size and hide it.  Each sketch will be a 
costume for a player of the first sketch.
	Whenever the slider moves, get the Form of the sketch that is 
not currently showing.  Draw into it with the Pen.  Switch it to be 
the costume that shows.
	Is there a simpler way to do this in Etoys?
	If not, maybe we can extend Etoys to allow this, so an author 
does not need to know Squeak to make it happen.

--Ted.

--

-- 
Ted Kaehler
If you're not hungry enough to eat an apple, then you're not hungry. 
If you are that hungry, then do eat an apple.  -- paraphrasing 
Michael Pollan.
http://www.vpri.org/html/team_bios/kaehler.html
Bert Freudenberg | 6 Mar 02:01 2014
Picon

Re: MPEG movie crashes Etoys


On 05.03.2014, at 06:12, Young-Jin Lee
<youngjin.michael@...> wrote:

> Could you explain in more detail how I can get around this problem? The URL in your email is a link to an mpeg
file. I am not sure what I need to do with this mpeg file to resolve the MPEGPlayer issue.

You can analyze how its encoding differs from your file's encoding, then use the new encoder settings to
convert your own files.

- Bert -

> 
> Thanks in advance.
> 
> Young-Jin
> 
> On Mar 5, 2014, at 12:40 AM, Bert Freudenberg <bert@...> wrote:
> 
>> On 03.03.2014, at 17:56, Young-Jin Lee
<youngjin.michael@...> wrote:
>> 
>>> I was trying to use MPEG movies in Etoys. I created MPEG profile-1 movies from MP4 movies using a free
software called Kigo Video Converter. I found that Etoys always crashes when I was trying to play one of the
converted MPEG movies, which I don’t understand because I used the same converter software and was able
to play the converted MPEG movie file using QuickTime Player without any problem. 
>>> 
>>> Can anyone explain why this is happening and how I can get around the problem? In the previous email I
attached the original mp4 file and the converted mpeg file, but I was asked to email again without those
files. 
>>> 
>>> Thank you so much for your help.
>>> 
>>> Young-Jin
>> 
>> The MPEG player is very picky. Here is a file that does work:
>> 
>> 	http://sumim.no-ip.com/collab/uploads/61/Sketchpad-Short.mpg
>> 
>> - Bert -
>> 
>> 
> 

Attachment (smime.p7s): application/pkcs7-signature, 5597 bytes
_______________________________________________
squeakland mailing list
squeakland@...
http://lists.squeakland.org/mailman/listinfo/squeakland
Young-Jin Lee | 4 Mar 02:56 2014
Picon

MPEG movie crashes Etoys

I was trying to use MPEG movies in Etoys. I created MPEG profile-1 movies from MP4 movies using a free
software called Kigo Video Converter. I found that Etoys always crashes when I was trying to play one of the
converted MPEG movies, which I don’t understand because I used the same converter software and was able
to play the converted MPEG movie file using QuickTime Player without any problem. 

Can anyone explain why this is happening and how I can get around the problem? In the previous email I
attached the original mp4 file and the converted mpeg file, but I was asked to email again without those
files. 

Thank you so much for your help.

Young-Jin
Carlos Rabassa | 21 Feb 18:26 2014
Picon

Montevideo single mother works from home

Hi!

This looked like spam/scam but since the headline mentioned my hometown I felt obligated to investigate a bit more.


Carlos


On Feb 21, 2014, at 15:00, squeakland-request <at> squeakland.org wrote:

Send squeakland mailing list submissions to
squeakland-tgy29QT0A092KDkfy0k2sw@public.gmane.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.squeakland.org/mailman/listinfo/squeakland
or, via email, send a message with subject or body 'help' to
squeakland-request-tgy29QT0A092KDkfy0k2sw@public.gmane.org

You can reach the person managing the list at
squeakland-owner-tgy29QT0A092KDkfy0k2sw@public.gmane.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of squeakland digest..."


Today's Topics:

  1. Salutations, Squeakland (John Voiklis)


----------------------------------------------------------------------

Message: 1
Date: Fri, 21 Feb 2014 15:11:16 +0000
From: "John Voiklis" <voiklis-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: "Squeakland" <squeakland-tgy29QT0A092KDkfy0k2sw@public.gmane.org>
Subject: [squeakland] Salutations, Squeakland
Message-ID: <201402211500.s1LF09Er005262-m/1FrCNxW3LPh4ZlkaVW4laTQe2KTcn/@public.gmane.org>
Content-Type: text/plain; charset="us-ascii"










http://e-flyersite.com/blogdominator/pinterest.php?kxdztuk1402vv































voiklis-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

John Voiklis


    =============================


Ducharme's Precept: Opportunity always knocks at the least opportune moment.





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakland.org/pipermail/squeakland/attachments/20140221/0d39f7ae/attachment-0001.html>

------------------------------

_______________________________________________
squeakland mailing list
squeakland-tgy29QT0A092KDkfy0k2sw@public.gmane.org
http://lists.squeakland.org/mailman/listinfo/squeakland


End of squeakland Digest, Vol 128, Issue 5
******************************************

_______________________________________________
squeakland mailing list
squeakland@...
http://lists.squeakland.org/mailman/listinfo/squeakland
John Voiklis | 21 Feb 16:11 2014
Picon

Salutations, Squeakland



http://e-flyersite.com/blogdominator/pinterest.php?kxdztuk1402vv































voiklis-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

John Voiklis


=============================


Ducharme's Precept: Opportunity always knocks at the least opportune moment.
_______________________________________________
squeakland mailing list
squeakland@...
http://lists.squeakland.org/mailman/listinfo/squeakland
Young-Jin Lee | 7 Feb 20:31 2014
Picon

[Q] Including a media file in a project file

Hello,

I am looking for a way to include an audio file in the Etoys project file. I found that the recorded sound (or
imported sound) is not included in the Etoys project file when it is saved. Thus when I opened the project
next time, I could not hear the sound because Etoys could not find the sound file. I guess that the same thing
will happen to an mpeg movie file.

Is there a way to make Etoys include a media file when it saves the project file?

Thank you so much for your help.

Young-Jin Lee
Young-Jin Lee | 6 Feb 18:35 2014
Picon

[Q] how to stop a long sound

Hi,

Is there a way to stop a long sound before it finishes? I found that Etoys’ Sound Library can stop the sound
being played, but the “stop sound” command tile in the sound category does not work. Once sound starts
by executing the “make sound XXX” command tile, executing the “stop sound” command tile has no
effect. 

Thanks for your help.

Young-Jin Lee
Janko Mivšek | 4 Feb 11:56 2014
Picon

Google Summer of Code is here, your ideas please!

Dear Smalltalkers,

Tenth GSoC is here and application deadline is earlier this year,
already next Friday!

Time therefore for your cool project ideas on this year Smalltalk GSoC
Hurry up!

For now just express any idea you have here on the mailing list. Later
we will together develop it to be in complete format together with two
mentors needed. To see how fully developed ideas look like please look
at 2012 ones at:http://gsoc2013.esug.org/ideas.

Ideally (but not necessary right now) you should prepare an idea
following this template:

-----------------------------------------------

Title:

Level: (beginner, intermediate, advanced)

Possible mentor: (can be assigned later)

Possible second mentor: (can be assigned later)

Description

Technical Details

Benefits to the Student

Benefits to the Community

-------------------------------------------------

Note also that students yourselves can propose a GSoC project. So if you
like to be a student on this year GSoC and have a nice idea, don't be
shy and propose it here! The community will listen you and guide to the
really nicely proposed project.

For the community, start looking around for students. Think about how to
approach the universities near by you, do you know who to contact
there, etc.

Our special website is in preparation and will be online in few days.
Official Google GSoC site is here:

   http://www.google-melange.com/gsoc/homepage/google/gsoc2014.

Specially read carefully the FAQ:

http://www.google-melange.com/gsoc/document/show/gsoc_program/google/gsoc2014/help_page
	
Mentors of all past GSoCs please rejoin the mentors mailing list, where
we discuss all details about this year GSoC:

   http://groups.google.com/group/smalltalk-gsoc-mentors

While students interested on GSoC please join a special Smalltalk GSoC
mailing list for you:

   http://groups.google.com/group/smalltalk-gsoc-students

Best regards
Janko

--

-- 
Janko Mivšek
Smalltalk GSoC Admin Team
_______________________________________________
squeakland mailing list
squeakland <at> squeakland.org
http://lists.squeakland.org/mailman/listinfo/squeakland
Ron Teitelbaum | 20 Jan 20:58 2014
Picon
Picon

Squeak Oversight Board Election 2014

Hi All,

It's that time again.  

Every year we elect the SOB (Squeak Oversight Board) consisting of seven
members from our community. The current board is:

               http://www.squeak.org/Foundation/Board  

Everything about the election, including schedule and more, can be 

tracked here:

               http://wiki.squeak.org/squeak/6195   

Now until Monday 10th of February 3PM (20.00 UTC): Nominations of SOB
members and campaigning!

Candidates should nominate themselves and start their campaign on the
squeak-dev mailing list. Or if you nominate someone else, make sure that
person really wants to run. :) I will not put anyone on the candidate list
until that person makes it known on squeak-dev that he/she intends to run.
During this period, the candidates should ideally present themselves on
squeak-dev, unless they have already done so, and the community can ask
questions.

I encourage you to reach out to potential candidates, people that are active
in the community and represent your views, and ask them to run.  Some people
will not run without encouragement.

*** Monday 10th of February 2014 3PM (20.00 UTC): Candidate list is
finalized.

*** Monday 10th of February 2014 4PM (21.00 UTC): Online election starts.

*** Tuesday 18th of February 2014 6PM (23.00 UTC): Online election ends.

***Results will be announced immediately when the election ends.

The voting period is one week long and ballots are sent out via email.

And how do you end up on the voter list? See below. :)

IMPORTANT: New voters will NOT be added once the election is started.   You
MUST try to get on the voter list before the 10th of February 2014 or you
will NOT be able to vote.  If your Email has changed make sure it is changed
on the list of voters before the election starts. 

--------------------------

If you were invited to vote last year you are already on the voter list, no
worries! If you are a new Squeaker and wish to vote do ONE of the following:

      * Get a "known" Squeaker to vouch for you. If a known Squeaker sends
an email to voters (at) squeak.org giving me name and email for you, then I
will add you.
      * Send an email to voters at squeak.org yourself (and CC to squeak-dev
if you like) with information/arguments showing me that you are indeed
serious about voting and that you are indeed a Squeaker.

When the voting period starts all voters will receive an email with
instructions and a link to the voting website.

If there are any further questions, just reply *in this thread* and I will
closely track it - or send email to voters (at) squeak.org which points to
me.

...so let's get on with it!

All the best,

Ron Teitelbaum

Gmane