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
 
77%
+5 −0
Q&A How to create and manipulate (read/write) Excel (XLSX) documents with complex rules using general programming languages?

All of these projects use Microsoft's OpenXML SDK for Office behind the scenes: 1. .NET (F#, C#) The F# Guide recommends NPOI, which also seems to be the most popular and most up-to-date, but the...

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

Answer
77%
+5 −0
Q&A When should I parenthesize macro arguments in C?

I've seen macros use parentheses to enclose its arguments. Most of these make sense, as in #define sum(a, b) ((a) + (b)) The outer prevents the following: #define sum_bad(a, b) (a) + (b) ...

2 answers  ·  posted 1y ago by alx‭  ·  last activity 1y ago by Lundin‭

Question c macros
77%
+5 −0
Q&A How to convert Dos paths to Posix paths in Powershell

TL;DR: Use wslpath and hope for the best. You can use it like this in Powershell: wsl wslpath -u 'C:\\some\\path\\to\\folder\\or\\file.txt' Long answer Converting them is hard. There is windows...

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

Answer
77%
+5 −0
Q&A Why does calloc accept 2 arguments, and with what arguments should one call it?

According to the standard (C17 draft, 7.22.3.2) The function calloc void *calloc(size_t nmemb, size_t size); "allocates space for an array of nmemb objects, each of whose size is size [and] i...

1 answer  ·  posted 1y ago by Lover of Structure‭  ·  last activity 1y ago by Lundin‭

77%
+5 −0
Q&A How can I schedule a later task in Python?

I want my CLI Python program to schedule a task, and then exit. After some times has passed (say 10 minutes) the task should execute. The task can be a Python method or a shell command, whatever i...

3 answers  ·  posted 1y ago by matthewsnyder‭  ·  last activity 1y ago by H_H‭

77%
+5 −0
Q&A How can I properly type-hint methods in different files that would lead to circular imports?

I am writing a Python package where I have two classes in different files that (indirectly) depend on each other. If I wouldn't care about type-hints, there would be no problem, but unfortunately,...

2 answers  ·  posted 1y ago by mr Tsjolder‭  ·  edited 1y ago by Alexei‭

77%
+5 −0
Q&A How to trigger an error/warning immediately upon compile/run if an item on my class-path is missing

I have a very simple source file -- HelloWorld.java public class HelloWorld { public static void main(String[] args) { System.out.println("hello world"); } } I have th...

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

77%
+5 −0
Meta What categories could we benefit from having?

So far, existing Meta discussion seems to have at least hinted at the possibility of using separate categories here: To shuffle closed questions out of the way (globally for Codidact) (also) Fo...

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

77%
+5 −0
Q&A How can I schedule a later task in Python?

Use at to schedule the command, using subprocess from Python to invoke at. It doesn't even require shell=True. For example: import shlex, subprocess subprocess.run( # `at` command to run n...

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

Answer
77%
+5 −0
Q&A How to log first n lines of a stack trace in Java?

It's not clear where this stack trace comes from (either from an exception or the current thread), but it doesn't matter, the way to do it is the same. Both Exception's and Thread's have the getSt...

posted 10mo ago by hkotsubo‭  ·  edited 10mo ago by hkotsubo‭

Answer
77%
+5 −0
Q&A How can I manage multiple consecutive strings in a buffer (and add more later)?

When looking at this, we might pretty soon note that storing strings in the same buffer by using null terminators as separator is quite clunky. It blocks us from using handy functions like strtok, ...

posted 9mo ago by Lundin‭  ·  edited 8mo ago by Lundin‭

Answer
77%
+5 −0
Q&A What is a reasonable minimum for making a FOSS project inviting to contributors?

A lot of people who maintain FOSS projects would like to get more contributions. What can the maintainer do to ensure that potential contributors are converted into actual contributors? There are...

2 answers  ·  posted 9mo ago by matthewsnyder‭  ·  last activity 7mo ago by Michael‭

77%
+5 −0
Q&A How to delete a remote branch in git?

How to delete a branch from a remote in git? E.g. maybe you had this branch locally too, but you deleted it already according to this question. Now you want to get rid of the corresponding remote ...

