Discuss Scratch

jla
Scratcher
1 post

Snap! user discussion

A friend familiar with Scratch is planning on making a program for a contest but one of the requirements is that the program exit when they press escape.

BYOB 3's compiled (to exe) project created a program that ran full screen in presentation mode and responded to the escape key by exiting presentation mode and the program (0).

Snap has a link to a nice online executable creator (1) that is very flexible but it doesn't respond to escape in the same way.

Is there a way to get Snap's executable to respond to escape and exit the program?

If not, is there a way to import Snap's project into BYOB 3 or will they need to re-implement the program in BYOB 3?

0. http://wiki.scratch.mit.edu/wiki/Presentation_Mode#BYOB_Executable_Files
1. http://snapp.citilab.eu/

Thank you,
Jacob

Last edited by jla (Jan. 13, 2016 16:48:37)

bharvey
Scratcher
1000+ posts

Snap! user discussion

jla wrote:

Is there a way to get Snap's executable to respond to escape and exit the program?

If not, is there a way to import Snap's project into BYOB 3 or will they need to re-implement the program in BYOB 3?

No and no, I'm afraid. Maybe Citilab could add an exit feature to Snapp!; it seems like a good idea. I'll forward the request.

EDIT: Hmm, I wonder if you could easily implement it yourself using the JS Function block?

Last edited by bharvey (Jan. 13, 2016 17:13:50)


bromagosa
Scratcher
4 posts

Snap! user discussion

Indeed, Brian's idea is the way to go.

Scratch forums only let me post images if I register to imageshack (why???), so I can only provide you with a link: http://i.imgur.com/mwrewGZ.png
liam48D
Scratcher
1000+ posts

Snap! user discussion

bromagosa wrote:

Indeed, Brian's idea is the way to go.

Scratch forums only let me post images if I register to imageshack (why???), so I can only provide you with a link: http://i.imgur.com/mwrewGZ.png
Running fron nw.js? Cool! Make sure you don't run projects other people have made on that though. You never know when a program will delete your entire home directory!

202e-202e-202e-202e-202e UNI-CODE~~~~~
ChocolatePi
Scratcher
1000+ posts

Snap! user discussion

liam48D wrote:

bromagosa wrote:

Indeed, Brian's idea is the way to go.

Scratch forums only let me post images if I register to imageshack (why???), so I can only provide you with a link: http://i.imgur.com/mwrewGZ.png
Running fron nw.js? Cool! Make sure you don't run projects other people have made on that though. You never know when a program will delete your entire home directory!
I don't think Node has the rights to do that unless you sudo
liam48D
Scratcher
1000+ posts

Snap! user discussion

ChocolatePi wrote:

liam48D wrote:

bromagosa wrote:

Indeed, Brian's idea is the way to go.

Scratch forums only let me post images if I register to imageshack (why???), so I can only provide you with a link: http://i.imgur.com/mwrewGZ.png
Running fron nw.js? Cool! Make sure you don't run projects other people have made on that though. You never know when a program will delete your entire home directory!
I don't think Node has the rights to do that unless you sudo
But doesn't the user own everything in their home directory? (Unless somebody chown'd everything )

202e-202e-202e-202e-202e UNI-CODE~~~~~
ChocolatePi
Scratcher
1000+ posts

Snap! user discussion

liam48D wrote:

ChocolatePi wrote:

liam48D wrote:

bromagosa wrote:

Indeed, Brian's idea is the way to go.

Scratch forums only let me post images if I register to imageshack (why???), so I can only provide you with a link: http://i.imgur.com/mwrewGZ.png
Running fron nw.js? Cool! Make sure you don't run projects other people have made on that though. You never know when a program will delete your entire home directory!
I don't think Node has the rights to do that unless you sudo
But doesn't the user own everything in their home directory? (Unless somebody chown'd everything )
You couldn't do `rm -rf ~jay`
liam48D
Scratcher
1000+ posts

Snap! user discussion

ChocolatePi wrote:

liam48D wrote:

ChocolatePi wrote:

liam48D wrote:

bromagosa wrote:

Indeed, Brian's idea is the way to go.

