Skip to content
Sign upLog in
Profile icon

Ved Pradhan

@vedprad1
I like to code in JavaScript. I plan on building an Artificial Intelligent spaceship when I grow up. Oh, right. I also hate Aarf the Dog.
  • File Management System

    Cover page
    Made with Java
    Recent comments (0)
  • Agar.io

    Cover page
    Made with HTML, CSS, JS
    Recent comments (0)
  • GroceryList

    Cover page
    Made with Java

    If you are bad at memorizing your grocery list, this program will allow you to easily access your list, add items, remove items, and more!

    Recent comments (0)
  • Environ

    Cover page
    Made with Node.js
    Recent comments (0)
Repls
Community
vedprad1
vedprad1
shared a Post
3 years ago
4
MouseListeners in Java Swing are not Working
I am transferring some of my Java GUI files onto repl.it. I noticed that when I tried to run this program, the progrma would not respond to my mouse a
GardenGrows
Java
vedprad1
vedprad1
shared a Post
3 years ago
4
I was working on a program that involved my own module. While I was testing it, though, I realized that an exported function that I was working on had
blazelon
blazelon
Assign the function you want to export from the file created by you to module.exports. And in index.js, import the module by assigning a variable to require('./yourFileName')3 years ago
vedprad1
vedprad1
shared a Post
3 years ago
3
Is it just me, or is something really wrong with the leaderboard page? https://repl.it/leaders
Zavexeon
Zavexeon
There is something out of place that I noted. For the "Past 7 Days" tab, the top ten users display shows the users total cycles, instead of the amount they've earned that past seven days. The ones below that however, do display what was earned the past seven days.3 years ago
GavHern
GavHern
why? what's wrong with the leaderboard page?3 years ago
vedprad1
vedprad1
shared a Post
3 years ago
3
I believe there is an error in my code, because the messages inside the socket.io connections are not showing up in the console. However I can't seem
Express + Socket.io
Node.js
vedprad1
vedprad1
shared a Post
3 years ago
2
For some reason, the console.log() function does not work in the socket.io part of the program: io.on('connection', (socket) => { console.log('User
Express + Socket.io
Node.js
oluwamayowa
oluwamayowa
You aren't connecting from the client side. You need to serve an html file that includes the socket.io client library. Check out this link for more info: https://socket.io/get-started/chat/ Hope this helps!3 years ago
vedprad1
vedprad1
shared a Post
3 years ago
3
Socket.io Delays to Emit Events I have been noticing this for several days now while working on a project. After I define a new event and a listener
mwilki7
mwilki7
Sometimes I find myself having to refresh or open a new tab for a build with no changes to work. I have no idea what causes this.3 years ago
vedprad1
vedprad1
shared a Post
3 years ago
15
I have heard that using a file with the extension of .env can allow you to hide variables from other users, but I do not know exactly how to do it. Do
nnjustin44
nnjustin44
How can I use this in c#?1 year ago
GhostbusterJeff
GhostbusterJeff
Is there a way to do this with Java?2 years ago
teymour
teymour
Within your .env file you can set environment variables, which is done in a SECRETKEY="helloworld!" OTHERSECRETKEY=helloworldagain! You should be able to use a programming language to manipulate environment variables. In python try: import os print(os.getenv('SECRETKEY')) # Prints "helloworld!" print(os.getenv('OTHERSECRETKEY')) # prints helloworldagain In node.js console.log(process.env.SECRETKEY)) # Outputs "helloworld!" console.log(process.env.OTHERSECRETKEY)) # Outputs helloworldagain **Not3 years ago
vedprad1
vedprad1
shared a Post
3 years ago
2
Does anybody know how much time it takes before a node.js server restarts by itself? Thanks!
Geocube101
Geocube101
https://repl.it/talk/ask/Express-Server-Timeout/130543 years ago
vedprad1
vedprad1
shared a Post
3 years ago
1
vedprad1
vedprad1
shared a Post
3 years ago
1
What should I name my project? I know that so many coders, authors, musicians, and others have proboably though over this question at least once in t
mwilki7
mwilki7
Maybe you need something to give it a random name: https://repl.it/@mwilki7/circular-linked-list-nodejs3 years ago
ash15khng
ash15khng
Honestly just come up with a few words that relate to your project, then try and add some of them together, or just use one word. (hope I make sense)3 years ago
vedprad1
vedprad1
shared a Post
3 years ago
10
Environ The Bridge between Music and Code Environ is a new coding IDE that sets up the perfect environment for coding. It has an editor workspace an
Environ
Node.js
pro0grammer
pro0grammer
It's awesome! I think js isn't working or it isn't working correctly however it works if we run same thing in html. I tried running js both in full html type or jus simple commands like console.log both of them didn't seem to work!2 years ago
pro0grammer
pro0grammer
It's Awesome!2 years ago
vedprad1
vedprad1
Not a lot of people have been coming here. Do you see any problems? Do you want to see something new added?3 years ago
vedprad1
vedprad1
shared a Post
3 years ago
2
I tried to submit my challenge submission in the challenge page, but I cannot type inside the text box. All help appreciated on what is happening!
vedprad1
vedprad1
Never mind. If anyone has this problem, just inspect repl.it, hack the inputs and text areas, and delete the disabled attribute. > Dab Dab Pro Hacker!3 years ago
a5rocks
a5rocks
Hmm... That's happened to me too (just not recently)! Try reporting it to https://repl.it/bugs.3 years ago
vedprad1
vedprad1
shared a Post
3 years ago
2
Web Scraping Repl.it Has anyone successfuly web scraped repl.it to get the code? When I tried to scrape one of my programs, all I got was this message
PowerCoder
PowerCoder
You can get the html of replit using xpath from lxml import html from request import get replit_page = get('https://repl.it/talk/ask?order=new') #I used replit's ask page print(replit_page.text) #This will print out the html replithtml = html.fromstring(replitpage.content) print(replit_html.xpath('/html/body/div[1]/div/div[4]/div[3]/div/div[1]/h1/text()')) #That will give you, "Online Music Hackathon," text Heres a tutorial on how to web scrape with xpath in python https://docs.python-gui3 years ago
ash15khng
ash15khng
I don't think anyone has ever tried, and I don't think repl.it was made for getting code information from web scraping.3 years ago
vedprad1
vedprad1
shared a Post
3 years ago
3
Is jQuery supported in HTML, CSS, JS? The question says it all. I keep getting the message that: $ is not defined.
jacksmith48
jacksmith48
and more importantly, your personal experienceMindfully using our emotions as data about our inner state and knowing when it’s better to de-escalate by taking a time out are great tools. Appreciate you reading and sha https://vidmate.onl/ ring your story, since I can certainly relate and I think others can too 1 year ago
chiahao1
chiahao1
Same.2 years ago
EthanJustice
EthanJustice
Can you provide the link to the repl that isn't working? Have you made sure that you've linked a jQuery CDN?3 years ago
vedprad1
vedprad1
shared a Post
3 years ago
5
HAPPY TAU DAY! Today, we celebrate the irrational number that pretty much nobody knows. Tau is the double of Pi, for those plebeians who do not know.
Tau Day
Node.js
vedprad1
vedprad1
I got a time of 21.715 seconds. Can anybody beat me? Tau3 years ago
vedprad1
vedprad1
Don't forget to upvote!3 years ago
vedprad1
vedprad1
shared a Post
3 years ago
3
Code Ask My own ask website, where you can ask coding questions! Using node.js, express, url and body-parser frameworks, I built a server that keeps
Code Ask
Node.js
katyadee
katyadee
Great start! What do you want to add to it?3 years ago
vedprad1
vedprad1
shared a Post
3 years ago
4
HTML File trying to use JavaScript in Node.js I am using express and body-parser to parse an HTML file in Node.js. The problem is that whenever I run
ryanhcode
ryanhcode
It seems to be working fine for me! Remember that the console that the JavaScript is using is not the server console. It is the local console that appears on chrome when you press Ctrl+Shift+I. Try out using alert instead of console.log. Please upvote if this helped or mark it as the correct answer!3 years ago
vedprad1
vedprad1
shared a Post
3 years ago
4
Node Js Command Line Is it possible to do command line codes in node js? For example, I was trying to do this: brew install sox, but it did not work
tibolaraignee
tibolaraignee
/ban4 months ago
CBlockSurprise
CBlockSurprise
To install sox, go to package.json and add "sox": "latest", to the dependencies list.3 years ago
vedprad1
vedprad1
shared a Post
3 years ago
6
Configuring a Connection in MySQL and Node.js I am trying to use MySQL in Node.js to use databases. However, when i try to tun the program that can b
heyitsmarcus
heyitsmarcus
You definitely can't run a MySQL database inside of repl.it as a localhost database. I don't know if that is a possible planned feature in the future or not. But, another great option for NodeJS and SQL, that is easy to run and use, is AlaSQL. You can find it in the package manager under alasql. You should definitely check it out! I made a repl with some simple AlaSQL code that should be very familiar to you. EDIT: AlaSQL does not actually store data. It just interprets it from a resource. h3 years ago
leon332157
leon332157
I don't think you can use this code on repl.it because a repl won't have mysql installed locally. You can use an external Mysql instead. 3 years ago
vedprad1
vedprad1
shared a Post
3 years ago
3
Recording With a Microphone I was experimenting with the @Google-Cloud/speech speech to text module in node.js. I was using the node-record-lpcm16 to