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

#2701 2012-04-15 11:51:01

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

Re: ITopic: Welcome to your local block library!

I only know what other people have told me - I'm not so knowledgeable in servers and databases at the moment, but I'm sure that the php thing is not the direct way to access the database.  After all, the php page doesn't call a php page to access the database!  I'm not trying to bypass using a url - I want to skip the extra php part and go straight to the database.  Get it?

A python or C# server thing exists, I'm sure, that accesses a database directly - why can't squeak do the same?

Last edited by LiquidMetal (2012-04-15 11:52:43)

Offline

 

#2702 2012-04-15 12:02:23

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

Re: ITopic: Welcome to your local block library!

Sparks, one more thing about the uploader:  is it going to be possible to give it a Internet URL and copy/upload the image directly, or are we going to have to download the pictures onto our computers, then upload?   hmm

Offline

 

#2703 2012-04-15 12:18:58

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

Re: ITopic: Welcome to your local block library!

LiquidMetal wrote:

I only know what other people have told me - I'm not so knowledgeable in servers and databases at the moment, but I'm sure that the php thing is not the direct way to access the database.  After all, the php page doesn't call a php page to access the database!  I'm not trying to bypass using a url - I want to skip the extra php part and go straight to the database.  Get it?

A python or C# server thing exists, I'm sure, that accesses a database directly - why can't squeak do the same?

You want to execute a SQL query directly from Squeak. Try Googling for it, or using the Squeak forums.

Greenatic wrote:

Sparks, one more thing about the uploader:  is it going to be possible to give it a Internet URL and copy/upload the image directly, or are we going to have to download the pictures onto our computers, then upload?   hmm

You can input a URL into the name chooser input, and it will download it into a temporary files folder somewhere in APPDATA.

Offline

 

#2704 2012-04-15 12:37:15

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

Re: ITopic: Welcome to your local block library!

scimonster wrote:

You want to execute a SQL query directly from Squeak. Try Googling for it, or using the Squeak forums.

I found a few things on the squeak wiki, but I get lost quickly, and was wondering if someone here could make the blocks.

Offline

 

#2705 2012-04-15 13:00:46

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

Re: ITopic: Welcome to your local block library!

Hi everyone!

So.

Yes, I'm working on an uploader that will just take URLs, the one currently up is a slightly modified one I was using on another site but we really do need an URL based one.

A list of uploaded images can quite simply be seen by going to http://blocks.scratchr.org/images/blocks/ because there's no index file  smile

@liquidMetal, I've seen people get Panther or Scratch to access web data using POST rather than GET, but its still connecting to a web page. This is how all programs have to do it as far as I know, and it isn't TOO slow  smile


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

Offline

 

#2706 2012-04-15 13:26:09

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

Re: ITopic: Welcome to your local block library!

That depends how many times you want to access it at once.  Can you explain this GET and POST thing?

Last edited by LiquidMetal (2012-04-15 13:42:08)

Offline

 

#2707 2012-04-15 13:37:05

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

Re: ITopic: Welcome to your local block library!

@Sparks:  Is it up?  I go to blocks.scratchr.org and it still tells me:

Welcome to your local block library. This site is currently under construction but you can still use the library from our forum thread. Thanks, Sparks

Offline

 

#2708 2012-04-15 13:57:36

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

Re: ITopic: Welcome to your local block library!

I posted a link, wotdr? Sorry  tongue  http://blocks.scratchr.org/uploadBlockImage.php

I'll add a link to the home page too...

Last edited by sparks (2012-04-15 13:58:01)


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

Offline

 

#2709 2012-04-15 14:30:52

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

Re: ITopic: Welcome to your local block library!

sparks wrote:

I posted a link, wotdr? Sorry  tongue  http://blocks.scratchr.org/uploadBlockImage.php

I'll add a link to the home page too...

What does it mean by "block name"?  The blockspec?

Offline

 

#2710 2012-04-15 15:11:08

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

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

sparks wrote:

I posted a link, wotdr? Sorry  tongue  http://blocks.scratchr.org/uploadBlockImage.php

I'll add a link to the home page too...

What does it mean by "block name"?  The blockspec?

The block title will be the name of the image. To help people who cannot see the image work out what the block is, please name it appropriately using brackets for arguments e.g. 'say [] for () secs. Spaces will automatically be converted to underscores

