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 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 9mo ago by Abbas Gadhia‭

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.)?

When I write and execute a prompt in Cursor IDE, what specific information is included in the context that gets sent to the underlying language model (such as GPT or Claude)? E.g., does it include ...

1 answer  ·  posted 3mo ago by Franck Dernoncourt‭  ·  last activity 2mo ago by Franck Dernoncourt‭

Question cursor-ai
60%
+1 −0
Meta What to do with GenAI tags?

None which have anything to do with programming I disagree, e.g.: a program may be about building an LLM. a program may call an LLM. a program could be partly be done with an LLM. so t...

posted 2mo ago by Franck Dernoncourt‭  ·  edited 2mo ago by Franck Dernoncourt‭

Answer
60%
+1 −0
Q&A How can I export an encoder-decoder PyTorch model into a single ONNX file?

I converted the PyTorch model Helsinki-NLP/opus-mt-fr-en (HuggingFace), which is an encoder-decoder model for machine translation, to ONNX using this script: import os from optimum.onnxruntime im...

0 answers  ·  posted 2mo ago by Franck Dernoncourt‭  ·  edited 2mo ago by Franck Dernoncourt‭

Question python onnx pytorch machine-translation
60%
+1 −0
Q&A Iterating over pixels in QImage (Qt): which method adapts better for any image size?

If your only concern is overflowing the 64-bit pixelCount value, you can safely forget about it. By the time you are processing an image with 18 quintillion (2^64) pixels, you will have bigger prob...

posted 4mo ago by InfiniteDissent‭

Answer
60%
+1 −0
Q&A Best practices for designing a central gateway/hub for microservices communication

How about a library instead? The traditional way of reducing code duplication among separate software packages is to wrap the common bits in a library and use it where ever the functionality is ne...

posted 3mo ago by Iizuki‭

Answer
60%
+1 −0
Q&A Understanding "subprocess-exited-with-error" from Pip

Problems like this start when Pip retrieves your desired package as a sdist ("source distribution"), which has to be separately built on your machine before it can be installed. Normally, package a...

posted 3mo ago by Karl Knechtel‭

Answer
60%
+1 −0
Meta Do we want MathJax?

There is a small oddity wherein this post shows up strangely in list pages: Regex to get text outside brackets I am trying to capture the content outside square brackets in groups, using this r...

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

Answer
60%
+1 −0
Q&A Which model is Cursor IDE using when I specify a random model name?

Example: I specify a random model name some random name: Then I call it: Which model is Cursor IDE using when I specify a random model name? Cross-posted: https://stackoverflow.com/q/79...

0 answers  ·  posted 3mo ago by Franck Dernoncourt‭  ·  edited 3mo ago by Franck Dernoncourt‭

Question cursor-ai
60%
+1 −0
Q&A How does the strict aliasing rule enable or prevent compiler optimizations?

Aliasing is perhaps better understood as a property of assignments through pointers, not of the pointers themselves. First, let's consider the reasoning behind applying the optimization to the fir...

posted 7mo ago by Karl Knechtel‭

Answer
60%
+1 −0
Q&A Best Practices for Precalculating Expensive Variables in Functions

A class might calculate static variables during instantiation, which are then used by various functions. A common technique to optimize function performance is to precalculate expensive variables u...

2 answers  ·  posted 7mo ago by wagimek‭  ·  last activity 7mo ago by wagimek‭

Question c++11
60%
+1 −0
Q&A Recursive traversal of composite tree of mutable "trait objects"?

Here's the solution I ended up with a while back to traverse the (sub-)tree, starting at the given root component. In short, the model's field, components, is used directly and small unsafe blocks ...

posted 8mo ago by ghost-in-the-zsh‭  ·  edited 8mo ago by ghost-in-the-zsh‭

Answer
60%
+1 −0
Q&A I can't install the Spacy library using the terminal in VSCode on Windows 10

I am trying to install the Spacy library in VSCode in a folder with a virtual environment. The output appearing in the terminal is excessively long; I will share it with a pastebin later. My versio...

1 answer  ·  posted 8mo ago by Richard‭  ·  last activity 8mo ago by Alexei‭

Question python visual-studio installation terminal spacy
60%
+1 −0
Q&A empty line in table cell in reStructuredText (rst)

I would like to have an empty line in the cell of a table in reStructuredText. Consider the following example: .. list-table:: :header-rows: 1 * - aaa - bbb * - ccc - ddd ...

1 answer  ·  posted 7mo ago by Trevor‭  ·  last activity 7d ago by bignose‭

Question reStructuredText
60%
+1 −0
Q&A LocalDate format in fields stored as json via Hibernate

It is possible to set custom JSON serializer for hibernate. Here is example: @Configuration public class JsonHibernatePropertiesCustomizerConfig { @Bean HibernatePropertiesCustomizer c...

posted 8mo ago by talex‭

Answer
60%
+1 −0
Code Reviews Parsing numbers from a text file

using rfind and find as str.chars().find(|c| "0123456789".contains(c)) and str.chars().find(|c| "0123456789".contains(c)), then a manual match block is the simplest solution I think: edit str.find...

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

Answer
60%
+1 −0
Q&A Common string handling pitfalls in C programming

Understanding the representation of text in C "Text" is a high level abstraction that C doesn't properly support Fundamentally, C does not have any built-in "string" type. It arguably doesn't eve...

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

Answer
60%
+1 −0
Q&A Generating combinations of elements, which are themselves sequences of the same length, where the elements have no value in common at any position

Using filtered products of candidates, over combinations of first letters Let's consider the n=2 case first. (For higher n, we can use the same sort of recursive generator approach as in my other ...

posted 7mo ago by Karl Knechtel‭

Answer
60%
+1 −0
Q&A Generating combinations of elements, which are themselves sequences of the same length, where the elements have no value in common at any position

Using a recursive generator There isn't anything like a built-in solution for this algorithm, but it's easy to express the desired output recursively. A valid output combination of k-many inputs l...

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

Answer
60%
+1 −0
Q&A Ignore directory changes

I have a generated file that I want Tilt to ignore for re-building. However, when that file changes, Tilt also detects that the parent directory has changed based on its contents changing. I can fi...

0 answers  ·  posted 7mo ago by rcmosher‭  ·  edited 7mo ago by Andreas demands justice for humanity‭

Question tilt
60%
+1 −0
Q&A Generating combinations of elements, which are themselves sequences of the same length, where the elements have no value in common at any position

This question is adapted from a question I just helped fix up on Stack Overflow. I'm giving a different motivating example which I think will make it clearer what the requirements are and why a n...

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

Question python algorithms combinatorics
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 5mo ago by Iizuki‭

Answer
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 4mo ago by aura-lsprog-86‭  ·  last activity 4mo ago by Lundin‭

Question c integer loops
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 4mo ago by aura-lsprog-86‭  ·  edited 4mo ago by aura-lsprog-86‭

Answer
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 6mo ago by Trevor‭

Question tmux