This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#4701 2012-02-29 14:19:11

Jutros
New Scratcher
Registered: 2011-01-24
Posts: 7

Re: BYOB 3 - Discussion Thread

When I tried to rename a sprite, on entering a new name it was suddenly typing right to left. That is "etirps", when I typed "sprite". It does not happen every time, but I was able to reproduce the bug (?) one time.

Using Firefox 10.0.2
No languages like Hebrew installed.

--Jutros

Offline

 

#4702 2012-02-29 15:07:02

xly
Scratcher
Registered: 2010-04-17
Posts: 100+

Re: BYOB 3 - Discussion Thread

@Jens & nXIII
I make a very simple application, without the instruction SET PEN COLOR TO. It can be Saved/Loaded with no problem. If I add one instruction SET PEN COLORI to the same application , then Save does not work. I get the Error message " Save failed : Type Error.object.toXML is not a function". If I try to save it again, I get the Saved! message, but then the application can't be Loaded anymore.

Offline

 

#4703 2012-02-29 17:18:34

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: BYOB 3 - Discussion Thread

Jutros wrote:

When I tried to rename a sprite, on entering a new name it was suddenly typing right to left. That is "etirps", when I typed "sprite". It does not happen every time, but I was able to reproduce the bug (?) one time.

Using Firefox 10.0.2
No languages like Hebrew installed.

--Jutros

Yes, that happens to me, it writes things backwards  smile


http://i.imgur.com/zeIZW.png

Offline

 

#4704 2012-02-29 17:25:42

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Jutros wrote:

When I tried to rename a sprite, on entering a new name it was suddenly typing right to left. That is "etirps", when I typed "sprite". It does not happen every time, but I was able to reproduce the bug (?) one time.

Using Firefox 10.0.2
No languages like Hebrew installed.

--Jutros

Yes, if you delete more characters than are present with backspace, it types backwards until the position is positive again.

xly wrote:

@Jens & nXIII
I make a very simple application, without the instruction SET PEN COLOR TO. It can be Saved/Loaded with no problem. If I add one instruction SET PEN COLORI to the same application , then Save does not work. I get the Error message " Save failed : Type Error.object.toXML is not a function". If I try to save it again, I get the Saved! message, but then the application can't be Loaded anymore.

This should be fixed when my patch is filed in.


nXIII

Offline

 

#4705 2012-03-01 03:20:38

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Hardmath123 wrote:

call/cc? (don't tell me the answer, just if I'm on the right track).

Oh, that's interesting, I bet you could do at least some kinds of recursion using call/cc.  But that's not the official answer; all you need is lambda (as the Beatles explained, only they misread the word "lambda").  smile

Got it! After finishing my work in adjectives in English, I daydreamed up this:
http://www.imgpaste.com/NhIx.gif
I bet I'd never have thought of that if you hadn't told me it was possible.  big_smile

Is that the official answer?

Last edited by Hardmath123 (2012-03-01 03:22:20)


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#4706 2012-03-01 07:12:48

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

Is that the official answer?

You're awesome!!!

The official answer is essentially that, but with one little wrinkle
to allow making it into a one-input function:

http://byob.berkeley.edu/y-combinator.png

They're teaching you adjectives in English?  How old are you?  (I know, I'm not allowed to ask that, never mind.  Just surprised.)


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#4707 2012-03-01 07:16:55

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Hey, everybody, please try your favorite Snap! bug again and let us know if it still isn't fixed.  Thanks!


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#4708 2012-03-01 07:40:25

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Here's my favorite watcher-related bug:

#open:<project name="list loop" version="1"><notes></notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPAAAAC0CAYAAACqnKHoAAAD7UlEQVR4nO3bP24TeRzG4a/xehKbUIHckAgJWiSElAIhJOQod8hdOEFSUqP00HEGWhoqVxwhTSqLeDKz1Vpr/kVssZNXep7OcvNK9md+o7E86vu+LyDSnaEHAP+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AChmAChmAChmAChmAChmAChmAChmAChmAChmAChmAChmAChmAChmAChmAChmAChmAChmAChmAChmAChmAChmAChmB/Ay+FgslzmbeBAAAAAElFTkSuQmCC</thumbnail><stage costume="0" id="0"><variables></variables><media></media><blocks></blocks><scripts></scripts><sprites><sprite name="Sprite" x="28.442978870300976" y="-8.057855533544426" heading="187" color="80,80,80" id="5"><variables><variable name="loop"><list id="7"><item><ref id="7"></ref></item></list></variable></variables><media></media><blocks></blocks><scripts><script x="20" y="20"><block s="doSetVar"><l>loop</l><block s="reportNewList"><list></list></block></block><block s="doAddToList"><block var="loop"/><block var="loop"/></block></script><script x="20" y="82"><block s="doSetVar"><l>loop</l><l>0</l></block></script><script x="20" y="121"><block s="doForever"><script><block s="doSetVar"><l>loop</l><block s="reportListItem"><l>1</l><block var="loop"/></block></block><block s="forward"><l>1</l></block><block s="turn"><l>3</l></block></script></block></script></scripts></sprite><watcher scope="Sprite" var="loop" x="253" y="244" color="243,118,29" hidden="hidden"/></sprites></stage></project>

