Ankit_ Anmol
@QuantumCodes
Hi, I am Ankit_Anmol from Scratch
https://scratch.mit.edu/users/Ankit_Anmol/
Repls
Community
0
Transferring replitDB data
For some reason, i had to move a repl to another repl with the database data.
Original repl = the repl with the db data
New repl = the repl to which the new data is to be transferred.
So the approach i used:
Print the replit db url from the original repl.
print(db.db_url) #I used this
print(os.environ["REPLITDBURL"]) #this works the same
Go to the new repl and add a secret:
os.environ["REPLITDBURL"] = "the original db url." #i didnt add in
code like this lol. I manually put in the sidebar
Stopped the original repl (didnt delete)
Everything works fine. Heres the problem: Replit DB URL updates every month (It has changed once). Is there any way to transfer DB data permanently?5
2
0
0
CSS float problem
This is a portion of my website.
I am using CSS to align different text to opposite sides of a bar. (I am using the float property)
When i put a image to the right side text, the text moves to the center(box #2). Without the image, everything is good(box #1).
I want the 1st box also look like the second one. How to do that?9
4
0
I recently made a package that i uploaded to pypi:
Code: https://replit.com/@QuantumCodes/ScraGet
PyPi: https://pypi.org/project/ScraGet/
Whenever i
Python
i searched for posts about this but didnt find recent one.
So... i crrated this..
Problem:
Everyday, whenever i open my browser, it shows i am
Limitations:
50 MB per database (sum of keys and values)
5,000 keys per database
1000 bytes per key
5 MB per value
I dont quite understand some thin
Can someone hack this? Hack = reveal the secret (environmentvariables) variable "y" has the secret
If u can, say the secret and pls say how to fix th
I wanted to learn asyncio (for a discord bot)..
I didnt find any good tutorial explaining step by step..(referring to Tutorials at realpython)
So i st
Python
If i have a thread that runs a function that returns something, how do i get the returned value?
from threading import Thread
def func():
x = "ret
Was the font changed in python console or is it just me? (Cuz i didnt change)
There exists an inbuilt hash(val) function where x is a variable. It can hash x.
Usually inbuilt funvtions have a color in replit IDE zuch as str(x)
this is a new feature (or rather i knew recently)
What does this do?
It is only available on multiplayer repls/team repls
It shows its observing but w
i dont really understand whats the problem.. it used to work, i didnt change anything there... i was just adding other webpages. After i added the /vi
Python
the playsound package doesnt work. Is there any way to play a sound on python replit? I want to play an online sound (ie) not downloaded
if i want to ping many websites at once (using requests library) it takes a long time.. is it possible that it first pings web1, then withoutnwaiting
6
TicTacToe AIA (best in the world) AI plays tic-tac-toe against you. You target is to lose! I mean-- to win...
Written by: AI in the game
81
3
6
so, i wanted to detect whether a link exists or not (or) if it exists but the person has not run the repl. (I am making a pinger)
Repl example: https
Python
This is a starter template for simple POST/GET requests from python to HTML through flask. You can easily switch between the post and get methods by c
Python
I made this script that works when you change the method variable to POST.
method = "POST" (line 5)
but when i change it to get: method = "GET", then
Python
19
TypewriterThis is a typewriter engine made in python.
81
1
19