Discuss Scratch
- mybearworld
- Scratcher
1000+ posts
base1114112
Last edited by mybearworld (April 10, 2023 16:28:11)
Signatures are the only place where assets links still work.
- -EmeraldThunder-
- Scratcher
1000+ posts
base1114112
Cool! You should publish this as a library on PyPI.
Nothing here.
- Chiroyce
- Scratcher
1000+ posts
base1114112
Depends, I tried to encode the number 0123456789341894348234 and it encoded it instantly How slow does it run?
Last edited by Chiroyce (April 29, 2022 04:17:58)
April Fools' topics:
— New Buildings in Scratch's headquarters
— Give every Scratcher an M1 MacBook Air
— Scratch should let users edit other Scratchers' projects
— Make a statue for Jeffalo
— Scratch Tech Tips™
— Make a Chiroyce statue emoji
<img src=“x” onerror=“alert('XSS vulnerability discovered')”>
this is a test sentence
- mybearworld
- Scratcher
1000+ posts
base1114112
1~1.5 seconds before running because it has to generate all the characters. Decoding and encoding is almost instant. How slow does it run?
2634688917799017600245374275698865162395288115887690260802356514552748205787459092025144889048938830930278271286348813957988626794616807759190105490299208798615025596353153158811434567306416873369218494575540388257199883653521203925161721325234343801442194581570037351578371219322633342694227995743787798198535006199444619368351669082537506335275277989599380577753582422433442871442102057512461243178013468853764779233345291902743937121006046958206740643576135348182418693388985601578316492991684226613287716199072080465215015494756067957799149381622657709257950664793149905526253607768976167469927803849467590488547816074017114999798503301199717023185813572292425012854702371495334645586265836336959341373159947931846948553237365344051490251147279999833987621293615514965144244907510051597344872307971290735731403724692839057958508935932213000881667811483128140751593545669083769548195740433899660259437753170125410396836593323452998345971023426414718737794203694
Signatures are the only place where assets links still work.
- mybearworld
- Scratcher
1000+ posts
base1114112
Last edited by mybearworld (April 29, 2022 04:56:41)
Signatures are the only place where assets links still work.
- mybearworld
- Scratcher
1000+ posts
base1114112
(#2)Maybe
Cool! You should publish this as a library on PyPI.
Last edited by mybearworld (April 29, 2022 15:28:56)
Signatures are the only place where assets links still work.
- mybearworld
- Scratcher
1000+ posts
base1114112
Yay, no need to awkwardly store the code here anymore!
Last edited by mybearworld (April 10, 2023 16:28:24)
Signatures are the only place where assets links still work.
- NFlex23
- Scratcher
1000+ posts
base1114112
Hmm, doesn't work for me.
I'm using Python 3.10.4.
SyntaxError: Non-UTF-8 code starting with '\xff' in file C:\Users\~snip~\Documents\base1114112.py on line 2, but no encoding declared; see https://python.org/dev/peps/pep-0263/ for details
Last edited by NFlex23 (April 29, 2022 19:20:36)
Help improve the Advanced Topics (Really!)
Before you create a topic:
Always search for duplicates or other similar topics before making an umbrella topic, e.g., “The Mac Topic”.
- Is it about something you are planning on making but haven't made yet? If so, please wait to post until you have created a working prototype. This is a key factor to keeping the ATs as clean as possible.
- The ATs aren't technical support. It is perfectly valid to ask questions about things related to programming, but not issues with external websites, apps, or devices. Most sites have their own support system; try asking there!
- Is it related to something you are making in Scratch? (This includes OSes and other Scratch projects) If so, please post in Collaboration, Show and Tell, or another similar forum.
- Is your topic questionably “advanced”? Try browsing the other forums to see if your topic fits better in one of those.
- Issues with Scratch itself should be put in Bugs and Glitches.
- mybearworld
- Scratcher
1000+ posts
base1114112
(#11)That link seems to talk about python 2, are you sure you didn't accidentally run this with python 2?
Hmm, doesn't work for me.I'm using Python 3.10.4.SyntaxError: Non-UTF-8 code starting with '\xff' in file C:\Users\~snip~\Documents\base1114112.py on line 2, but no encoding declared; see https://python.org/dev/peps/pep-0263/ for details
Signatures are the only place where assets links still work.
- NFlex23
- Scratcher
1000+ posts
base1114112
(#12)Yes, I'm sure; I don't even have Python 2 installed. What Python version did you use to run it?(#11)That link seems to talk about python 2, are you sure you didn't accidentally run this with python 2?
Hmm, doesn't work for me.I'm using Python 3.10.4.SyntaxError: Non-UTF-8 code starting with '\xff' in file C:\Users\~snip~\Documents\base1114112.py on line 2, but no encoding declared; see https://python.org/dev/peps/pep-0263/ for details
Last edited by NFlex23 (April 29, 2022 19:34:31)
Help improve the Advanced Topics (Really!)
Before you create a topic:
Always search for duplicates or other similar topics before making an umbrella topic, e.g., “The Mac Topic”.
- Is it about something you are planning on making but haven't made yet? If so, please wait to post until you have created a working prototype. This is a key factor to keeping the ATs as clean as possible.
- The ATs aren't technical support. It is perfectly valid to ask questions about things related to programming, but not issues with external websites, apps, or devices. Most sites have their own support system; try asking there!
- Is it related to something you are making in Scratch? (This includes OSes and other Scratch projects) If so, please post in Collaboration, Show and Tell, or another similar forum.
- Is your topic questionably “advanced”? Try browsing the other forums to see if your topic fits better in one of those.
- Issues with Scratch itself should be put in Bugs and Glitches.
- mybearworld
- Scratcher
1000+ posts
base1114112
(#13)3.10.2(#12)Yes, I'm sure; I don't even have Python 2 installed. What Python version did you use to run it?(#11)That link seems to talk about python 2, are you sure you didn't accidentally run this with python 2?
Hmm, doesn't work for me.I'm using Python 3.10.4.SyntaxError: Non-UTF-8 code starting with '\xff' in file C:\Users\~snip~\Documents\base1114112.py on line 2, but no encoding declared; see https://python.org/dev/peps/pep-0263/ for details
Signatures are the only place where assets links still work.
- mybearworld
- Scratcher
1000+ posts
base1114112
I just updated to 3.10.4, and it works too. 3.10.2
Signatures are the only place where assets links still work.
- mybearworld
- Scratcher
1000+ posts
base1114112
Huh, you seem to be using 3.10.4 and also Windows. What's going on?!
Signatures are the only place where assets links still work.
- NFlex23
- Scratcher
1000+ posts
base1114112
(#16)I just figured it out— I was redirecting the code as a string into a file, and that must have added a “stray” bite to the source file.
Huh, you seem to be using 3.10.4 and also Windows. What's going on?!
All I had to do to fix it was copy and paste the code instead of redirecting it. Confusing and weird, but a simple fix!
Help improve the Advanced Topics (Really!)
Before you create a topic:
Always search for duplicates or other similar topics before making an umbrella topic, e.g., “The Mac Topic”.
- Is it about something you are planning on making but haven't made yet? If so, please wait to post until you have created a working prototype. This is a key factor to keeping the ATs as clean as possible.
- The ATs aren't technical support. It is perfectly valid to ask questions about things related to programming, but not issues with external websites, apps, or devices. Most sites have their own support system; try asking there!
- Is it related to something you are making in Scratch? (This includes OSes and other Scratch projects) If so, please post in Collaboration, Show and Tell, or another similar forum.
- Is your topic questionably “advanced”? Try browsing the other forums to see if your topic fits better in one of those.
- Issues with Scratch itself should be put in Bugs and Glitches.
- mybearworld
- Scratcher
1000+ posts
base1114112
Not sure what happened there, but at least it works now!
or:
29729117502603902759294619357751443492732166658056602885511808243397316840758332339791274189701813316537979725793198387724370825567057018380189251917723600423235032104696729839588357370642694481125092435485232239561760996608714731913919633256440775782462042436256134675258626178733239364357281679763868893907217051812053147763765346337
or:
29729117502603902759294619357751443492732166658056602885511808243397316840758332339791274189701813316537979725793198387724370825567057018380189251917723600423235032104696729839588357370642694481125092435485232239561760996608714731913919633256440775782462042436256134675258626178733239364357281679763868893907217051812053147763765346337
Signatures are the only place where assets links still work.
- mybearworld
- Scratcher
1000+ posts
base1114112
bump
Last edited by mybearworld (April 30, 2022 08:06:19)
Signatures are the only place where assets links still work.
- mybearworld
- Scratcher
1000+ posts
base1114112
Nice!
Signatures are the only place where assets links still work.