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
 
60%
+1 −0
Q&A How can I create and modify a struct over iterations of a loop?

You can use an Option to keep track of the mutable state between iterations. Use as_mut to get a mutable reference to the Option's inner value without consuming the Option. Use unwrap on the muta...

posted 9mo ago by Nisha Jadon‭  ·  edited 9mo ago by GeraldS‭

Answer
60%
+1 −0
Q&A How can I interact with the target widget from a drop event

I managed to do this by changing my on_file_drop() function into a closure and adding the glib::clone! macro: Macro glib::clone Macro for passing variables as strong or weak references into a c...

posted 8mo ago by GeraldS‭

Answer
60%
+1 −0
Q&A 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 9mo ago by GeraldS‭  ·  last activity 9mo ago by GeraldS‭

Question rust loops mutability ownership
60%
+1 −0
Q&A ffmpeg script outputs video with unexpected resolution and frame rate despite scaling and fps filtering

This script applies filters dynamically based on the video's dimensions and frame rate. The audio handling is more sophisticated, checking and adjusting the bitrate separately. It's more flexible i...

posted 7mo ago by ShadowsRanger‭  ·  edited 7mo ago by ShadowsRanger‭

Answer
60%
+1 −0
Q&A ffmpeg script outputs video with unexpected resolution and frame rate despite scaling and fps filtering

Your issue lies in the application of scaling and fps filtering. Both SCALING and FPS_FILTER are being set conditionally, and if both are needed, one will override the other since both are using -v...

posted 6mo ago by harmony‭

Answer
60%
+1 −0
Q&A make: How to compile all files in a directory.

Each rule in the Makefile represents a single target. This means that your first makefile has a single target: obj/library.o. I guess that if there is only one target, make assumes that this is the...

posted 6mo ago by mr Tsjolder‭  ·  edited 6mo ago by Vanity Slug ❤️‭

Answer
60%
+1 −0
Q&A 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 8mo ago by Peter Taylor‭

Question android stacktrace
60%
+1 −0
Q&A Execute SQL queries stored in a table

I manage to solve my problem with next code: do $$ declare sql_text text; sql_list text[]; begin sql_list := array( select c.sql_text from sql_command c ); raise notice 'sta...

posted 8mo ago by talex‭

Answer
60%
+1 −0
Q&A Unable to use conditional Must term in C# NEST client for Elastic Search

Hello, a a late update, mainly to help others facing the problem in the future. it turns out that the latest version of NEST could not handle conditionLess values, and it also fails if you iterate...

posted 6mo ago by hest‭

Answer
60%
+1 −0
Code Reviews Feedback for a Nix-Darwin configuration

Hello, im looking for some feedback on my nix-dawrin setup. This is the setup im currently using, its works, but the structure is cobbled together from multiple sources, and im not experienced eno...

0 answers  ·  posted 7mo ago by hest‭

Question dotfiles nixpkgs nix-darwin
60%
+1 −0
Meta I created a tag, now it need edit.

I created stream tag, but can't edit it. It should at least have java as parent tag.

2 answers  ·  posted 7mo ago by talex‭  ·  last activity 7mo ago by Lundin‭

Question support tags
60%
+4 −2
Q&A Which platforms return a non-null pointer on malloc(0)

What is the portability of malloc(0);? Which platforms return NULL without setting errno? Which platforms return a non-null pointer? Do any platforms have some other behavior?

2 answers  ·  posted 7mo ago by alx‭  ·  last activity 6mo ago by Alexei‭

Question c malloc
60%
+1 −0
Q&A Using sqlline, how do you filter/find tables using the !tables command

From the source code it seems the following is possible. !tables <table name pattern> !tables <schema name pattern> <table name pattern> !tables <schema name pattern> &lt...

posted 7mo ago by Abbas Gadhia‭

Answer
60%
+1 −0
Q&A Android CameraPreview not rendering for MLKit barcode analyis on MAUI custom control

