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
 
66%
+2 −0
Q&A Unable to configure enhanced route discovery in Apache Camel

I'm currently working with Apache Camel in a Quarkus application. I would like to configure the application to not discover any routes by default, and only include those defined in specific package...

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

Question java quarkus apache-camel enterprise-integration-patterns
66%
+2 −0
Q&A Line-drawing algorithm prints nonsensical intermediate Y values. Where is the problem?

I answered myself as it can be found here. Silly me! The root of the entire problem was the type used in both point.x and point.y: typedef unsigned int uint; typedef struct { uint x; ...

posted 2mo ago by aura-lsprog-86‭  ·  edited 2mo ago by aura-lsprog-86‭

Answer
66%
+2 −0
Q&A How do I get a hexadecimal string representation of a GdkRGBA struct in C?

I have a program that reads a hexadecimal string representation from a configuration file, turns it into a GdkRGBA struct from Gdk, uses gtk_color_dialog_button_set_rgba () to set it as the default...

1 answer  ·  posted 4mo ago by Newbyte‭  ·  last activity 4mo ago by Newbyte‭

Question c
66%
+2 −0
Meta A milestone for Software Development - congratulations!

It seems fine to me to restrict new users in this way - most of them probably weren't getting anywhere near the old limits, or even the new ones, anyway. (It's unfortunately common on sites like th...

posted 3mo ago by Karl Knechtel‭

Answer
66%
+2 −0
Q&A How do I get a hexadecimal string representation of a GdkRGBA struct in C?

I ended up implementing it like this: #define RGB_HEX_STRING_LENGTH 8 gchar * gdkrgba_to_rgb_hex_string (const GdkRGBA *const from) { guchar red = roundf (from->red * 255.0f); guchar...

posted 4mo ago by Newbyte‭

Answer
66%
+2 −0
Q&A Dynamically do something after a useState variable has been set?

Since setState is asynchronously executed, how to dynamically do something after a useState variable has been set? Consider import { useState } from "react"; const [myVar, setMyVar] = useState("...

2 answers  ·  posted 3mo ago by propatience‭  ·  last activity 3mo ago by bignose‭

Question reactjs
66%
+2 −0
Q&A List charts in a helm repository

How to list all available helm charts in a helm repository, preferrably using the native helm CLI tool? This command lists the repos themselves, but I've yet to discover how to list their contents...

1 answer  ·  posted 3mo ago by Iizuki‭  ·  last activity 1mo ago by Monica Cellio‭

Question helm
66%
+2 −0
Q&A Helm delete old release revisions

Helm keeps track of releases and their revisions by creating a kubernetes Secret each time a chart is installed, upgraded etc. These are of course useful in case you want to rollback, but they do p...

1 answer  ·  posted 3mo ago by Iizuki‭  ·  edited 3mo ago by Iizuki‭

Question kubernetes helm
66%
+4 −1
Code Reviews New elementsof() operator

Original problem: https://stackoverflow.com/questions/37538/how-do-i-determine-the-size-of-my-array-in-c/57537491#57537491 Arrays in C are problematic. They are transformed into pointers too easi...

1 answer  ·  posted 8mo ago by alx‭  ·  edited 8mo ago by alx‭

Question c array operators
66%
+2 −0
Q&A What does Nixpkgs' `callPackage` do?

For the record, this write-up is not better than any of the resources listed in the question; writing it simply helped me better understand callPackage. Level 0. Poor, but short callPackage f att...

posted 8mo ago by toraritte‭  ·  edited 8mo ago by toraritte‭

Answer
66%
+2 −0
Q&A 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 8mo ago by GeraldS‭  ·  edited 8mo ago by GeraldS‭

Question python flask pytest
66%
+2 −0
Q&A 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 8mo ago by ɯıpɐʌ‭

Question java spring spring-boot jdbi
66%
+2 −0
Q&A 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 8mo ago by purplenanite‭

Question tensorflow tensorflow-graph-mode
66%
+2 −0
Q&A 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 9mo ago by Holden‭  ·  last activity 9mo ago by Peter Taylor‭

Question encryption aes cbc-mode
66%
+2 −0
Code Reviews PHP for simple HTML-PHP-CSS contact form --- aimed solely for RTL websites

general improvements Move everything that is directly related for the submission inside the if ... 'POST' condition. if ($_SERVER['REQUEST_METHOD'] == 'POST') { $to = 'example@example.com'; ...

posted 9mo ago by GeraldS‭

Answer
66%
+2 −0
Q&A How can I create and modify a struct over iterations of a loop?

tl;dr: Use current_section.as_mut().unwrap() instead of just current_section.unwrap(). Ownership is a core language-supported concept in Rust and this means what might be a single method in most l...

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

Answer
66%
+2 −0
Q&A Understanding the `if __name__ == '__main__':` idiom

I've seen many examples of Python scripts that include a line that says: if __name__ == '__main__': Sometimes the following block contains a bunch of code, but other times it just makes a singl...

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

Question python startup entry-point
66%
+2 −0
Q&A Why does `venv` seem to be missing or broken? Isn't it part of the standard library?

venv is indeed part of the standard library. However, some Linux distros modify Python to exclude some parts for various reasons, and venv might be among them. On Debian-based Linux distros you ...

posted 10mo ago by Karl Knechtel‭

Answer
66%
+2 −0
Q&A What does "parameterised type in the positive / negative position" mean in the context of invariant functors?

From PureScript's Data.Functor.Invariant documentation (emphasis mine): A type of functor that can be used to adapt the type of a wrapped function where the parameterised type occurs in both the...

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

Question functional-programming purescript purely-functional
66%
+2 −0
Q&A Why does `pip` seem to be missing or broken? Isn't it part of the standard library?

I already know that the pip command might not correspond to the same Python that python runs. But in my case, it seems not to exist at all. I can't even run it as a Python module: $ python -m pip ...

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

Question python installation pip
66%
+2 −0
Q&A Why can't I use a library I just installed with Pip?

I tried installing package-installation-test[1] using Pip, and it appeared to be successful. But I can't use it as advertised, either by itself or by importing it from my code: Failed attempts ...

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

Question python installation runtime-environment pip
66%
+2 −0
Q&A How can I access and use command-line arguments in Python?

At startup, Python loads the sys standard library module (without waiting for any code to import it) and sets up several useful values. Among these is sys.argv, which stores command-line arguments ...

posted 10mo ago by Karl Knechtel‭

Answer
66%
+2 −0
Q&A How can I access and use command-line arguments in Python?

In many other programming languages, the execution of code starts in a specifically named function (such as main) which is expected to have a specific signature, which allows that function to recei...

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

Question python startup command-line-interface
66%
+2 −0
Q&A Understanding the `if __name__ == '__main__':` idiom

Whenever Python loads code from a .py file, that code gets its own namespace for global variables - so they're not truly global, but per-file values. (When you look at an imported module "from outs...

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

Answer
66%
+2 −0
Q&A Android Studio IDE refuses to find my device

As per the troubleshooter I updated to the latest SDK Platform Tools (35.0.1) and it detected the device. The Xenial VM has 35.0.0 so I'm not convinced, but it's working.

posted 11mo ago by JohnRando‭  ·  edited 10mo ago by FractionalRadix‭

Answer