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

#8001 2013-04-19 21:24:40

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Anybody know of a good way to package Python code as a desktop app?


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#8002 2013-04-19 21:55:07

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

technoboy10 wrote:

Anybody know of a good way to package Python code as a desktop app?

Platypus will do it for the Mac, I think.  Dunno about the others.

EDIT: ... but I'm not sure it actually includes Python in with the app unless you tell it to.

Last edited by bharvey (2013-04-19 22:21:11)


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#8003 2013-04-19 23:36:14

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

A friend of mine in college once decided to live on a 28-hour day because 28*6=24*7 and by rotating phase he'd be awake at the same time as each of his friends at least once in the week.

Yeah, xkcd mentioned something like that. (Was your friend eventually driven as stark raving mad as the title text claims?  tongue )


nXIII

Offline

 

#8004 2013-04-20 00:31:48

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

nXIII wrote:

(Was your friend eventually driven as stark raving mad as the title text claims?  tongue )

No, but he couldn't stick to it very long, just a few weeks I think.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#8005 2013-04-20 01:16:47

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

Re: BYOB 3 - Discussion Thread

How sleepy do you get at night? I usually call it quits once I find myself refreshing my email/the Scratch Forums more than actually coding.  wink

(I just took a self-imposed 36 hour computer break, and ended up spending the day reading xkcd on my iPad, playing Cut the Rope, watching TV and walking around in circles. I tried to play badminton with my dad, but the shuttle fell down and I got more exercise taking the stairs to get it than actually playing. I think that's a bad thing.  hmm )


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

Offline

 

#8006 2013-04-20 03:37:02

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

Re: BYOB 3 - Discussion Thread

I finished my (prototype for a) text-based Snap! language: https://googledrive.com/host/0B8jDsHSM5 … 0snap.html  smile

Tell me if there are any spelling mistakes in the syntax explanation or bugs in the actual program.

Last edited by joefarebrother (2013-04-20 03:37:19)


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

 

#8007 2013-04-20 06:39:36

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

I wasn't always as sensible as I am today.

tongue

MathWizz wrote:

This is really random

Weird O_o

Hardmath123 wrote:

How sleepy do you get at night?

It varies — usually past about 11ish I realise I'm making ridiculously stupid mistakes, and have to give up. But the other night I stayed up 'til 3am hacking on kurt quite happily (though it was really trivial interface stuff, just copying attributes of kurt 1 objects onto kurt 2 ones and back).

I've heard night is better because there are no distractions. But I'm not sure 3am every night is maintainable. Any tips for staying awake the next morning, other than coffee?

I just took a self-imposed 36 hour computer break...

tongue  I gave up worrying about it long ago...
`

technoboy10 wrote:

Anybody know of a good way to package Python code as a desktop app?

Which platform? There's Py2EXE for Windows, and Py2app for Mac, I think.


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#8008 2013-04-20 10:51:24

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

joefarebrother wrote:

mistakes in the syntax explanation

When you talk (twice) about how to get a backslash into a value, you say "escape it twice."  I'm guessing you probably mean "enter it twice."  Escaping twice would mean a total of three backslashes!

Otherwise this looks very cool.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#8009 2013-04-20 16:47:23

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

Re: BYOB 3 - Discussion Thread

bharvey wrote:

When you talk (twice) about how to get a backslash into a value, you say "escape it twice."  I'm guessing you probably mean "enter it twice."  Escaping twice would mean a total of three backslashes!

Ok, I'll fix that when I'm using my computer (I'm posting from w phone right now)

Otherwise this looks very cool.

Thanks!  smile


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

 

#8010 2013-04-21 11:12:27

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: BYOB 3 - Discussion Thread

I felt like some easy coding, so I made a version of scratchblocks2 with Snap! blocks. It even has multi-arg arrows on the "list" and "script variables" blocks, for no very good reason! And I still haven't figured out how to do fancy things like rings; I need to have a good look at joefarebrother's prototype  tongue

@Technoboy10 I saw you were thinking about making a snapblocks fork! If you like, I'll push this stuff to Github for you to finish up, and we can have it in scratchblocks2 as a hidden option — I'm thinking a comment at the beginning to enable "Snap! mode":
   // Snap!

EDIT: note that the screenshot shows a dropdown inside a custom block, which I don't believe Snap! even allows...

Last edited by blob8108 (2013-04-21 11:13:17)


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#8011 2013-04-21 11:50:05

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

Re: BYOB 3 - Discussion Thread

Can't you do some magic and get sharp corners on the booleans? Please?  smile

EDIT: Remember, I got pure CSS hexagons for the ill-fated Hex competition.  wink

Last edited by Hardmath123 (2013-04-21 11:50:41)


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

Offline

 

#8012 2013-04-21 11:55:16

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: BYOB 3 - Discussion Thread

@blob Ok, cool!  big_smile


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#8013 2013-04-21 13:17:13

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

Can't you do some magic and get sharp corners on the booleans?

I... tried... -_-

EDIT: so, yeah: if you can do it, go ahead!  big_smile  The DOM elements do actually have a "boolean" class, so all you need to do is modify the CSS  wink

Last edited by blob8108 (2013-04-21 13:26:03)


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#8014 2013-04-21 13:23:08

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: BYOB 3 - Discussion Thread

technoboy10 wrote:

@blob Ok, cool!  big_smile

Okay, here you go. At the moment it has the following changes from master:
* the snap.html page loads snap.txt and replaces the Scratch ones using the scratchblocks2.blocks interface
* the parser accepts a "// Snap!" comment on the first line, which turns obsolete blocks into grey ones
* blocks tagged ## -multi-arg are shown with the little < > arrows

Ideally:
a) the blocks in snap.txt would be moved into scratchblocks2.js, but only loaded if we're in "Snap! mode"
b) there would be a "Snap! mode"

Have fun!  tongue


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#8015 2013-04-22 06:36:34

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

Re: BYOB 3 - Discussion Thread

That's huge! I haven't seen nth-last-child used before…  tongue


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

Offline

 

#8016 2013-04-22 08:05:28

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

That's huge!

What's huge? And heh, nth-last-child wasn't actually the right fix anyway  tongue


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#8017 2013-04-22 10:41:56

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

Re: BYOB 3 - Discussion Thread

blob8108 wrote:

And I still haven't figured out how to do fancy things like rings; I need to have a good look at joefarebrother's prototype  tongue

I used blocks lambda, lambda!, and lambda? that turn into rings.


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

 

#8018 2013-04-23 02:08:51

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

Re: BYOB 3 - Discussion Thread

blob8108 wrote:

Hardmath123 wrote:

That's huge!

What's huge? And heh, nth-last-child wasn't actually the right fix anyway  tongue

That was in the context of "easy coding"…  tongue


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

Offline

 

#8019 2013-04-23 02:31:28

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

blob8108 wrote:

Hardmath123 wrote:

That's huge!

What's huge?

That was in the context of "easy coding"…  tongue

Still not sure I follow...


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#8020 2013-04-23 13:25:26

sonicdv
Scratcher
Registered: 2012-05-03
Posts: 100+

Re: BYOB 3 - Discussion Thread

Jens wrote:

bharvey wrote:

If they really wanted to teach kids something relevant about the Constitution, they'd teach that we don't have one any more.   (...)

Instead they teach how great everything is and how you should just wave the flag and not criticize.

See, that's exactly why social studies is the greatest subject in school, because it provokes you into disagreeing with your teacher, and that's where you really learn something for life (and about Civil Rights).

+1


Earth = Mostly Harmless  tongue
GENERATION 31: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment

Offline

 

#8021 2013-04-23 22:56:17

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

Re: BYOB 3 - Discussion Thread

Hold on, when was that post from?

EDIT: Umm…  tongue

Last edited by Hardmath123 (2013-04-23 22:59:02)


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

Offline

 

#8022 2013-04-24 00:20:00

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Hardmath123 wrote:

Hold on, when was that post from?

Gee, I haven't changed a bit!   hmm


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#8023 2013-04-24 19:14:38

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Except for, you know, gun laws are OK right?  tongue
(Hi guys, I'm back. Actually, I've been back for a while, but I got grounded for a week. After I was so overwhelmed by the number of posts here that I decided to take a little break from the BYOB 3 thread.)

Offline

 

#8024 2013-04-24 20:41:39

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

but I got grounded for a week.

Oh no!  This doesn't fit your image.  You gonna tell us what you did?  Inquiring minds...


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#8025 2013-04-25 05:58:48

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: BYOB 3 - Discussion Thread

Should kurt allow float position values for sprites, watchers, etc?


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

Board footer