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."
Offline
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)
Offline
bharvey wrote:
bwahahahaaa!
You so evil.
@n: how's the 2.0 forums going? Have you implemented scratchblocks yet?
Offline
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)
Offline
@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).
Offline
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?
Offline
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?
Offline
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)
Offline
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.
Offline
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.
Offline
technoboy10 wrote:
Add the ability to have multiple boards as a feature.
![]()
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?
Offline
nXIII wrote:
Hardmath123 wrote:
EDIT: Can one of you graphics gurus whip up a cool logo?
![]()
http://dl.dropbox.com/u/10715865/.edu/snapin8r-128.png
Likey?
Likey. Thanks.
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!
Offline
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...
Offline
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! Now to upload it somewhere…
Offline
@Jens: Is just the equivalent of the readme page really sufficient? (For the proposal?)
Last edited by blob8108 (2013-03-14 06:33:20)
Offline
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.
EDIT: Just to clarify, I have something like this:
Snap! <==XMLHttpRequest==> (Twisted Server) <==XMLHttpRequest==| iPad |
Last edited by Hardmath123 (2013-03-14 07:12:16)
Offline
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.
Offline