Sorry for being unclear, I need to do a  lot of work on that uploader.


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

Offline

 

#2711 2012-04-15 15:33:16

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

Re: ITopic: Welcome to your local block library!

LiquidMetal wrote:

I only know what other people have told me - I'm not so knowledgeable in servers and databases at the moment, but I'm sure that the php thing is not the direct way to access the database.  After all, the php page doesn't call a php page to access the database!  I'm not trying to bypass using a url - I want to skip the extra php part and go straight to the database.  Get it?

A python or C# server thing exists, I'm sure, that accesses a database directly - why can't squeak do the same?

well I'm not sure but i think PHP and ASP are the only programming languages that can directly access a database.


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

 

#2712 2012-04-15 15:49:56

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

Re: ITopic: Welcome to your local block library!

sparks wrote:

Greenatic wrote:

sparks wrote:

I posted a link, wotdr? Sorry  tongue  http://blocks.scratchr.org/uploadBlockImage.php

I'll add a link to the home page too...

What does it mean by "block name"?  The blockspec?

The block title will be the name of the image. To help people who cannot see the image work out what the block is, please name it appropriately using brackets for arguments e.g. 'say [] for () secs. Spaces will automatically be converted to underscores

Sorry for being unclear, I need to do a  lot of work on that uploader.

Alright.  Shouldn't we make different folders for motion, control, etc.?

EDIT:  I added some images.  I can do more direct uploading by Scimonster's method, so what we really need is:

1) Making folders
2) Deleting files/folders
3) Multiple file uploads

Last edited by Greenatic (2012-04-15 16:05:48)

Offline

 

#2713 2012-04-15 16:09:39

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

Re: ITopic: Welcome to your local block library!

Hmm I was thinking about this. Will putting them in category folders be a good idea? For example, we can categorise them by type, but what if we wanted to list booleans only?

I shall work on the uploader a bit more now with your suggestions. I will have to do a lot of research though, it's all new to me, FTPing  smile

What folders? Are we dividing them by mod as well as category?


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

Offline

 

#2714 2012-04-15 16:13:45

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

Re: ITopic: Welcome to your local block library!

sparks wrote:

Hmm I was thinking about this. Will putting them in category folders be a good idea? For example, we can categorise them by type, but what if we wanted to list booleans only?

I shall work on the uploader a bit more now with your suggestions. I will have to do a lot of research though, it's all new to me, FTPing  smile

What folders? Are we dividing them by mod as well as category?

I was thinking this blocks/mod/category.

BTW, I just realized I added a tinypic image, blocks/motion_blocks.jpg, that isn't needed.  Can you delete it?

EDIT:  And what is bg_title.png?

Last edited by Greenatic (2012-04-15 16:16:37)

Offline

 

#2715 2012-04-15 16:26:02

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

Re: ITopic: Welcome to your local block library!

bg tile.png is the background image for the upload page. I was trying it out for looks.

tinypic is a whitelisted host? Do you reckon we should still move them so they're all in one place?


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

Offline

 

#2716 2012-04-15 16:28:35

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

Re: ITopic: Welcome to your local block library!

sparks wrote:

bg tile.png is the background image for the upload page. I was trying it out for looks.

tinypic is a whitelisted host? Do you reckon we should still move them so they're all in one place?

Images from these places work:

modshare
scratch.mit.edu
blocks.scratchr.org
tinypic.com
imgur.com
imageshack.us
photobucket.com

We should probably transfer them anyway.

Last edited by Greenatic (2012-04-15 16:30:19)

Offline

 

#2717 2012-04-15 16:29:55

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

Re: ITopic: Welcome to your local block library!

So... shall we move tinypics anyway? I do think putting them all with sensible names on the blocks host is a good idea...

turns out there's a neat PHP function for reading images from other sites, an uploader to do that shouldn't be a problem!


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

Offline

 

#2718 2012-04-15 16:31:16

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

Re: ITopic: Welcome to your local block library!

sparks wrote:

So... shall we move tinypics anyway? I do think putting them all with sensible names on the blocks host is a good idea...

turns out there's a neat PHP function for reading images from other sites, an uploader to do that shouldn't be a problem!

Sweet!  Let's transfer them too, but before we start mass-tranferring, we need to decide what (if any) directory system we are going to use.

Last edited by Greenatic (2012-04-15 16:31:32)

