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 »
Q&A

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.

General Q&A about programming, scripting, software design & architecture, process, tools, testing, and more.

Filters (None)
72%
+6 −1
How to detach my terminal window from a program ran from it? [closed]

I want to run a program, e.g. Firefox, from terminal, but whenever I close the terminal, program closes too. How to detach my terminal window from a program ran from it?

1 answer  ·  posted 3mo ago by kujaw‭  ·  closed 3mo ago by Alexei‭

77%
+5 −0
Json deserialization of enum, forbid int

I have a DTO that contains an enum field: @Getter @Setter static class Foo { Bar bar; } enum Bar { X, Y } When I deserialize a JSON, it allows int as values: var objectMapper ...

2 answers  ·  posted 3mo ago by talex‭  ·  edited 3mo ago by hkotsubo‭

66%
+2 −0
SQL scripts referenced in persistence configuration must have each statement on its own line

I'm currently working on a Java application using Jakarta Persistence with EclipseLink and PostgreSQL. While setting up the application to test the database layer, the persistence configuration is ...

0 answers  ·  posted 3mo ago by ɯıpɐʌ‭  ·  edited 3mo ago by ɯıpɐʌ‭

71%
+3 −0
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‭

66%
+2 −0
Filter stashes by pathspec

The documentation for git stash list says list [<log-options>] List the stash entries that you currently have. Each stash entry is listed with its name (e.g. stash@{0} is the latest entry...

0 answers  ·  posted 9mo ago by Michael‭  ·  edited 3mo ago by Michael‭

66%
+2 −0
VSCode go is confused about what version of Go I have installed

I'm trying to work with a Go project that I'm taking over from another developer. The go.mod file says I need at least version 1.13, and I have 1.22.3 installed according to go version. However, wh...

0 answers  ·  posted 3mo ago by Andrew Ray‭  ·  edited 3mo ago by Alexei‭

81%
+7 −0
Map<?, Optional<T>> to Map<?, T>

I have a Map with Optional values. I want to filter it to remove empty values. Map<K, Optional<T>> input; Map<K, T> result = input. // here is some code I'm looking for ...

2 answers  ·  posted 3mo ago by talex‭  ·  last activity 3mo ago by hkotsubo‭

71%
+3 −0
Execute SQL queries stored in a table

Let's say I have a table with SQL statements in a column. I want to execute them all. create table sql_command( sql_text text ) I know how to execute one SQL statement using EXEC, but I wa...

1 answer  ·  posted 3mo ago by talex‭  ·  edited 3mo ago by Michael‭

66%
+2 −0
Why is package.json needed for running a SvelteKit application?

I'm trying to containerize a SvelteKit application that uses the @sveltejs/adapter-node. The Build and Deploy section from the documentation recommends to build the application, and then run the a...

0 answers  ·  posted 3mo ago by ɯıpɐʌ‭

60%
+1 −0
Identifying non-daemon threads in an Android ANR stack dump

One of "my" Android apps is showing a heavy frequency of "slow exit" application-not-responding (ANR) problems. The Play Console has the "insight": Slow exit Problem The main thread has finish...

0 answers  ·  posted 3mo ago by Peter Taylor‭

71%
+3 −0
multi-arch code fails on mingw 64bits

I have a C/++ codebase that compiles in Windows x86_64 targeting x86 using the mingw32 32-bit shell of the MSYS64 project. (It also compiles fine on linux x86/x86_64 and android's 4 archs.) Howev...

0 answers  ·  posted 4mo ago by JohnRando‭  ·  edited 4mo ago by JohnRando‭

81%
+7 −0
Why is the new auto keyword from C++11 or C23 dangerous?

In older C and C++ standards, the auto keyword simply meant automatic storage duration. As in the compiler automatically handles where the variable is stored, typically on the stack or in a registe...

2 answers  ·  posted 5mo ago by Lundin‭  ·  last activity 4mo ago by celtschk‭

71%
+3 −0
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‭

66%
+2 −0
Turn all changes after latest origin/main into a branch

I have a git history that basically looks like this: * commit: XXX (HEAD -> main) | | * commit: YYY | | * commit: ZZZ (origin/main) | | ... Now I would like to turn everything after...

2 answers  ·  posted 4mo ago by celtschk‭  ·  last activity 4mo ago by matthewsnyder‭

git
57%
+2 −1
What actually is a pytest fixture?

Pytest uses fixtures. Their docs explain what fixtures do: https://docs.pytest.org/en/stable/explanation/fixtures.html But what actually is a fixture? Is there a definition for it? Is this a term ...

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

66%
+2 −0
Spring Boot application not excluding Jdbi bean when running tests using WebFluxTest

I have a simple Spring Boot 3.x reactive application that exposes a RESTful API. The application uses Jdbi in the persistence layer, and the configuration for Jdbi is straightforward: @EnableTrans...

0 answers  ·  posted 4mo ago by ɯıpɐʌ‭

77%
+5 −0
How can I git checkout the previous HEAD?

After switching to a different branch, git checkout - can move me back to the branch I came from. This is handy for times when I wonder "wait, what was that last branch again?" But this does not w...

1 answer  ·  posted 4mo ago by matthewsnyder‭  ·  last activity 4mo ago by hkotsubo‭

git
60%
+4 −2
Is `git pull` dangerous?

I heard git pull is dangerous. Is it really dangerous? If so, why or how is it dangerous? Are there any flags that mitigate or remove the danger? What are the alternatives if it...

2 answers  ·  posted 4mo ago by alx‭  ·  last activity 4mo ago by alx‭

git
50%
+0 −0
STM32: read data in device sent by host over USB HID

In an STM32CubeIDE USB HID project for an STM32F103C8 board I can send data from the device to the host using the USBD_HID_SendReport() function, like so: USBD_HID_SendReport(&hUsbDeviceFS, (u...

0 answers  ·  posted 4mo ago by etale_cohomology‭

66%
+2 −0
how can I run pytest on Flask routes?

I'm trying to implement pytest for one of my Python Flask projects. The application is instanciated like this in appname.py def create_app(): app = Flask(__name__) app.config.from_pyfil...

0 answers  ·  posted 4mo ago by GeraldS‭  ·  edited 4mo ago by GeraldS‭

77%
+5 −0
Reusing HTML without rewriting it

I have a site hosted through GitHub and I'm using footers for special links and it also serves as my main navigation bar for now. I find it a little frustrating to manually copy-paste the footer's ...

3 answers  ·  posted 5mo ago by General Sebast1an‭  ·  last activity 4mo ago by matthewsnyder‭

71%
+3 −0
What does Nixpkgs' `callPackage` do?

callPackage is a complex function (reasons include the Nix language being lazy, usage of fixed-point evaluation, overrides, etc.), and this complexity steals the spotlight from what this function a...

1 answer  ·  posted 4mo ago by toraritte‭  ·  edited 4mo ago by toraritte‭

66%
+2 −0
How to execute and find gradients of a tensorflow (1) graph object

I have an "tensorflow.python.framework.ops.Graph" object loaded from a .pb file. def load_pb(path_to_pb): with tf.compat.v1.gfile.GFile(path_to_pb, "rb") as f: graph_def = tf.compat....

0 answers  ·  posted 4mo ago by purplenanite‭

71%
+3 −0
How to establish a relationship between HTML elements (tags)? (i.e., how can one element refer to another one)

Should I use the data-* attributes for this or is there a more idiomatic way? For context, I'm trying to convert annotated legal PDF documents to HTML. Certain parts of these documents are cross...

3 answers  ·  posted 5mo ago by toraritte‭  ·  edited 4mo ago by Karl Knechtel‭

66%
+2 −0
Is this AES/CBC scheme, where the IV does not need to be known during decryption, insecure or does it have any other disadvantages?

Usually a random IV is used for encryption with AES in CBC mode, so that key/IV pairs are not reused, which would be a vulnerability. During decryption, the IV of the encryption is required. If de...

1 answer  ·  posted 4mo ago by Holden‭  ·  last activity 4mo ago by Peter Taylor‭

60%
+1 −0
How can I create and modify a struct over iterations of a loop?

How can I have a mutable object (for example a vector) that is created inside a loop iteration and needs to be updated in later iterations of said loop? As a concrete example, consider parsing som...

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

28%
+0 −3
libicuin75.dll was not found

At this time I am trying to manually install doxygen into msys64 but the computer I am using does not have access to the internet. When I try to start doxywizard.exe, I am receiving this error. ...

2 answers  ·  posted 5mo ago by john1726‭  ·  last activity 4mo ago by Nisha Jadon‭

60%
+1 −0
Cannot use import statement outside a module when integrating Carbon Design System (Web Components) in Svelte

I'm working on a Svelte web application. The issue I'm having is when I'm trying to integrate the Carbon Web Components module. I installed the module using npm install --save @carbon/web-component...

0 answers  ·  posted 6mo ago by ɯıpɐʌ‭  ·  edited 5mo ago by Alexei‭

75%
+4 −0
Why does `tkinter` (or `turtle`, or IDLE) seem to be missing or broken? Isn't it part of the standard library?

I had understood that Python is supposed to come "batteries included", and that the "batteries" specifically include: the tkinter standard library, a simple GUI framework a simple IDE cal...

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

84%
+9 −0
What is the general process for merging two git branches, reviewing edits on each branch?

Suppose you have a largish git repository with many files of different types (both text and images) distributed among a number of nested directories. Parallel development has occurred on two branc...

2 answers  ·  posted 5mo ago by SystemExplorer‭  ·  last activity 5mo ago by Michael‭

git
81%
+7 −0
Git apply vs git am

What are the differences between git apply and git am commands? Both seem to be used for applying patches to repositories. When should one be used over the other?

1 answer  ·  posted 11mo ago by Iizuki‭  ·  last activity 5mo ago by Michael‭

git
90%
+18 −0
Are "strong passwords" at all meaningful?

Whenever registering to diverse sites on the net, you are often forced to enter a so called "strong password", which would ideally contain both upper case letters, lower case letters, digits, and s...

4 answers  ·  posted 12mo ago by Lundin‭  ·  last activity 5mo ago by Michael‭

60%
+1 −0
Test Extension Method Received Call with NSubstitute

How can I verify that an extension method was called when using NSubstitute for unit testing? For a normal method I'd do something like: substitutedClass.Recieved().CheckedMethod(...) But exten...

1 answer  ·  posted 5mo ago by rcmosher‭  ·  last activity 5mo ago by rcmosher‭

77%
+5 −0
Wikidata: How do I ask for the start date of a property in SPARQL?

I have a SPARQL query to Wikidata that returns the names and handles and parties of politicians for whom a Mastodon address is stored at Wikidata. Filtered by nationality and with an output of the ...

1 answer  ·  posted 12mo ago by wasuko‭  ·  last activity 5mo ago by Ordoviz‭

60%
+1 −0
Can you have syntax highlighting for streaming text in Python?

Suppose you have a situation where text is coming 1 word at a time, and you want to quickly show it to the user. "Quickly" is not in the sense of a performance constraint, but rather we don't want ...

2 answers  ·  posted 5mo ago by matthewsnyder‭  ·  edited 5mo ago by matthewsnyder‭

80%
+6 −0
Use cases for raising a 'NotImplementedError' in Python

What are some legitimate use cases for raising a NotImplementedError exception in Python? How can it help express a code author's intentions to aid code maintenance and/or further development of co...

3 answers  ·  posted 6mo ago by pfabri‭  ·  last activity 5mo ago by pfabri‭

75%
+4 −0
Managing a dependency for a C application

One of my applications has a dependency on a stb-library. Now I am publishing this application to Github. Should I: Include the header that was used during development with the code? Have an in...

2 answers  ·  posted 6mo ago by Melkor-1‭  ·  edited 5mo ago by matthewsnyder‭

66%
+2 −0
Maven JPA integration: processor not found

My annotation processor "cannot be found" but everything ~looks okay. In Eclipse IDE, I created a new Maven project with the "quickstart-architype" resulting in a project with this structure: ___...

1 answer  ·  posted 9mo ago by tylerbakeman‭  ·  edited 6mo ago by Andreas witnessed the end of the world today‭

66%
+2 −0
Run Spark code without Spark?

There's not always a Spark cluster on hand to test Spark code. Is there some simple program that you can install locally, which has the same behavior as Spark (can run normal Spark scripts) withou...

1 answer  ·  posted 6mo ago by matthewsnyder‭  ·  last activity 6mo ago by congusbongus‭

40%
+0 −1
How to get conditional running cumulative sum based on current row and previous rows?

How do I perform a running cumulative sum that is based on a condition involving the current row and previous rows? Given the following table: acc | value | threshold 3 | 1 | 1 1 | 2 ...

1 answer  ·  posted 6mo ago by congusbongus‭  ·  last activity 6mo ago by congusbongus‭

50%
+0 −0
How to make Box drive have the files prepared for access when I need it?

I have Box drive on Windows. I use it as a regular folder on the computer. I can store images there. When I store a small number of images (on the order of a couple hundreds) and I do not wait lon...

1 answer  ·  posted 6mo ago by Ivan Nepomnyashchikh‭  ·  last activity 6mo ago by Ivan Nepomnyashchikh‭

71%
+3 −0
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‭

71%
+3 −0
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 7mo ago by Ullallulloo‭  ·  last activity 6mo ago by zmzaps‭

60%
+1 −0
When configuring load balancer access logs, what permission does the S3 bucket need?

When enabling access logging for an AWS load balancer, I get the following error: Access Denied for bucket: test-bucket-access-logs. Please check S3bucket permission test-bucket-access-logs is ...

1 answer  ·  posted 6mo ago by philipp.classen‭  ·  edited 6mo ago by Alexei‭

71%
+3 −0
Are these two function pointer declarations equivalent?

Say I have two functions: FILE* get_input(const char fname[static 1]); FILE* get_output(const char fname[static 1]); And I wish to declare a function pointer and assign it the result of some p...

1 answer  ·  posted 6mo ago by Melkor-1‭  ·  edited 6mo ago by Melkor-1‭

71%
+3 −0
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 6mo ago by Karl Knechtel‭  ·  last activity 6mo ago by Karl Knechtel‭

50%
+0 −0
ArgumentError: could not find a temporary directory

Hello, I am trying to build a docker image for contributing to the devdocs repository, however I am failing to get past the thor docs:download --all command. It fails with the below error: . is w...

1 answer  ·  posted 6mo ago by zmzaps‭  ·  last activity 6mo ago by zmzaps‭

72%
+6 −1
What's the fastest way to copy, preserving file attributes, on each platform?

I am looking copy files platform-dependently on Linux, Oracle Solaris, MacOS, BSDs, and Windows. I have found some system calls for each platform, namely sendfile(), copy_file_range(), fcopyfile()...

0 answers  ·  posted 6mo ago by Melkor-1‭  ·  last activity 6mo ago by Melkor-1‭

71%
+3 −0
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‭

75%
+4 −0
What's the difference between include_directories and target_include_directories?

I have seen others allude to include_directories as disfavored: Having trouble adding include directories Summaries from CMake's documentation: target_include_directories include_directori...

1 answer  ·  posted 6mo ago by nogjam‭  ·  last activity 6mo ago by congusbongus‭