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

#4601 2012-02-19 16:32:31

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Is there a way to save the block after you make it so it shows up every time you open BYOB. Save image for End User doesn't work.


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#4602 2012-02-19 17:09:45

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

Re: BYOB 3 - Discussion Thread

funelephant wrote:

Is there a way to save the block after you make it so it shows up every time you open BYOB. Save image for End User doesn't work.

If you export a sprite, it carries your custom blocks with it.  You can then import the sprite into new projects.  Name the sprite something other than "sprite1" before exporting it.


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

Offline

 

#4603 2012-02-19 17:17:03

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

funelephant wrote:

Is there a way to save the block after you make it so it shows up every time you open BYOB. Save image for End User doesn't work.

If you export a sprite, it carries your custom blocks with it.  You can then import the sprite into new projects.  Name the sprite something other than "sprite1" before exporting it.

Thanks  big_smile


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#4604 2012-02-19 17:57:52

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

funelephant wrote:

Is there a way to save the block after you make it so it shows up every time you open BYOB. Save image for End User doesn't work.

If you export a sprite, it carries your custom blocks with it.  You can then import the sprite into new projects.  Name the sprite something other than "sprite1" before exporting it.

Is there a way to change the default sprite?


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#4605 2012-02-19 18:09:39

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

Re: BYOB 3 - Discussion Thread

funelephant wrote:

Is there a way to change the default sprite?

From the Scratch readme:

You can replace the default cat sprite with a sprite of your own. You default sprite can include multiple costumes, sounds, and even scripts. To set this up, just create your sprite and export it. (To export, right-click on the sprite and choose "export this sprite."). Then rename it "default.sprite" and place it in the Costumes folder.


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

Offline

 

#4606 2012-02-19 18:14:57

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

funelephant wrote:

Is there a way to change the default sprite?

From the Scratch readme:

You can replace the default cat sprite with a sprite of your own. You default sprite can include multiple costumes, sounds, and even scripts. To set this up, just create your sprite and export it. (To export, right-click on the sprite and choose "export this sprite."). Then rename it "default.sprite" and place it in the Costumes folder.

Does it work in BYOB?


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#4607 2012-02-19 18:25:23

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

Re: BYOB 3 - Discussion Thread

funelephant wrote:

Does it work in BYOB?

But of course!


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

Offline

 

#4608 2012-02-19 18:32:16

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

funelephant wrote:

Does it work in BYOB?

But of course!

I tried it, and the old default sprite showed up.  tongue


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#4609 2012-02-19 19:05:53

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

Re: BYOB 3 - Discussion Thread

funelephant wrote:

I tried it, and the old default sprite showed up.  tongue

Oops, you have to call it "default.ysp" sorry.

Last edited by bharvey (2012-02-19 19:10:05)


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

Offline

 

#4610 2012-02-19 20:30:33

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

funelephant wrote:

I tried it, and the old default sprite showed up.  tongue

Oops, you have to call it "default.ysp" sorry.

Thanks  big_smile
Now its a cow :3


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#4611 2012-02-19 20:47:16

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

Re: BYOB 3 - Discussion Thread

funelephant wrote:

Now its a cow :3

Not an elephant?


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

Offline

 

#4612 2012-02-19 20:50:34

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

funelephant wrote:

Now its a cow :3

Not an elephant?

Its for a mod  smile


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#4613 2012-02-19 22:08:19

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Hardmath123 wrote:

at least addition should work:

This works for me.  If you can reproduce the problem, please be more specific about browser, OS, and sequence of events.  Tnx.

FF 3.1 Mac OSX. The image is genuine, I set the variable before calling.


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

Offline

 

#4614 2012-02-19 22:21:54

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

bharvey wrote:

Hardmath123 wrote:

at least addition should work:

This works for me.  If you can reproduce the problem, please be more specific about browser, OS, and sequence of events.  Tnx.

FF 3.1 Mac OSX. The image is genuine, I set the variable before calling.

Are you sure you didn't use the ÷ (division) block? it looks a lot like the + (addition) block due to font smoothing (maybe we should probably change it back to /...)


nXIII

Offline

 

#4615 2012-02-19 23:44:40

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

Re: BYOB 3 - Discussion Thread

