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

#2651 2012-04-08 14:17:32

PencilFactory
Scratcher
Registered: 2011-11-11
Posts: 100+

Re: ITopic: Welcome to your local block library!

press flag block:
block specs:

Code:

 ('press flag' #- #pressGreenFlag)

scriptable scratch block morph

Code:

pressGreenFlag
    self broadcast: 'Scratch-StartClicked' withArgument: 0

Last edited by PencilFactory (2012-04-08 14:17:58)


PencilFactory is http://blocks.scratchr.org/API.php?user=PencilFactory&action=onlineStatus&type=text, see my computerhttp://mag.racked.eu/cimage/i9002/Achievement+get%21/Computer+crashed/mca.png

Offline

 

#2652 2012-04-08 14:25:25

PencilFactory
Scratcher
Registered: 2011-11-11
Posts: 100+

Re: ITopic: Welcome to your local block library!

that

l(ask for file with title [Choose a file] accepting extensions [txt doc])
should be
<ask for file with title [Choose a file] accepting extensions [txt doc]>

Last edited by PencilFactory (2012-04-08 14:26:12)


PencilFactory is http://blocks.scratchr.org/API.php?user=PencilFactory&amp;action=onlineStatus&amp;type=text, see my computerhttp://mag.racked.eu/cimage/i9002/Achievement+get%21/Computer+crashed/mca.png

Offline

 

#2653 2012-04-08 14:59:34

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

Re: ITopic: Welcome to your local block library!

Sparks, if you make an uploader on the site, I'll help move images there, after scratchr.org gets whitelisted.

Offline

 

#2654 2012-04-08 15:15:45

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

Re: ITopic: Welcome to your local block library!

Thanks, sci, that's cool! I've emailed lightnin but am still waiting for a response  smile


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

Offline

 

#2655 2012-04-09 18:59:10

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

Re: ITopic: Welcome to your local block library!

Hey, I was wondering how complicated it would be to get panther blocks for my own MySQL server?  (Directly with something like libMySQL, not the html interface way?)

Thanks!

Offline

 

#2656 2012-04-09 19:06:38

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: ITopic: Welcome to your local block library!

LiquidMetal wrote:

Hey, I was wondering how complicated it would be to get panther blocks for my own MySQL server?  (Directly with something like libMySQL, not the html interface way?)

Thanks!

I'm guessing it would be rather difficult, but I could be wrong.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#2657 2012-04-09 19:23:22

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

Re: ITopic: Welcome to your local block library!

jvvg wrote:

LiquidMetal wrote:

Hey, I was wondering how complicated it would be to get panther blocks for my own MySQL server?  (Directly with something like libMySQL, not the html interface way?)

Thanks!

I'm guessing it would be rather difficult, but I could be wrong.

You give me hope  big_smile .

Last edited by LiquidMetal (2012-04-09 19:57:13)

Offline

 

#2658 2012-04-09 20:07:56

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: ITopic: Welcome to your local block library!

LiquidMetal wrote:

jvvg wrote:

LiquidMetal wrote:

Hey, I was wondering how complicated it would be to get panther blocks for my own MySQL server?  (Directly with something like libMySQL, not the html interface way?)

Thanks!

I'm guessing it would be rather difficult, but I could be wrong.

You give me hope  big_smile .

I'm just trying to be realistic...


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#2659 2012-04-09 20:22:25

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

Re: ITopic: Welcome to your local block library!

jvvg wrote:

LiquidMetal wrote:

jvvg wrote:


I'm guessing it would be rather difficult, but I could be wrong.

You give me hope  big_smile .

I'm just trying to be realistic...

I'm don't want realistic, I want possible, and to know if it will be faster, and If I can get around the error message I keep getting on JD1's server.

http://scratchlive.xtreemhost.com/set.php?user=variable&pass=1 wrote:

Warning: mysql_connect() [function.mysql-connect]: User xth_7668455 already has more than 'max_user_connections' active connections in /home/vol5/xtreemhost.com/xth_7668455/htdocs/set.php on line 13
Could not connect: User xth_7668455 already has more than 'max_user_connections' active connections

Offline

 

#2660 2012-04-09 23:38:34

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

Re: ITopic: Welcome to your local block library!

LiquidMetal wrote:

jvvg wrote:

LiquidMetal wrote:

You give me hope  big_smile .

I'm just trying to be realistic...

I'm don't want realistic, I want possible, and to know if it will be faster, and If I can get around the error message I keep getting on JD1's server.

http://scratchlive.xtreemhost.com/set.php?user=variable&pass=1 wrote:

Warning: mysql_connect() [function.mysql-connect]: User xth_7668455 already has more than 'max_user_connections' active connections in /home/vol5/xtreemhost.com/xth_7668455/htdocs/set.php on line 13
Could not connect: User xth_7668455 already has more than 'max_user_connections' active connections

It would be possible, but perhaps slightly difficult. Just make sure you can have lots of connections!

Offline

 

#2661 2012-04-10 03:31:33

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

Re: ITopic: Welcome to your local block library!

Sci is right, It would be possible for me to set up an external connection for you to the database giving you read-only permissions for safety. Why do you want it?


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

Offline

 

#2662 2012-04-10 04:58:02

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

Re: ITopic: Welcome to your local block library!

sparks wrote:

Sci is right, It would be possible for me to set up an external connection for you to the database giving you read-only permissions for safety. Why do you want it?

I believe he wants to remake those blocks connecting to a new server, since the cloud storage got used too much, and the host didn't allow that many connections.

Offline

 

#2663 2012-04-10 06:54:09

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

Re: ITopic: Welcome to your local block library!

Just a small reminder to all librarians that the blocklib account should not be used in the community moderator elections as it belongs to a group  smile  (Especially since two librarians are running this time  wink  )


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

Offline

 

#2664 2012-04-10 07:04:26

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

Re: ITopic: Welcome to your local block library!

You're never supposed to use two accounts.  hmm  Or a joint account.
In the elections I mean. xD

Offline

 

#2665 2012-04-10 14:43:01

Splodgey
Scratcher
Registered: 2011-04-26
Posts: 500+

Re: ITopic: Welcome to your local block library!

Splodgey wrote:

I have 3 panther blocks...
http://i.imgur.com/VFLZ9.gif
Name:

Code:

$number$ out of $number$ as %

Type:

Code:

 r

Code:

Code:

t1/t2*100

http://i.imgur.com/Szjrv.gif
This block is already in Panther, but you can't drag reporter blocks in a "$Keys$ slot". Although this could be achieved with <(key pressed) = []>.
Name:

Code:

key $String$ pressed?

Type:

Code:

b

Code:

Code:

self keyPressed: t1

http://i.imgur.com/UC9Ib.gif
I discovered this when dragging the (key pressed) block into the above block  tongue
Name:

Code:

any button pressed?

Type:

Code:

b

Code:

Code:

self keyPressed: self keyPressed

Managed to fix the imges!  big_smile

EDIT: But not when quoted...

Last edited by Splodgey (2012-04-10 14:43:28)

Offline

 

#2666 2012-04-10 18:20:43

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

Re: ITopic: Welcome to your local block library!

scimonster wrote:

sparks wrote:

Sci is right, It would be possible for me to set up an external connection for you to the database giving you read-only permissions for safety. Why do you want it?

I believe he wants to remake those blocks connecting to a new server, since the cloud storage got used too much, and the host didn't allow that many connections.

I'm planning to host my own database, for my own global variables. I want to connect to it directly with libMySQL or the like.

Really, the specifics don't matter, but:
1) I want the blocks to be as fast as possible.  If the blocks go through html, to the database, and back to the html, which returns to the block, It would presumably be slower if the block goes directly to the database, which returns to the block. Right?
2) I want to authenticate securely: as in no "&pass=1 in url, but still using some sort of authentication. Is that possible?

