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

#5401 2012-06-07 15:33:33

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

We got the favicon done just in time!

I don't think you "heard" me.  tongue

Last edited by MathWizz (2012-06-07 15:33:51)


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#5402 2012-06-07 15:49:15

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

Re: BYOB 3 - Discussion Thread

MathWizz wrote:

OK, I guess I don't get it...


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

Offline

 

#5403 2012-06-08 09:24:51

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

Re: BYOB 3 - Discussion Thread

Jens wrote:

Haha, you guys are fantastic! LOL, thx for the favicon and hi from back home

Is that really you? Since when do adults use "thx" and "LOL"?!  tongue


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

Offline

 

#5404 2012-06-08 09:48:37

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

Is that really you? Since when do adults use "thx" and "LOL"?!  tongue

What, u think u whippersnappers invented the kbd?  FYI, Samuel F.B. Morse created electric telegraphy in 1837.

     - 30 -


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

Offline

 

#5405 2012-06-08 09:51:43

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

Re: BYOB 3 - Discussion Thread

.... ..- .... ..--.. / .. / -.. .. -.. -. .----. - / --. . - / .. - / ---... .--.

.-- .... .- - .----. ... / .- / .-..-. .-- .... .. .--. .--. . .-. ... -. .- .--. .--. . .-. .-..-. ..--..

Last edited by Hardmath123 (2012-06-08 09:53:09)


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

Offline

 

#5406 2012-06-08 10:04:18

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

.... ..- .... ..--.. / .. / -.. .. -.. -. .----. - / --. . - / .. - / ---... .--.

.-- .... .- - .----. ... / .- / .-..-. .-- .... .. .--. .--. . .-. ... -. .- .--. .--. . .-. .-..-. ..--..

https://en.wiktionary.org/wiki/whippersnapper

http://www.butlerart.com/pc_book/pages/ … r_1836.htm


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

Offline

 

#5407 2012-06-08 10:14:42

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Hardmath123 wrote:

.... ..- .... ..--.. / .. / -.. .. -.. -. .----. - / --. . - / .. - / ---... .--.

.-- .... .- - .----. ... / .- / .-..-. .-- .... .. .--. .--. . .-. ... -. .- .--. .--. . .-. .-..-. ..--..

https://en.wiktionary.org/wiki/whippersnapper

http://www.butlerart.com/pc_book/pages/ … r_1836.htm

"a young and cheeky or presumptuous person"

Hey!


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

Offline

 

#5408 2012-06-08 10:36:19

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

Hey!

tongue


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

Offline

 

#5409 2012-06-08 10:41:29

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

Re: BYOB 3 - Discussion Thread

By the way, thanks for the advice about the Scheme interpreter. It's shaping up great!  big_smile


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

Offline

 

#5410 2012-06-08 10:46:51

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

By the way, thanks for the advice about the Scheme interpreter. It's shaping up great!  big_smile

Awesome!  You're welcome.  Can't wait to see it.


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

Offline

 

#5411 2012-06-08 12:40:54

asampal
New Scratcher
Registered: 2011-08-26
Posts: 9

Re: BYOB 3 - Discussion Thread

In case anyone is tracking these issues, in the latest Chromium builds (e.g. 21.0.1168.0 (Developer Build 141182 Windows)), I can't enter a space in the text for a "say" block. When I attempt to do so, the browser scrolls the page down instead of inserting a space character. Looks like Snap! is not getting the event and the browser is just handling it per default.

Offline

 

#5412 2012-06-08 13:14:32

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

Re: BYOB 3 - Discussion Thread

asampal wrote:

In case anyone is tracking these issues, in the latest Chromium builds (e.g. 21.0.1168.0 (Developer Build 141182 Windows)), I can't enter a space in the text for a "say" block. When I attempt to do so, the browser scrolls the page down instead of inserting a space character. Looks like Snap! is not getting the event and the browser is just handling it per default.

Scrolls the page down? I thought Snap! was designed to use up the entire window, and only the entire window, so that you wouldn't need to scroll.  hmm

A related problem is that sometimes the window's scrollbar will pop up. I found a little patch you could use. You need a GreaseMonkey userscript:

Code:

document.body.style.overflow="hidden";

specified for Snap!, which prevents the scrollbar from appearing.  smile


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

Offline

 

#5413 2012-06-08 13:24:04

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

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

You need a GreaseMonkey userscript:

Good workaround, thanks, but it still needs to be really fixed — I don't think most schools are going to run Greasemonkey!


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

Offline

 

#5414 2012-06-08 13:45:11

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

Re: BYOB 3 - Discussion Thread

