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

#5651 2012-07-21 18:38:46

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

He also figured out how to embed a Snap! project in a web page!

Very cool! Though wouldn't it be better to use the canvas element with an instance of Snap! instead of using iframes? Seeing as Snap! is open source and all, that seems like the more obvious solution.

Offline

 

#5652 2012-07-21 21:59:17

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

Re: BYOB 3 - Discussion Thread

blob8108 wrote:

bharvey wrote:

Hardmath123 wrote:

Debating whether or not to learn Python. 40% convinced

Not such a big decision!  You already know all the semantics of the language; you just have to spend a weekend on the syntax.

See?  tongue  Learn Python already!

Yeah, I'm convinced.  smile


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

Offline

 

#5653 2012-07-21 22:31:30

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

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

wouldn't it be better to use the canvas element with an instance of Snap! instead of using iframes?

Would that mean building a particular snapshot of Snap! (so to speak) into your page?  I think part of the idea is that as Snap! is improved, so is your embedded project.

I guess you could argue both ways; you might want to ensure against an incompatible change to Snap!.


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

Offline

 

#5654 2012-07-22 17:41:09

DonaldNagy
New Scratcher
Registered: 2012-02-11
Posts: 2

Re: BYOB 3 - Discussion Thread

How can I send - a single ASCII byte on a PC serial COM Port.
How can I receive - a single ASCII byte on a PC serial COM Port.
I am using BYOB 3.1.1
Donald.Nagy@gmail.com

Offline

 

#5655 2012-07-22 17:45:50

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: BYOB 3 - Discussion Thread

DonaldNagy wrote:

How can I send - a single ASCII byte on a PC serial COM Port.
How can I receive - a single ASCII byte on a PC serial COM Port.

I didn't think you could interface with serial ports from inside BYOB, unless you modified it. Squeak might not even have support for it...  hmm


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#5656 2012-07-23 09:50:59

scspaeth
Scratcher
Registered: 2010-02-14
Posts: 20

Re: BYOB 3 - Discussion Thread

bharvey wrote:

shadow_7283 wrote:

wouldn't it be better to use the canvas element with an instance of Snap! instead of using iframes?

Would that mean building a particular snapshot of Snap! (so to speak) into your page?  I think part of the idea is that as Snap! is improved, so is your embedded project.

I guess you could argue both ways; you might want to ensure against an incompatible change to Snap!.

@shadow_7283 Thanks for suggesting a way to improve the presentation. Jens provides an example for display of multiple morphic canvas in a page but when I tried to implement for the full Snap! IDE, I couldn't get it to work. Guess I need to to learn more about canvas.style.position controls.

My goal was to find a simple way to provide context for projects. The iframe is not slick but if Pareto* provides a useful rule of thumb, it should cover about 80% of the cases I want to share. It is also simple enough for students, teachers and others to use, too. For example, many more sites that students and teachers use will accept iframes than will accept javascript.

If shadow_7283 (or anyone else) is willing to rough out an html template that would embed Snap! in a canvas element, I'd be willing to test it for some of the remaining 20% cases I want to share.
-------------
* http://en.wikipedia.org/wiki/Pareto_principle

Last edited by scspaeth (2012-07-24 06:36:25)

Offline

 

#5657 2012-07-23 10:22:56

scspaeth
Scratcher
Registered: 2010-02-14
Posts: 20

Re: BYOB 3 - Discussion Thread

bharvey wrote:

shadow_7283 wrote:

wouldn't it be better to use the canvas element with an instance of Snap! instead of using iframes?

Would that mean building a particular snapshot of Snap! (so to speak) into your page?  I think part of the idea is that as Snap! is improved, so is your embedded project.
...

And it is not just improvements to Snap! but improvements to projects, too. Last week, the blocks in the shape list of the Vee Project were all blue motion blocks.
http://snap.berkeley.edu/snapsource/sna … mo/vee.xml
At the CCSTA Workshop, we discussed how to use block colors to highlight elements of scripts to make them easier to understand (a pedagogical strategy). When I reloaded this page yesterday in response to shadow_7283's comment, I saw new colors that distinguish the terminal shapes (green) and the recursive shapes (purple).

I suspect that Brian revised the copy of /demo/vee.xml in the demo project to make use of the strategy that we discussed at the workshop. The change required no action on my part other than to appreciate the beauty and joy of Snapping in this community.

Last edited by scspaeth (2012-07-23 10:24:10)

Offline

 

#5658 2012-07-23 11:20:39

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Pitusky12 wrote:

Can someone here help me make my own file format like .sb for my mod?

What do you mean? Why do you need your own format?

I feel you should probably ask on a separate thread, too...


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#5659 2012-07-24 11:41:41

christian2000
Scratcher
Registered: 2010-11-01
Posts: 100+

Re: BYOB 3 - Discussion Thread

scspaeth wrote:

christian2000 wrote:

Hardmath123 wrote:

Press the blue check mark button next to it.

I dont see any buttons next to it.  hmm

The "blue" check mark button is not blue in the most recent version of Snap!

The checkmark on the right, adjacent to the input field and inside the blue border is a button. You can click on it or simply enter text in the field and then hit the enter key on your keyboard.

when i hit enter it just starts a new line. and the field covers almost all of the bottom of the window, with only scroll bars next to it.


blerp......
http://obscureinternet.com/wp-content/uploads/Fail-at-Life-Funny-Cards.png

