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

#676 2010-11-09 12:19:13

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Lets make a new Scratch viewer!

ScratchReallyROCKS wrote:

[reference to removed posts removed by moderator] Like when nXIII and bbbeb where arguing about wether 0-n is the same thing as n*-1, it doesn't help with anything.

Proof:
We are trying to prove that 0 - n = n * -1. Let's start by assuming that is false.
0 - n ≠ n * -1
Equivalent:
0 - n ≠ -n
Add n to both sides:
0 - n + n ≠ -n + n
Equivalent:
0 - n + n ≠ n - n
Cancel out:
0 ≠ 0
Clearly not right, therefore our assumption that it was false was wrong, so it has to be true.
QED

Last edited by Wolfie1996 (2010-11-09 12:23:17)


/* No comment */

Offline

 

#677 2010-11-09 16:07:07

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Lets make a new Scratch viewer!

MathWizz wrote:

ScratchReallyROCKS wrote:

Hey, could I make a "Suggestions" category on the HTML scratch viewer forums?

Sure!

Alright! I added it.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#678 2010-11-09 20:53:15

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Lets make a new Scratch viewer!

math is awesome. Bbeb or nXIII thought it was false?


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#679 2010-11-09 22:03:21

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: Lets make a new Scratch viewer!

NXIII had an optimization attack...  tongue


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#680 2010-11-09 22:46:48

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

Re: Lets make a new Scratch viewer!

JS FILE READER COMPLETE!!!!

http://scratchhtmlviewer.net23.net/viewer/


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

Offline

 

#681 2010-11-10 03:19:23

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

Re: Lets make a new Scratch viewer!

Yay!!!!!


You can now reach me on Twitter @johnnydean1_

Offline

 

#682 2010-11-10 03:21:59

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

Re: Lets make a new Scratch viewer!

Ah, I cant get it working. it says a script is making Internet Explorer run slowly...


You can now reach me on Twitter @johnnydean1_

Offline

 

#683 2010-11-10 07:11:23

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

Re: Lets make a new Scratch viewer!

johnnydean1 wrote:

Ah, I cant get it working. it says a script is making Internet Explorer run slowly...

sad  Poor Internet Explorer. Try a small file (1 kb.)


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

Offline

 

#684 2010-11-10 07:18:51

pwiter
Scratcher
Registered: 2010-06-02
Posts: 100+

Re: Lets make a new Scratch viewer!

MathWizz wrote:

johnnydean1 wrote:

Ah, I cant get it working. it says a script is making Internet Explorer run slowly...

sad  Poor Internet Explorer. Try a small file (1 kb.)

It doesn't work with Google chrome either


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

Offline

 

#685 2010-11-10 07:20:26

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

Re: Lets make a new Scratch viewer!

pwiter wrote:

MathWizz wrote:

johnnydean1 wrote:

Ah, I cant get it working. it says a script is making Internet Explorer run slowly...

sad  Poor Internet Explorer. Try a small file (1 kb.)

It doesn't work with Google chrome either

I have Chrome. How big is your file?


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

Offline

 

#686 2010-11-10 07:22:32

pwiter
Scratcher
Registered: 2010-06-02
Posts: 100+

Re: Lets make a new Scratch viewer!

MathWizz wrote:

pwiter wrote:

MathWizz wrote:


sad  Poor Internet Explorer. Try a small file (1 kb.)

It doesn't work with Google chrome either

I have Chrome. How big is your file?

249 kb is it too big


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

Offline

 

#687 2010-11-10 07:26:25

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

Re: Lets make a new Scratch viewer!

pwiter wrote:

MathWizz wrote:

pwiter wrote:


It doesn't work with Google chrome either

I have Chrome. How big is your file?

249 kb is it too big

yikes  1024 * 249 = 254976 bytes! Nope... Too big...


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

Offline

 

#688 2010-11-10 07:28:23

pwiter
Scratcher
Registered: 2010-06-02
Posts: 100+