PS In case you missed the reference:

https://en.wikipedia.org/wiki/%E2%80%9330%E2%80%93


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

Offline

 

#5415 2012-06-08 16:47:17

asampal
New Scratcher
Registered: 2011-08-26
Posts: 9

Re: BYOB 3 - Discussion Thread

Further notes on this issue. The browser scroll bars only appear when the browser size is below a certain threshold - only then does a space cause the vertical scroll. When the browser size is large enough, space doesn't cause scrolling, but neither does it insert a space - the character is dropped, it seems.

asampal wrote:

In case anyone is tracking these issues, in the latest Chromium builds (e.g. 21.0.1168.0 (Developer Build 141182 Windows)), I can't enter a space in the text for a "say" block. When I attempt to do so, the browser scrolls the page down instead of inserting a space character. Looks like Snap! is not getting the event and the browser is just handling it per default.

Offline

 

#5416 2012-06-08 17:04:54

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

Hardmath123 wrote:

You need a GreaseMonkey userscript:

Good workaround, thanks, but it still needs to be really fixed — I don't think most schools are going to run Greasemonkey!

No need for a Greasemonkey script, we just need to add a CSS selector to nasciturus.html:

Code:

body {
   overflow: hidden !important;
}

http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#5417 2012-06-08 22:07:10

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

Re: BYOB 3 - Discussion Thread

fullmoon wrote:

No need for a Greasemonkey script, we just need to add a CSS selector to nasciturus.html

Nice work, thanks!


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

Offline

 

#5418 2012-06-08 23:00:48

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

Re: BYOB 3 - Discussion Thread

fullmoon wrote:

bharvey wrote:

Hardmath123 wrote:

You need a GreaseMonkey userscript:

Good workaround, thanks, but it still needs to be really fixed — I don't think most schools are going to run Greasemonkey!

No need for a Greasemonkey script, we just need to add a CSS selector to nasciturus.html:

Code:

body {
   overflow: hidden !important;
}

Even better, add it into the inline style. <body style="overflow:hidden">  smile

@bharvey: I got the reference, I was wondering why you didn't say "Peace Out!".  tongue


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

Offline

 

#5419 2012-06-09 02:34:38

OldCodger
New Scratcher
Registered: 2012-05-16
Posts: 54

Re: BYOB 3 - Discussion Thread

Two things I'd like to see from Haskell:

pattern matching
list comprehension

Offline

 

#5420 2012-06-09 08:49:28

Taneb
Scratcher
Registered: 2009-07-07
Posts: 100+

Re: BYOB 3 - Discussion Thread

OldCodger wrote:

Two things I'd like to see from Haskell:

pattern matching
list comprehension

I think pattern matching would be quite hard to add to Snap.

List comprehensions may be doable, though...

Offline

 

#5421 2012-06-09 10:03:58

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

Re: BYOB 3 - Discussion Thread

Taneb wrote:

I think pattern matching would be quite hard to add to Snap.

Making it an integral part of the syntax, as in Haskell, would be awkward.  OTOH it's easy enough to write a pattern matching procedure as a Snap! custom block.


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

Offline

 

#5422 2012-06-09 12:25:26

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

Re: BYOB 3 - Discussion Thread

Is there a Snap! discussion thread?

EDIT: Wow, totally missed my 500th post, this is my 505th. Might as well celebrate here.  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile

Last edited by technoboy10 (2012-06-09 12:27:01)


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

Offline

 

#5423 2012-06-09 13:59:02

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

it's easy enough to write a pattern matching procedure as a Snap! custom block.

I wouldn't really know where to start.

BTW, I thought of an idea to disambiguify a single input from a block dropped onto a varadic input: a special "ring" with the text "items of" that automaticly appears when you drop something onto the arrowheads.


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

 

#5424 2012-06-09 15:30:59

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

Re: BYOB 3 - Discussion Thread

joefarebrother wrote:

I wouldn't really know where to start.

http://www.cs.berkeley.edu/~bh/ssch16/match.html

That chapter is written in terms of words and sentences, sort of a cross between strings and lists implemented as an abstract data type.  You should probably work with lists, and use ITEM 1 OF for FIRST, use ALL BUT FIRST OF for BUTFIRST, and use IN FRONT OF for SENTENCE.


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

Offline

 

#5425 2012-06-09 16:01:37

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

Re: BYOB 3 - Discussion Thread

OldCodger wrote:

list comprehension

Look at my lazy list BYOB project to see how we can do this.  The syntax isn't exactly the same, but nothing stops you from making a block

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

if that notation turns you on.


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

Offline

 

Board footer