Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Search

Advanced Search Options

To further refine your search, you can use additional qualifiers such as score:>0.5. For example, the search score:>=0.5 created:<1y grammar would return only posts mentioning "grammar" that have a score >= 0.5 and were created less than a year ago.

Further help with searching is available in the help center.

Quick hints: tag:tagname, user:xxx, "exact phrase", post_type:xxx, created:<N{d,w,mo,y}, score:>=0.5

Filters
 
71%
+3 −0
Meta Enabling 2FA should include some recovery codes

Setting up 2FA now produces a recovery code (with instructions to save it). If you later sign in using that recovery code, it disables 2FA until you re-enable it, getting a new code in the process...

posted 1y ago by Monica Cellio‭  ·  edited 1y ago by Monica Cellio‭

Answer
71%
+3 −0
Q&A What does F#'s `box` keyword do and where is it documented?

The Null Values article in the F# Language Reference show an example that uses it, but it does not explain what it does exactly. You can use the following code to check if an arbitrary value is ...

1 answer  ·  posted 1y ago by toraritte‭  ·  last activity 1y ago by toraritte‭

Question f#
71%
+3 −0
Q&A What does F#'s `box` keyword do and where is it documented?

box and unbox are operators documented in the F# Core API Reference; it tersely states that they box / unbox (respectively) a strongly typed value. box a returns value a "wrapped" in a .NET Sy...

posted 1y ago by toraritte‭  ·  edited 1y ago by toraritte‭

Answer
71%
+3 −0
Q&A Can GitHub rewrite authorship of commits?

It doesn't change commit data when you push. You have to set your local email address to the noreply one. About commit email addresses […] If you'd like to keep your personal email address pri...

posted 1y ago by Michael‭  ·  edited 1y ago by Michael‭

Answer
71%
+3 −0
Q&A How to troubleshoot ModuleNotFoundError?

Root cause ModuleNotFoundError is a kind of ImportError. It occurs when Python code tries to use an absolute import, but can't find the named module - just as the name suggests. (Failed relative i...

posted 1y ago by Karl Knechtel‭  ·  edited 1y ago by Karl Knechtel‭

Answer
71%
+3 −0
Q&A VS Code: How to open a file and folder in a new window?

Use --add/-a to add a folder code <file> -n -a <folder>

posted 1y ago by Moshi‭

Answer
71%
+3 −0
Q&A How to provide meaningful names for emails in Maildir?

I am writing some scripts that operate on emails in Maildir format. A lot of things are easy in this format, but the filenames are absolutely incomprehensible. For example, one script moves mails ...

1 answer  ·  posted 1y ago by matthewsnyder‭  ·  edited 1y ago by Alexei‭

Question email maildir
71%
+3 −0
Q&A Regex for simplifying Amazon product URLs

The following expression should capture the {dp|gp}/$ID part: https://www\.amazon\.com/([gd]p/[A-z0-9]{10}) A quick explanation: the \. are there to match periods only (otherwise it would ma...

posted 1y ago by mr Tsjolder‭

Answer
71%
+3 −0
Q&A How to open VS code with a particular path expanded?

When you do: cd /some/path code . VS Code opens with that location shown in the "Explorer" sidebar. However, the state of the file tree and the currently open files will be the same as what wa...

0 answers  ·  posted 1y ago by matthewsnyder‭  ·  edited 1y ago by matthewsnyder‭

Question vs-code
71%
+3 −0
Q&A Advanced Regex extension for VS Code

VS Code supports regex search, but the search/replace UI is just a tiny dialog box. It's okay if you know regex well and the expression is not complex, but when trying to apply complicated expressi...

0 answers  ·  posted 1y ago by matthewsnyder‭  ·  edited 3mo ago by trichoplax‭

Question regex software-recommendation vs-code ide
71%
+3 −0
Q&A What is the meaning of "short circuit" operators?

It's an unfortunate analogy. Apart from being confusing, it does indeed assume some basic electronics knowledge. In electronics a short circuit (or the common jargon "a short") does not necessarily...

posted 1y ago by Lundin‭  ·  edited 1y ago by Lundin‭

Answer
71%
+3 −0
Q&A How to overwrite lines of STDOUT in Python?

You can use the carriage return control character "\r" to return to the beginning of the line and overwrite text. When using the print function you additionally have to make sure not to write the ...