2 answers  ·  posted 10mo ago by Iizuki‭  ·  last activity 10mo ago by hkotsubo‭

Question git
77%
+5 −0
Q&A grep AND search for multiple words in files

From your description ... I have text (xml actually) files. Some files contain 'foo', some contain 'bar', some contain neither and some contain both. It's the both I'm interested in. ... I co...

posted 1y ago by Dirk Herrmann‭  ·  edited 1y ago by Dirk Herrmann‭

Answer
77%
+5 −0
Meta Should I delete my trivial, lack-of-research question?

I asked this trivial question recently: DocuSign eSignature API SDK: java.lang.NoClassDefFoundError errors. It turns out, my problem was because I did not do enough research before asking a quest...

3 answers  ·  posted 1y ago by Vanity Slug ❤️‭  ·  last activity 1y ago by Wicket‭

Question discussion
77%
+5 −0
Q&A Automatically install all packages needed

The best approach is probably to just check the script beforehand, something like the following grep import script.py should list all imports and you can then evaluate and install them. If you...

posted 1y ago by cafce25‭

Answer
77%
+5 −0
Q&A What is the purpose of grouping the tests in a `tests` module and is it possible to split them?

The reason to put tests in a separate module is so they are grouped. Another advantage is that you can put helper functions that are only needed for tests, but are not themselves tests in the modu...

posted 1y ago by cafce25‭

Answer
77%
+5 −0
Q&A Possible drawbacks for having duplicate local sources of the project tracking the same Git remote

Context I have started working on an Angular upgrade for a medium-sized project (from v. 10 to v. 15) and this is a rather long activity that is interrupted by other changes that need to be perfor...

2 answers  ·  posted 1y ago by Alexei‭  ·  last activity 1y ago by Andrew‭

Question git angular upgrade npm
77%
+5 −0
Q&A How to configure Python pip to look for packages in a private index first?

When I run pip install foo, pip looks for foo in PyPi. I want it to look for it first in a private repo, let's say pypi.bar.com. Only if foo cannot be found in pypi.bar.com, should pip then look f...

1 answer  ·  posted 1y ago by matthewsnyder‭  ·  last activity 1y ago by tripleee‭

Question python-3 pip
77%
+5 −0
Q&A When would one not want to return an interface?

I think the main reason to do this is when the interfaces fail to account for some subtlety of the contract between caller and implementation. For example, let's pretend for a moment that your use...

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

Answer
77%
+5 −0
Q&A Using DBUS and GTK in one perl program

Perl is by far the language I have the most experience with, and I have (big) parts of the functionality I want in the new program in existing programs. So I'm looking for a way to do this in perl,...

1 answer  ·  posted 1y ago by Grove‭  ·  last activity 1y ago by deleted user

Question perl dbus gtk gtk3
77%
+5 −0
Meta Server error 500 when clicking on suggested edit details

I get an error page with server error 500 when clicking the link to view my suggested edit activity on my activity page. The suggested edit has the status helpful. Error ID 6ca4f8c8-4a0d-425d-8e09...

0 answers  ·  posted 1y ago by riQQ‭  ·  edited 1y ago by Monica Cellio‭

77%
+5 −0
Q&A Is it worth using the Java Platform Module System in application code?

If you are planning to share the application with individual users (rather than deploying it to a server), declaring your module dependencies explicitly allows jlink to create a stripped-down Java ...

posted 1y ago by VGR‭

Answer
77%
+5 −0
Q&A Lemmy API: how to get list of followed/subscribed communities.

Context Using the lemmy API, I'm trying to get a list of sublemmies (lemmy communities) that a user is following. Reading the documentation, I using the /site endpoint, I should be able to get a ...

1 answer  ·  posted 1y ago by elvis_depresley‭  ·  last activity 1y ago by tgxn‭

Question rest lemmy curl
77%
+5 −0
Q&A Programmatically import, edit and export DBC files

I am looking for a way to programmatically edit and save .dbc files that are meant for J1939 CAN communication. I have a few large files that need to be compared/edited. Being able to import, edit...

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

Question dbc can-bus