hacker

Scoder 12

@Scoder12 (396)
I am a passionate programmer who has been learning for 6 years. My main languages are python, js, and bash. http://scoder12.ml
Repl Talk Rules and Guidelines [README]
posted to Announcements by mat1

Yay glad this finally came together! (I helped)

How to use a custom domain
posted to Learn by dotcomboom

I was having the issue of where its saying "CNAME records should have a name set! " but I just used www for the name and it worked as long as I put www.mydomain.tld in repl instead of just mydomain.tld

EDIT: I would honestly recommend using the free service cloudflare as DNS as it has a bunch of cool features in addition to supporting @ signs in their DNS. All you have to do is uenter the custom nameservers they provide in freenom.

What's your favorite YouTube programming Channel?
posted to Ask by hayaodeh

Code Bullet

ReplitCLI
posted to Share by sugarfi

You could save one dependency by removing the text-encoder-lite package. Instead of encoder.decode(obj) you can just use the builtin Buffer.from(obj).toString(). Likewise for encoding you could use Buffer.from(str).toString("base64"). Just a tip to shave a couple seconds off your install time (I realized this while working on my own crosis project). Nice job!

How to use a custom domain
posted to Learn by dotcomboom

@AgastyaSandhuja yes it transfers all of your old records. Quite painless just takes a few mins to set up.

Pygame "Open in a new tab" producing error
posted to Ask by DavidWilson

That's not an error as that is the same thing printed in the editor. Pygame does not yet have support for a new tab and repl.run will only show you the console output so that is why you won't see your window. Right now the only option is to work in the editor, but I'm sure the devs are working on it as it is a highly requested feature.

I am a repl.it helper. If this is a good answer, please upvote

How to use a custom domain
posted to Learn by dotcomboom

@AgastyaSandhuja maybe they changed it since then but many people including me have gotten that same error when following the tutorial (judging by the other comments mentioning it and the amount of upvotes on my comments). Thanks for trying to help =)

How to use a custom domain
posted to Learn by dotcomboom

@AgastyaSandhuja thats exactly the error I get when I put that lol. Freenom dns is so bad just use cloudflare

Why doesn't repl.it have popular packages installed by default?
posted to Ask by sytelus

They used to have this before the package manager, but they are working on something to cache the packages using the new file system.

I am a repl.it helper. If this is a good answer, please upvote!

Is it possible to use PIL in repl.it to show images?
posted to Ask by boukeas

If you save the image to a file using img.save('whatever.png') (with whatever filename you want), then it should pop up below the console, even if it doesn't you can click on it and view it.

How to use a custom domain
posted to Learn by dotcomboom

@LuukWalstra technically true but I'm pretty sure repl.it checks for a CNAME and won't link unless the record is a CNAME, not an A. Using cloudflare takes like 2 extra minutes and gives you automatic TTL, which I'd say is worth it.

How to use a custom domain
posted to Learn by dotcomboom

@LuukWalstra that is a bad solution as repl.it's IP could change at any time. It is better to use cloudflare for this.

Bash Scripting
posted to Learn by SigmaPhi

@alexvillarreal If @SigmaPhi is correct, it is installed but if you have and dependencies you need to install use a polygott repl which is beta language that allows you to install things using a command called install-pkg which is basically sudo apt-get install. It is a makefile, not a bash script though.
@SigmaPhi maybe you should put something like this in the tutorial

I am a repl.it helper. If this is a good tip, please upvote.

(@ replit staff) repl.run with certain compilation options
posted to Ask by SPQR

You could make a bash repl which runs the command for your code and use the repl.run link for that. If that doesn't work you might have to use polygott but that's pretty advanced.

I'm a repl.it helper. If this is a good answer, please upvote!

Did Repl.It add support for GitHub?
posted to Ask by PaoloAmoroso

Yep! This is an explorer feature still in beta announced in the explorer discord channel by masfrost.

If this was helpful, please upvote

💲Make Money 💲Building a Bot 🤖
posted to Ask by amasad

Ok @amasad I am done. I will do it for $45 but I can beat any other offers you get. I can dm you the repl and invite if you want.

https://repl.it/@Angelos_ThomasP/DearShortEmbed
posted to Ask by Angelos_ThomasP

@Angelos_ThomasP no worries, we're all learning together and its sad that some people don't enccourage that

Possible Repl Talk (Ask) Solution
posted to Ask by Vandesm14

You should put this on the Repl.it Feedback board. That's where the admins will see it. Also I think on ask they should have the repl embedded like other posts. Maybe a repl link could be required.

if this post helped you, please consider leaving an upvote!

HTML5 surveys
posted to Ask by TheGman753

You need some form of server to send the results to. This can be made in many different coding languages, but you can deploy it on repl.it and have the form tag submit to the server.

If you found this post helpful please leave an upvote!
If there is any way I can improve, please leave a reply!

How to use a custom domain
posted to Learn by dotcomboom

I would really advise against using freenom's built-in DNS and using a provider such as cloudflare instead. Aside from cloudflare many additional features (many of which are less useful on repl.it but still really good) it allows you to change the DNS root values unlike freenom and allows you to specify an automatic TTL. Just make a clouflare account, put in your freenom domain, log into freenom, and change your nameservers to the ones clouflare provides for you. I fully recommend it to anyone trying this.

Auto Enter
posted to Ask by KidNext2Ben

Yes. You can use

import sys
import tty
tty.setraw(sys.stdin)
letter = sys.stdin.read(1) # put however many characters you want
print(letter)

I am a repl.it helper. If this is a good answer please upvote.

🥇repl.run homepage contest 💻
posted to Announcements by amasad

@joshwood you could check how wide the screen is programmatically and adjust your code for that.

🥇repl.run homepage contest 💻
posted to Announcements by amasad

What would you like it so say as the intro? Do we have to write our own? I don't want to be judged on that

Why isn't this executing all the way through?
posted to Ask by DavidMcConnachi

The reason it is not working is because == checks if strings are the same instance which will never be true since strings are immutable (you get a new instance each time). You are looking for the .equals() method which will check if the strings are equal.

if (problem_set.equals(problem_set_y))
            problem_set_y();

For more information, see this stack overflow question.

I am a repl.it helper. If this is a good answer, please upvote.

I did something horrible
posted to Ask by Elizabeth_Mason

Hi, it sounds like you have already been helped but it might help to ask in the discord server as well as the admins might respond faster there. It is also a great place to hang out!

Shortlink Bot
posted to Share by Scoder12

@andersonbosa You don't need to run it yourself! It is already running, you just need to invite it to your discord server or use it in the repl.it server.

💲Make Money 💲Building a Bot 🤖
posted to Ask by amasad

$45 and I'm almost done can get you tomorrow morning

https://repl.it/@Angelos_ThomasP/DearShortEmbed
posted to Ask by Angelos_ThomasP

On line 84, you are missing a closing parenthesis. This is what is causing the error. Also I think you want another input statement on line 85. And also if statements need 2 =, instead of one. Good luck! Ask again if you need more help!

If this helped, please consider upvoting.

Feat request: edit SVG code in addition to the preview
posted to Ask by abusedmedia

You should put this on the Repl.it Feedback board. That's where the admins will see it.

if this post helped you, please consider leaving an upvote!