posted 1y ago by mr Tsjolder‭

Answer
71%
+3 −0
Q&A How to overwrite lines of STDOUT in Python?

The solution proposed by the other answer works, but there's a corner case. If the last message is shorter than the previous one, you might not get what you want. Example: print("this is some text...

posted 1y ago by hkotsubo‭  ·  edited 1y ago by hkotsubo‭

Answer
71%
+3 −0
Q&A Set transform of SVG element

<set> does seem to be a bit finicky for this case, doesn't it? You can use <animateTransform> if you set the values attribute on it instead of the to attribute, like this: <animate...

posted 1y ago by r~~‭

Answer
71%
+3 −0
Q&A How should open source forks, with a mix of upstreamable and non-upstreamable commits, be maintained?

I have a few different projects that rely on open source technology that I wish to make modifications to (say, to add key features for business or personal use) that will vary between upstreamable ...

1 answer  ·  posted 2y ago by eoin.oneill‭  ·  last activity 1y ago by matthewsnyder‭

Question git repository
71%
+3 −0
Meta Handling common wrong approaches and misguided motivations for basic technique questions

Background This is inspired to some extent by https://software.codidact.com/posts/289597 . I'm trying to provide a large amount of content (gradually!) that novices (mainly to Python) will find u...

1 answer  ·  posted 2y ago by Karl Knechtel‭  ·  last activity 2y ago by Lundin‭

Question discussion answers canonicals xy-problem
71%
+3 −0
Meta Are questions about (abstract) algorithms and datastructures considered on-topic?

As the author, this is my defense. Design and modeling are on-topic The site topicality documentation explicitly includes "Software design, architecture, or modeling" as on topic. There doesn't s...

posted 2y ago by Karl Knechtel‭

Answer
71%
+3 −0
Meta codidact profile editing requires 30 characters but has no error message

This has now been indirectly fixed for all Codidact communities by removing the minimum character requirement altogether. See Is there a reason for preventing user profile content being less than 3...

posted 2y ago by trichoplax‭

Answer
71%
+3 −0
Meta Are questions about (abstract) algorithms and datastructures considered on-topic?

I just noticed this question about data structures in the Q&A. Although algorithms and data structures are often (part of) a solution to a problem when writing software, this question is const...

1 answer  ·  posted 2y ago by mr Tsjolder‭  ·  last activity 2y ago by Karl Knechtel‭

Question discussion scope
71%
+3 −0
Q&A How do I customize merge behavior for a shared git repo?

Frame challenge, the "bubbles" aren't useless First off, I'll challenge the premise of the question: the "merge bubbles" are not useless, because they represent meaningful development history. In ...

posted 2y ago by GrantMoyer‭

Answer
71%
+3 −0
Q&A Pipeline for zipping multiple file chanel into a single output channel

Well, ain't this fun hehe Turns out I failed to see .reader launches its own job, which resulted in multiple coroutines contending for the zip stream, each trying to write an entry... 🤦 The solut...

posted 2y ago by tmpod‭

Answer
71%
+3 −0
Q&A Alternatives to `EXPLAIN ANALYZE` for queries that won't complete

You can try to break up the query into CTEs, and then see if any of the individual CTEs are unusually slow. I am guessing the query is not just one select, but probably has subqueries, window func...

posted 1y ago by matthewsnyder‭

Answer
71%
+3 −0
Q&A Understanding mutable default arguments in Python

Possible justifications It may make sense to use a mutable default argument in the following situations: For simplicity Consider for example an argument that should be some kind of mapping, wher...

posted 1y ago by Karl Knechtel‭

Answer
71%
+3 −0
Q&A How do I pass field names containing dashes in dbt source yml file?

Working with dbt version 2 I'm trying to set up source checks but I'm running into an issue where the column names I'm setting tests for have dashes (e.g. my_table.some-field-with-dash). I current...

1 answer  ·  posted 1y ago by Sigma‭  ·  last activity 1y ago by Sigma‭

Question database-schema dbt
71%
+3 −0
Q&A Replace leaf arrays with joined strings in a nested structure in jq

As the walk documentation describes: When an array is encountered, f is first applied to its elements and then to the array itself In other words, walk is bottom-up. So when you apply your fi...

posted 2y ago by r~~‭  ·  edited 2y ago by r~~‭

Answer