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 Why are model_q4.onnx and model_q4f16.onnx not 4 times smaller than model.onnx?

Going from fp32 to fp16 is done usually by essentially just rounding the weights. To this end, you should expect pretty close to a 2:1 reduction in size. (Of course, not everything is weights, but ...

posted 5mo ago by Derek Elkins‭

Answer
66%
+2 −0
Q&A Why are model_q4.onnx and model_q4f16.onnx not 4 times smaller than model.onnx?

I see on https://huggingface.co/HuggingFaceTB/SmolLM2-135M-Instruct/tree/main/onnx: File Name Size model.onnx 654 MB model_fp16.onnx 327 MB model_q4.onnx 200 MB m...

1 answer  ·  posted 5mo ago by Franck Dernoncourt‭  ·  last activity 5mo ago by Derek Elkins‭

Question machine-learning onnx quantization language-model
66%
+2 −0
Q&A Understanding "logical OR" and "logical AND" in programming languages

The explanation is that human languages are fundamentally confusing on this, but, because humans tend to be somewhat blind to complexities in systems that they've literally been the only thing they...

posted 5mo ago by r.zwitserloot‭

Answer
66%
+2 −0
Q&A Why is the `Data.Int` type not a `Semigroup` in PureScript but `String` is?

Is this for purely technical reasons as there would have to be at least 2 Semigroup instances (for addition and multiplication), but type classes cannot be implemented multiple times for the same...

posted 11mo ago by r~~‭

Answer
66%
+2 −0
Q&A In javascript is there really a good reason to never check for boolean true || false such as if(var){}else{}?

r~~'s answer is good, and I absolutely agree that the condition provided in the question is ridiculous and I've never seen anyone suggest it as a generic replacement for if(var). But I think the ac...

posted 11mo ago by Derek Elkins‭

Answer
66%
+2 −0
Q&A Docker push fails with message "denied: requested access to the resource is denied"

Recently I had to push a new Docker image to our GitLab registry. I have the Maintainer role on that project. I had created a new token and used it to log in to Docker. However, when trying ...

2 answers  ·  posted 11mo ago by FractionalRadix‭  ·  last activity 11mo ago by Alexei‭

Question docker gitlab
66%
+2 −0
Q&A How do I trim a sorted list in Python?

The library module itertools provides a function called dropwhile(). The example they give is: dropwhile(lambda x: x<5, [1,4,6,3,8]) → 6 3 8 So, to get a list of numbers greater than 4, d...

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

Answer
66%
+4 −1
Q&A Subfolders for package-less module imports

Is there some sane way to allow Python to import from subfolders in projects that don't have a package? I have many Python programs that I implemented as Python files inside a directory, without a...

1 answer  ·  posted 11mo ago by matthewsnyder‭  ·  last activity 11mo ago by matthewsnyder‭

Question python-3
66%
+2 −0
Q&A Docker push fails with message "denied: requested access to the resource is denied"

There are many reasons why this error may occur. In my case, my new token had the read_registry scope but not the write_registry scope. I created a new token that had the read_registry and write_...

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

Answer
66%
+2 −0
Q&A How would I display the first line of all files matching a glob?

The first line of a file is head -1. But you probably also want the file name. So something like: for file in glob do first_line="$(head -1 "$file")" printf "%s: %s\n" "$file" "$first_l...

posted 12mo ago by aghast‭

Answer
66%
+2 −0
Q&A Best practices for business versioning within Web APIs

Context Our team is developing a solution mainly composed of several microservices relying on ASP.NET Core. We have decided that the simplest and most cost-effective solution would be for service...

0 answers  ·  posted 12mo ago by Alexei‭  ·  edited 12mo ago by Alexei‭

Question software-practices architecture api-versioning
66%
+2 −0
Q&A How do I share a type between a client and server, but make a specific field optional for one and required for the other?

The existing answer is fine, but you can achieve similar results in many ways using some of TypeScript's utility types. Required<T> While you cannot use (only) Partial to do this, TypeScrip...

posted 12mo ago by Jacob Raihle‭  ·  edited 12mo ago by Jacob Raihle‭

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

Understanding distutils and setuptools: the history The short version of "why does installing Setuptools fix the problem?" is that Setuptools provides its own distutils package, overriding anythin...

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

Answer
66%
+2 −0
Q&A Can I conditionally include class members without using #ifdef?

There's nothing as elegant as if constexpr, unfortunately. However, it is possible to achieve the practical effects (member functions and data only present conditionally). Start by creating a clas...

posted 12mo ago by Angew‭

Answer
66%
+2 −0
Q&A Can I conditionally include class members without using #ifdef?

#ifdef sections can, of course, be used to include or exclude chunks of code based on some criteria known at compile time. One big problem is that when the condition is evaluated to false, the chun...

1 answer  ·  posted 12mo ago by Hyperlynx‭  ·  last activity 12mo ago by Angew‭

Question c++
66%
+2 −0
Q&A 2D-array pointer as a struct member

Yes, it is cheating, but I gave up with my question as originally stated, and settled for an x,y "view" in any function that must play with a given .items length by adding: char (*pixy)[len] = (ch...

posted 2mo ago by wasIzy‭

Answer
66%
+2 −0
Q&A What is the advantage of creating instances from a method rather than constructor?

Take the newly Temporal.PlainDate class as an example. New instances can be created via the constructor: new Temporal.PlainDate(year, month, day) new Temporal.PlainDate(year, month, day, calendar...

1 answer  ·  posted 22d ago by Ooker‭  ·  last activity 21d ago by Derek Elkins‭

Question javascript class
66%
+2 −0
Q&A zsh - autocomplete with braces in the middle of a directory

I figured out a solution myself. I'm not a zsh expert so this may be improved, but it works. 1) make a custom completion file for the diff command The completion file that zsh uses for the diff ...

posted 9d ago by Trevor‭  ·  edited 8d ago by Trevor‭

Answer
66%
+2 −0
Meta Do we want MathJax?

Based on the activity here and discussion in chat, I've enabled MathJax on this community. I don't know Mathjax myself, so as verification, I'm copying some Math I found in this Mathematics post: ...

posted 2mo ago by Monica Cellio‭

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

This question is about the general case of subprocess-exited-with-error. It's intended to help you understand the situation if you get an error like this, and there are some common workarounds - ...

1 answer  ·  posted 22d ago by Karl Knechtel‭  ·  last activity 22d ago by Karl Knechtel‭

Question python pip
66%
+2 −0
Q&A How is `Temporal.PlainDate.from()` constructed?

Continuing from What is the advantage of creating instances from a method rather than constructor?, I want to construct a method that create a new instance of a class without using the constructor....

0 answers  ·  posted 19d ago by Ooker‭  ·  edited 19d ago by ArtOfCode‭

Question javascript constructor class
66%
+2 −0
Meta How to handle correct answers that also include spam?

I think this is a judgment call. If the answerer appears to be a human, you can caution them with How We Do Things Around Here and edit the answer. If they do it again (and this user has)...

posted 1mo ago by Michael‭

Answer
66%
+2 −0
Q&A Why force designation of a remote main branch?

These are my theories, but I'm not particularly excited about either of them. Something to see They need something to show when you visit the website's index. Otherwise, https://www.github.com/yo...

posted 1mo ago by Michael‭

Answer
66%
+2 −0
Meta How to handle correct answers that also include spam?

Blow it away if it's truly spam (the link is unrelated to the question topic). Any user who posts blatant spam should be disabled or deleted too. If the link is proplerly labeled and goes to a pr...

posted 1mo ago by Olin Lathrop‭

Answer
66%
+2 −0
Q&A Does the Rate limit (Tokens per minute) of an Azure OpenAI instance corresponds to the input tokens, the output tokens or the sum of both?

Does the Rate limit (Tokens per minute) of an Azure OpenAI instance corresponds to the input tokens, the output tokens or the sum of both? Crossposted at: https://serverfault.com/q/1176440/...

1 answer  ·  posted 29d ago by Franck Dernoncourt‭  ·  edited 29d ago by Franck Dernoncourt‭

Question azure azure-cognitive-services