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
2.6k posts
 
71%
+3 −0
Q&A How to format Markdown in terminal

This is not exactly what you're asking for, but you could use bat, which has source code syntax highlighting and just use the raw Markdown.

posted 5mo ago by Michael‭  ·  edited 3mo ago by Michael‭

Answer
71%
+3 −0
Q&A Wikidata: How do I ask for the start date of a property in SPARQL?

You can query for P580 (start time) qualifiers on P4033 (Mastodon address) statements like this: p:P4033 ?mastoStatement. ?mastoStatement pq:P580 ?joinedfediverse. Note the use of p: instead o...

posted 5mo ago by Ordoviz‭

Answer
71%
+3 −0
Code Reviews Parsing numbers from a text file

This is my solution to the first task of the Advent of Code 2023. The task description is: On each line, the calibration value can be found by combining the first digit and the last digit (in t...

2 answers  ·  posted 5mo ago by GeraldS‭  ·  last activity 2mo ago by Feefladder‭

Question rust
71%
+3 −0
Q&A How to format Markdown in terminal

When printing Markdown text to the terminal, how can I get a bit more formatting so it looks nicer? I realize that this is a bit of a contradiction, since terminals generally use only one font. Bu...

1 answer  ·  posted 5mo ago by matthewsnyder‭  ·  last activity 3mo ago by Michael‭

71%
+3 −0
Q&A Prevent anonymously subclassing

Is it possible to somehow prohibit anonymously subclassing of a specific class? For instance, with a plain public parent class: public class Parent { } Extending this class should not be pos...

1 answer  ·  posted 5mo ago by Andreas witnessed the end of the world today‭  ·  last activity 4mo ago by Antares‭

Question java inheritance
71%
+3 −0
Meta Should beginner-oriented Q&A here include basic use of a terminal (command line) for developers?

Yes, tools used by developers are on topic here From the top of the front page (emphasis mine): General Q&A about programming, scripting, software design & architecture, process, tools,...

posted 6mo ago by trichoplax‭  ·  edited 6mo ago by trichoplax‭

Answer
71%
+3 −0
Q&A Why does Pip display "error: externally-managed-environment", and what can I do about it?

Reminder: never use sudo to run Pip. This can never properly fix a problem and only introduces serious security risks. Installing third-party packages from PyPI can run arbitrary code at install ...

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

Answer
71%
+3 −0
Q&A Why does Pip display "error: externally-managed-environment", and what can I do about it?

My (non-Windows) operating system came with Python, but that Python didn't include Pip. I followed instructions to install Pip for the included Python, using my system's package manager. But now w...

2 answers  ·  posted 6mo ago by Karl Knechtel‭  ·  last activity 6mo ago by Alexei‭

Question python linux pip
71%
+3 −0
Q&A ffmpeg - concatenating identical audio-only files results in "non-montonic DTS" warning

I am trying to join some video files and have an issue. I have boiled down the problem to the following minimal working example. I create a 2-second mp4 with a silent audio stream: $ ffmpeg -f l...

0 answers  ·  posted 6mo ago by Trevor‭  ·  edited 6mo ago by Trevor‭

Question ffmpeg
71%
+3 −0
Q&A What is the general process for merging two git branches, reviewing edits on each branch?

For completeness, I'll add some more obscure ways: If your goal is to simply move some changes from one branch to another, you can also use git rebase and git cherry-pick. These give you more cont...

posted 5mo ago by matthewsnyder‭

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 7mo 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 7mo 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 7mo ago by purplenanite‭  ·  last activity 7mo 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 7mo ago by philipp.classen‭  ·  edited 7mo 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 7mo ago by congusbongus‭  ·  last activity 7mo 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 7mo 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 7mo 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 7mo ago by toraritte‭  ·  last activity 7mo ago by Derek Elkins‭

71%
+3 −0
Q&A How can I output / display multiple values, with controlled spacing, without building a string?

Using the write method The write method of a file offers a much more limited interface. It only accepts one argument - a string, for a file opened in text mode - and outputs just what it's given. ...

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

Answer
71%
+3 −0
Q&A How to resolve a "ValueError: dimension 't' already exists as a scalar variable" arising when I am using xarray.Dataset.assign_coords()?

It seems like what you want to do can be achieved by using data.assign_coords(t=[0.123]) The error message is extremely confusing in this respect, but it seems like the new value for the coordi...

posted 1y ago by mr Tsjolder‭

Answer
71%
+3 −0
Q&A How do I serialize a const generic length array with Serde?

I have the following code: use serde::{Deserialize, Serialize}; #[derive(Sereialize, Deserialize)] struct Container<const SIZE: usize> { contents: [String; SIZE] } But I'm getti...

0 answers  ·  posted 1y ago by mousetail‭

Question rust serde
71%
+3 −0
Q&A Terms for types of functions with respect to side effects

I know that 1 is sometimes called a pure function - although apparently a pure function must also not vary when the input is constant. By negation, the other kind are called impure functions, alth...

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

Answer
71%
+3 −0
Q&A How can I output / display multiple values, with controlled spacing, without building a string?

I know that I can display a single string in the terminal window like print("example") (or similarly with a string in a variable), and I know how to open text files and write to them. I also know ...

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

Question python format output
71%
+3 −0
Q&A Automatically install all packages needed

A compromise exists between automatically inferring package names (unreliable and potentially dangerous) and writing out an explicit separate requirements.txt file: script-running tools such as pip...

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

Answer
71%
+3 −0
Q&A grep AND search for multiple words in files

An alternative to grep is Awk, which makes this pretty easy. To find lines which contain both: find . -type f -exec awk '/foo/ && /bar/' {} + (Maybe add { print FILENAME ":" FNR ":" $0...

posted 1y ago by tripleee‭

Answer