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!
EDIT2: ... and the last one can be abbreviated .snp#
Last edited by bharvey (2013-03-12 17:07:49)
Offline
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.
Last edited by technoboy10 (2013-03-12 17:06:41)
Offline
bharvey wrote:
And to make everyone except Jens happy, they can be in XML or JSON or Scheme!
![]()
xD
How is the format determined? The first character?
{ -> json, < -> xml, ( -> Scheme...
Offline
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)
Offline
bharvey wrote:
Done. How come Snap-NXT but wiisnap?
Mainly because WiiSnap sounded better to me.
Thanks for adding it to the site!
EDIT: Also, you might want to change the description to Nintendo Wiimote, just to make sure nobody is confused.
Last edited by technoboy10 (2013-03-12 17:50:30)
Offline
bharvey wrote:
@blob: Sure, the first character. Not that Jens would ever go for it.
Of course he wouldn't
Offline
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
<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.
Offline
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 saysCode:
<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.![]()
So I just have Python print the a tag as text?
Offline
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.
Offline
While we're on Mac apps, should I post my Snapin8r UI?
Offline
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:
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! ) 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?
Last edited by Hardmath123 (2013-03-13 00:18:39)
Offline
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?
![]()
That would be nXIII.
EDIT: Oops, I forgot to say: It looks great! All but "tolerate."
EDIT2: My feeble attempt:
EDIT3: http://www.dailykos.com/story/2013/03/0 … etail=hide
Last edited by bharvey (2013-03-13 01:09:16)
Offline
Hey, I'm thinking of applying for Sparc, so I may (5% chance) be in Berkeley around August. 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.
Offline
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?
![]()
That would be nXIII.
![]()
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.
Offline
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)
Offline
There should be CYOB
Offline
Snap!'s main claim to fame is the ability to create your own blocks!
@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…
@blob: I'm a lot worse than that. 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.
Offline
@Hardmath That's not lazy. That's sensible. 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
Hardmath123 wrote:
I got a free copy of Mathematica
<jealous>
Offline
@bharvey @Wiimote vs Wii The Wiimote is the controller, and the Wii is the actual console.
Offline
blob8108 wrote:
@Hardmath That's not lazy. That's sensible.
I wrote a script to download each of the chapter PDFs of Brian's book Simply Scheme, after all...
I'm not alone…
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).
Offline
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.
Offline
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!?
IDK, what do you think?
How about Scratch-related Python modules, then?
technoboy10 wrote:
So I just have Python print the a tag as text?
Yes. Or use sys.stdout.write. Something like:
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!
Offline
Hardmath123 wrote:
Hey, I'm thinking of applying for Sparc, so I may (5% chance) be in Berkeley around August.
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.
Offline