Questions tagged [canonical]
is for questions about canonical questions or answers, i.e. those often used or referred to.
215 questions
7
votes
2
answers
415
views
Are these 3 related questions duplicates? If not, where should I (not) answer?
I was about to answer Is there a way to highlight certain class usage as a warning? but before doing so, I wanted to make sure it had no duplicates.
After searching, I found these 2 pretty related ...
-2
votes
4
answers
371
views
What to do about miscellaneous (x == a || b || c) questions?
I occasionally see questions about mistakes caused by incorrectly assuming that (x == a || b || c) means (x == a || x == b || x == c) but cannot find an appropriate canonical for the language the ...
3
votes
0
answers
305
views
Do we have a canonical for parsing indented code with ast.parse?
While doing a cleanup of some other IndentationError questions, I closed a bunch of questions - including IndentationError during `ast.parse` and `ast.walk` of a function which is a method inside ...
7
votes
1
answer
582
views
Seeking advice on flagging older questions as duplicates of a new canonical Post
I have recently created a detailed, canonical question and answer regarding a common issue in Flutter: Flutter FutureBuilder keeps Firing and rebuilding. It Generates a New Random Number on Every ...
25
votes
2
answers
2k
views
Canonical for Java EE vs Jakarta EE
Java EE was donated to the Eclipse Foundation which had to rename it to Jakarta EE.
In the process, they had to change the dependency coordinates of the specifications and change the root package name....
7
votes
2
answers
2k
views
Is there a canonical question on how to parse "invalid" JSON?
By ""invalid" JSON" I mean these (or a part thereof):
(Example partly taken from json5.org)
{
// Single line comment
# This too
/*
Block
comments
*/
unquoted: '...
8
votes
1
answer
1k
views
Canonical for overlapping [regex] questions
(Sorry for the terrible pun.)
There are quite a few highly-upvoted questions on the topic of matching overlapping strings with regex:
How can I match overlapping strings with regex?:
Language: ...
24
votes
1
answer
837
views
What is a beginner-oriented canonical Q&A and how can it help me curate my watched tags?
This is intended to be a light satire to assist would-be site curators who find that the tags they're most interested in are flooded with low-quality questions, but who either misuse What is a ...
3
votes
0
answers
120
views
Is there room for improvement with questions about generating tables of incremental dates in a range for SQL Server / T-SQL?
I recently was curious about learning how to do this and googled "tsql create table of date range". I was greeted with
Get all dates between two dates in SQL Server with no version tags
...
26
votes
2
answers
552
views
Canonical for browser applications with containerized backends
Once or twice a week, a Docker question comes up roughly like:
I am running a React application and an Express backend in Docker Compose. I have a Docker network configured. My React application ...
16
votes
3
answers
334
views
Canonical for Python parameter errors
There's close to 5000 questions containing "TypeError: missing required positional argument". These questions mainly concern Python.
I'm thinking that we need a canonical for these questions,...
16
votes
0
answers
380
views
Is there a canonical for JavaScript module questions?
TL;DR: thanks to a lot of historical baggage navigating and integrating the (at least) four different module systems in JavaScript is unreasonably confusing and so we get questions about it all the ...
38
votes
0
answers
574
views
RFC: Doing something about Python import canonicals before I lose my mind
There are a truly massive number of questions on Stack Overflow about Python's module-import system: thousands tagged python-import, thousands more tagged both python and import, thousands more tagged ...
22
votes
0
answers
352
views
Establishing a canonical for shadowing builtins (especially causing TypeError) in Python
Background
[Feel free to skip this section if you are familiar with Python. I just want to briefly explain the subject matter needed for the canonical - it should be easy to grasp for anyone with ...
12
votes
4
answers
426
views
Please float some less broken canonical titles for this post
There was an established canonical that deals with floating point arithmetic with the catchy title "Is floating point math broken?".
The "was" used because now the title is "...
8
votes
0
answers
159
views
What should we do with flawed attempts to solve a problem, where the flaw is unrelated, both are common, and the question isn't explicit?
What should we do with flawed attempts to solve a problem, where the flaw is unrelated, both are common, and the question isn't explicit?
This is an extremely common issue I've been running into with ...
6
votes
1
answer
101
views
Any way to fit a reference/canonical for techniques for a category of homework questions within the focus guidelines?
I've noticed that a lot of homework questions asked about on Stack Overflow, particularly in the Python tag, task students with "drawing" some sort of "shape" or pattern at the ...
4
votes
1
answer
255
views
How can we link together these web-api question posts about getting the dimensions of base64-encoded images?
I just encountered this question and thought—there has got to be a duplicate target for this: How to get the dimensions of Base64 encoded image in JavaScript.
I did a Google search (get dimensions of ...
28
votes
0
answers
152
views
For certain extremely common duplicates, it should be possible to put prominent warnings up front
I just closed yet another question about an extremely common error message as a duplicate of its canonical: Truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
...
10
votes
0
answers
216
views
What should I do with old questions where the problem was mis-identified?
The site is full of examples with a few upvotes and many years of history like: Need a way to load embedded, escaped JSON strings in Python
The problem here is that the title implies a how-to question,...
6
votes
2
answers
176
views
Is there any way to "draft" questions on-site and show them to specific people, but not publicly?
I am the room owner for the Python canon discussion chat room, where I have been trying to sort out a variety of issues related to important canonical questions in the python tag. (I also use it to ...
12
votes
0
answers
826
views
Canonical question for importing content from dynamic websites using IMPORTHTML / IMPORTXML Google Sheets functions
In How to flag dozens of almost identical answers I have mentioned that I have found dozens of "bad" questions from people having problems importing content from dynamic websites using ...
11
votes
1
answer
182
views
Canonical question on how to generate lists of inputs in Snakemake?
The last couple of months I found a number of questions about Snakemake that all concern how to generate a list of expected inputs with expand when the default behavior of expand doesn't do the trick. ...
15
votes
0
answers
725
views
Is there a canonical question where asker doesn't know what a browser extension or userscript is, but is essentially asking how to make one?
I just came accross this: How to import javascript code into developer tools in browser? One time forever
And tried looking for something to mark is as a duplicate of.
I found this: How do I add a ...
5
votes
4
answers
458
views
Canonical question for TypeError Cannot [call method / read property / set property] of null in Google Apps Script
Tl;Dr: In the last few days three community members are working around the tag wiki of google-apps-script. The goal is to have a "FAQ". This question is specific to make a FAQ about few ...
32
votes
1
answer
597
views
How can/should we broaden questions where the same problem can manifest in multiple related ways, to make the most useful canonicals?
I have encountered a problem many times while trying to fix up python canonicals, where a question would be great for explaining a common problem (and already has high-quality answers) - if only the ...
18
votes
7
answers
1k
views
What should I do when the question is fine, but existing answers "need more focus" or are off topic?
The specific Stack Overflow question motivating my question here is How do I count the occurrences of a list item?.
As you can see, this is an extremely important question for python. As of writing, ...
5
votes
2
answers
359
views
Can we close Markdown rendering bugs against a related but maybe not fitting duplicate
We currently have 27 open bug reports for markdown rendering and most of those are of the type:
The preview shows X, after posting it shows Y
where X and Y can be any markdown/html that you can ...
22
votes
1
answer
525
views
What should I do when external search results for a missing canonical are full of misleading junk?
tl;dr: There's a seemingly missing Python canonical that's a natural pair for an extremely popular canonical. The corresponding search terms turn up garbage questions; the most popular results (still ...
10
votes
1
answer
636
views
Canonical question for calling non-exported Linux kernel functions from a kernel module
I've been wandering around linux-kernel for quite a while now, reading questions almost daily and answering interesting ones. In this time, I've seen a fair amount of users asking help about calling ...
38
votes
2
answers
983
views
Seeking Canonical: Non-returning PHP Recursion
I've scratched together a heap of open or suboptimally closed pages that are all resolved in the exact same way.
I would like to close them with a single canonical page that will best help researchers....
40
votes
8
answers
2k
views
How can we handle a question where the problem in the title is different from the problem in the body, and OP refuses to change the title?
This is the post. The title has usually been "How do I calculate square root in Python?", but the body is actually about a problem that's specific to division in Python 2 (namely that 1/2 ...
23
votes
0
answers
381
views
Looking for canonical dup about choosing include directories in C/C++ for relative '#include <foo/bar.h>'
In my favorite tags (cmake) I regularly see questions with the core problem like
I have specified include directory /some/dir/include/foo, which contains the header bar.h, but compiler cannot resolve ...
72
votes
3
answers
1k
views
Making canonical answers easier to find
How can we make canonical answers easier to find, especially from the review queue?
I was stumbling upon many Java questions with ArrayIndexOutOfBoundsException, being sure there must be some question ...
-1
votes
2
answers
421
views
Allow voting to close questions as duplicate of Articles
As far as I understand Articles are official "how-to" guides and as such represent and can serve as canonical duplicate targets.
Allow voting to close questions as duplicate of Articles.
...
16
votes
2
answers
859
views
How should THIS specific regex-based close/re-open/delete/un-delete war end?
Moderator note: This will be left up for a time while we debate a larger rule change. Do not take this as approval of the personal mentions of activity below (personal attack comments have been ...
1
vote
0
answers
117
views
Should we create a canonical for questions asking why HTTP requests work only in a specific scenario?
A very common question I often see takes the form of the following:
I have made an HTTP request in <Tool A> and it works. But when I try to do the same in <Tool B> and/or <Tool C> ...
-21
votes
1
answer
256
views
Appropriate response to questionable question closure [duplicate]
I recently answered a question and then that question was closed as duplicate of the usual canonical "null pointer exception" questions and my answer was downvoted.
As far as I am concerned, ...
35
votes
8
answers
1k
views
Are canonical duplicates useful anymore?
To quote CodeCaster's answer from Is there a canonical duplicate for "how do I fix my ArgumentNullException" questions? :
Over the years I kinda grew against closing questions as those very ...
23
votes
0
answers
746
views
What should be done with questions regarding unlocatable elements in Selenium?
A quick search in selenium brings up some questions like this:
I am doing automation with selenium, I have tried this:
[Some code of a Selenium automation, often with a complicated XPath query, and ...
-10
votes
2
answers
167
views
Should parallel versions of this question be created for other programming languages?
This question seems to be a useful dupe target for basic Java questions about debugging. It was written a long time ago and was apparently created intentionally as a reference for exactly that sort of ...
40
votes
3
answers
2k
views
Is there a canonical duplicate for "how do I fix my ArgumentNullException" questions?
I was reviewing this question from the "first posts" queue. Since it's asking more or less "How to fix my ArgumentNullException?", I instantly thought this question could be closed ...
23
votes
1
answer
728
views
Is there a canonical question for user-defined type guards in TypeScript?
I frequently see a question in the TypeScript tag where an asker does some logic that semantically should be enough to check that a given type supports a certain operation, but does not satisfy the ...
27
votes
1
answer
742
views
Should my canonical about read_clipboard usage in Pandas be on Meta or Main?
If you've ever tried answering questions in pandas, you'll know 90% of them cannot be answered unless the OP posts their data (or, at least a sample) that gives us an idea what they're working with ...
2
votes
0
answers
257
views
Reopen question on how to generate a readme programmatically in Python
I don't have any idea why this copped such a bad reception, but I'll try to improve it more if people have suggestions.
It's long, but I hope it's clear what is trying to be achieved (even if wasn't ...
16
votes
1
answer
518
views
Canonical Q&A for people that have problems with NoSuchMethod/called on null in [flutter]
I'm relatively new to Flutter. There seems to be huge amounts of people who are starting to work with Flutter and who have not heard of the concept of a null reference exception in Flutter or in other ...
17
votes
2
answers
540
views
Canonical question for issues relating to upgrading to Discord.js v12
There are a lot of questions relating to results from upgrading to Discord.js v12, most commonly dealing with the addition of managers and having to use .cache:
discord.js V12 'filter' undefined
...
41
votes
1
answer
2k
views
Canonical question for Java "resources in JAR"
Based on the community's positive response to my canonical question about Spring, I think it would be helpful to have a similar canonical about using classpath resources from JAR files or similar ...
6
votes
0
answers
108
views
A canonical Swift answer for "My function with an asynchronous call returns empty data"
There are already over 400 questions on StackOverflow with the Swift tag that relate to asynchronous execution. It feels like there has been a recent increase in the number of questions asked by low-...
6
votes
0
answers
255
views
Canonical Q/A for people that have problems with Future<T> in [flutter]
I'm relatively new to flutter. There seems to be huge amounts of people who are starting to work with flutter and who have not heard of the async/await concepts either in flutter or in other languages ...