Re: Lets make a new Scratch viewer!

MathWizz wrote:

pwiter wrote:

MathWizz wrote:


I have Chrome. How big is your file?

249 kb is it too big

yikes  1024 * 249 = 254976 bytes! Nope... Too big...

What's the maximum file size


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

Offline

 

#689 2010-11-10 07:42:43

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

Re: Lets make a new Scratch viewer!

pwiter wrote:

MathWizz wrote:

pwiter wrote:

249 kb is it too big

yikes  1024 * 249 = 254976 bytes! Nope... Too big...

What's the maximum file size

I just tried it with a 242 kb file and it worked like a charm...

EDIT: LOL! That whole file was sound, not images or scripts...

Last edited by MathWizz (2010-11-10 07:45:17)


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

Offline

 

#690 2010-11-10 13:50:17

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Lets make a new Scratch viewer!

MathWizz wrote:

JS FILE READER COMPLETE!!!!

http://scratchhtmlviewer.net23.net/viewer/

Nice!  big_smile
One thing I'd recommend: use the String.fromCharCode(...) and string.charCodeAt(...) methods instead of big arrays for conversions  smile

Oh, and maybe limit the output...it makes your script slower.

Last edited by nXIII (2010-11-10 13:51:04)


nXIII

Offline

 

#691 2010-11-10 14:10:59

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

Re: Lets make a new Scratch viewer!

nXIII wrote:

One thing I'd recommend: use the String.fromCharCode(...) and string.charCodeAt(...) methods instead of big arrays for conversions  smile

Wow... I had to do ALL THAT WORK, and there are already too functions for it.  neutral

nXIII wrote:

Oh, and maybe limit the output...it makes your script slower.

I realized that but I didn't realize HOW slow...  smile


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

Offline

 

#692 2010-11-10 15:04:46

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Lets make a new Scratch viewer!

how did you make a JS file uploader?


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#693 2010-11-10 15:05:58

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Lets make a new Scratch viewer!

how did you decode it?


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#694 2010-11-10 15:27:51

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

Re: Lets make a new Scratch viewer!

Can you modify it to read projects from the scratch site when given a address.


You can now reach me on Twitter @johnnydean1_

Offline

 

#695 2010-11-10 16:05:38

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Lets make a new Scratch viewer!

johnnydean1 wrote:

Can you modify it to read projects from the scratch site when given a address.

That's the point of it, right?

When are we going to get to the block adding, because that's the part I want to help with.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#696 2010-11-10 16:19:00

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

Re: Lets make a new Scratch viewer!

ScratchReallyROCKS wrote:

johnnydean1 wrote:

Can you modify it to read projects from the scratch site when given a address.

That's the point of it, right?

When are we going to get to the block adding, because that's the part I want to help with.

Now that we have read the the file we can start making the viewer!

EDIT: Has ANYONE (not nXIII) gotten it to work?

Last edited by MathWizz (2010-11-10 16:19:42)


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

Offline

 

#697 2010-11-10 16:22:39

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

Re: Lets make a new Scratch viewer!

I can get it to work with small files (under about 50kb)

Last edited by johnnydean1 (2010-11-10 16:25:58)


You can now reach me on Twitter @johnnydean1_

Offline

 

#698 2010-11-10 16:23:40

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

Re: Lets make a new Scratch viewer!

91,316 bytes I am now trying


You can now reach me on Twitter @johnnydean1_

Offline

 

#699 2010-11-10 16:26:14

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

Re: Lets make a new Scratch viewer!

89.1 KB (91,316 bytes) doen't work  sad


You can now reach me on Twitter @johnnydean1_

Offline

 

#700 2010-11-10 16:39:24

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Lets make a new Scratch viewer!

MathWizz wrote:

Now that we have read the the file we can start making the viewer!

EDIT: Has ANYONE (not nXIII) gotten it to work?

What part o' the viewer?


nXIII

Offline

 

Board footer