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

#751 2011-05-02 10:31:04

YourLocalBlockLib
Scratcher
Registered: 2011-03-10
Posts: 100+

Re: ITopic: Welcome to your local block library!

scimonster wrote:

Scratch now? Panther?

I did Scratch before. Now I'll wok on Panther.
~SSBBM


http://dl.dropbox.com/u/6273449/BlockLibraryTitle.png

Offline

 

#752 2011-05-02 10:33:01

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

Re: ITopic: Welcome to your local block library!

Oh, didn't notice.

Offline

 

#753 2011-05-02 10:36:36

YourLocalBlockLib
Scratcher
Registered: 2011-03-10
Posts: 100+

Re: ITopic: Welcome to your local block library!


http://dl.dropbox.com/u/6273449/BlockLibraryTitle.png

Offline

 

#754 2011-05-02 10:39:20

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

Re: ITopic: Welcome to your local block library!

All work.

Offline

 

#755 2011-05-02 10:49:08

YourLocalBlockLib
Scratcher
Registered: 2011-03-10
Posts: 100+

Re: ITopic: Welcome to your local block library!

Ok! Done with Panther!
~SSBBM


http://dl.dropbox.com/u/6273449/BlockLibraryTitle.png

Offline

 

#756 2011-05-02 10:54:13

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

Re: ITopic: Welcome to your local block library!

big_smile  The Library looks much cooler now.

Offline

 

#757 2011-05-02 13:34:49

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: ITopic: Welcome to your local block library!

YourLocalBlockLib wrote:

Ok! Done with Panther!
~SSBBM

Great!


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#758 2011-05-02 13:40:20

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

Re: ITopic: Welcome to your local block library!

... I was going to say this eariler but don't you think the spaces between the blocks should be un-linked so there isn't a line between each link square?


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

Offline

 

#759 2011-05-02 13:43:49

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

Re: ITopic: Welcome to your local block library!

sparks wrote:

... I was going to say this eariler but don't you think the spaces between the blocks should be un-linked so there isn't a line between each link square?

Yes, I think that but I'm too lazy to log out and change it. XD

Offline

 

#760 2011-05-02 13:56:44

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

Re: ITopic: Welcome to your local block library!

still, looks great!


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

Offline

 

#761 2011-05-02 14:27:18

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

Re: ITopic: Welcome to your local block library!

Right, I (and someone else) have edited all the category links at the bottom of the posts  smile


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

Offline

 

#762 2011-05-02 15:07:34

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

Re: ITopic: Welcome to your local block library!

I was but I had to leave in the middle.  hmm

Offline

 

#763 2011-05-02 17:39:24

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

Re: ITopic: Welcome to your local block library!

Hey Guys, I was having a bit of fun and came up with this:

http://dl.dropbox.com/u/22935223/screenshot.gif

The Panther project directly accesses the statistics page of the block library, filters out the number of blocks in each category and displays them in a bar chart as shown above.

Download the project here!

I thought about doing this when eariler, I noticed that there were far more operator blocks than any other in most parts of the library, probably because they are easy to make and useful and I then wanted to see how many of each block type had been shared over the three applications the library caters for!

The project does not pull up sharer information which is a shame, maybe someone would like to edit the project to add it? The thing I like about this project is it should always work without us having to update a second set of figures when we add a new block!

Though it wasn't needed, the project happens to be 0 sprite 1 script which was fun to do and in this case did not detract from operation speed  smile

This may have applications for the library with a little tweaking as block library updates could occasionally have something similar to this shown so that viewers can get an idea of how the library looks statistically. It's a little easier to picture the meaning of this bar chart than the pure numbers given in the stats page.

Last edited by sparks (2011-05-02 17:49:26)


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

Offline

 

#764 2011-05-02 18:18:32

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: ITopic: Welcome to your local block library!

sparks wrote:

Hey Guys, I was having a bit of fun and came up with this:

http://dl.dropbox.com/u/22935223/screenshot.gif

The Panther project directly accesses the statistics page of the block library, filters out the number of blocks in each category and displays them in a bar chart as shown above.

Download the project here!

I thought about doing this when eariler, I noticed that there were far more operator blocks than any other in most parts of the library, probably because they are easy to make and useful and I then wanted to see how many of each block type had been shared over the three applications the library caters for!

The project does not pull up sharer information which is a shame, maybe someone would like to edit the project to add it? The thing I like about this project is it should always work without us having to update a second set of figures when we add a new block!

Though it wasn't needed, the project happens to be 0 sprite 1 script which was fun to do and in this case did not detract from operation speed  smile

