« first day (3841 days earlier)      last day (1099 days later) » 
00:00 - 21:0021:00 - 00:00

9:01 PM
That can help
 
AAB
@AndrasDeak :P good night
 
Night
 
9:16 PM
Hey, can someone help me find a resource to make a live chat website? Python only (preferably flask as well)...
I've been trying to find different resources but nothing has worked....
 
python only website? Never heard of it
 
I meant that it's built mainly with python
minimal js is fine (since it obviously needs for sockets)
 
HTML, css, SQL, full stack to do a chatroom
 
@Dodge That's pedantry, surely? There are other issues
 
@roganjosh Not at all. They might not know how a website works
 
9:23 PM
@Dodge I'm not considering html and css to make a live chatroom... I will integrate SQL later but I'm not looking for that as of now
 
@12944qwerty There are a lot of resources. You'll need to give specific issues with what you've tried to implement (and please don't take that as an invitation for a merry-go-round of questions)
 
I've tried over 5 articles and repos to help make a live chat website.
should I list all of them?
 
No
 
besides, i'm not even sure what's even going wrong with what i've attempted
 
I don't know what was unclear about my previous message
 
9:25 PM
no errors
but it doesn't send anything to another client
 
So get rid of the chatroom, final, product and focus on the bit that isn't working (on one attempt - I suspect that there's some commonality)
 
what?
wdym
 
If you want to make the best use of this room @12944qwerty for problem solving, then you need to be clear on what you're asking us. That takes work on your side. If you've identified an approach and it still isn't working, then you need to give a very specific example of what's not working
 
I'm not sure what isn't working...

After I complete the tutorials and make two instances of the webapp, I try to send one message from one of them. However, neither of the instances show the message I send, _not even in the source_
 
an issue doesn't have to be an error per se. but when something doesn't work the way you expect, it's time to start debugging. start cutting away pieces you don't need, and narrow down the problem.
the other approach is to throw away everything, start from scratch with the smallest piece that does work. And then slowly add things till you finally see it stop working.
the end goal is simple: narrow down the issue to something specific
 
9:35 PM
hmm
this is the most simplistic form I could come up with
however
It gives Method Not Allowed 405
and when I do allow the method (methods=['get','post']), it doesn't send messages at all and just refreshes page
 
So the issue is probably on how the frontend sends the request
I can't see the code and I don't really feel like signing up to the site to see it tbh
 
9:53 PM
@roganjosh it should be possible to see it without signing in
 
You're correct; I needed to move a slider. Apologies
 
it's fine
Let me know when you find something :/
 
The problem is here: <form action="" method="POST">
You're going to, by default, send the form back to /, which your own code only accepts GET requests
 
I have a pydantic class that has a few strings and ints in it, and for logging purposes I want to generate a single string in JSON format that contains all the keys and values of the class. Is there an easier way of doing that than just a huge manual string concatenation?
 
@CarlAnderson Looking at the docs, it seems all BaseModel instances have a .to_json() method
Oops, I mean .json()
 
10:03 PM
-.-
thanks
 
@12944qwerty my best guess is <form action="{{ url_for('messageReceived') }}" method="POST"> but you've got quite a hill to climb
 
10:17 PM
@roganjosh wdym hill to climb?
 
Ignore it
 
10:40 PM
@roganjosh wait, so what should this be?
according to the article, that line should be there
 
34 mins ago, by roganjosh
@12944qwerty my best guess is <form action="{{ url_for('messageReceived') }}" method="POST"> but you've got quite a hill to climb
 
What do you mean, hill to climb?
Sorry, pretend I didn't say anything. I'm going to bed, good night
 
night night, @Aran-Fey
 
@roganjosh oh- oops
didnt see that
 
Just to clarify, even if the point as made in jest, the hill is navigating routes on an app. url_for() is presented multiple times
 
10:45 PM
hm
url_for('messageRecieved') didn't work because it's not a route.... and I can't do 'sessions' as that will give the same result
 
Not hm. It's everywhere. If there's a guide that tells you not to use this, link it and I'll have a good rant there
 
what?
you just confused the heck out of me
 
Use url_for(). If there is a guide you're using that doesn't suggest using url_for() then link it and I'll deal with it
 
ohhh
yeah, I know that url_for is best practice
btw, this might help, might not, but i'm using this tutorial
 
7 minutes, a new record
 
10:51 PM
except you have a form sending a POST request to a route that only accepts GET requests
 
yes
but that's what the tutorial had said to do :/
 
Ok, I'll add that site to my potential-rage list. I'm not gonna read it tonight
 
lol
 
In the meantime, the problem is still the same. <form action="" method="POST"> is broken
 
yeah
Should I make a SO question?
 
10:55 PM
No, you should give me the error from my proposed solution
 
Oh, man. And then you have port=randint(2000, 9999) for... reasons
 
that won't cause any problems
 
Yes it will
 
I've done that for over a year with different things, it's worked perfectly fine?
 
11:01 PM
How can you have something like nginx forward requests to a specific port? You can't build on that at all
 
oh-
the main reason I do that is because sometimes repl won't stop the program properly, but I guess I'll stop doing that now
 
Well, IMHO the best thing would be to stop using repl for your coding. This is very confusing, to put it mildly
 
I know, and agree
but I'm only doing it because majority of my time is spent on my school chromebook
I changed the port and still have same error
but
how important is i.ibb.co/zNpMKLf/image.png
 
This is silly. Your app doesn't even run?
 
no it does
it does
 
11:12 PM
I should have been more clear sorry
The functionality of your app is broken. You will need to come back with a specific and targeted explanation of what's wrong
 
what do you mean the functionality is broken?
 
Does the website do what you want it to do currently?
 
So the functionality is broken because it doesn't function in the way you want/expect
 
oh
but Idk how to figure out what's wrong? I've been trying
 
11:18 PM
In the interests of others in this chatroom, it can't just be a tutorial for you. I think you need to go back to your lecturers/teachers/whatever
 
you mean like youtube?
 
"because majority of my time is spent on my school chromebook" are you suggesting that you're learning this outside of what you actually need for school?
 
as a hobby
and during break times
but only at home
 
Ok, that's fair. I think you've skipped a few steps ahead but I'm not clear myself on what you need for your intended outcome with the chat app tbh
 
just live chatting across multiple computers
like mibbit.com
 
11:29 PM
It's not quite that simple. Why do you think they have more than one person in their tech department?
 
true
I know it will take time
and it doesn't have to be so extravagant
just a simple live chat webapp
 
So, come back to me with something that isn't in socket.io on replit. You're welcome to @ ping me when you have some example put together for the server and the client, if it's still not working (I'm not saying I can fix it). I think you're doing a good job, but it's not going to help you in the long-run if you don't have some pain
 
Did someone say pain?
 
pain == gain
 
ok, thank you
 
11:54 PM
I spent almost 30 minutes trying to do this just because I wanted too lol
 
No idea what I'm supposed to take from that
 
nothing
just saying
 
A resonably nice person would have said "good job, keep it up!" ;)
 
Wait, isn't \r the escape character that erases the screen?
because that didn't work
 
@Dodge Which suggests that I'm not a reasonably nice person?
 
11:58 PM
wut, i looked online and apparently \r is just a newline?
 
I thought you could execute code on repl.it, I don't see a run button anywhere
 
@Dodge it should be at the top (of the frame) since you're viewing instead of editing
 
@roganjosh Yes that was the suggestion. I was being sarcastic.
 
00:00 - 21:0021:00 - 00:00

« first day (3841 days earlier)      last day (1099 days later) »