Offline

 

#2719 2012-04-15 16:36:56

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

sparks wrote:

So... shall we move tinypics anyway? I do think putting them all with sensible names on the blocks host is a good idea...

turns out there's a neat PHP function for reading images from other sites, an uploader to do that shouldn't be a problem!

Sweet!  Let's transfer them too, but before we start mass-tranferring, we need to decide what (if any) directory system we are going to use.

How about:
- /
- - motion/
- - control/
- - looks/
- - sensing/
- - sound/
- - operators/
- - pen/
- - variables/
- - other/


http://i.imgur.com/zeIZW.png

Offline

 

#2720 2012-04-15 16:41:17

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

Re: ITopic: Welcome to your local block library!

Okay. I'm armed with a fresh cup of coffee and ready to go!

One thing that's been niggling at me through this is that we should be using an API to generate block images... I think nXIII's one could handle it and I really think this might br a plan to do now to replace the existing images since we want to render them in the end...


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

Offline

 

#2721 2012-04-15 16:42:58

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

Re: ITopic: Welcome to your local block library!

rookwood101 wrote:

Greenatic wrote:

sparks wrote:

So... shall we move tinypics anyway? I do think putting them all with sensible names on the blocks host is a good idea...

turns out there's a neat PHP function for reading images from other sites, an uploader to do that shouldn't be a problem!

Sweet!  Let's transfer them too, but before we start mass-tranferring, we need to decide what (if any) directory system we are going to use.

How about:
- /
- - motion/
- - control/
- - looks/
- - sensing/
- - sound/
- - operators/
- - pen/
- - variables/
- - other/

I was thinking:

blocks/Mod/category

sparks wrote:

Okay. I'm armed with a fresh cup of coffee and ready to go!

One thing that's been niggling at me through this is that we should be using an API to generate block images... I think nXIII's one could handle it and I really think this might br a plan to do now to replace the existing images since we want to render them in the end...

Do you have a link to nXIII's?  I don't know where to find it...

Last edited by Greenatic (2012-04-15 16:45:24)

Offline

 

#2722 2012-04-15 16:45:57

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

Re: ITopic: Welcome to your local block library!

sparks wrote:

Okay. I'm armed with a fresh cup of coffee and ready to go!

One thing that's been niggling at me through this is that we should be using an API to generate block images... I think nXIII's one could handle it and I really think this might br a plan to do now to replace the existing images since we want to render them in the end...

Was I making it up that nXIII did one? I can't find it... The main Scratch one won't do, cos it doesn't accept blocks that aren't in the main Scratch... I suppose it could be modified...


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

Offline

 

#2723 2012-04-15 16:48:42

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

Re: ITopic: Welcome to your local block library!

sparks wrote:

sparks wrote:

Okay. I'm armed with a fresh cup of coffee and ready to go!

One thing that's been niggling at me through this is that we should be using an API to generate block images... I think nXIII's one could handle it and I really think this might br a plan to do now to replace the existing images since we want to render them in the end...

Was I making it up that nXIII did one? I can't find it... The main Scratch one won't do, cos it doesn't accept blocks that aren't in the main Scratch... I suppose it could be modified...

Or TheSuccessor's...   hmm

Offline

 

#2724 2012-04-15 16:49:17

joletole
Scratcher
Registered: 2011-02-20
Posts: 1000+

Re: ITopic: Welcome to your local block library!

I have a suggestion for your website.

How about, when you go onto the website, there will be an introduction, the exact same one as the one on here. Then, at the top, you have 5 options, scratch blocks, panther, byob, the statistics, and the glossary.

Then, when you click on either scratch blocks, byob, or panther, it will bring you to a page that has the corosponding page.

Offline

 

#2725 2012-04-15 16:50:45

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

Re: ITopic: Welcome to your local block library!

joletole wrote:

I have a suggestion for your website.

How about, when you go onto the website, there will be an introduction, the exact same one as the one on here. Then, at the top, you have 5 options, scratch blocks, panther, byob, the statistics, and the glossary.

Then, when you click on either scratch blocks, byob, or panther, it will bring you to a page that has the corosponding page.

We had that, but databases weren't working. Thanks for the suggestion though, joletole  smile

@greenatic, yes, I was just thinking about that one, but it is very unfinished...


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

Offline

 

Board footer