Thanks!

Offline

 

#2667 2012-04-10 20:08:00

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

Re: ITopic: Welcome to your local block library!

Side: what is the difference between panther blocks 28 and 52?

Offline

 

#2668 2012-04-11 02:44:29

space928
Scratcher
Registered: 2011-08-13
Posts: 6

Re: ITopic: Welcome to your local block library!

New block!      #CREDIT TO MY DAD#

blockspec:
('Make me 3D with X spacing of costume: %n and Y spacing of costume: %n with %n thickness ' #- #X:Y:Thickness:)

Code:

X: t1 Y: t2 Thickness: t3 
    | t4 |
    t3
        timesRepeat: 
            [(t4 _ self ownerThatIsA: ScratchStageMorph) ifNotNil: [t4 stampCostume: self].
            self referencePosition: self referencePosition + (t1 @ t2)]

What this block does
The block will make the sprite 3D.
____________________________________________________________________________________

when gf clicked
repeat until <(timer) > [10]>
  go to [Space v]
end
think [Imagine] for (infinity) secs

Last edited by space928 (2012-04-11 07:47:37)

Offline

 

#2669 2012-04-12 14:26:58

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

Re: ITopic: Welcome to your local block library!

Block Request for panther:

bucket fill [color1 v] at x: ( ) y: ( ) of [sprite1 v]
bucket fill [color1 v] at x: ( ) y: ( ) of [stage v]
bucket fill [color1 v] at x: ( ) y: ( ) 
The 1st and 2nd could be either permanent or temporary.
The 3rd would clear with the clear block.

Last edited by LiquidMetal (2012-04-12 14:32:57)

Offline

 

#2670 2012-04-12 15:23:33

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

Re: ITopic: Welcome to your local block library!

Hmm, an interesting idea... It would take the colour of the point you specify and fill in all of that colour surrounding? I don't know if it's possible but it's a good idea. Tomorrow I am free, and I've decided that's a good excuse for me to go ahead and do a proper update for the library!


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

Offline

 

#2671 2012-04-12 15:46:14

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

Re: ITopic: Welcome to your local block library!

sparks wrote:

Hmm, an interesting idea... It would take the colour of the point you specify and fill in all of that colour surrounding? I don't know if it's possible but it's a good idea. Tomorrow I am free, and I've decided that's a good excuse for me to go ahead and do a proper update for the library!

Can't wait  big_smile

I think you missed 2 of my posts above.

Offline

 

#2672 2012-04-12 16:40:32

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

Re: ITopic: Welcome to your local block library!

Oh yes, sorry. The problem with your database idea is that the database isn't mine, it belongs to the Scratch team, and they would probably not be too happy about a direct-read connection  hmm

It appears there is no difference at all between the blocks, I shall combine them!

I've just realised that if I won't be able to do an update tomorrow if lightnin hasn't approved the blocks.scratchr.org site for image hosting...


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

Offline

 

#2673 2012-04-12 19:24:23

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

Re: ITopic: Welcome to your local block library!

sparks wrote:

Oh yes, sorry. The problem with your database idea is that the database isn't mine, it belongs to the Scratch team, and they would probably not be too happy about a direct-read connection  hmm

It appears there is no difference at all between the blocks, I shall combine them!

I've just realised that if I won't be able to do an update tomorrow if lightnin hasn't approved the blocks.scratchr.org site for image hosting...

It will still work for Antidote users, though, and I'm sure Lightnin will do it eventually.   smile

EDIT:  And do we have a plan for the website?

Last edited by Greenatic (2012-04-12 19:26:37)

Offline

 

#2674 2012-04-13 04:46:34

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

Re: ITopic: Welcome to your local block library!

Okay, so it's 9:45 am here and I have a day off. I'm skyping with lightnin in about four hours about the CM position, so I'll take that opportunity to remind him to ALLOW images from blocks.scratchr.org. In the meantime I'm going to set up an image uploader page for librarians on the blocks site so we can start porting all images to that host. I've decided to make most of today a block library day to tidy things up etc. I'll be experimenting with the SQL on the site again too, to see if I can get a consistent connection. Any librarians who are free today, I would appreciate some help porting the images!


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

Offline

 

#2675 2012-04-13 09:05:37

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

Re: ITopic: Welcome to your local block library!

sparks wrote:

Okay, so it's 9:45 am here and I have a day off. I'm skyping with lightnin in about four hours about the CM position, so I'll take that opportunity to remind him to ALLOW images from blocks.scratchr.org. In the meantime I'm going to set up an image uploader page for librarians on the blocks site so we can start porting all images to that host. I've decided to make most of today a block library day to tidy things up etc. I'll be experimenting with the SQL on the site again too, to see if I can get a consistent connection. Any librarians who are free today, I would appreciate some help porting the images!

When do you expect the uploader to be up?

And it would probably be best if you can make it upload more than one image at a time...or this is going to be very painful...  tongue

Offline

 

Board footer