AWS chat

For discussing AWS topics
Jul 16, 2021 16:15
On API Gateway, can path params maintain case? at the moment on my implementation they seem to be lower casing
Apr 14, 2021 10:45
is there a way to download graphql schemas from AWS elasticsearch to import in to postman?
 
Mar 12, 2021 12:51
how can i find Dockers installation on OS X so i can add it to my path?
 
Jan 13, 2021 16:55
@DragandDrop I don't really get the plagiarism concern... Look at the question i highlighted, i get that c# appears to be your principal language, but surely you can see that after 3 pages, the voting system does not work? Imagine if Jon Skeet came along to a question that had been answered in 2008 and all he did was answer with a slight variant on the already accepted answer... does that improve the question and answer?
Jan 13, 2021 16:55
@MisterMiyagi I have to invite people to do that? I think i see the question and the purpose of this exchange in a completely different light. I don't think you need an invitation to add your own thoughts.
Jan 13, 2021 16:55
@DragandDrop I'm not suggesting you restrict rep to answering a question, i am suggesting that after a period of time that a question has been answered, or perhaps after an answer has had a very high amount of votes, you start applying more stringent requirements to being able to add more answers. The question i highlighted has not benefitted from any of the answers given most recently. The question Larnu highlighted doesn't appear to have really benefitted from its more recent answers, i'd even argue the answer they highlighted didn't really add anything obviously new to it.
Jan 13, 2021 16:55
@MisterMiyagi i do not see the two options you ask as being different. I proposed some measures and i expected people to discuss and propose their own measures, or is that not what happens here? It seems many are hung up on votes and plagiarism? I was not expecting such push back.
Jan 13, 2021 16:55
@MisterMiyagi I think you need criteria, otherwise you end up with 3 pages and an eternal continuation of tag along answers... The site should help users grow and make them think, what benefit am i bringing by answering this question, and perhaps there needs to be criteria to that. It might not stop terrible tag-along answers, but it's one of those things that might need adjusting. The site should also think about why are so many people adding tag along answers, is it just for their points? Then something else is amiss.
Jan 13, 2021 16:55
@MisterMiyagi propose some better criteria, this is meant to be a discussion.
Jan 13, 2021 16:55
@Scratte so you think it's perfectly acceptable for those 60 answers to be there, that maybe if i had not highlighted it here, that 60 more answers of poor quality, copy and pasted code could be added over time?
Jan 13, 2021 16:55
@Scratte Then come up with another way why your answer is better than the current accepted or highly voted or whatever answer? this is not hard.
Jan 13, 2021 16:55
For the record, it's my preference that a user adding an answer to an old question or a question with an accepted answer, would generally explain why their answer is better than the current accepted or highly voted answer.... But i'm not at all suggesting that that's the only criteriea or way of adding an answer. they could write about why the code is better, why it should be used or any numerous reasons why they're answering an old question rather than copy and pasting code from 50 other answers on the same question as a new answer
Jan 13, 2021 16:55
@MisterMiyagi I'm not at all saying you must write about another answer... Maybe you could explain the code better... perhaps you take a look at some of the examples i've given and explain how any of them benefit the site and it's users? Why shouldn't we try and decrease the amount of copycat answers and try and make users think why is my answer better here?
Jan 13, 2021 16:55
@Scratte where have i suggested you MUST write about the accepted answer, my personal preference would be to enhance a new answer that you do, but you don't have to. Answers can still be deleted or unaccepted, it won't make a difference and you can just quote the code as to why it's bad, don't need to link. How many of the 60 answers on the original post i gave are actually good answers? How many of the 10 on Larnu's question are better and not just rehashes of similar answers?
Jan 13, 2021 16:55
@Scratte and SecurityHound you seem more concerned about your magic internet points than having a worthwhile resource...
Jan 13, 2021 16:55
@Larnu my bad, missed some of the links. So don't post, upvote and downvote as you wish, but the answer you upvoted, does it provide any extra context around why it's a better answer? wouldn't it be better if the answer writer wrote out why the accepted answer in 2010 is not wonderful, and that this code is better, or do we accept that SO is the meme it's become, a place for people just copy any old code from? there are 10 answers on that question, how many of them are just repeats?
Jan 13, 2021 16:55
@Scratte I remain unconvinced that if you want to leave a better answer, that you couldn't provide an explanation why your answer is better in about 100 words or so (i said 50 to 100, i'm open). Of all the answers i've provided as e.g's that have been answered long after an accepted or heavily upvoted, have any of them actually enhanced or given a better answer than the accepted/heavily upvoted one? I propose not. They don't enhance the answer or the site and just add poor answers.
Jan 13, 2021 16:55
@Larnu but i don't see you adding a comment as to why the code is bad or providing your own answer with why the code is bad, unless i'm missing it? You've downvoted without context? That was answered and I assume accepted in 2010, Do any of the subsequent answers enhance the answer? Do they provide anything further for someone looking for an answer to the question? I again propose not, so would it not be better to limit who can answer or how they can answer in some way with such an old question.
Jan 13, 2021 16:55
@Larnu > if I comment and the answerer accepts my criticism/warnings poorly (and goes on a down spree /sigh). Sounds like you're more concerned about downvotes. Either way, you'd be able to leave a comment or your own answer. If you're concerned about vulns and such, it sounds like you'd easily hit a 100-word context minimum. Can you provide some examples of wrongly accepted answers?
Jan 13, 2021 16:55
@JohnMontgomery what false positives/negatives? I see that not all answers by high rep people are wonderful - stackoverflow.com/a/47563613/127606 (though posted in 17, so no idea what the rep was then), but with great rep comes great responsibility. Maybe the having a high reputation is a bad idea, but what's wrong with forcing users to add a certain amount of context to their answers - stackoverflow.com/a/64052334/127606.
Jan 13, 2021 16:55
@Larnu Why are you so concerned about a down spree? If the accepted answer is wrong, point it out in a new answer with context around why the answer is wrong. you get downvoted, you get downvoted, life goes on. We should be encouraging better answers.... few of the answers in the last year of the question i highlight add anything meaningful. Imagine if they had to put 100 words of context along with code as to why they should answer.
Jan 13, 2021 16:55
@gnat It seems you might be one of the few that might get my point. oguz, John and Larnu seem content to allow highly viewed questions to continually get similar or low value answers. You could easily improve the site by forcing answers to provide context to their answer. What value does: stackoverflow.com/a/65323477/127606, stackoverflow.com/a/65225244/127606, stackoverflow.com/a/64687899/127606, stackoverflow.com/a/64339152/127606 add to the 2.4k upvoted answer? they're poor answers.
Jan 13, 2021 16:55
@Scratte I'm not really sure how an accepted answer can be wrong? If it answered the questioner's problem, then surely it is right? It might not be best practice, but then a more acceptable best practice answer can be written, surely with more than 20 word.
Jan 13, 2021 16:55
@oguzismail what do you think the answer adds to this question? There's an extremely detailed, 2.5k upvoted answer (stackoverflow.com/a/30810322/127606), do you feel that the answer I highlighted provides any more context that the 2.5k upvoted one doesn't?
Jan 13, 2021 16:55
@toolic ahhh crap you're right, there isn't an accepted answer. I could have sworn there was. just blindsided by the 2k upvoted answer. My question still stands though
Jan 13, 2021 16:55
@RobertHarvey I've never done that before... is that under In Need of Moderator Intervention?
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Nov 17, 2020 16:01
@KevinB maybe more of a thorough example/tutorial. i'm having trouble understanding what systems are in play and where they should sit.
Nov 17, 2020 15:04
i wonder if anyone has come across some best practices for building angular (applications? sites?) incorporating oAuth
Sep 4, 2020 14:46
@SamuraiJack you don't tend to need the .js in. the require
Sep 4, 2020 11:42
const id= Math.ceil(Math.random() * 10000);
const obj = {};
Object.assign(obj, {[id]: {}}
Sep 4, 2020 11:00
yep
Sep 4, 2020 10:59
to check, would that be v8.getHeapSpaceStatistics
Sep 4, 2020 10:56
yes i would have said so
Sep 4, 2020 10:55
so i should bump it to something like 12GB?
Sep 4, 2020 10:54
yep
Sep 4, 2020 10:53
MB sorry
Sep 4, 2020 10:51
i have set the container limit at 2G... but it seems to hit that within a few minutes
Sep 4, 2020 10:49
I'm wondering how to work out memory constraints for a node app... I have a rabbitMQ job listener in a docker container, a typical job requires it to download about 180 50-60Mb files.
Aug 24, 2020 10:41
in angular 10... can you import the node http client rather than angulars HttpClient?
May 6, 2020 15:30
May 6, 2020 15:05
of course
May 6, 2020 15:05
no...
May 6, 2020 15:05
of course
May 6, 2020 15:03
is that grounds for a question? all the other similar questions deal mainly with frontend development and memory profiling, but none for backend
May 6, 2020 15:03
How do you profile memory usage of a backend javascript microservice if you can't use chromes builtin memory app?
Mar 27, 2020 11:45
has anyone worked out how to spy on a module.exports = const abc() => {};?
 

Python

Room rules: sopython.com/chatroom Code formatting guide: tinyu...
Jan 17, 2020 11:57
```
output = "{}: {}".format(type(err).__name__, err)
exc_type, exc_value, exc_traceback = sys.exc_info()
error_details = {
"error": output,
"exc_traceback": traceback.print_tb(exc_traceback),
"exc_value": str(exc_value),
"exc_type": str(exc_type)
}
```
Jan 17, 2020 11:57
@Aran-Fey
Jan 17, 2020 11:00
@Aran-Fey what's the easiest way to convert an error to a dict?
Jan 17, 2020 10:42
at least right now