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

#7226 2013-03-07 14:35:25

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

Re: BYOB 3 - Discussion Thread

technoboy10 wrote:

Where are the block specs for Snap!?

objects.js

Also, how do you let a web server be accessed through the http:// block?

CORS


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

Offline

 

#7227 2013-03-07 15:42:42

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

Re: BYOB 3 - Discussion Thread

OK, thanks.


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

Offline

 

#7228 2013-03-07 19:57:21

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

Re: BYOB 3 - Discussion Thread

technoboy10 wrote:

Where are the block specs for Snap!?

Also, how do you let a web server be accessed through the http:// block?

Check objects.js, or look up SpriteMorph on your console.


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

Offline

 

#7229 2013-03-08 02:56:29

kiwi29
New Scratcher
Registered: 2012-11-21
Posts: 5

Re: BYOB 3 - Discussion Thread

apologies for gushing but...    snap (as in 4) just seems freakishly solid

It defies my expectations of  "non-trivial browser based apps"

True -I don't have many Snap-miles on my odometer  -but I had a session with some 9 year-olds today where I expected to be saying "oh yeah  -don't worry about that  -you just have to do this..." but well, it just worked...

Coal-face snapistas might be thinking "what is he talking about  -x,y and z are not right yet" but from out here in userland, Snap has the feel of the (infinitely more controllable) squeak based stuff, and I think that is quite an acheivment. Whatever you are doing ,please keep doing it.

Offline

 

#7230 2013-03-08 07:20:15

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

Re: BYOB 3 - Discussion Thread

Thank you for the heart-warming encouragement, kiwi29! We're very glad (and extremely relieved) that Snap is indeed becoming ready for prime-time.


Jens Mönig

Offline

 

#7231 2013-03-08 12:20:01

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

Re: BYOB 3 - Discussion Thread

1. The first question with B as the correct answer is:
A. 1
B. 4
C. 3
D. 2

2. The answer to Question 4 is:
A. D
B. A
C. B
D. C

3. The answer to Question 1 is:
A. D
B. C
C. B
D. A

4. The number of questions which have D as the correct answer is:
A. 3
B. 2
C. 1
D. 0

5. The number of questions which have B as the correct answer is:
A. 0
B. 2
C. 3
D. 1

Don't post solutions without a big SPOILER ALERT.

@n:  The Scratch 2.0 forum software should have a spoiler-alert feature [spoiler]...[/spoiler] that would appear as a button that you'd have to push to see the stuff between the tags!


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

Offline

 

#7232 2013-03-08 12:45:38

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

@n:  The Scratch 2.0 forum software should have a spoiler-alert feature [spoiler]...[/spoiler] that would appear as a button that you'd have to push to see the stuff between the tags!

Yeah, that's been suggested. I forgot to add it to the bugtracker, though—thanks.


nXIII

Offline

 

#7233 2013-03-08 13:36:54

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

Re: BYOB 3 - Discussion Thread

I've got basic NXT control from Snap! working!  big_smile


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

Offline

 

#7234 2013-03-08 13:58:09

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

Re: BYOB 3 - Discussion Thread

technoboy10 wrote:

I've got basic NXT control from Snap! working!

That's great!  Does it work across platforms?  When you think it's ready to publish, send us the code and it can be the first entry in our hardware-control collection.  Thanks!


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

Offline

 

#7235 2013-03-08 14:17:27

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

technoboy10 wrote:

I've got basic NXT control from Snap! working!

That's great!  Does it work across platforms?  When you think it's ready to publish, send us the code and it can be the first entry in our hardware-control collection.  Thanks!

Whoa, awesome!  big_smile 
It's written in Python, so in theory it should be cross-platform. It's still in super-alpha (I can move one motor, one rotation, at one speed.  tongue ), so it might be a few days before I finish it.


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

Offline

 

#7236 2013-03-08 15:31:55

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

1. The first question with B as the correct answer is:...

Well, it's trivial to brute force, as there are only 256 possibilities. So I have the solution! Now to write my own logic puzzle solver implementation to find it properly...  big_smile


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

Offline

 

#7237 2013-03-08 15:40:09

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: BYOB 3 - Discussion Thread

@blob well, the first answer cannot be A.

SPOILER ALERT




1.  C
2.  D
3.  B
4.  C
5.  B

Last edited by Firedrake969 (2013-03-08 15:40:55)


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#7238 2013-03-08 16:00:04

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

Re: BYOB 3 - Discussion Thread

Firedrake969 wrote:

SPOILER ALERT

Yup, that's what I got  smile


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

Offline

 

#7239 2013-03-08 16:21:00

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

Re: BYOB 3 - Discussion Thread

technoboy10 wrote:

It's still in super-alpha... so it might be a few days before I finish it.

smile   I wish our development cycles were like that!


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

Offline

 

#7240 2013-03-08 16:52:06

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Were we right?


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#7241 2013-03-08 17:00:48

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

Re: BYOB 3 - Discussion Thread

SPOILER!!!!!
I got these answers without looking at anyone else's answers.
1. C
2. D
3. B
4. C
5. B


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

Offline

 

#7242 2013-03-08 19:29:17

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

Re: BYOB 3 - Discussion Thread

Snap-NXT v.0.1
http://github.com/technoboy10/snap-nxt
Has support for the 4 main NXT sensors and all 3 motors.
See link for more info.

