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

#2201 2011-10-09 11:33:25

tpaley
Scratcher
Registered: 2011-05-22
Posts: 100+

Re: ITopic: Welcome to your local block library!

scimonster wrote:

Check the Glossary; it has instructions on how to make a cap.  smile

Where's the glossary?


http://i49.tinypic.com/2z82h3d.gif

Offline

 

#2202 2011-10-09 11:37:30

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: ITopic: Welcome to your local block library!

tpaley wrote:

scimonster wrote:

Check the Glossary; it has instructions on how to make a cap.  smile

Where's the glossary?

http://scratch.mit.edu/redirect/url?link=http://weebly.com/uploads/5/4/1/3/5413503/2428862.gif

Last edited by scimonster (2011-10-09 11:37:52)

Offline

 

#2203 2011-10-09 14:26:09

techdoodle
Scratcher
Registered: 2010-10-08
Posts: 21

Re: ITopic: Welcome to your local block library!

scimonster wrote:

Pecola1 wrote:

techdoodle wrote:

When I select save image for end-user it brings up a black, uncloseable screen and does not save a thing!  sad  help? please?

Hmmm never has happened to me... idk what to do...

I do.

techdoodle, click twice on the black. Shift click the R again, and choose "Turn fill screen on". Try saving the image now.

I clicked twice and nothing hapened....


http://i.picasion.com/pic48/ee5dbb3c993d0986e1efcd07168078ad.gif Click to play!

Offline

 

#2204 2011-10-09 16:14:59

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

techdoodle wrote:

scimonster wrote:

Pecola1 wrote:


Hmmm never has happened to me... idk what to do...

I do.

techdoodle, click twice on the black. Shift click the R again, and choose "Turn fill screen on". Try saving the image now.

I clicked twice and nothing hapened....

Are you holding down shift?  And make sure it's the curvy part of the R...

Offline

 

#2205 2011-10-09 21:02:51

meowmeow55
Scratcher
Registered: 2008-12-24
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

techdoodle wrote:

scimonster wrote:

I do.

techdoodle, click twice on the black. Shift click the R again, and choose "Turn fill screen on". Try saving the image now.

I clicked twice and nothing hapened....

Are you holding down shift?  And make sure it's the curvy part of the R...

He's talking about double-clicking on the black. He can't get back to shift-clicking the R again because it isn't there  tongue


Yawn.

Offline

 

#2206 2011-10-09 21:04:59

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

meowmeow55 wrote:

Greenatic wrote:

techdoodle wrote:


I clicked twice and nothing hapened....

Are you holding down shift?  And make sure it's the curvy part of the R...

He's talking about double-clicking on the black. He can't get back to shift-clicking the R again because it isn't there  tongue

Oh.  Re-install Scratch then.   smile

Offline

 

#2207 2011-10-09 21:16:39

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

http://www.freewebs.com/polyeztahpuppies/isfactor.gif

Code:

