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

#7351 2013-03-12 17:01:45

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

Re: BYOB 3 - Discussion Thread

nXIII wrote:

can't we just go for .spjt, .sspt, .smdl or something similar?

Those are really cryptic.

.snppj, .snpsp, .snplb?

EDIT:  And to make everyone except Jens happy, they can be in XML or JSON or Scheme!  tongue

EDIT2: ... and the last one can be abbreviated .snp#

Last edited by bharvey (2013-03-12 17:07:49)


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

Offline

 

#7352 2013-03-12 17:04:43

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

Re: BYOB 3 - Discussion Thread

UPDATE:
I released WiiSnap v1.0! Check it out at http://technoboy10.github.com/wiisnap

@bharvey Could you add this on the Snap! site?
@nXIII I use Sublime Text! It's a demo version of 2.4 though.  tongue

Last edited by technoboy10 (2013-03-12 17:06:41)


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

Offline

 

#7353 2013-03-12 17:06:42

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

And to make everyone except Jens happy, they can be in XML or JSON or Scheme!  tongue

xD

How is the format determined? The first character?  tongue
{ -> json, < -> xml, ( -> Scheme...


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

Offline

 

#7354 2013-03-12 17:36:58

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

Re: BYOB 3 - Discussion Thread

technoboy10 wrote:

@bharvey Could you add this on the Snap! site?

Done.  How come Snap-NXT but wiisnap?

I also uploaded Wiisnap.app.zip

@blob: Sure, the first character.  Not that Jens would ever go for it.

Last edited by bharvey (2013-03-12 18:03:52)


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

Offline

 

#7355 2013-03-12 17:48:28

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Done. How come Snap-NXT but wiisnap?

Mainly because WiiSnap sounded better to me.  smile
Thanks for adding it to the site!  big_smile

EDIT: Also, you might want to change the description to Nintendo Wiimote, just to make sure nobody is confused.  smile

Last edited by technoboy10 (2013-03-12 17:50:30)


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

Offline

 

#7356 2013-03-12 17:48:53

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

@blob: Sure, the first character.  Not that Jens would ever go for it.

Of course he wouldn't  tongue


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

Offline

 

#7357 2013-03-12 18:03:28

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

Re: BYOB 3 - Discussion Thread

technoboy10 wrote:

Nintendo Wiimote

What's the difference?  (I'm not a game-console person as you might guess.)

[text below moved down from the message I was editing just as you posted yours]

Okay, so, Platypus will open a little web window and put whatever HTML your script puts into STDOUT in it.  So, you could output a button that says

Code:

<a href="http://snap.berkeley.edu/snapsource/snap.html#open:{location of app}/Contents/Resources/{whichever}.xml>start Snap!</a>

and then people could start your app and from it load Snap! with your blocks.

If you update your .py scripts to do that, I'll update the Mac apps.  smile


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

Offline

 

#7358 2013-03-12 18:12:27

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

technoboy10 wrote:

Nintendo Wiimote

What's the difference?  (I'm not a game-console person as you might guess.)

[text below moved down from the message I was editing just as you posted yours]

Okay, so, Platypus will open a little web window and put whatever HTML your script puts into STDOUT in it.  So, you could output a button that says

Code:

<a href="http://snap.berkeley.edu/snapsource/snap.html#open:{location of app}/Contents/Resources/{whichever}.xml>start Snap!</a>

and then people could start your app and from it load Snap! with your blocks.

If you update your .py scripts to do that, I'll update the Mac apps.  smile

So I just have Python print the a tag as text?


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

Offline

 

#7359 2013-03-12 18:51:38

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

Re: BYOB 3 - Discussion Thread

technoboy10 wrote:

So I just have Python print the a tag as text?

I think so.  You might have to say <html><body>...</body></html> but let's experiment with just the <a...>...</a> first.  If you want a beautiful button you can make one and use it instead of the text.  smile


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

Offline

 

#7360 2013-03-12 22:32:40

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

