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
 
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%
+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 3mo ago by Alexei‭

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 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 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‭

66%
+2 −0
Q&A How to set FontFamily for an entire WPF application in a theme?

Edit: I think you've already rejected this solution, but I am guessing that you only set the property for type Window, which won't have much of an effect. Window controls don't display text except...

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

Answer
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 2y ago by FrankLuke‭

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 2y ago by alx‭  ·  edited 2y 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 2y ago by mcalex‭  ·  last activity 2y ago by Alexei‭

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‭

66%
+2 −0
Q&A Input date in Angular Material date picker in dd/MM/yyyyy format

I am trying to create an application that takes a date as user input which is then passed as a parameter to an API call. The local date format is dd/MM/yyyy. I want the user to be able to enter t...

1 answer  ·  posted 2y ago by mcalex‭  ·  last activity 2y ago by tmpod‭

66%
+2 −0
Q&A Assert that some code is not present in the final binary, at compile or link time.

Calling an undefined function will have that behavior at link time: landmine.c: #ifndef CONSTANT #define CONSTANT 0 #endif #define assert_not_in_binary_if(e) do \ { \ if (e) \ undefi...

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

Answer
66%
+4 −1
Q&A Create a list of Niven numbers in Python

Think of what your for loop is doing, specifically at iterations 11 and 12. for i in range(1,n+2): while not g(i): i+=1;continue a.append(i) In pseudo instructions: for-loop iterati...

posted 2y ago by Moshi‭

Answer
66%
+2 −0
Q&A How to get a default value from an assoc in Factor programming language

: at-default ( default key assoc -- value/default ) at* [ nip ] [ drop ] if ; inline 100 1 H{ { 1 2 } } at-default . 2 100 10 H{ { 1 2 } } at-default . 100 You can also just do this...

posted 2y ago by erg‭

Answer
66%
+2 −0
Q&A Can UWPNuGetPackages be moved to another drive?

I'm trying to make a UWP app in Visual studio, but the NuGet package files have been huge. They just don't fit on my SSD, but I do have an HDD I could theoretically use. After a bunch of tinkering...

1 answer  ·  posted 2y ago by Ullallulloo‭  ·  last activity 3mo ago by Alexei‭

Question visual-studio nuget
66%
+2 −0
Q&A How to create a quotation containing the given token in a syntax word in Factor programming language

When you curry or fry a word into a quotation, the word is first placed into a wrapper object. This way, when the quotation is called, it places the word literal back on the stack instead of callin...

posted 2y ago by chunes‭  ·  edited 2y ago by chunes‭

Answer
66%
+2 −0
Q&A How to create a quotation containing the given token in a syntax word in Factor programming language

I am trying to define a syntax word as follows: USING: kernel syntax parser fry prettyprint ; IN: syn-try SYNTAX: syn scan-word '[ _ ] . ; Given a word, I want to create a quotation conta...

2 answers  ·  posted 2y ago by Razetime‭  ·  edited 2y ago by Alexei‭

66%
+2 −0
Meta Renaming GNU/Linux tag to gnu

All three obvious current possibilities are problematic, but for different reasons. Ignoring the matter of how to format the tag name for a moment... GNU/Linux focuses on one (admittedly very...

posted 2y ago by Canina‭

Answer