This may have applications for the library with a little tweaking as block library updates could occasionally have something similar to this shown so that viewers can get an idea of how the library looks statistically. It's a little easier to picture the meaning of this bar chart than the pure numbers given in the stats page.

AWESOME! I have an idea, w can take off the script and upload it online to scratch. Then we can whenever a library update happens re make it, save a picture of the stage, and put it on scratch, and update the project! Like the idea? It would be kinda useless besides to show people who didn't download the project how it looks, actually, we could every time save a picture and every update add the project with a new costume of the blocks, then we can make it so the left arrow will change the costume by - 1 and right arrow change to the next costume, you could see it moving! It would be kinda cool.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#765 2011-05-03 01:51:12

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

Re: ITopic: Welcome to your local block library!

sparks wrote:

Hey Guys, I was having a bit of fun and came up with this:

http://dl.dropbox.com/u/22935223/screenshot.gif

The Panther project directly accesses the statistics page of the block library, filters out the number of blocks in each category and displays them in a bar chart as shown above.

Download the project here!

I thought about doing this when eariler, I noticed that there were far more operator blocks than any other in most parts of the library, probably because they are easy to make and useful and I then wanted to see how many of each block type had been shared over the three applications the library caters for!

The project does not pull up sharer information which is a shame, maybe someone would like to edit the project to add it? The thing I like about this project is it should always work without us having to update a second set of figures when we add a new block!

Though it wasn't needed, the project happens to be 0 sprite 1 script which was fun to do and in this case did not detract from operation speed  smile

This may have applications for the library with a little tweaking as block library updates could occasionally have something similar to this shown so that viewers can get an idea of how the library looks statistically. It's a little easier to picture the meaning of this bar chart than the pure numbers given in the stats page.

How is that 0s1s!?
It's awesome!

Offline

 

#766 2011-05-03 06:23:56

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

Re: ITopic: Welcome to your local block library!

scimonster wrote:

How is that 0s1s!?
It's awesome!