Re: BYOB 3 - Discussion Thread

While we're on Mac apps, should I post my Snapin8r UI?  smile


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

Offline

 

#7361 2013-03-12 23:18:09

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

While we're on Mac apps, should I post my Snapin8r UI?  smile

Bien entendu!


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

Offline

 

#7362 2013-03-13 00:15:59

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

Re: BYOB 3 - Discussion Thread

My limited knowledge of French makes me think that means well heard, but I guess you mean of course (isn't that bien sûr?). Either way, here's a simple mockup with IB:

http://i50.tinypic.com/2885928.png

In the final release, the write to file checkbox won't be there. Instead, once you click "convert", the window expands downwards slightly and a spinning progress indicator is displayed while the Python script loads. Once it's done, it is replaced (gracefully!  smile  ) by two buttons, "Write to File" and "Open in Snap!"

The convert button is enabled whenever you enter a valid project ID. The url-label-thing turns green, too.

There should also be a batch conversion utility at some point.

EDIT: Can one of you graphics gurus whip up a cool logo?  smile

Last edited by Hardmath123 (2013-03-13 00:18:39)


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

Offline

 

#7363 2013-03-13 00:23:17

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

(isn't that bien sûr?)

That's another way.  It's an idiom; don't ask me why.

I'm not sure whether "tolerate" means "translate to Snap! somehow" or "leave untranslated and red."  I suggest either "simulate" or "treat as errors."

Can one of you graphics gurus whip up a cool logo?  smile

That would be nXIII.  smile

EDIT:  Oops, I forgot to say:  It looks great!  All but "tolerate."

EDIT2:  My feeble attempt:

http://snap.berkeley.edu/snapin8r.jpg

EDIT3:  http://www.dailykos.com/story/2013/03/0 … etail=hide

Last edited by bharvey (2013-03-13 01:09:16)


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

Offline

 

#7364 2013-03-13 02:34:33

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

Re: BYOB 3 - Discussion Thread

Hey, I'm thinking of applying for Sparc, so I may (5% chance) be in Berkeley around August.  big_smile  I figure I've got a reasonable chance if I mention three years on Scratch and Snap! (is it ok for me to say I'm a contributor?), USAMTS/AMC/whatever, and my Python addiction.


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

Offline

 

#7365 2013-03-13 02:38:05

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Hardmath123 wrote:

(isn't that bien sûr?)

That's another way.  It's an idiom; don't ask me why.

Oh.

I'm not sure whether "tolerate" means "translate to Snap! somehow" or "leave untranslated and red."  I suggest either "simulate" or "treat as errors."

How about "generate hacks for"? Or "generate patch for"?

Can one of you graphics gurus whip up a cool logo?  smile

That would be nXIII.  smile

EDIT:  Oops, I forgot to say:  It looks great!  All but "tolerate."

EDIT2:  My feeble attempt:

http://snap.berkeley.edu/snapin8r.jpg

Sorry, I meant icon, not logo. Something for the dock. Maybe a Scratch cat morphing into Alonzo?

I'm guessing that's making fun of my annoying habit of automating everything I can on my computer.


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

Offline

 

#7366 2013-03-13 03:18:52

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

I'm thinking of applying for Sparc

Hey, that looks awesome!

Hardmath123 wrote:

my annoying habit of automating everything I can

That's not annoying, that's really good! One of the principles in "The Pragmatic Programmer" is Ubiquitous Automation. For example, in Kurt, rather than write out all the blockspecs by hand in Python, I just wrote a parser for a subset of Squeak code, and used the blockspecs code from Scratch directly.

I like the IB prototype, btw. Though I still think you don't need the "tolerate" options at all; just convert the project as best as you can. Give warnings if you need to (like Office or iWork do).

Last edited by blob8108 (2013-03-13 03:27:07)


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

Offline

 

#7367 2013-03-13 03:57:44

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

Re: BYOB 3 - Discussion Thread

My only possible contribution to this high-level discussion is to say that "bien entendu" and "bien sûr" are equivalent, the former being sligtly more formal

Offline

 

#7368 2013-03-13 04:05:20

Devloper123
Scratcher
Registered: 2011-11-27
Posts: 100+

Re: BYOB 3 - Discussion Thread

There should be CYOB


http://i45.tinypic.com/2jafczs.gifAnd Dev! Sign up on this forum!i like the  tongue  emoticon

Offline

 

#7369 2013-03-13 05:02:13

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

Re: BYOB 3 - Discussion Thread

Snap!'s main claim to fame is the ability to create your own blocks!  smile

@xly: Thanks, I'll remember that. I'm gonna have to take French next year, so I may have to take some summer classes to get up to speed…  sad

@blob: I'm a lot worse than that.  tongue  Once, I needed to evaluate a really complex function (it had summations and binomial coefficients) composed around 50 degrees, so I wrote a Python script to repeatedly query WolframAlpha. Luckily for their servers, I got a free copy of Mathematica through USAMTS.


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

Offline

 

#7370 2013-03-13 07:57:43

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

Re: BYOB 3 - Discussion Thread

@Hardmath That's not lazy. That's sensible.  tongue  I wrote a script to download each of the chapter PDFs of Brian's book Simply Scheme, after all...

At least, it's sensible until it takes longer to write the script than to do it yourself  big_smile

Hardmath123 wrote:

I got a free copy of Mathematica

<jealous>


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

Offline

 

#7371 2013-03-13 09:00:05

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

Re: BYOB 3 - Discussion Thread

@bharvey @Wiimote vs Wii The Wiimote is the controller, and the Wii is the actual console.  smile


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

Offline

 

#7372 2013-03-13 09:01:25

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

Re: BYOB 3 - Discussion Thread

blob8108 wrote:

@Hardmath That's not lazy. That's sensible.  tongue  I wrote a script to download each of the chapter PDFs of Brian's book Simply Scheme, after all...

I'm not alone…  tongue

Hardmath123 wrote:

I got a free copy of Mathematica

<jealous>

Well, technically it's probably a 1-year subscription. I still didn't get the access code (they give it on March 24th for Bronze medalists).


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

Offline

 

#7373 2013-03-13 09:53:03

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

blob8108 wrote:

Hardmath123 wrote:

I got a free copy of Mathematica

<jealous>

Well, technically it's probably a 1-year subscription.

Okay. You're forgiven.  tongue


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

Offline

 

#7374 2013-03-13 09:55:20

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

Re: BYOB 3 - Discussion Thread

technoboy10 wrote:

blob8108 wrote:

technoboy10 wrote:

it'd be really fun to do a panel discussion.

Oh yeah, about that. What would you talk about?

Hardware extensions of Snap!?  tongue  IDK, what do you think?

How about Scratch-related Python modules, then?  tongue

technoboy10 wrote:

So I just have Python print the a tag as text?

Yes. Or use sys.stdout.write. Something like:

Code:

url = "http://localhost:8080/project-whatever.xml"
sys.stdout.write("""
<a href="http://snap.berkeley.edu/snapsource/snap.html#open:{location}/Contents/Resources/{file}.xml>start Snap!</a>
""".format(location="/Applications/whatever.app", file="whatever"))

You could have your HTTP server serve the default project, too!


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

Offline

 

#7375 2013-03-13 11:52:00

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

Hey, I'm thinking of applying for Sparc, so I may (5% chance) be in Berkeley around August.  big_smile  I figure I've got a reasonable chance if I mention three years on Scratch and Snap! (is it ok for me to say I'm a contributor?), USAMTS/AMC/whatever, and my Python addiction.

You certainly may.  You can list me as a reference if they take references.  It sounds from the web page that it's just at, not of, Berkeley, so I don't have any direct channel of influence on the people doing admissions.

Now I just hope that I'm in Berkeley then!

It's a good sign that one of the instructors taught at PROMYS.  They do serious mathematics--way over my head.  smile


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

Offline

 

Board footer