I have a QR code which needs to read through Google's ML kit for Android since Zxing.MAUI doesnt read it. I followed the code in ml-kit/vision/barcode-scanning/android and VinayByte/mlkit-qr-code-s...

1 answer  ·  posted 2mo ago by carpeltunnel‭  ·  last activity 2mo ago by carpeltunnel‭

Question c# android mobile .net-maui
60%
+1 −0
Q&A Why is a for loop getting stuck when using a uint64_t counter, whereas a while loop isn't?

I asked this question a while ago over SE. When I use a for loop with a uint64_t as a counter, it gets stuck forever, even though the condition seems to be well defined. Offending MCVE #includ...

3 answers  ·  posted 2mo ago by aura-lsprog-86‭  ·  last activity 2mo ago by Lundin‭

Question c integer loops
60%
+1 −0
Q&A how to save the line number of a double-clicked line in tmux

In tmux I have the following command in my .tmux.conf, which will save a double-clicked line to the file /tmp/tmux_line.txt: bind-key -n DoubleClick1Pane select-pane \; copy-mode -M \; send-keys -...

0 answers  ·  posted 4mo ago by Trevor‭

Question tmux
60%
+1 −0
Code Reviews A simple implementation of a mutable String in C

(User JS1 answered as follows; source.) Unsafe loop This loop in string_find() is unsafe since it could read past the end of your buffer: while (str->data[pos] != c) ++pos; You shoul...

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

Answer
60%
+1 −0
Q&A Scanner fails when executing Java with admin rights (sudo) in Eclipse in Linux

I've finally managed to get it working without using a wrapper for java. It has to do with filesystem capabilities in Linux. To let java list and select network interfaces, as well as analyse and ...

posted 2mo ago by aura-lsprog-86‭

Answer
60%
+1 −0
Q&A Scanner fails when executing Java with admin rights (sudo) in Eclipse in Linux

(Brought over from SE.) The problem I have followed this procedure in order to run Java applications as root when needed from Eclipse (as I use Xubuntu, for instance, when using jnetpcap to cap...

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

Question java linux Eclipse sudo jnetpcap
60%
+1 −0
Q&A How can I set a private class instance variable to the File object used by an unmarshaller?

(Brought over from SE) The problem I'm coding a Java Swing application dealing with XML files, so I'm using JAXB in order to marshal classes into documents and unmarshal the other way around. ...

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

Question java event-handling callback jaxb
60%
+1 −0
Q&A Get global gitconfig path

With help from hkotsubo in the comments, it seems you can follow the behavior described by Git's documentation. This will work until they change it, at least for your *Nixes and *BSDs: path="${XDG...

posted 2mo ago by Michael‭

Answer
60%
+1 −0
Q&A Helm delete old release revisions

You don't need to do anything. Helm prunes old release secrets once their number exceeds 10. More specifically, helm upgrade command has an integer option --history-max, that allows you to specify...

posted 3mo ago by Iizuki‭

Answer
60%
+1 −0
Q&A How to do function composition in Spring Cloud Stream when using classes

I'm working on a proof of concept for a Spring Cloud Stream application. I want to define my processing logic using classes that implement Function, Consumer, or Supplier. I understand that Spring...

0 answers  ·  posted 4mo ago by ɯıpɐʌ‭  ·  last activity 2mo ago by Monica Cellio‭

Question spring-boot spring-cloud spring-cloud-stream
60%
+1 −0
Q&A Dynamically do something after a useState variable has been set?

This depends largely on what "do something" you want to do, in response to a state change. If you just need to re-compute some other state: Write that as additional code in the component funct...

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

Answer
60%
+1 −0
Q&A When I write and run a prompt in Cursor IDE, what's passed in the context to the model (GPT/Claude/etc.)?

https://gist.github.com/sshh12/25ad2e40529b269a88b80e7cf1c38084 extracted the entire prompt for Cursor IDE: You are a powerful agentic AI coding assistant, powered by Claude 3.5 Sonnet. You operat...

posted 3d ago by Franck Dernoncourt‭

Answer