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
Q&A Understanding Virtual Environments for Python

Several times now, I've seen advice in tutorials, setup/install instructions for Python-based projects, etc. to use a virtual environment to keep things organized and make it simpler to manage the ...

1 answer  ·  posted 10mo ago by Karl Knechtel‭  ·  last activity 10mo ago by Karl Knechtel‭

Question python runtime-environment python-venv
71%
+3 −0
Q&A Choosing between multiple Python installations (environments) on the same computer

I have multiple installations of Python on my machine. When I run Python, what determines which installation is used? How can I control this?

1 answer  ·  posted 11mo ago by Karl Knechtel‭  ·  edited 10mo ago by Karl Knechtel‭

Question python installation runtime-environment
71%
+3 −0
Q&A Why does `tkinter` (or `turtle`, or IDLE) seem to be missing or broken? Isn't it part of the standard library?

General This question and answer are adapted from my original write-up on Stack Overflow, which you may consult for more details. This version is crafted as to be a clear overview, without referri...

posted 10mo ago by Karl Knechtel‭  ·  edited 9mo ago by Karl Knechtel‭

Answer
71%
+3 −0
Q&A Why does `pip` seem to be missing or broken? Isn't it part of the standard library?

Contrary to popular belief, Pip is not part of the Python standard library - although it comes as part of a standard distribution of Python. Pip is developed and maintained by the arms-length Pytho...

posted 10mo ago by Karl Knechtel‭  ·  edited 10mo ago by Karl Knechtel‭

Answer
71%
+3 −0
Q&A How can I start my Python code, from the code itself?

I have already learned how to tell the Python interpreter to run my code, but the standard approach feels a little unsatisfactory. I want the user experience to be that my program starts with the a...

1 answer  ·  posted 10mo ago by Karl Knechtel‭  ·  last activity 10mo ago by Karl Knechtel‭

Question python startup
71%
+3 −0
Q&A Choosing between multiple Python installations (environments) on the same computer

This answer assumes only installations of the reference "CPython" implementation, as provided by the official website at https://www.python.org. Other installations - such as those provided by th...

posted 11mo ago by Karl Knechtel‭  ·  edited 11mo ago by Karl Knechtel‭

Answer
71%
+3 −0
Q&A Where does the name of the `pure` function in the `Applicative` type class come from?

A direct answer to your question of where the name comes from is the paper that introduced Applicative functors, Applicative programming with effects (PDF). Quoting from there: The idea is that ...

posted 11mo ago by Derek Elkins‭  ·  edited 11mo ago by Derek Elkins‭

Answer
71%
+3 −0
Q&A What's the difference between colorMode and uiMode?

In setting android:configChanges in AndroidManifest.xml, what is the difference between colorMode and uiMode? I hear uiMode is for changes between light/dark modes, which sounds exactly what colorM...

1 answer  ·  posted 11mo ago by Ullallulloo‭  ·  last activity 10mo ago by zmzaps‭

Question android
71%
+3 −0
Q&A What does "parameterised type in the positive / negative position" mean in the context of invariant functors?

"Invariant" isn't really the right word to search, though that's clearly not obvious. The idea is that we have covariant functors where if we have a -> b we can make f a -> f b, and contravar...

posted 11mo ago by Derek Elkins‭

Answer
71%
+3 −0
Q&A Syntax match any 2 spaces at end of line

A Fix An existing pattern needs to be cleared to allow the new rule to match on any 2 trailing spaces: syntax clear markdownLineBreak syntax match markdownLineBreak '\s\{2}$' conceal cchar=⏎ ...

posted 11mo ago by rcmosher‭

Answer
71%
+3 −0
Meta Don't close questions for lack of detail/confusion

I think the problem is in the language of the status. "Closed" is not final, but it does sound like it, and as a new user who is seeking an answer, it can be received as affronting. Can we introdu...

posted 11mo ago by milohax‭

Answer
71%
+3 −0
Q&A How to iterate over numpy array axes in array slicing?

In short, I want to access a multidimensional array, starting with an entry, say a 4D array called "new_array". new_array[0,1,2,3] and getting as an output the sliced arrays new_array[:,1,2,3],n...

1 answer  ·  posted 11mo ago by purplenanite‭  ·  last activity 11mo ago by r~~‭

Question python numpy
71%
+3 −0
Q&A Check if a file exists in Node.js

