hacker

Scoder 12

@Scoder12 (664)
I am a passionate programmer who has been learning for 6 years. My main languages are python, js, and bash. http://scoder12.ml
Use VS Code Themes on Repl.it!
posted to Share by Scoder12

@AbhayBhat you can also paste the script into the console each time if its a problem

🔥Minecraft Server on Repl.it!🔥
posted to Share by Scoder12

@CarlosRosiles yep java. Bedrock server might happen, stay tuned...

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 Tutorials 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.

Making your own programming language with Python
posted to Tutorials by Scoder12

@HaydenAmundrud you have to add a token called name

Making your own programming language with Python
posted to Tutorials by Scoder12

@HaydenAmundrud you have to define it first

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

Code Bullet

🔥Minecraft Server on Repl.it!🔥
posted to Share by Scoder12

@QuintenBuwalda you spelled region wrong

Making your own programming language with Python
posted to Tutorials by Scoder12

@HaydenAmundrud try adding lexer = lex.lex() before that

🔥Minecraft Server on Repl.it!🔥
posted to Share by Scoder12

@QuintenBuwalda you can't run it from the console because if you run it in the console, the .env doesn't work. This new message means that you set the first variable correctly, and now it wants you to add a second one.

🔥Minecraft Server on Repl.it!🔥
posted to Share by Scoder12

@PokeGirl1024 You can use the Student Developer Pack to get hacker for free

🔥Minecraft Server on Repl.it!🔥
posted to Share by Scoder12

@JordanDixon1 this is because you don't have hacker plan

🔥Minecraft Server on Repl.it!🔥
posted to Share by Scoder12

@tussiez oh ok. Do you know what the java arguments for this would be? The -Xms and -Xmx ones? Those control the memory constraints.

🔥Minecraft Server on Repl.it!🔥
posted to Share by Scoder12

@adl212 Yes, due to the memory requirements of the server. If anyone manages to fiddle around with the java memory constraints enough to get it working without hacker, it probably still won't run that smoothly but let me know!

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!

How to use a custom domain
posted to Tutorials 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 Tutorials by dotcomboom

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

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 Tutorials 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 Tutorials 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 Tutorials 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.

Stock Market Visualizer
posted to Share by Roar123

Awesome! One suggestion, instead of this:

try:
    si.insert(1, f"Name: {stock_info['shortName']}")
except:
    si.insert(1, f"Name: {ticker_data[ticker.upper()]}")

you could do this:

name = stock_info.get('shortName', ticker_data[ticker.upper()])
si.insert(1, f"Name: {name}")

similarly for all of the try/except statements.

OPUS SUPPORT FOR DISCORD MUSIC BOTS!
posted to Tutorials by Scoder12

@TrainsRUs I got the same issue and have opened an issue in discord.py for it.

(@ 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!

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!

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