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
2.7k posts
 
60%
+1 −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 3mo ago by Derek Elkins‭

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

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

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 4mo ago by Feefladder‭  ·  edited 4mo ago by Feefladder‭

Answer
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 ...

0 answers  ·  posted 3mo ago by Trevor‭  ·  edited 3mo ago by Trevor‭

Question reStructuredText
60%
+1 −0
Q&A Syntax match any 2 spaces at end of line

You could explicitly match the other whitespace, too, to see if that gets around an existing rule.[1] Here are two ways to do that:[2] Match the other whitespace in another rule You could use a \...

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

Answer
60%
+1 −0
Q&A What determines where the focus goes back to when clicking on a browser's back button?

Short answer The HTML specification only addresses scroll position restoration behavior, so the main factors that influences where focus will land when navigating the browser history are: user ...

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

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

Sometimes when I try to install a third-party library for Python, I get an error saying that either distutils, or some part of it like distutils.core or distutils.util, could not be found. It's sho...

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

60%
+1 −0
Q&A can't install apks

After rigorously and scientifically clicking on the apks a bunch of times i could glimpse "termux" in the ever vanishing pop-up, which indeed i had installed. Uninstalled termux and can now instal...

posted 9mo ago by JohnRando‭

Answer
60%
+1 −0
Q&A ServletContext matched by more than 1 path

The javadoc for ServletContext.getContextPath() says that It is possible that a servlet container may match a context by more than one context path. I was trying to find any explanation how t...

0 answers  ·  posted 10mo ago by morgwai‭

60%
+1 −0
Code Reviews A class to access dicts using attribute syntax

I've used something similar in the past (supporting attribute access as equivalent to dict item access), but I would then always derive the class from dict (or UserDict). This can be useful - but m...

posted 9mo ago by mudskipper‭  ·  edited 9mo ago by mudskipper‭

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

> "lo" <> "fa" "lofa" > 1 <> 2 Error found: in module $PSCI at :1:1 - 1:7 (line 1, column 1 - line 1, column 7) No type class instance was found for ...

1 answer  ·  posted 9mo ago by toraritte‭  ·  last activity 9mo ago by r~~‭

60%
+1 −0
Q&A What does the static keyword do in C?

static is an unfortunately heavily overloaded keyword. At "file scope" Symbols are said to be at "file scope" if their definition is not inside a function. When the static keyword appears at fil...

posted 9mo ago by aghast‭

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

[2024-05-24: I originally wrote a similar answer in that other Q&A site] Summary: Check: Are you logged in? Look in ~/.docker/config.json for auths section The Auth token needs read_repos...

posted 9mo ago by milohax‭

Answer
60%
+1 −0
Q&A Can you run Python code on text in VS Code?

If your Python Interpreter is choosen inside of Vscode, you can normally find it on the bottom right of your screen. This is the same Interpreter that the Terminal inside VSCode is using. When yo...

posted 9mo ago by SirGamsay‭  ·  edited 9mo ago by Alexei‭

Answer
60%
+1 −0
Q&A Add an IDistributedCache to EntityFramework

Is there a standard way to add an IDistributedCached in front of a database using EntityFramework? Something that handles checking the cache for reads, updating the cache on writes, and uses distri...

0 answers  ·  posted 9mo ago by rcmosher‭

60%
+1 −0
Q&A Testing an opaque type's internals

I'd propose (and have generally used, back when I worked on C projects) a fourth option that I don't think gets too far out of line. If I understand the situation correctly, that you want to test ...

posted 9mo ago by John C‭

Answer
60%
+1 −0
Q&A How do you fix 'Failed to load the dll hostfxr.dll' when starting an x86 .NET process in a test run via dotnet test?

Remove DOTNET_ROOT environment variable before process start process.StartInfo.EnvironmentVariables.Remove("DOTNET_ROOT"); Another option is to use the x86 .NET SDK for running the tests: ...

posted 10mo ago by riQQ‭

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

I am fairly certain this isn't a duplicate so please bear with me. I check for boolean true||false using if() as a matter of course in my programming. I've programmed extensively in PHP, some in C...

3 answers  ·  posted 9mo ago by MER‭  ·  last activity 9mo ago by hkotsubo‭

60%
+1 −0
Q&A TypeScript won't recognize cross-module type extensions

I'm trying to write a Node module that extends the functionality of another module (a peer dependency which I do not control) using a register function exposed by the other module. This adds additi...

0 answers  ·  posted 9mo ago by Andrew Ray‭

60%
+1 −0
Q&A How can I export metrics from Angular frontend to be read with Prometheus ?

How can I monitor an Angular frontend with Prometheus? I was able to create metrics for my Node.js API using the express-prometheus module. But I can't find any Angular/Prometheus integration. Basi...

0 answers  ·  posted 3y ago by nelson777‭  ·  edited 3y ago by Peter Mortensen‭