nXIII wrote:

(maybe we should probably change it back to /...)

Ah, but then we can't use / for APL-style reduction.

(Now that we have Lisp disguised as Scratch, I want to make it APL disguised as Scratch too.  Not right away though.)


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

Offline

 

#4616 2012-02-20 07:29:13

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: BYOB 3 - Discussion Thread

What's APL? I'm betting it's not just an API with a tail. :-)

Last edited by scimonster (2012-02-20 07:29:30)

Offline

 

#4617 2012-02-20 09:28:51

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

Re: BYOB 3 - Discussion Thread

nXIII wrote:

Hardmath123 wrote:

bharvey wrote:


This works for me.  If you can reproduce the problem, please be more specific about browser, OS, and sequence of events.  Tnx.

FF 3.1 Mac OSX. The image is genuine, I set the variable before calling.

Are you sure you didn't use the ÷ (division) block? it looks a lot like the + (addition) block due to font smoothing (maybe we should probably change it back to /...)

Nope, though that's what I thought at first too. I uber-zoomed the picture, and it was clearly a + sign, not an obelus.


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

Offline

 

#4618 2012-02-20 09:39:49

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

Re: BYOB 3 - Discussion Thread

scimonster wrote:

What's APL? I'm betting it's not just an API with a tail. :-)

A Programming Language

Offline

 

#4619 2012-02-20 10:52:57

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

Re: BYOB 3 - Discussion Thread

roijac wrote:

A Programming Language

The second-best language ever.  Very natural treatment of vectors and matrices.  For example you could say

3 * (7,8,1)

and get the list 21,24,3.  Same for any scalar operation; it operates on vectors termwise.  Given two vectors it maps over them in sync, like our MAP block.  So you didn't need a MAP block; you just applied the scalar operator directly to your data.  Same for matrices, something MAP doesn't do unless you nest two of them.

And it used / to mean COMBINE WITH:

+/(7,8,1)    ==>   16

My favorite APL one-liner was the one to graph a function by making a matrix of (x,y) coordinate pairs and mapping over that matrix the character-valued function

*   if y=f(x), else
+   if (x,y) = (0,0), else
|    if x=0, else
-   if y=0, else
<space>

(That's not how you say it in APL, which I forget, but this way is readable) and the result is a graph of the function that you can print!  (The +,|,- business is to put axes in the graph.)

The reason you don't all know APL is that its inventor, Ken Iverson, never intended it to be runnable on a computer; it was for mathematicians to use on the chalkboard to talk about algorithms, and so it used a notation as much as possible like the notation mathematicians use for everything else, e.g., lots of Greek letters and other non-ASCII characters.  That wouldn't be a problem today, but back then it meant that you needed special hardware to program in APL, and that killed it.  It has a descendent called J that you could look into.


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

Offline

 

#4620 2012-02-20 10:54:51

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

FF 3.1 Mac OSX. The image is genuine, I set the variable before calling.

I didn't mean to accuse you of forging the picture!  I just want you to check if the same thing happens for you again, or if this was a one-time phenomenon.


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

Offline

 

#4621 2012-02-20 11:20:50

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

Re: BYOB 3 - Discussion Thread

and the best one is python?

Offline

 

#4622 2012-02-20 11:40:08

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

Re: BYOB 3 - Discussion Thread

roijac wrote:

and the best one is python?

Them's fightin' words!

The best is Lisp, of course.


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

Offline

 

#4623 2012-02-21 07:23:07

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Hard to beat Smalltalk  smile


Jens Mönig

Offline

 

#4624 2012-02-21 08:01:20

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Jens wrote:

Hard to beat Smalltalk  smile

So why are you leaving it?  tongue

Offline

 

#4625 2012-02-21 08:33:07

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Hardmath123 wrote:

FF 3.1 Mac OSX. The image is genuine, I set the variable before calling.

I didn't mean to accuse you of forging the picture!  I just want you to check if the same thing happens for you again, or if this was a one-time phenomenon.

Ok, I guess I must have accidentally used "÷", but I think this leads us to at least something to notice... Spot the ÷ and the +:
http://www.imgpaste.com/oZMQ.png
http://www.imgpaste.com/A80q.png
tongue


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

Offline

 

Board footer