It's 0s 1s because the stage holds two costumes (white and display). It then uses the text and rectangle stamp blocks to stamp the information onto the screen. Taking the HTML from the page with the stats page it then filters out the stats post, then divides that into rough chunks that contain the information for Scratch, Panther and BYOB to seperate variables . Then it takes it to the next stage  by filtering our the bare surrounding HTML and working out the number inside the [ ]'s on each category! As long as no-one changes the location of the little block images at the top of each statistics part and the layout is drastically changed it should filter it all out nicely! It relies on the (index of [ ] starting at ( ) in [ ]) block a lot, very useful block, as well as three panther library blocks - stamp text, stamp rectangle and set stepping speed (the last one lets the project parser and display the information faster.


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

Offline

 

#767 2011-05-03 11:54:03

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: ITopic: Welcome to your local block library!

New Panther Blocks:

Name:

get var $String$ from online

Type

r

Code:

    | t2 t3 t4 t5 t6 t7 t8 |
    t8 _ t1 asString.
 t2_ 'http://scratchlive.xtreemhost.com/'.
    t2 _ t2 asString.
    t3 _ t2 , 'set.php?user=' , t8 , '&pass=1'.
    t4 _ self readLine: 4 FromUrl: t3.
    t4 = '<html>' ifTrue: [t4 _ ''].
    t5 _ 0.
    t7 _ ''.
    t4 size
        timesRepeat: 
            [t5 _ t5 + 1.
            t6 _ self letter: t5 of: t4.
            t6 = '_' ifTrue: [t6 _ ' '].
            t7 _ t7 , t6].
    ^ t7

Name:

set/make a online var $String$ to $String$

Type

-

Code:

    | t3 t4 t5 t6 t7 t8 t9 t10 |
    t9 _ t2 asString.
    t10 _ t1 asString.
    t6 _ 0.
    t8 _ ''.
    t9 size
        timesRepeat: 
            [t6 _ t6 + 1.
            t7 _ self letter: t6 of: t9.
            t7 = ' ' ifTrue: [t7 _ '_'].
            t8 _ t8 , t7].
    t3 _ PhpUrl.
t3 _ 'http://scratchlive.xtreemhost.com/'.
    t3 _ t3 asString.
    t4 _ t3 , 'set.php?user=' , t10 , '&pass=1&value=' , t8.
    t5 _ self readLine: 4 FromUrl: t4.
    ^ t5

Here, all data and variable names can be seen.
*These are also in Claw


You can now reach me on Twitter @johnnydean1_

Offline

 

#768 2011-05-03 12:42:53

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Panther blocks (online connection needed):


First one:
box1:

number of registered users

box2:

r

Color: any (most likely sensing color)
box3:

^self readFromUrl: 'http://scratch.mit.edu/api/getregisteredusers'

[


Second one:
box1:

number of scratchers with at least one project online

box2:

r

Color: any (most likely sensing color)
box3:

^self readFromUrl: 'http://scratch.mit.edu/api/getcreators'



Third one:
box1:

number of projects online

box2:

r

Color: any (most likely sensing color)
box3:

^self readFromUrl: 'http://scratch.mit.edu/api/gettotalprojects'



Fourth one:
box1:

number of scripts online

box2:

r

Color: any (most likely sensing color)
box3:

^self readFromUrl: 'http://scratch.mit.edu/api/gettotalscripts'



Fifth one:
box1:

number of sprites online

box2:

r

Color: any (most likely sensing color)
box3:

^self readFromUrl: 'http://scratch.mit.edu/api/gettotalsprites.'





There is plenty more where that came from that I have, but they need inserts and I can't get them all working quite yet.

Last edited by Pecola1 (2011-05-03 12:49:08)


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#769 2011-05-03 12:47:17

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

Re: ITopic: Welcome to your local block library!

Pecola1 wrote:

Panther blocks (online connection needed):

First one:
box1:

number of registered users

box2:

r

Color: any (most likely sensing color)
box3:

^self readFromUrl: 'http://scratch.mit.edu/api/getregisteredusers'

Second one:
box1:

number of scratchers with at least one project online

box2:

r

Color: any (most likely sensing color)
box3:

^self readFromUrl: 'http://scratch.mit.edu/api/getcreators'

Third one:
box1:

number of projects online

box2:

r

Color: any (most likely sensing color)
box3:

^self readFromUrl: 'http://scratch.mit.edu/api/gettotalprojects'

Fourth one:
box1:

number of scripts online

box2:

r

Color: any (most likely sensing color)
box3:

^self readFromUrl: 'http://scratch.mit.edu/api/gettotalscripts'

Fifth one:
box1:

number of sprites online

box2:

r

Color: any (most likely sensing color)
box3:

^self readFromUrl: 'http://scratch.mit.edu/api/gettotalsprites.'

There is plenty more where that came from that I have, but they need inserts and I can't get them all working quite yet.

I never thought of doing this!

Offline

 

#770 2011-05-03 12:51:18

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: ITopic: Welcome to your local block library!

scimonster wrote:

Pecola1 wrote:

Panther blocks (online connection needed):
...
There is plenty more where that came from that I have, but they need inserts and I can't get them all working quite yet.

I never thought of doing this!

*facepalm* You shouldn't quote a long post like that, cut some of it out. (I am such a hypocrite  tongue ) (again with the :P)
LOL)

Last edited by Pecola1 (2011-05-03 13:07:07)


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#771 2011-05-03 12:52:40

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

Re: ITopic: Welcome to your local block library!

Pecola1 wrote:

scimonster wrote:

Pecola1 wrote:

Panther blocks (online connection needed):
...
There is plenty more where that came from that I have, but they need inserts and I can't get them all working quite yet.

I never thought of doing this!

*facepalm* You shouldn't quote a long post like that, cut some of it out. (I am such a hypocrite  tongue ) (again with the

Code:

:P)

LOL)

What's with the :P smiley?  tongue
Time for a survey!  tongue

Offline

 

#772 2011-05-03 13:06:46

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: ITopic: Welcome to your local block library!

scimonster wrote:

Pecola1 wrote:

scimonster wrote:


I never thought of doing this!

*facepalm* You shouldn't quote a long post like that, cut some of it out. (I am such a hypocrite  tongue ) (again with the

Code:

:P)

LOL)

What's with the :P smiley?  tongue
Time for a survey!  tongue

Ah... I never noticed you could do that. Well, now I don't need the [code] and [/code] I can just do :P)


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#773 2011-05-03 13:37:09

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

Re: ITopic: Welcome to your local block library!

johnnydean1 wrote:

Are you gonna add my blocks?

We need Sparks for Panther.

Offline

 

#774 2011-05-03 13:43:31

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: ITopic: Welcome to your local block library!

johnnydean1 wrote:

scimonster wrote:

johnnydean1 wrote:

Are you gonna add my blocks?

We need Sparks for Panther.

Coolio.

How is it coolio? I isn't really that cool.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#775 2011-05-03 13:45:59

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

Re: ITopic: Welcome to your local block library!

I think it's an expression of compliance and agreeableness, Sci. I'll get around to adding these in a bit.


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

Offline

 

Board footer