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 "This model is not available on the selected Azure OpenAI Service resource." error, but I think it is. Why did I miss?

I've given up on that Azure UI, here's the Python code to do it. It requires a token generated via az account get-access-token. import json import requests new_capacity = 3 # Change this numbe...

posted 1d ago by Franck Dernoncourt‭

Answer
60%
+1 −0
Q&A Subfolders for package-less module imports

It looks like I was confused, and the problem I am asking about does not actually exist. Perhaps it existed in an older version, or perhaps I am simply misremembering. Regardless, I've seen other p...

posted 11mo ago by matthewsnyder‭  ·  edited 11mo ago by matthewsnyder‭

Answer
60%
+1 −0
Q&A Why can't I use a library I just installed with Pip?

Problems like this occur, fundamentally, because there is more than one Python installation on the system, and the system is configured in a way that pip installs for a different Python than the on...

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

Answer
60%
+1 −0
Q&A Why does `venv` seem to be missing or broken? Isn't it part of the standard library?

I understand the benefits of virtual environments in general, and specifically I want to use a virtual environment so that I'll have access to Pip without exposing the system Python (i.e., included...

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

Question python installation python-venv
60%
+1 −0
Q&A Installing packages for, and using them with, a specific Python installation

I have multiple installations of Python on my machine. I already know how to choose one to use to run for my code - and therefore, I could also solve the problem for third-party application code. ...

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

Question python pip
60%
+1 −0
Q&A Installing packages for, and using them with, a specific Python installation

Choosing an environment for third-party libraries The short version of the answer is: Python installations don't normally share libraries because there are too many ways it could go wrong; general...

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

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 19d ago by Franck Dernoncourt‭  ·  last activity 3d ago by Franck Dernoncourt‭

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

Normally gateways just do routing and maybe load balancing. That's one well-defined job that can be done well. You are adding a second job, which is to be a universal adapter. An adapter would be ...

posted 18d ago by matthewsnyder‭

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 3d ago by Franck Dernoncourt‭  ·  edited 1d 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 2mo ago by InfiniteDissent‭

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 23d ago by Karl Knechtel‭

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 1mo ago by Iizuki‭

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 1mo ago by Michael‭  ·  edited 1mo 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 24d ago by Franck Dernoncourt‭  ·  edited 24d 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 5mo 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 5mo ago by wagimek‭  ·  last activity 5mo 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 6mo ago by ghost-in-the-zsh‭  ·  edited 6mo 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 6mo ago by Richard‭  ·  last activity 6mo ago by Alexei‭

Question python visual-studio installation terminal spacy
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 6mo ago by talex‭

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 5mo ago by rcmosher‭  ·  edited 5mo ago by Andreas demands justice for humanity‭

Question tilt
60%
+1 −0
Q&A Do Where and OfType preserve List capacity?

I did a quick test using LINQPad and it looks as though .Select() does not necessarily preserve capacity. For .Where() and .OfType() the capacity depends on the count, though it doesn't necessarily...

posted 5mo ago by rcmosher‭

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

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 5mo ago by Karl Knechtel‭  ·  last activity 5mo ago by Karl Knechtel‭

Question python algorithms combinatorics
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 5mo ago by Karl Knechtel‭  ·  edited 5mo 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 5mo ago by Karl Knechtel‭

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 5mo ago by Karl Knechtel‭  ·  edited 5mo ago by Karl Knechtel‭

Answer