nxt.xml includes all NXT interaction blocks, as well as an example program.


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

Offline

 

#7243 2013-03-08 19:51:16

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

Re: BYOB 3 - Discussion Thread

Firedrake969 wrote:

Were we right?

Yup!


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

Offline

 

#7244 2013-03-08 19:56:16

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

Re: BYOB 3 - Discussion Thread

technoboy10 wrote:

Snap-NXT v.0.1

This looks wonderful -- I can't actually run it b/c I don't have a NXT with me -- except there's one detail in the documentation that seems fragile:

You must have the all sensors plugged into your NXT in this arrangement:

It doesn't bother me so much that a particular sensor has to go in a particular port (although, can't you have more than one of the same kind of sensor?), but why must they all be present, if you're not going to use them all?

Sorry to nitpick right off the bat...


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

Offline

 

#7245 2013-03-09 02:33:57

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

Re: BYOB 3 - Discussion Thread

technoboy10 wrote:

The nxt-python module for Python.

You're not using OS X, are you? I've had terrible difficulty trying to get nxt-python to work on 10.8...


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

Offline

 

#7246 2013-03-09 08:30:12

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

1. The first question with B as the correct answer is:
A. 1
B. 4
C. 3
D. 2

2. The answer to Question 4 is:
A. D
B. A
C. B
D. C

3. The answer to Question 1 is:
A. D
B. C
C. B
D. A

4. The number of questions which have D as the correct answer is:
A. 3
B. 2
C. 1
D. 0

5. The number of questions which have B as the correct answer is:
A. 0
B. 2
C. 3
D. 1

Don't post solutions without a big SPOILER ALERT.

@n:  The Scratch 2.0 forum software should have a spoiler-alert feature [spoiler]...[/spoiler] that would appear as a button that you'd have to push to see the stuff between the tags!

SPOILER ALERT!!!!! (don't know if it's been answered or not, I just read the logic problem and hit quote. I worked it out myself.)
If you are using Internet Explorer, the text below is NOT hidden - skip over it if you don't want to see it!
Otherwise, highlight it to see it.



Question 1 cannot be A or B because of a simple logical contradiction - if it was A, it would mean the answer to question 1 is B, and if it was B, it would mean it is not B. So it must be C or D.

Assuming it were D, it would mean question 2 is B and therefore question 4 is A. So 3 questions have D as their correct answer. We know about question 1, which we are assuming is D, and 2 and 4 are inferred to NOT be D. That means 5 & 3 must be D and therefore question 1 is A, which is a contradiction. So the assumption that 1 is D is false. Therefore 1 MUST be C, so 3 is B.

Now let's do question 4:(and, indirectly, 2)
It obviously can't be D, that would mean no answers are D which is a contradiction. So there are is only 2 questions left that could be D, that is, 2 and 5. So the answer isn't A, either. It is either B or C: if it were B, 2 and 5 must be D, and if 2 were D, 4 would be C. So our assumption that 4 was B is false. Therefore 4 must be C. That makes 2 D,

Since there is only one question who's answer is D, and that is 2. That means 5 is not D. It isn't A either, because we know that 3 is B. It can't be C, because there aren't enough questions left that could be B. Therefore it's B.

So:
1 = C
2 = D
3 = B
4 = C
5 = B


QED.

Last edited by joefarebrother (2013-03-09 08:33:48)


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

 

#7247 2013-03-09 08:46:12

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

Re: BYOB 3 - Discussion Thread

joefarebrother wrote:

Question 1 cannot be...   QED.

Thanks for the first posted explanation of the solution and for teaching me about color=transparent!


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

Offline

 

#7248 2013-03-09 08:52:10

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

Re: BYOB 3 - Discussion Thread

blob8108 wrote:

You're not using OS X, are you? I've had terrible difficulty trying to get nxt-python to work on 10.8...

@tb10: Welcome to the wonderful world of software development, where you do something useful and people start picking on you!  Isn't it fun?

We do need, I'm afraid, to get to where people can download a package (an app, an installer, whatever), click OK, and be ready to rock and roll.  (Elvis is playing on iTunes as I type this.  smile )

When I get home I'll see what I can do about making a Mac app, but I'm not a Python ace, so if blob is right, someone who is should do it.  Oh, plus, I'm on 10.7 -- I don't want my Mac to pretend to be a tablet.  So, @blob: can you test this potential Python problem?


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

Offline

 

#7249 2013-03-09 09:28:55

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

Re: BYOB 3 - Discussion Thread

blob8108 wrote:

technoboy10 wrote:

The nxt-python module for Python.

You're not using OS X, are you? I've had terrible difficulty trying to get nxt-python to work on 10.8...

Nope, I'm using Linux, but I do have a Mac. I'll take a look...

bharvey wrote:

Sorry to nitpick right off the bat...

You're totally right. I'm going to rewrite a lot of the code today to make it more efficient and flexible.  smile

|@bharvey #Mac app| Have you seen this? http://sveinbjorn.org/platypus

Last edited by technoboy10 (2013-03-09 09:38:18)


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

Offline

 

#7250 2013-03-09 10:58:26

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

Re: BYOB 3 - Discussion Thread

technoboy10 wrote:

|@bharvey #Mac app| Have you seen this? http://sveinbjorn.org/platypus

No, that's great, thanks for the pointer!  Especially the run-as-root feature will be good for hardware interfaces like yours.


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

Offline

 

Board footer