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

#7376 2013-03-13 11:54:47

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

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

"Patch" would be okay.  You don't like "simulate"?

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

No, it's making fun of the name "Snapin8r."  tongue


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

Offline

 

#7377 2013-03-13 11:57:41

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

a Python script to repeatedly query WolframAlpha.

That's hilarious!

PS  Actually I agree with blob, just convert everything as best you can.  Why not?

PPS  Scraping info off the net isn't an annoying habit.  Your only annoying habit is your paranoia about email.  (But if they take recommendation letters then you'll have to tell me your name, bwahahahaaa!)

Last edited by bharvey (2013-03-13 12:09:33)


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

Offline

 

#7378 2013-03-13 12:14:17

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

bwahahahaaa!

You so evil.  tongue

@n: how's the 2.0 forums going? Have you implemented scratchblocks yet?  big_smile


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

Offline

 

#7379 2013-03-13 12:39:06

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

Re: BYOB 3 - Discussion Thread

sparc2013.org/syllabus wrote:

rationality, morality, and effective altruism

Hmm, this makes them sound like right wing libertarians.  I wish the web site said something about who runs this organization, and where they get the funding for the free flights and all that.  We run a CS summer program for local underrepresented-group kids ("we" = the Berkeley Foundation for Opportunities in Information Technology, not the university) and just the other day we were talking about ideas like not feeding the kids lunch because our budget is so tight.

EDIT:  Jeez, check out http://wiki.lesswrong.com/wiki/FAQ.  If they serve Kool-Aid at lunch, don't drink it.

Last edited by bharvey (2013-03-13 12:47:38)


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

Offline

 

#7380 2013-03-13 14:12:33

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

Re: BYOB 3 - Discussion Thread