You can use existsSync: import { existsSync } from 'node:fs'; if (existsSync('/path/to/file')) { console.log('Found'); } else { console.log('Not found'); } If you want to avoid block...

posted 11mo ago by philipp.classen‭  ·  edited 11mo ago by philipp.classen‭

Answer
71%
+3 −0
Q&A How do I trim a sorted list in Python?

How do I trim a sorted list in Python, so that I only keep the elements greater than a certain value? For example, if I have this list: l = [1, 3, 5, 6, 7, 8] How can I efficiently get a list of...

3 answers  ·  posted 11mo ago by congusbongus‭  ·  last activity 11mo ago by mellen‭

Question python array search
71%
+3 −0
Q&A Testing an opaque type's internals

"Black box testing" makes sense when dealing with opaque types so that's the first thing you should be doing and probably the most meaningful test too, so that's where you should put most of yo...

posted 11mo ago by Lundin‭

Answer
71%
+3 −0
Q&A PEP20 on namespaces: What exactly is it saying to do?

To start with, it's worth noting that the Zen of Python is more about development of Python, rather than development with Python. That may mean that some bits of its wisdom are more applicable to q...

posted 11mo ago by BlckKnght‭

Answer
71%
+3 −0
Q&A Where does the name of the `pure` function in the `Applicative` type class come from?

At this point in my learning journey, I simply accepted that this function is called pure (both in Haskell and in PureScript), but it would have helped a lot if I had known the reasoning behind thi...

1 answer  ·  posted 11mo ago by toraritte‭  ·  last activity 11mo ago by Derek Elkins‭

Question functional-programming haskell purescript etymology
71%
+3 −0
Q&A Keep failed CronJob Pods around in Kubernetes

It seems like pods created by a Kubernetes CronJob (or rather Job) are deleted as soon as they fail. This makes it difficult to figure out what went wrong (unless you have Prometheus or some other ...

1 answer  ·  posted 3mo ago by Iizuki‭  ·  last activity 2mo ago by Alexei‭

Question kubernetes cronjob kubernetes-pod
71%
+3 −0
Q&A Get global gitconfig path

Is there a command I can run to get the path of global gitconfig for a user? Like git config --global --edit, but I want the path, not an editor window. I want the right path whether or not this f...

2 answers  ·  posted 2mo ago by Michael‭  ·  last activity 2mo ago by InfiniteDissent‭

Question git
71%
+3 −0
Code Reviews A simple implementation of a mutable String in C

Design/API Consider hiding all details of the String internals to the caller by implementing opaque type - How to do private encapsulation in C? (As it happens, that post contains a example take...

posted 2mo ago by Lundin‭

Answer
71%
+3 −0
Meta Do we want MathJax?

I would support this, but only if it doesn't noticeably distract from implementing other important features. I imagine that MathJax would have a real, but niche use on Software for more theoretical...

posted 3mo ago by Karl Knechtel‭

Answer
71%
+3 −0
Q&A 2D-array pointer as a struct member

Given that you don't need the flexibility provided by a char** but rather need efficiency, plus a fairly large amount of items, it does sound like you need a true 2D array allocated on the heap. T...

posted 3mo ago by Lundin‭  ·  edited 3mo ago by Lundin‭

Answer
71%
+3 −0
Q&A Iterating over pixels in QImage (Qt): which method adapts better for any image size?

I asked this in SE years ago. I'm aware of two methods in order to access all the pixels in a QImage called img. Method 1 for (int y = 0; y < img.height(); y++) { QRgb *line = (QRgb *)...

1 answer  ·  posted 2mo ago by aura-lsprog-86‭  ·  last activity 2mo ago by Alexei‭

Question c++ qt qimage pixel-manipulation
71%
+3 −0
Q&A Why is spacy word vectors showing unexpected similar words?

Why is spacy word vectors showing unexpected similar words? Here is the code I am using: import spacy import numpy as np nlp=spacy.load('en_core_web_md') with open ('data/us.txt') as f: ...

0 answers  ·  posted 4mo ago by Asia‭  ·  edited 4mo ago by celtschk‭

Question python-3 spacy word-vectors
71%
+3 −0
Q&A Why force designation of a remote main branch?

As far as I can see, the GitHub documentation does not refer to a "primary" branch but it does refer to a "default" branch. This may seem like verbal nit-picking but I think it's an important disti...

posted 1mo ago by InfiniteDissent‭

Answer