Offline

 

#5660 2012-07-24 14:41:56

scspaeth
Scratcher
Registered: 2010-02-14
Posts: 20

Re: BYOB 3 - Discussion Thread

christian2000 wrote:

scspaeth wrote:

christian2000 wrote:

I dont see any buttons next to it.  hmm

The "blue" check mark button is not blue in the most recent version of Snap!

The checkmark on the right, adjacent to the input field and inside the blue border is a button. You can click on it or simply enter text in the field and then hit the enter key on your keyboard.

when i hit enter it just starts a new line. and the field covers almost all of the bottom of the window, with only scroll bars next to it.

Does the Ask field look similar to the one in the lower half of the right-hand image in your signature in this forum?
If not, how does it differ?
Can you supply additional troubleshooting information:
Program version:
Browser:
Operating system:

Offline

 

#5661 2012-07-25 17:31:02

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

Re: BYOB 3 - Discussion Thread

Breaking news:  At the Scratch@MIT conference today, John promised custom reporters, not in the first release of Scratch 2.0, but in a later release!


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

Offline

 

#5662 2012-07-25 18:25:45

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Breaking news:  At the Scratch@MIT conference today, John promised custom reporters, not in the first release of Scratch 2.0, but in a later release!

:D


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#5663 2012-07-25 20:08:26

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Breaking news:  At the Scratch@MIT conference today, John promised custom reporters, not in the first release of Scratch 2.0, but in a later release!

Why not in 2.0?  sad


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#5664 2012-07-25 21:19:09

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Breaking news:  At the Scratch@MIT conference today, John promised custom reporters, not in the first release of Scratch 2.0, but in a later release!

Yippee!  big_smile   big_smile   big_smile  After all, what's the point of custom blocks without custom reporters?  You could just write out the whole thing then.
Though both of them have their workarounds  wink


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#5665 2012-07-25 21:22:06

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Breaking news:  At the Scratch@MIT conference today, John promised custom reporters, not in the first release of Scratch 2.0, but in a later release!

Finally!  big_smile


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

Offline

 

#5666 2012-07-26 06:04:23

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

Re: BYOB 3 - Discussion Thread

MathWizz wrote:

Why not in 2.0?  sad

I can sympathize.  Snap! 4.0, barring a miracle, will have minimal costume and sound support, and nothing about sprite inheritance, etc.  They don't want to keep pushing back the release date.\


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

Offline

 

#5667 2012-07-26 08:02:17

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Breaking news:  At the Scratch@MIT conference today, John promised custom reporters, not in the first release of Scratch 2.0, but in a later release!

Sweet!


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#5668 2012-07-26 08:46:13

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Breaking news:  At the Scratch@MIT conference today, John promised custom reporters, not in the first release of Scratch 2.0, but in a later release!

big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile

Although there is a simple workaround (make a variable called "returned" and set that when you want to report something), but custom reporters are more efficient because you don't need lots of temporary variables if you want to compose functions  big_smile

Last edited by joefarebrother (2012-07-26 08:46:22)


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

 

#5669 2012-07-26 13:01:41

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Scspaeth: Iframes seem like a good solution for the needs you described. The only thing I'm not sure about is if iframes will work any better than the canvas element as far as disabled JavaScript is concerned.

I'm going to try writing a script to simplify embedding Snap.

Offline

 

#5670 2012-07-26 16:50:49

scspaeth
Scratcher
Registered: 2010-02-14
Posts: 20

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

Scspaeth: Iframes seem like a good solution for the needs you described. The only thing I'm not sure about is if iframes will work any better than the canvas element as far as disabled JavaScript is concerned.

I'm going to try writing a script to simplify embedding Snap.

Let me know when you are ready for testing. Looking forward to it!

Offline

 

#5671 2012-07-31 20:24:56

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Breaking news:  At the Scratch@MIT conference today, John promised custom reporters, not in the first release of Scratch 2.0, but in a later release!

Sounds great! (BTW, I only noticed this post because somebody referenced it on the wiki)  tongue


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

Offline

 

#5672 2012-07-31 21:20:51

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Lucario621 wrote:

bharvey wrote:

Breaking news:  At the Scratch@MIT conference today, John promised custom reporters, not in the first release of Scratch 2.0, but in a later release!

Sounds great! (BTW, I only noticed this post because somebody referenced it on the wiki)  tongue

That would be me.  tongue


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#5673 2012-08-03 23:09:41

electrified123
Scratcher
Registered: 2009-11-22
Posts: 100+

Re: BYOB 3 - Discussion Thread

ROFL guys is jens even on scratch anymore. i mean he created byob.
i havent seen him in over probably a year or 2


http://i47.tinypic.com/5nrzmp.jpg check out my stuff ~ If You Really Thought i would think what you thought, than you must think i think what you thought i would think at the time you thought i was thinking what you thought

Offline

 

#5674 2012-08-04 03:16:33

Randomno
Scratcher
Registered: 2012-06-04
Posts: 39

Re: BYOB 3 - Discussion Thread

Hi, does anybody know how to view the source code of custom blocks?


http://img209.imageshack.us/img209/5524/randomno.png
I do stuff with stuff. I also stuff stuff.

Offline

 

#5675 2012-08-04 03:27:04

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

Re: BYOB 3 - Discussion Thread

Right-click it and select "edit".  smile


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

Offline

 

Board footer