Last edited by nXIII (2012-03-01 07:43:30)


nXIII

Offline

 

#4709 2012-03-01 07:50:36

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

mine's fixed (dropdowns), input's still buggy  smile

Offline

 

#4710 2012-03-01 08:16:11

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Hardmath123 wrote:

Is that the official answer?

You're awesome!!!

big_smile

bharvey wrote:

The official answer is essentially that, but with one little wrinkle
to allow making it into a one-input function:

http://byob.berkeley.edu/y-combinator.png

Huh? How does that work again?
EDIT: I think I understood: you'd use

Code:

(Call (Call (theAboveGunk) with inputs (script with input names "myself" and "input" in that order)) with inputs (input))

right?

bharvey wrote:

They're teaching you adjectives in English?  How old are you?  (I know, I'm not allowed to ask that, never mind.  Just surprised.)

Middle school. The exercise was making adjectives from nouns (Snap => Snappy).

bharvey wrote:

Hey, everybody, please try your favorite Snap! bug again and let us know if it still isn't fixed.  Thanks!

Not a bug, but ÷ still looks exactly like +. If you're demonstrating it tomorrow, you won't have the APL stuff, so I think you'd survive with "/".  smile

Last edited by Hardmath123 (2012-03-01 12:17:58)


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#4711 2012-03-01 12:03:10

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: BYOB 3 - Discussion Thread

joefarebrother wrote:

mine couldn't save it said "colorPickerMorph has no method 'toXml''" or something like that.
edit: I pressed save again and it saved!

another edit: When I opened it it is was just a stage, no sprites.


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#4712 2012-03-01 12:29:27

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

numpad dot doesn't work  smile
(in number slots, of course  big_smile )

saving operations open with some weird letters (w7, firefox 10)
only / and *, maybe unicode issue...
hebrew letters work, as well as other weird unicodes :S
http://i.imgur.com/Gi5kU.jpg

Last edited by roijac (2012-03-01 12:50:26)

Offline

 

#4713 2012-03-01 12:55:21

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

when you delete project, you can still open it, resulting in an error message TypeError: stream.contents is null

mixing RTL with LTR makes the letters transparent:
http://i.imgur.com/Kz7xr.jpg
(the marked letters are invisible)

need some more?  tongue

Offline

 

#4714 2012-03-01 13:51:17

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: BYOB 3 - Discussion Thread

i am working on a scratch/BYOB to Snap! converter if you have any basic knowlede of regular expressions please help!
how to add a block(please post this):

Code:

<block>
    <old>regexp to find block</old>
    <new>regexp to replace block</new>
  </block>

the blocks checked against old are the blocks from project summaries
new should make something like:

Code:

<block s="receiveGo">

Last edited by TRocket (2012-03-01 13:54:18)


http://i.imgur.com/1QqnHxQ.png

Offline

 

#4715 2012-03-01 14:11:43

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

right?

Yeah.  The virtue is that you can

SET (FACTORIAL) TO ...

and then have a plain old one-input factorial function.

It's called the Y combinator.  (Except it's simplified because in real lambda calculus functions only have one input, so instead of