@Snap! extensions
I'm currently working on a Snapduino extension (Arduino interface)!
Should be ready within the next month (the Python library isn't as good as the other ones).


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

Offline

 

#7381 2013-03-13 15:19:14

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

Re: BYOB 3 - Discussion Thread

technoboy10 wrote:

@Snap! extensions
I'm currently working on a Snapduino extension (Arduino interface)!
Should be ready within the next month (the Python library isn't as good as the other ones).

Man, you're mister hardware interface!

Since the Arduino is a computer and can do basically anything, what blocks are you going to make for it?


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

Offline

 

#7382 2013-03-13 15:26:42

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

technoboy10 wrote:

@Snap! extensions
I'm currently working on a Snapduino extension (Arduino interface)!
Should be ready within the next month (the Python library isn't as good as the other ones).

Man, you're mister hardware interface!

Since the Arduino is a computer and can do basically anything, what blocks are you going to make for it?

These ones, probably.
*Set pin (pin) mode to [mode]
*Digital out pin (pin)
*Read digital pin (pin)
*Analog out pin (pin)
*Read analog pin (pin)

Any other suggestions?


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

Offline

 

#7383 2013-03-13 15:59:03

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

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

http://dl.dropbox.com/u/10715865/.edu/snapin8r-128.png
Likey?


nXIII

Offline

 

#7384 2013-03-13 16:01:07

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

Re: BYOB 3 - Discussion Thread

+1

very cool, nXIII!


Jens Mönig

Offline

 

#7385 2013-03-13 16:05:42

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

Re: BYOB 3 - Discussion Thread

@nXIII Way cool!


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

Offline

 

#7386 2013-03-13 16:57:50

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

Re: BYOB 3 - Discussion Thread

technoboy10 wrote:

*Set pin (pin) mode to [mode]
*Digital out pin (pin)
*Read digital pin (pin)
*Analog out pin (pin)
*Read analog pin (pin)

If "[mode]" means analog/digital, then you shouldn't also need to make that choice in the in/out blocks; there should be local state variables remembering the state of each pin.

Presumably the "out" blocks take another input with the value to write!

Just in case people have multiple devices, it'd be nice to have "Arduino" in the block names (same for all hardware extensions).  How about
    (Arduino pin (pin))
    [Set Arduino pin (pin) to (value)]

PS  What if someone has two Arduinos?  Does that happen?

Last edited by bharvey (2013-03-13 17:01:41)


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

Offline

 

#7387 2013-03-13 17:36:42

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Presumably the "out" blocks take another input with the value to write!

Yeah, they would.

bharvey wrote:

What if someone has two Arduinos?  Does that happen?

I suppose I could do that.


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

Offline

 

#7388 2013-03-13 18:38:18

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

Re: BYOB 3 - Discussion Thread

technoboy10 wrote:

bharvey wrote:

What if someone has two Arduinos?  Does that happen?

I suppose I could do that.

Wait, what?  Do what?


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

Offline

 

#7389 2013-03-13 18:41:57

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

technoboy10 wrote:

bharvey wrote:

What if someone has two Arduinos?  Does that happen?

I suppose I could do that.

Wait, what?  Do what?

Add the ability to have multiple boards as a feature.  smile


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

Offline

 

#7390 2013-03-13 18:53:15

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

Re: BYOB 3 - Discussion Thread

technoboy10 wrote:

Add the ability to have multiple boards as a feature.  smile

Oh, I see.  Would that mean adding an extra input for which Arduino it is?  Or would you do it OOP-style with a make-Arduino-interface block that returns a list of three blocks for that Arduino?


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

Offline

 

#7391 2013-03-14 02:30:14

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

Re: BYOB 3 - Discussion Thread

nXIII wrote:

Hardmath123 wrote:

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

http://dl.dropbox.com/u/10715865/.edu/snapin8r-128.png
Likey?

Likey. Thanks.  smile

I got iPad support for accelerometers! Well… almost. I just need to hook up a CORS server—I'm using Twisted, so I'm kind of groping in the dark. Stay tuned!


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

Offline

 

#7392 2013-03-14 03:26:26

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

I got iPad support for accelerometers! I just need to hook up a CORS server...

Why d'you need a CORS server? I'm sure there's a JavaScript API...


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

Offline

 

#7393 2013-03-14 04:53:33

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

Re: BYOB 3 - Discussion Thread

@technoboy10: Got your proposal for the Barcelona Scratch conference, Yay!!


Jens Mönig

Offline

 

#7394 2013-03-14 06:17:08

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

Re: BYOB 3 - Discussion Thread

blob8108 wrote:

Hardmath123 wrote:

I got iPad support for accelerometers! I just need to hook up a CORS server...

Why d'you need a CORS server? I'm sure there's a JavaScript API...

I mean you use the iPad as a remote control for Snap! on the computer. And yes, I'm using a JS API.

It's called iOSnap, and I'm pretty much done!  smile  Now to upload it somewhere…


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

Offline

 

#7395 2013-03-14 06:32:59

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

Re: BYOB 3 - Discussion Thread

@Jens: Is just the equivalent of the readme page really sufficient? (For the proposal?)

Last edited by blob8108 (2013-03-14 06:33:20)


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

Offline

 

#7396 2013-03-14 07:10:12

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

Re: BYOB 3 - Discussion Thread

Ok, here's the deal: the system works great, but it's way too slow. I looked at the network profiles and stuff, and though each query takes less than a millisecond to lookup, the URL block is evaluated one every 5 seconds on average. That is waaaaaay tooooooo sloooooow for my library to be practical.  sad

EDIT: Just to clarify, I have something like this:

Code:

Snap! <==XMLHttpRequest==> (Twisted Server) <==XMLHttpRequest==| iPad |

Last edited by Hardmath123 (2013-03-14 07:12:16)


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

Offline

 

#7397 2013-03-14 07:10:19

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

Re: BYOB 3 - Discussion Thread

@blob: Yup, I'm telling you!

Last edited by Jens (2013-03-14 07:10:52)


Jens Mönig

Offline

 

#7398 2013-03-14 07:12:54

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

Re: BYOB 3 - Discussion Thread

@Hardmath: You'll find a way to cache and to pre-compute  smile


Jens Mönig

Offline

 

#7399 2013-03-14 07:14:52

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

Re: BYOB 3 - Discussion Thread

How? If each call takes 5 seconds, I don't see how I can get data within that period of time. Those five seconds were inside a forever loop with just the URL block being called (and assignment to a variable, which is negligible). I also had another practically negligible script that moved the sprite based on the compass heading of the iPad.


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

Offline

 

#7400 2013-03-14 07:29:28

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

Re: BYOB 3 - Discussion Thread

Wait, I thought the query took less than a msec? What's taking so long, getting the xhr's responseText?


Jens Mönig

Offline

 

Board footer