Abdul Aziz Barkat

Staging Ground Discussion/Support

This room is for discussing the Staging Ground, getting help w...
07:16
@pierpy No idea, I voted it as off-topic because it looks like some one wants to get a review of their research paper (maybe part of it?)
Fri 07:05
No, idea. Technically they could simply not show the plagiarism flag option in SG if it is intended (they already do that for some of the other flag options)
Dec 5 15:50
I'll try to post a discussion for this tomorrow
Dec 5 15:45
That does make sense but now I wonder whether we should have a feature request to simply remove that flag from SG and / or add some guidance along that
Dec 5 15:44
So my flag for the plagiarism got declined with the message: "This is what staging ground is for. If the user doesn't edit the bad question it won't get posted."
Dec 5 15:08
Yeah, that's what I'm getting at as well.
Dec 5 15:07
Not sure, seems like an edge case, one could technically be writing some program that needs to show maps, etc. on their app and need tiles for that.
Dec 5 13:45
@dan1st Have done that
Dec 5 10:18
@VLAZ Oh, you might want to add that context to my bug report: meta.stackoverflow.com/questions/432402/… maybe as an answer?
Dec 5 10:09
I've haven't had the chance to plagiarism flag on main as well, so don't know if the bug is specific to SG.
Dec 5 10:04
Now how do I flag without getting an error...
Dec 5 10:04
Found where they copied the rest of the stuff from. It's part of a course by Andrew Ng, specifically found the particular content here on GitHub
Dec 5 09:52
Has anyone tried flagging SG questions for plagiarism? I'm trying to flag this one as plagiarism of content from this dataset and most likely also some notebook but I'm getting a 500 error.
Nov 29 18:33
@Feeds anything interesting in that post? Don't have 10k on MSE :(
Nov 26 07:23
> In my free time, I enjoy [mention hobbies or interests, e.g., reading tech blogs, participating in hackathons, working on personal coding projects, etc.]. I’m always eager to connect with fellow developers and learn from their experiences.
Nov 26 07:23
There was a paragraph that said the following:
Nov 26 07:23
I guess it's just that time of the year where students come to SO. I even saw a profile where they used generative AI or some template instead of writing it themselves xD
Nov 24 11:22
I wonder what's going on here. Initially OP gave working code citing that it didn't stop at 0. Later they edited the code and still say that it doesn't stop at 0 but their code doesn't even start looping. xD
Nov 21 07:26
Any idea what OP is trying to ask here or is that AI generated, or some mess created by the question assistant?
Nov 20 16:38
If they fix it, everyone wins. If not then the post gets deleted.
Nov 20 16:37
I guess you can do both, put in a Major Changes asking them to write the question themselves, and flag it as well.
Nov 20 16:36
There's been no discussion whether anything should be flagged or whether we should guide the user to remove the AI content and rewrite it
Nov 20 16:35
@KevinB There was some related discussion here. Current consensus seems to be that if an AI post is flagged moderators will delete it.
 

The Meta Room

General chat & hangout for Stack Overflow, including Meta disc...
yst 17:22
Ah, ok they just replied, seems like they split their account
yst 17:21
I wonder why this user isn't a staff suddenly? They were staff when they posted that comment which was just 5 minutes ago and now they suddenly aren't.
Dec 5 10:34
@starball Looks NAA to me
Dec 4 07:20
@Anerdw IMO regardless of whether it is misused it should at least be renamed, just "solution" is somewhat ambiguous. It should probably have some prefix along with that.
Dec 4 05:48
I meant that the user ID could be used for the mapping instead of fkey since it would be more safe. Although you already know this
Dec 4 05:06
@starball I was tempted to state that the user ID would probably be enough if you wanted to do that.
Dec 2 05:17
@NewPosts Apparently, 3 downvotes = downvoted into oblivion
Nov 28 15:59
@NewPosts Why does an experiment even make it's way to production...
Nov 27 03:47
@TylerH The attribute you're using is deprecated. In fact it doesn't even have the specific method you're using anymore.
Nov 26 17:14
Personally this can very well be a programming question of the form "My app fails to make local network requests after updating to macOS Sequoia" there's probably value to have a question like that.
Nov 26 17:04
@NewPosts I wonder if this SG question is about the same issue and if it is should it be voted off-topic?
 
Nov 21 04:34
Using the same Dockerfile with the same context does not assure same behaviour everywhere because the environment the image was built in might be relevant to the result of the build.
Nov 21 04:32
@GNA Ah, yes Django 3 doesn't seem to have a check for the Origin header. But didn't you say you both were using the same docker image? Note that when someone says "same docker image" people usually think "Docker image was built on one machine and shared to the other places it needs to run" and not "Code and Dockerfile were shared and an image was built up from it on both sides"
Nov 20 17:41
After the check the linked answer mentions Django also goes over the origins in CSRF_TRUSTED_ORIGINS to see if any match, if they do _origin_verified returns True. So very likely somewhere you aren't looking the setting is configured.
Nov 20 17:37
This answer explains it as I mentioned.
Nov 20 17:36
@GNA Your request has an Origin header, Django compares that against http://HOST while the origin headers value is https://HOST
Nov 20 17:35
@GNA Hmm, still multiple ways that can go wrong. Lets say you both have CSRF_TRUSTED_ORIGINS set but its value is set to the domain name you're using and not the one your friend uses. Other ways could be that some of the settings might depend on environment variables, mounted files, etc.
Nov 20 17:33
@GNA Because then is_secure returns True and Django checks it against https.
Nov 20 17:30
If that's the case you probably have CSRF_TRUSTED_ORIGINS configured somewhere while your friend doesn't or are you actually hitting it with HTTP and not HTTPS?
Nov 20 17:11
@GNA that's fine, just make sure to @ ping me if you reply, I don't get notified otherwise.
Nov 20 16:57
Even though they are same origin
Nov 20 16:57
POST, etc. requests have an Origin header
Nov 20 16:53
If you see this answer it pretty much explains what happens. You end up comparing something like https://www.example.com (Origin header) to http://www.example.com (What Django assumes Origin header should be)
Nov 20 16:52
@GNA My guess it that the error is the one here
Nov 20 16:31
What's your setting for CSRF_TRUSTED_ORIGINS?
Nov 20 16:24
@GNA are you potentially making CORS requests to your app? What is the exact error your friend gets. Please add the complete error traceback.
Nov 20 16:22
In that case your question lacks some debugging information. What's the versions of Django, gunicorn, docker that you're using? How do you and your friend run the container? What's your friends nginx config? Are you using Dockers host network mode?