THE ... BLOCK. INPUT NAMES (#1) (#2)

you have to say

THE [THE ... BLOCK.  INPUT NAMES (#2)] BLOCK.  INPUT NAMES (#1)

so if you look it up you'll see something a little more complicated than what I posted.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#4716 2012-03-01 14:14:47

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

roijac wrote:

input's still buggy  smile

joefarebrother wrote:

When I opened it it is was just a stage, no sprites.

roijac wrote:

saving operations open with some weird letters (w7, firefox 10)
only / and *, maybe unicode issue...

when you delete project, you can still open it

OK, I'm sorry I asked.  smile


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#4717 2012-03-01 14:40:19

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Here's my bug report for the day:

http://cs.berkeley.edu/~bh/snapbug.png

Those were grey-bordered * blocks when the project was saved.

There are two bugs here; one is roijac's one about the name changing, whether or not a grey border is used.  The other is that all the grey borders disappear.  (Maybe we're doing away with grey borders, in which case we should do away with them soon!  smile )


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#4718 2012-03-01 21:18:37

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: BYOB 3 - Discussion Thread

When downloaded for mac, when you minimize the window, It has the scratch cat on the bottom right corner on the dashboard

Offline

 

#4719 2012-03-02 03:03:50

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Here's my bug report for the day:

http://cs.berkeley.edu/~bh/snapbug.png

Those were grey-bordered * blocks when the project was saved.

There are two bugs here; one is roijac's one about the name changing, whether or not a grey border is used.  The other is that all the grey borders disappear.  (Maybe we're doing away with grey borders, in which case we should do away with them soon!  smile )

the third is that the digits are cut  tongue

Offline

 

#4720 2012-03-02 20:53:18

BornAgainAtheist
New Scratcher
Registered: 2012-02-13
Posts: 42

Re: BYOB 3 - Discussion Thread

Anyone want help work on a snap (possibly standard) library, since we don't have BYOB's standard lib for Snap ;(

Offline

 

#4721 2012-03-02 20:55:22

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: BYOB 3 - Discussion Thread

BornAgainAtheist wrote:

Anyone want help work on a snap (possibly standard) library, since we don't have BYOB's standard lib for Snap ;(

Actually, I'm working on a BYOB project importer, so we may be able to use BYOB's library  smile


nXIII

Offline

 

#4722 2012-03-02 23:32:43

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

nXIII wrote:

we may be able to use BYOB's library

The plan is actually to divide the tools library into subsets that can be loaded independently.  A few of them will be loaded automatically, as quasi-primitives (ASK and TELL for oop, probably; maybe MAP, KEEP, and COMBINE too).  One clearly separable collection is the one about words and sentences.

I'd really like to find a way to make the loading automatic, but can't quite see how, since a block isn't in the palette until you've loaded its library!

Something you could clearly do to help, n, is to add Import to the file menu.  Given that, we could start writing tool projects.

By the way, as of today, http://snap.berkeley.edu/run is a shortcut to the current build; the need for an easy-to-explain path came up in planning our Snap! lunch talk.

P.S.  It's been a great conference; we've made a lot of contacts with teachers wanting to host BJC teacher workshops.  (I couldn't tell you much about the rest of the conference; I've hardly had time to attend any sessions other than the ones we're running!  tongue )  At next year's conference in Denver we plan to run a full-day teacher workshop the day before the conference.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#4723 2012-03-03 00:31:40

BornAgainAtheist
New Scratcher
Registered: 2012-02-13
Posts: 42

Re: BYOB 3 - Discussion Thread

nXIII wrote:

BornAgainAtheist wrote:

Anyone want help work on a snap (possibly standard) library, since we don't have BYOB's standard lib for Snap ;(

Actually, I'm working on a BYOB project importer, so we may be able to use BYOB's library  smile

Until then, Brian & Jens, would you distribute it if I made a Snap copy of all the functions from BYOB's tool sprite? I'd like to help somehow and unless you need a Python coder or very very green JS coder for something, I don't think I could be any help in the actual coding.

Offline

 

#4724 2012-03-03 06:25:27

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: BYOB 3 - Discussion Thread

BornAgainAtheist wrote:

nXIII wrote:

BornAgainAtheist wrote:

Anyone want help work on a snap (possibly standard) library, since we don't have BYOB's standard lib for Snap ;(

Actually, I'm working on a BYOB project importer, so we may be able to use BYOB's library  smile

Until then, Brian & Jens, would you distribute it if I made a Snap copy of all the functions from BYOB's tool sprite? I'd like to help somehow and unless you need a Python coder or very very green JS coder for something, I don't think I could be any help in the actual coding.

This has just got me an idea: Mesh in Snap. It's possible to create a Python server for Scratch and BYOB to connect to, what about Snap?

Offline

 

#4725 2012-03-03 07:02:03

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Please add these, they're really helpful:

Code:

    blocks.push(block(
            'reporter',
            'operators',
            'join %s %s',
            'concatString',
            ["Hello, ", "world"]
        ));

SpriteMorph.prototype.concatString = function (stringa, stringb) {
    return ""+stringa+stringb;
};


    blocks.push(block(
            'reporter',
            'operators',
            'letter %n of %s',
            'getLetterOfString',
            [3, "snap"]
        ));

SpriteMorph.prototype.getLetterOfString = function (index, stringIn) {
    return stringIn.charAt(index+1);
};

Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

Board footer