« first day (3986 days earlier)      last day (978 days later) » 

2:00 AM
cabbage
 
 
2 hours later…
4:20 AM
cbg guys
 
cbg!
 
Gratz on 50k
 
Thanks man!
 
next bragging right at 100k, so you are only half way ;)
 
haha! yeah
 
4:22 AM
can anyone here recommended me a blog or link that would explain thread safety?
python preferred, but language agnostic is also fine
surprisingly wikipedia has "less" info (considering it is wikipedia)
 
 
1 hour later…
5:26 AM
is there perhaps a codeigniter exclusive for python django? to fasten query execute?
 
 
1 hour later…
6:27 AM
cbg
 
cabbage
 
odd just seen i lost 10 rep because "user was removed"
 
@Kwsswart Yeah that happens often
 
strange
 
@Kwsswart Check this
 
6:32 AM
Thanks mate
 
6:46 AM
I have a query that takes more than 60 seconds to execute. The query works perfect in mysql but upon applying to the code before the query finish executing the nginx then print 504 Gateway Timeout. But if a query is below 60 seconds everything works perfectly fine. Can anyone help me pls? I am using Python-Django

This is my nginx settings:

http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 6000;
client_header_timeout 6000;
client_body_timeout 6000;
 
@Asta Please read the formatting guide.
 
   http {
        include       mime.types;
        default_type  application/octet-stream;
        sendfile        on;
        keepalive_timeout  6000;
        client_header_timeout 6000;
        client_body_timeout 6000;
        fastcgi_read_timeout 6000;
        client_max_body_size 500M;
        fastcgi_buffer_size 128k;

        server {
             listen 8080 default_server;
             server_name localhost;
             access_log  /logs;
             client_max_body_size 500M;
            location /Dashboard/ {
 
@Asta I am no expert on this nor have i even worked on it, however i would imagine the problem arrises from this
keepalive_timeout  6000;
        client_header_timeout 6000;
        client_body_timeout 6000;
        fastcgi_read_timeout 6000;
that looks like it is stating the timeout time period
 
I changed the 6000 to 36000 still no luck. :( i'm stuck in here.
 
 
2 hours later…
I-can't-believe-it's-still-Morning cbg
 
nah, it's beforenoon
 
My online dictionary claims that my local "before noon" counts as "morning" for English speaking folks.
This timey wimey ball is tricky.
 
9:16 AM
that's just a deficiency of the English language that can easily be remedied by ignoring it
 
Vormittag cbg
Currently sitting in a remote live debugging session with a student of mine before they turned evil. The power struggle between PyCharm and VSCode is in a hot phase right now.
 
does SQLAlchemy shorten the time of query execution?
 
@MisterMiyagi if you aid evil you're an accomplice
 
@Asta AFAIK it's technically a tad slower than manually written, well crafted SQL commands.
 
I see, what's the best way to shorten query execution?
aside from optimizing the query itself
 
9:25 AM
Not bothering with micro-optimizing the backend but improving the algorithm usually works for me.
 
I've done that already but with 6 joint tables and a total of 600k data it still took 60-75 secs to execute
 
600k doesn't sound like a lot
 
the joint tables make it slower to execute
 
60-75 secs doesn't sound like a lot
 
but I have no choice because the 6 tables is needed
yeah 60-75 seconds isn't a lot
 
9:28 AM
@AndrasDeak But they did it wrong! On the internet!
 
but nginx is printing 504 gateway timeout, that's the problem I'm stuck in
 
I missed the part where the two are related.
 
roll back to the question on SO main which they've been asking about since it was 1 day old
 
If the operation takes a while, the client should be told to wait.
Not literally kept waiting.
 
what should I do? tried assigning timeout seconds, still no luck
are there any wrong lines in my nginx settings? (kindly check above codes)
 
9:32 AM
I don't do web stuff myself, but I'm pretty sure the protocols have means to tell the client "this takes a while, come back later" and "this takes a while, check that other URL to see when it's done".
 
cbg folks
 
cbg
 
cbg
 
@MisterMiyagi the web itself is stopping when nginx 504 Gateway Timeout intervene, so I cannot just leave a message to let the user wait while sa execution is still ongoing
hays, can't proceed bc of this hays
 
10:20 AM
Hey guys, does anybody used AlgoliaSearch with Django? Need some help with sorting
 
 
2 hours later…
12:38 PM
No, but if you ask your question anyway, I'll be happy to poke around the documentation
 
1:19 PM
I am still trying to answer in clear and easy way. Here is my new answer. stackoverflow.com/questions/30696863/…. Your input will help me.
 
@MalikHamza your answer seems to say "switch from Django-HTML to HTML". I already see a handful of answers that say the same thing. What does your new answer add?
 
I added screenshots. May it is more helpful.
 
answers from 2018, 2020, 2021, 2019, 2020 in order of votes
yours is the sixth answer saying the same thing
Adding more answers saying the same thing is not helpful, it's pure noise.
 
Oh, I see. I will be careful next time. Thank you for the suggestion.
 
anytime
 
1:24 PM
Does anyone know a dataclass-like library for structs? Using typehints to define the fields?
 
@MalikHamza my general suggestion is that it's very hard to add useful answers to old questions that already have more than three answers.
 
Just ran into a pretty obscure bug because I mistyped H as h...
 
(of course with new questions the issue is that almost all of them are duplicates)
 
You are right. Thanks @AndrasDeak
 
good luck
 
 
1 hour later…
2:55 PM
On the subject of old questions receiving new answers... The state of this question is horrifying stackoverflow.com/questions/45738414/…
 
@AlexWaygood bah. I've protected the question for now.
we might consider closing it as not reproducible
 
Good shout
 
I've also cast a delvote on all those crap answers for good measure. Unlikely that they will get deleted, but still
hilariously, there's a correct review-deleted answer
Deleted as "not an answer" at that. Good to see domain experts hard at work in the review queues.
 
@AndrasDeak I downvoted them all as well. Though I'm more concerned about the fact that the one (1) correct answer appears on my screen before all four incorrect answers for some reason.
 
Do we have a canonical for trying to install module from the stdlib?
I usually typo-vote them…
 
3:01 PM
@AlexWaygood I didn't catch that second sentence. Why does that concern you?
 
Sorry: you have to scroll to the bottom of the screen before you find the correct answer
 
Your answers are sorted in the wrong order then
top right corner above answers i.stack.imgur.com/unNOO.png
 
@AndrasDeak ^yes, I meant "after" when I said "before", apologies
 
accepts have been unpinned very recently, so you need vote order to get sane results
 
morning cabbage
 
3:03 PM
@AndrasDeak my bad, thanks for the heads up!
 
no worries
 
cabbage peaches and pears..!!
 
4:03 PM
What a morning, I had to fill out some forms on a website that took 5 seconds to recognize any user input
Checkbox, textbox, button to go to next page, five seconds every time
And of course I had to enter the full mailing address of my office eight times because they asked for it for all of my supervisors etc, who all work in the same building
And I put "unknown" for my stepboss-once-removed, because as far as I know he's just a voice on the telephone. Looking forward to my form being rejected for that reason and I have to start from scratch tomorrow
 
4:37 PM
Do they validate on each entry against an airgapped backend via messenger pigeon?
 
I'm torn between "they're super-duper-encrypting all the data in the background" and "they're importing one thousand instances of jquery every time an onhover event triggers"
I happen to know that the corporate entity in charge of the page is capable of true competence if the funding is there, so they really might be doing something neat and computationally expensive in order to have extra fancy security
 
4:55 PM
Protecting against pastes
Load balancing for the backend
 
5:46 PM
Whoever is playing with the star board - quit it
 
Admitting you don't know who you're threatening is a bold strategy :P
 
Or bait
 
 
5 hours later…
10:33 PM
@Kevin 5 seconds per key typed, too? that's painful
 

« first day (3986 days earlier)      last day (978 days later) »