Scratch forums only let me post images if I register to imageshack (why???), so I can only provide you with a link: http://i.imgur.com/mwrewGZ.png
Running fron nw.js? Cool! Make sure you don't run projects other people have made on that though. You never know when a program will delete your entire home directory!
I don't think Node has the rights to do that unless you sudo
But doesn't the user own everything in their home directory? (Unless somebody chown'd everything )
You couldn't do `rm -rf ~jay`
aww? I should test
rm -rf ~/*
also fyi your code would only work if you had a folder inside your home folder called jay.

202e-202e-202e-202e-202e UNI-CODE~~~~~
ChocolatePi
Scratcher
1000+ posts

Snap! user discussion

liam48D wrote:

ChocolatePi wrote:

liam48D wrote:

ChocolatePi wrote:

liam48D wrote:

bromagosa wrote:

Indeed, Brian's idea is the way to go.

Scratch forums only let me post images if I register to imageshack (why???), so I can only provide you with a link: http://i.imgur.com/mwrewGZ.png
Running fron nw.js? Cool! Make sure you don't run projects other people have made on that though. You never know when a program will delete your entire home directory!
I don't think Node has the rights to do that unless you sudo
But doesn't the user own everything in their home directory? (Unless somebody chown'd everything )
You couldn't do `rm -rf ~jay`
aww? I should test
rm -rf ~/*
also fyi your code would only work if you had a folder inside your home folder called jay.
No, it would have to be ~/jay.
When you have a ~ and then a username, it refers to the home folder of that user.

For example, if I wanted to poke around the home folder of “dmr”, I would go ~dmr/c_programming_language.tex
Hardmath123
Scratcher
1000+ posts

Snap! user discussion

ChocolatePi wrote:

liam48D wrote:

ChocolatePi wrote:

liam48D wrote:

ChocolatePi wrote:

liam48D wrote:

bromagosa wrote:

Indeed, Brian's idea is the way to go.

Scratch forums only let me post images if I register to imageshack (why???), so I can only provide you with a link: http://i.imgur.com/mwrewGZ.png
Running fron nw.js? Cool! Make sure you don't run projects other people have made on that though. You never know when a program will delete your entire home directory!
I don't think Node has the rights to do that unless you sudo
But doesn't the user own everything in their home directory? (Unless somebody chown'd everything )
You couldn't do `rm -rf ~jay`
aww? I should test
rm -rf ~/*
also fyi your code would only work if you had a folder inside your home folder called jay.
No, it would have to be ~/jay.
When you have a ~ and then a username, it refers to the home folder of that user.

For example, if I wanted to poke around the home folder of “dmr”, I would go ~dmr/c_programming_language.tex
Well, uh, technically:

~jay means /home/jay
~/jay/ means /home/currentuser/jay/
ChocolatePi
Scratcher
1000+ posts

Snap! user discussion

Hardmath123 wrote:

ChocolatePi wrote:

liam48D wrote:

ChocolatePi wrote:

liam48D wrote:

ChocolatePi wrote:

liam48D wrote:

bromagosa wrote:

Indeed, Brian's idea is the way to go.

Scratch forums only let me post images if I register to imageshack (why???), so I can only provide you with a link: http://i.imgur.com/mwrewGZ.png
Running fron nw.js? Cool! Make sure you don't run projects other people have made on that though. You never know when a program will delete your entire home directory!
I don't think Node has the rights to do that unless you sudo
But doesn't the user own everything in their home directory? (Unless somebody chown'd everything )
You couldn't do `rm -rf ~jay`
aww? I should test
rm -rf ~/*
also fyi your code would only work if you had a folder inside your home folder called jay.
No, it would have to be ~/jay.
When you have a ~ and then a username, it refers to the home folder of that user.

For example, if I wanted to poke around the home folder of “dmr”, I would go ~dmr/c_programming_language.tex
Well, uh, technically:

~jay means /home/jay
~/jay/ means /home/currentuser/jay/
Thanks!

So if I were logged in as root, it would be /root/jay, right? Regardless of whether there is a /root/jay or not?

This is probably a stupid question



Also, I started publishing my answers to the SICP exercises in a github repo. I can't guarantee the answers to be correct, but I just wanted to share it here
Tymewalk
Scratcher
1000+ posts

Snap! user discussion

I'd like to sign up, but I don't want to input any real information.
Can I use the following information, or will this get me into some trouble?

Username: Tymewalk
Birth Date: January < 1996 (for January 1, 1900)
E-Mail Address: example@example.com

bold thing - italic thing - underlined thing - strikethrough thing
ChocolatePi
Scratcher
1000+ posts

Snap! user discussion

Tymewalk wrote:

I'd like to sign up, but I don't want to input any real information.
Can I use the following information, or will this get me into some trouble?

Username: Tymewalk
Birth Date: January < 1996 (for January 1, 1900)
E-Mail Address: example@example.com
Why not just use your normal birthday? Snap! is for all ages.

For the last one you can use a disposable email address.
Tymewalk
Scratcher
1000+ posts

Snap! user discussion

ChocolatePi wrote:

Tymewalk wrote:

I'd like to sign up, but I don't want to input any real information.
Can I use the following information, or will this get me into some trouble?

Username: Tymewalk
Birth Date: January < 1996 (for January 1, 1900)
E-Mail Address: example@example.com
Why not just use your normal birthday? Snap! is for all ages.

For the last one you can use a disposable email address.
What do you mean by “disposable”?

bold thing - italic thing - underlined thing - strikethrough thing
ChocolatePi
Scratcher
1000+ posts

Snap! user discussion

Tymewalk wrote:

ChocolatePi wrote:

Tymewalk wrote:

I'd like to sign up, but I don't want to input any real information.
Can I use the following information, or will this get me into some trouble?

Username: Tymewalk
Birth Date: January < 1996 (for January 1, 1900)
E-Mail Address: example@example.com
Why not just use your normal birthday? Snap! is for all ages.

For the last one you can use a disposable email address.
What do you mean by “disposable”?
http://www.lmgtfy.com/?q=disposable+email&l=1
Tymewalk
Scratcher
1000+ posts

Snap! user discussion

ChocolatePi wrote:

Tymewalk wrote:

ChocolatePi wrote:

Tymewalk wrote:

I'd like to sign up, but I don't want to input any real information.
Can I use the following information, or will this get me into some trouble?

Username: Tymewalk
Birth Date: January < 1996 (for January 1, 1900)
E-Mail Address: example@example.com
Why not just use your normal birthday? Snap! is for all ages.

For the last one you can use a disposable email address.
What do you mean by “disposable”?
http://www.lmgtfy.com/?q=disposable+email&l=1
I don't see why example.com doesn't work just as good.

bold thing - italic thing - underlined thing - strikethrough thing
ChocolatePi
Scratcher
1000+ posts

Snap! user discussion

Tymewalk wrote:

ChocolatePi wrote:

Tymewalk wrote:

ChocolatePi wrote:

Tymewalk wrote:

I'd like to sign up, but I don't want to input any real information.
Can I use the following information, or will this get me into some trouble?

Username: Tymewalk
Birth Date: January < 1996 (for January 1, 1900)
E-Mail Address: example@example.com
Why not just use your normal birthday? Snap! is for all ages.

For the last one you can use a disposable email address.
What do you mean by “disposable”?
http://www.lmgtfy.com/?q=disposable+email&l=1
I don't see why example.com doesn't work just as good.
Because it might need to send an actual email to confirm something, and with a disposable email you can use the email for a while, confirm the account, and then throw it away.
Jens
Scratcher
100+ posts

Snap! user discussion

When you sign up we'e sending you an email with an initial password. That's why you need to enter an email address that actually exists and that reaches you. Your age is not stored anywhere in the data base, we just use that information to tell you to get your parents' consent to sign up when you're under 13, because there are laws suggesting so. Again, we are not interested in your age, we don't store it anywhere.
Tymewalk
Scratcher
1000+ posts

Snap! user discussion

Jens wrote:

When you sign up we'e sending you an email with an initial password. That's why you need to enter an email address that actually exists and that reaches you. Your age is not stored anywhere in the data base, we just use that information to tell you to get your parents' consent to sign up when you're under 13, because there are laws suggesting so. Again, we are not interested in your age, we don't store it anywhere.
Ah, OK. I set it up and actually published my first project with Snap!

But I have one problem: how do I see other people's published projects?

bold thing - italic thing - underlined thing - strikethrough thing
ChocolatePi
Scratcher
1000+ posts

Snap! user discussion

Tymewalk wrote:

Jens wrote:

When you sign up we'e sending you an email with an initial password. That's why you need to enter an email address that actually exists and that reaches you. Your age is not stored anywhere in the data base, we just use that information to tell you to get your parents' consent to sign up when you're under 13, because there are laws suggesting so. Again, we are not interested in your age, we don't store it anywhere.
Ah, OK. I set it up and actually published my first project with Snap!

But I have one problem: how do I see other people's published projects?
You can share it here. Right now there's no community system.

Powered by DjangoBB