('%n is a factor of %n' #b #IsFactor:Of:)

IsFactor: t1 Of: t2
t2 isInf ifTrue:[^ true].
[t2/t1] ifError: [^ false].
^ (t2/t1) = (t2/t1) rounded

http://www.freewebs.com/polyeztahpuppies/ismultiple.gif

Code:

('%n is a multiple of %n' #b #IsMultiple:Of:)

IsMultiple: t1 Of: t2
| t3 t4 |
t2 = 0 ifTrue:[^ false].
t1 isInf ifTrue:[^ true].
(t1 isNaN) | (t2 isInf) | (t2 isNaN) ifTrue:[^ false].
t3 _ t2.
t4 _ 1.
[t3 abs < t1 abs] whileTrue:[
t3 _ t2 * t4.
t4 _ t4 + 1].
^ t3 = t1

http://www.freewebs.com/polyeztahpuppies/isvalidfor.gif

Code:

('%f is valid for %n?' #r #IsValid:For:)

IsValid: t1 For: t2
[self computeFunction: t1 of: t2] ifError: [^ false].
^ true

Last edited by Greenatic (2011-10-09 21:22:54)

Offline

 

#2208 2011-10-10 06:12:04

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Has someone appealed about the weebly site being blocked by Scratch? I can do so if not, or back up the plea.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#2209 2011-10-10 07:40:10

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Speaking of the glossary, by the way, I came across some wonderfully easy to grasp explanations for some of those features found so often in Squeak and other OOPs at a lecture I had yesterday:
Objects

• Objects have properties, methods and events
• An object is based on a class

     – Objects (noun or thing)
         • Forms, Controls
     – Properties (adjectives)
          • Name, Color, Size, Location
     – Methods (verbs)
          • Close, Show, Clear
     – Events (occurs when user takes action)
          • Click, KeyPress, Scroll, Close window
     – Classes (template or blueprint)
          • Contain definition of all available properties, methods and
events

I'll update the glossary with these if people like them later when I have a moment  smile


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#2210 2011-10-10 08:11:50

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

Re: ITopic: Welcome to your local block library!

sparks wrote:

Speaking of the glossary, by the way, I came across some wonderfully easy to grasp explanations for some of those features found so often in Squeak and other OOPs at a lecture I had yesterday:
Objects

• Objects have properties, methods and events
• An object is based on a class

     – Objects (noun or thing)
         • Forms, Controls
     – Properties (adjectives)
          • Name, Color, Size, Location
     – Methods (verbs)
          • Close, Show, Clear
     – Events (occurs when user takes action)
          • Click, KeyPress, Scroll, Close window
     – Classes (template or blueprint)
          • Contain definition of all available properties, methods and
events

I'll update the glossary with these if people like them later when I have a moment  smile

Nice. I needed this earlier!


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

Offline

 

#2211 2011-10-10 15:11:20

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: ITopic: Welcome to your local block library!

sparks wrote:

Has someone appealed about the weebly site being blocked by Scratch? I can do so if not, or back up the plea.

I did. No response though.  hmm

Offline

 

#2212 2011-10-11 20:29:55

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

*cough* update *cough*

Offline

 

#2213 2011-10-11 21:47:21

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

http://www.freewebs.com/polyeztahpuppies/asnotesharps.gif

Code:

('note %N as note, #s' #r #AsNoteSharps:)

AsNoteSharps: t1
| t2 |
t1 isInf ifTrue:[^ 'Invalid'].
t1 isNaN ifTrue:[ ^ 'Invalid'].
t1 ~= t1 rounded ifTrue:[^ 'Invalid'].
t2 _ t1 abs \\ 12.
t2 = 0 ifTrue:[
^ 'C'].
t2 = 1 ifTrue:[
^ 'C#'].
t2 = 2 ifTrue:[
^ 'D'].
t2 = 3 ifTrue:[
^ 'D#'].
t2 = 4 ifTrue:[
^ 'E'].
t2 = 5 ifTrue:[
^ 'F'].
t2 = 6 ifTrue:[
^ 'F#'].
t2 = 7 ifTrue:[
^ 'G'].
t2 = 8 ifTrue:[
^ 'G#'].
t2 = 9 ifTrue:[
^ 'A'].
t2 = 10 ifTrue:[
^ 'A#'].
t2 = 11 ifTrue:[
^ 'B'].

http://www.freewebs.com/polyeztahpuppies/asnoteflats.gif

(That's a flat, not a letter b)

Code:

('note %N as note, bs' #r #AsNoteFlats:)

AsNoteFlats: t1
| t2 |
t1 isInf ifTrue:[^ 'Invalid'].
t1 isNaN ifTrue:[ ^ 'Invalid'].
t1 ~= t1 rounded ifTrue:[^ 'Invalid'].
t2 _ t1 abs \\ 12.
t2 = 0 ifTrue:[
^ 'C'].
t2 = 1 ifTrue:[
^ 'Db'].
t2 = 2 ifTrue:[
^ 'D'].
t2 = 3 ifTrue:[
^ 'Eb'].
t2 = 4 ifTrue:[
^ 'E'].
t2 = 5 ifTrue:[
^ 'F'].
t2 = 6 ifTrue:[
^ 'Gb'].
t2 = 7 ifTrue:[
^ 'G'].
t2 = 8 ifTrue:[
^ 'Ab'].
t2 = 9 ifTrue:[
^ 'A'].
t2 = 10 ifTrue:[
^ 'Bb'].
t2 = 11 ifTrue:[
^ 'B'].

Last edited by Greenatic (2011-10-11 22:05:41)

Offline

 

#2214 2011-10-11 21:54:34

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

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

http://www.freewebs.com/polyeztahpuppie … sharps.gif

Code:

('note %N as note, #s' #r #AsNoteSharps:)

AsNoteSharps: t1
| t2 |
t2 _ t1 abs.
[t2 < 12] whileFalse:[
t2 _ t2 - 12].
t2 = 0 ifTrue:[
^ 'C'].
t2 = 1 ifTrue:[
^ 'C#'].
t2 = 2 ifTrue:[
^ 'D'].
t2 = 3 ifTrue:[
^ 'D#'].
t2 = 4 ifTrue:[
^ 'E'].
t2 = 5 ifTrue:[
^ 'F'].
t2 = 6 ifTrue:[
^ 'F#'].
t2 = 7 ifTrue:[
^ 'G'].
t2 = 8 ifTrue:[
^ 'G#'].
t2 = 9 ifTrue:[
^ 'A'].
t2 = 10 ifTrue:[
^ 'A#'].
t2 = 11 ifTrue:[
^ 'B'].

http://www.freewebs.com/polyeztahpuppie … eflats.gif

(That's a flat, not a letter b)

Code:

('note %N as note, bs' #r #AsNoteFlats:)

AsNoteFlats: t1
| t2 |
t2 _ t1 abs.
[t2 < 12] whileFalse:[
t2 _ t2 - 12].
t2 = 0 ifTrue:[
^ 'C'].
t2 = 1 ifTrue:[
^ 'Db'].
t2 = 2 ifTrue:[
^ 'D'].
t2 = 3 ifTrue:[
^ 'Eb'].
t2 = 4 ifTrue:[
^ 'E'].
t2 = 5 ifTrue:[
^ 'F'].
t2 = 6 ifTrue:[
^ 'Gb'].
t2 = 7 ifTrue:[
^ 'G'].
t2 = 8 ifTrue:[
^ 'Ab'].
t2 = 9 ifTrue:[
^ 'A'].
t2 = 10 ifTrue:[
^ 'Bb'].
t2 = 11 ifTrue:[
^ 'B'].

Replace the whiles with t1\\12 (t2 mod 12) which returns the remainder of t2/12. If t1 is huge, Squeak will temporarily freeze. Oh, and you may want to replace t2_t1 abs with t2_t1 abs rounded (just in case) and t1 ifNaN: [^self]. (again, just in case).


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

Offline

 

#2215 2011-10-11 21:58:06

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Hardmath123 wrote:

Greenatic wrote:

http://www.freewebs.com/polyeztahpuppie … sharps.gif

Code:

('note %N as note, #s' #r #AsNoteSharps:)

AsNoteSharps: t1
| t2 |
t2 _ t1 abs.
[t2 < 12] whileFalse:[
t2 _ t2 - 12].
t2 = 0 ifTrue:[
^ 'C'].
t2 = 1 ifTrue:[
^ 'C#'].
t2 = 2 ifTrue:[
^ 'D'].
t2 = 3 ifTrue:[
^ 'D#'].
t2 = 4 ifTrue:[
^ 'E'].
t2 = 5 ifTrue:[
^ 'F'].
t2 = 6 ifTrue:[
^ 'F#'].
t2 = 7 ifTrue:[
^ 'G'].
t2 = 8 ifTrue:[
^ 'G#'].
t2 = 9 ifTrue:[
^ 'A'].
t2 = 10 ifTrue:[
^ 'A#'].
t2 = 11 ifTrue:[
^ 'B'].

http://www.freewebs.com/polyeztahpuppie … eflats.gif

(That's a flat, not a letter b)

Code:

('note %N as note, bs' #r #AsNoteFlats:)

AsNoteFlats: t1
| t2 |
t2 _ t1 abs.
[t2 < 12] whileFalse:[
t2 _ t2 - 12].
t2 = 0 ifTrue:[
^ 'C'].
t2 = 1 ifTrue:[
^ 'Db'].
t2 = 2 ifTrue:[
^ 'D'].
t2 = 3 ifTrue:[
^ 'Eb'].
t2 = 4 ifTrue:[
^ 'E'].
t2 = 5 ifTrue:[
^ 'F'].
t2 = 6 ifTrue:[
^ 'Gb'].
t2 = 7 ifTrue:[
^ 'G'].
t2 = 8 ifTrue:[
^ 'Ab'].
t2 = 9 ifTrue:[
^ 'A'].
t2 = 10 ifTrue:[
^ 'Bb'].
t2 = 11 ifTrue:[
^ 'B'].

Replace the whiles with t1\\12 (t2 mod 12) which returns the remainder of t2/12. If t1 is huge, Squeak will temporarily freeze. Oh, and you may want to replace t2_t1 abs with t2_t1 abs rounded (just in case) and t1 ifNaN: [^self]. (again, just in case).

Good ideas!  I'll add t1 isInf too.

EDIT:  Original post has been edited with the new code.

Last edited by Greenatic (2011-10-11 22:07:03)

Offline

 

#2216 2011-10-12 13:48:15

LiquidMetal
Scratcher
Registered: 2011-06-15
Posts: 500+

Re: ITopic: Welcome to your local block library!

maybe put #s and bs in a dropdown?

Offline

 

#2217 2011-10-12 13:49:42

LiquidMetal
Scratcher
Registered: 2011-06-15
Posts: 500+

Re: ITopic: Welcome to your local block library!

Also for panther, I'm officially requesting a "Delete background $Number$" and a "Delete costume $Number$" block to go with it. Also is there an import image from file block yet? (weebly blocked so cant check easily)

Offline

 

#2218 2011-10-12 19:19:37

danwoodski
Scratcher
Registered: 2009-12-23
Posts: 100+

Re: ITopic: Welcome to your local block library!

yes, it is number 51 I think.


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://dl.dropbox.com/u/12506914/Pics/p2e-2.png&amp;link2=http://dl.dropbox.com/u/12506914/Pics/ms.png&amp;link3=http://dl.dropbox.com/u/12506914/Pics/block%20lib.png
Starting to move on to other languages, but I'll still be around from time to time  smile

Offline

 

#2219 2011-10-12 19:27:12

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

LiquidMetal wrote:

maybe put #s and bs in a dropdown?

A dropdown for two values?  Really?   tongue

Offline

 

#2220 2011-10-13 10:16:42

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

Re: ITopic: Welcome to your local block library!

LiquidMetal wrote:

Also for panther, I'm officially requesting a "Delete background $Number$" and a "Delete costume $Number$" block to go with it. Also is there an import image from file block yet? (weebly blocked so cant check easily)

I thought you were sparks because of the signature.


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

Offline

 

#2221 2011-10-15 20:52:11

LiquidMetal
Scratcher
Registered: 2011-06-15
Posts: 500+

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

LiquidMetal wrote:

maybe put #s and bs in a dropdown?

A dropdown for two values?  Really?   tongue

Yes!! Much better then all these extra blocks.

Offline

 

#2222 2011-10-15 20:55:32

LiquidMetal
Scratcher
Registered: 2011-06-15
Posts: 500+

Re: ITopic: Welcome to your local block library!

Hardmath123 wrote:

LiquidMetal wrote:

Also for panther, I'm officially requesting a "Delete background $Number$" and a "Delete costume $Number$" block to go with it. Also is there an import image from file block yet? (weebly blocked so cant check easily)

I thought you were sparks because of the signature.

Doesn't Sparks use the image with "New" in the first image? Anyway, we are not the only two with that type of signature.  It can be found on some page in sparks's api thread. (if it is still there, have not checked in a while)

Offline

 

#2223 2011-10-16 13:21:36

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: ITopic: Welcome to your local block library!

BYOB blocks:
Forever when % is true:
http://farm7.static.flickr.com/6225/6250107909_bfd715b8eb_m.jpg
http://farm7.static.flickr.com/6093/6250636584_6acb8de7df_m.jpg
Forever when % is false:
http://farm7.static.flickr.com/6103/6250662120_ce113737e5_m.jpg
http://farm7.static.flickr.com/6045/6250134297_92662212e7_m.jpg

Last edited by SJRCS_011 (2011-10-16 13:28:45)


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#2224 2011-10-17 11:36:26

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Offline

 

#2225 2011-10-17 11:41:10

zippynk
Scratcher
Registered: 2011-07-23
Posts: 500+

Re: ITopic: Welcome to your local block library!

YourLocalBlockLib wrote:

The Block Library Is Currently Broken; DO NOT PANIC! We Are Sorting Out The Problem That Weebly Is Currently Filtered By Scratch

Is google sites also filtered?

Last edited by zippynk (2011-10-17 11:41:53)


https://dl.dropbox.com/u/60598636/trifocal_interlude_soundcloud_button.png

Offline

 

Board footer