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 Unable to log in with Flask-WTF and Flask-Login

I'm building a Flask application with user login functionality using Flask-WTF for form handling and Flask-Login for user authentication. However, I am unable to log in successfully. The page does ...

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

Question python flask
66%
+2 −0
Q&A How does the strict aliasing rule enable or prevent compiler optimizations?

Pointer conversions and aliasing First of all, C historically allows all manner of crazy pointer conversions (whereas C++ is more restrictive) between compatible and non-compatible pointed-at type...

posted 7mo ago by Lundin‭  ·  edited 5mo ago by Lundin‭

Answer
66%
+2 −0
Q&A typeof_unqual behaves differently in gcc and clang

C23 6.7.3.6 contains this (informative) example demonstrating the use of typeof_unqual: const char* const animals[] = { "aardvark", "bluejay", "catte", }; typeof_unqual(animals) anima...

1 answer  ·  posted 7mo ago by Lundin‭  ·  edited 7mo ago by hkotsubo‭

Question c gcc clang c23 typeof
66%
+2 −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 7mo ago by rcmosher‭

Answer
66%
+2 −0
Q&A typeof_unqual behaves differently in gcc and clang

The C23 example as well as clang are correct. This is apparently a gcc bug in the latest 14.2 release, fixed in the "gcc (trunk)" unreleased version. The relevant part of the C23 standard here is ...

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

Answer
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 7mo 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 7mo ago by Franck Dernoncourt‭  ·  last activity 7mo 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 7mo ago by r.zwitserloot‭

Answer
66%
+2 −0
Q&A Labels and annotations not merging for specific resources in overlays

I'm trying to implement bases and overlays for some Kubernetes configurations that I have, but I'm running into an issue where labels and annotations are not being applied correctly to some specifi...

0 answers  ·  posted 5mo ago by ɯıpɐʌ‭

Question kubernetes kustomize
66%
+2 −0
Q&A Get global gitconfig path

This works for me in both bash and zsh on Debian 12. I can't guarantee it will work the same on every platform and shell. EDITOR=echo git config --global --edit 2>/dev/null or, if you prefer...

posted 4mo ago by InfiniteDissent‭  ·  edited 4mo ago by InfiniteDissent‭

Answer
66%
+2 −0
Code Reviews A simple implementation of a mutable String in C

(Brought over from SE.) The following code implements a simple interface to operate on mutable* Strings in C. It is composed of two files: one for the structure definition and the available oper...

3 answers  ·  posted 4mo ago by aura-lsprog-86‭  ·  last activity 4mo ago by Olin Lathrop‭

Question c string
66%
+2 −0
Q&A How to Proxy 3x-UI Panel to a Specific Path on Nginx Web Server with Asset Path Rewriting?

I have two vps: First one is used for vpn/proxy. It runs 3x-ui that, simply saying, allows to create and manage vpn/proxy with UI. VPS' ip is connected to https://new-york.vpn.utils.example.co...

0 answers  ·  posted 5mo ago by Botopodobniy‭

Question path-mapping nginx 3x-ui cloudflare
66%
+2 −0
Q&A Keep failed CronJob Pods around in Kubernetes

There are a few fields that play into this, but the gist of it is to set the Pod's restartPolicy to Never. This doesn't mean that the Job only tries once. Rather, instead of restarting the containe...

posted 5mo ago by Iizuki‭

Answer
66%
+2 −0
Code Reviews Serial copying from disk images to folder in Bash

(Brought over from SE.) This is a Bash script that copies files stored inside disk images to a directory, using a defined structure provided via a JSON file. I've included the external programs ...

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

Question json linux bash jq file-structure
66%
+2 −0
Q&A how do I get markdown to render # as a shell prompt and not a comment?

Note that, by declaring sh as the language, you have implicitly declared "a # introduces a comment", because that's what is implied by the sh syntax. But you say you don't want that interpretation...

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

Answer
66%
+2 −0
Q&A Line-drawing algorithm prints nonsensical intermediate Y values. Where is the problem?

This question was originally asked in SE. I have a program that draws lines using line drawing algorithms. I use gcc 5.2.1 on Xubuntu 15.10 to compile it. Executing it throws a "Segment violati...

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

Question c casting struct graphics
66%
+2 −0
Q&A Unable to configure enhanced route discovery in Apache Camel

I'm currently working with Apache Camel in a Quarkus application. I would like to configure the application to not discover any routes by default, and only include those defined in specific package...

0 answers  ·  posted 6mo ago by ɯıpɐʌ‭  ·  edited 6mo ago by Alexei‭

Question java quarkus apache-camel enterprise-integration-patterns
66%
+2 −0
Q&A Line-drawing algorithm prints nonsensical intermediate Y values. Where is the problem?

I answered myself as it can be found here. Silly me! The root of the entire problem was the type used in both point.x and point.y: typedef unsigned int uint; typedef struct { uint x; ...

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

Answer
66%
+2 −0
Q&A How do I get a hexadecimal string representation of a GdkRGBA struct in C?

I have a program that reads a hexadecimal string representation from a configuration file, turns it into a GdkRGBA struct from Gdk, uses gtk_color_dialog_button_set_rgba () to set it as the default...

1 answer  ·  posted 5mo ago by Newbyte‭  ·  last activity 5mo ago by Newbyte‭

Question c
66%
+2 −0
Q&A How do I get a hexadecimal string representation of a GdkRGBA struct in C?

I ended up implementing it like this: #define RGB_HEX_STRING_LENGTH 8 gchar * gdkrgba_to_rgb_hex_string (const GdkRGBA *const from) { guchar red = roundf (from->red * 255.0f); guchar...

posted 5mo ago by Newbyte‭

Answer
66%
+2 −0
Q&A List charts in a helm repository

How to list all available helm charts in a helm repository, preferrably using the native helm CLI tool? This command lists the repos themselves, but I've yet to discover how to list their contents...

1 answer  ·  posted 5mo ago by Iizuki‭  ·  last activity 3mo ago by Monica Cellio‭

Question helm
66%
+2 −0
Q&A Dynamically do something after a useState variable has been set?

Since setState is asynchronously executed, how to dynamically do something after a useState variable has been set? Consider import { useState } from "react"; const [myVar, setMyVar] = useState("...

2 answers  ·  posted 5mo ago by propatience‭  ·  last activity 5mo ago by bignose‭

Question reactjs
66%
+2 −0
Q&A Helm delete old release revisions

Helm keeps track of releases and their revisions by creating a kubernetes Secret each time a chart is installed, upgraded etc. These are of course useful in case you want to rollback, but they do p...

1 answer  ·  posted 5mo ago by Iizuki‭  ·  edited 5mo ago by Iizuki‭

Question kubernetes helm
66%
+2 −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 3mo ago by matthewsnyder‭

Answer
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 4mo ago by wasIzy‭

Answer