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 How to uncollapse an entire link tree with JavaScript?

You can use MutationObserver Quick example, disconnect logic is not mandatory and could be improved: const container = document.querySelector('.CategoryTreeResult'); let disconnectTimeout; ...

posted 3y ago by xbb‭  ·  edited 3y ago by xbb‭

Answer
66%
+2 −0
Q&A Delete all occurrences of a character in a webpage with vanilla JavaScript

Some comments and your answer are doing this: document.body.innerHTML = document.body.innerHTML.replace(/x/g, '*'); But as explained in the comments, this is not a good solution, because it can...

posted 3y ago by hkotsubo‭

Answer
66%
+4 −1
Meta codidact profile editing requires 30 characters but has no error message

Editing one's profile on codidact is problematic. Evidently it needs to be 30 characters or more, but there's no error message, there's just a red box around the profile post and then the save but...

1 answer  ·  posted 3y ago by daveola‭  ·  edited 5mo ago by Alexei‭

Question bug status-completed profile-page
66%
+2 −0
Q&A How to set FontFamily for an entire WPF application in a theme?

While writing the question I did find one hacky solution which works, and which I will use unless someone has an alternative. Create a codebehind file for the theme: using System; using System.W...

posted 3y ago by Peter Taylor‭

Answer
66%
+2 −0
Q&A Recursion without a procedure ("function") in JavaScript

There are several ways to turn a recursive algorithm into an iterative one or at least avoid to do the recursive calls in your own code. In the specific example of yours, where your traverse a tre...

posted 3y ago by Dirk Herrmann‭  ·  edited 3y ago by Dirk Herrmann‭

Answer
66%
+2 −0
Q&A How do I get an animation from another source playing through hovering?

I was tasked with an assignment where I should get a box to move to the 4 corners of the viewport by hovering on a button. Most of the code is already finished except for figuring out how to get th...

0 answers  ·  posted 3y ago by General Sebast1an‭  ·  edited 3y ago by General Sebast1an‭

Question html css css-animations
66%
+2 −0
Q&A Child process works only once after the parent's two calls to scanf

One problem of your code is the one that @celtschk already has reported: You start one child process, and that one child process does the area calculation exactly once. Thus, one step towards the ...

posted 3y ago by Dirk Herrmann‭  ·  edited 3y ago by Dirk Herrmann‭

Answer
66%
+4 −1
Q&A Why can't a derived class add a const qualifier to a method?

@InfiniteDissent‭ gives an excellent explanation why such a feature would be problematic from a programming language design perspective. As a consequence, C++ is defined such that the code you wan...

posted 3y ago by Dirk Herrmann‭  ·  edited 3y ago by Dirk Herrmann‭

Answer
66%
+2 −0
Q&A C# WPF datagrid not persisting inserts

I am working with VS 2022 and trying to make a WPF MVVM application. The application updates the items displayed in the datagrid, persisting the changes to the database upon save. However, adding a...

0 answers  ·  posted 3y ago by FrankLuke‭

Question c# entity-framework-core mvvm wpf
66%
+2 −0
Q&A PGP sign emails sent with git-send-email(1)

It can't be done with git-send-email(1), but there's a tool that integrates with it, and is very simple to use: patatt(1). Install the tool: $ sudo apt-get install patatt And then for each rep...

posted 3y ago by alx‭  ·  edited 3y ago by alx‭

Answer
66%
+2 −0
Q&A Order a subcollection from linq

I am using linq/EF core to retrieve data via an API call. How do I sort the collection of related data for each retrieved entity? Assume the following structure: an Order is made on a certain da...

1 answer  ·  posted 3y ago by mcalex‭  ·  last activity 3y ago by Alexei‭

Question linq entity-framework-core .net-core
66%
+2 −0
Q&A Algorithmically generating the grid formed by the vertices of a dodecahedron (Hunt The Wumpus)

When I implemented this for a code golf challenge, the state had to encode not only the vertex you were at but the edge by which you had entered (or, equivalently, the direction in which you were f...

posted 3y ago by Peter Taylor‭

Answer
66%
+2 −0
Q&A How can the Caesar cipher be implemented in Java?

Caesar Cipher originally deals only with letters (ASCII "A" to "Z", without diacritics/accents), so I'm not sure why you included €§$%& in your answer. And using indexOf (as you did) is not ver...

posted 3y ago by hkotsubo‭

Answer
66%
+2 −0
Q&A How do I strip file extensions from URLs with H2O?

It may be hard to find in the docs, but you can use mruby in H2O to rewrite URLs: https://h2o.examp1e.net/configure/mruby.html Unlike Apache, you can use an actual programming language to do the ...

posted 3y ago by jminer‭

Answer
66%
+2 −0
Code Reviews Measuring arithmetic overflow checking overhead in C#

Benchmarking is hard and there are a lot of potential issues with your code. I agree with Olin Lathrop that you want at least a few seconds worth of run time, not just due to the potential for a lo...

posted 3y ago by Derek Elkins‭

Answer
66%
+2 −0
Q&A Why is my last input box not centering (class: powerwall-battery-input)?

I found a form I wanted to duplicate on a roof construction website. All my input boxes are centered except the last one that's a bit off and I cannot figure out why. Here is my code: HTML <...

1 answer  ·  posted 3y ago by WannaBeAWebDev‭  ·  last activity 3y ago by meriton‭

Question html css centering
66%
+2 −0
Q&A How to check if a ldap username is valid without contacting the active directory via ldap?

I have some code connecting to an active directory via ldap. Something like this: public Response add(User user) { try { LDAPConnectionPool ldapPool = ldapConnectionPool.getPool();...

0 answers  ·  posted 3y ago by klutt‭  ·  edited 3y ago by klutt‭

Question java spring-boot ldap active-directory
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 3mo 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 2mo ago by InfiniteDissent‭  ·  edited 2mo 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 2mo ago by aura-lsprog-86‭  ·  last activity 2mo 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 3mo 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 3mo 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 2mo ago by aura-lsprog-86‭  ·  edited 2mo 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 3mo ago by bignose‭  ·  edited 3mo 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 2mo ago by aura-lsprog-86‭  ·  last activity 2mo ago by aura-lsprog-86‭

Question c casting struct graphics