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.6k posts
 
50%
+0 −0
Q&A Best Practices for Precalculating Expensive Variables in Functions

But checking if the variable has been calculated each time the function runs, wastes CPU cycles, which counteracts the purpose of precalculating the variables to save resources. The Precalculating...

posted 1d ago by wagimek‭

Answer
50%
+0 −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 2h ago by Lundin‭

Answer
50%
+0 −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?

How do you fix the error 'Failed to load the DLL hostfxr.dll' when running a .NET test executed via dotnet test and starting an x86 .NET application in the test? I'm using .NET 8. Failed to load ...

1 answer  ·  posted 6mo ago by riQQ‭  ·  last activity 6mo ago by riQQ‭

Question .net
50%
+0 −0
Q&A PGP sign emails sent with git-send-email(1)

git-send-email(1) uses sendmail(8) as the MTA by default. However, this can be changed by passing the --sendmail-cmd option. $ man git-send-email | sed -n '/--sendmail-cmd=/,/^$/p' --sendma...

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

Answer
50%
+0 −0
Q&A How do I choose the correct Perl module from these variations?

Realistically in 2024, you should be using Cpanel::JSON::XS, and JSON::MaybeXS. Cpanel::JSON::XS is by far the best JSON implementation for Perl, but not every platform will have it, so you can use...

posted 6mo ago by ivan‭

Answer
50%
+0 −0
Q&A UID of nonroot user in distroless container images

You don't actually need the UID in that particular example. A more elegant solution would be to use the --chown option of the COPY directive. FROM bash:latest as builder RUN adduser adduser \ ...

posted 6mo ago by Iizuki‭

Answer
50%
+0 −0
Q&A UID of nonroot user in distroless container images

The UID of nonroot user is 65532. This is by convention. I failed to find a reputable source for this, but looking around image internals, it seems to hold.

posted 6mo ago by Iizuki‭

Answer
50%
+0 −0
Q&A UID of nonroot user in distroless container images

Distroless images use a user called nonroot by convention. What's the UID (User ID) of this user? This is relevant in multi-stage image builds: FROM bash:latest as builder RUN adduser adduser ...

2 answers  ·  posted 6mo ago by Iizuki‭  ·  last activity 6mo ago by Iizuki‭

50%
+1 −1
Q&A Migrating from Az Co DB NoSQL to Az Co DB MongoDB, error?

From my own trial and error the solution was to temporarily increase the Read Units Per Second for the MongoDB. Then it worked flawlessly the first time to import.

posted 7mo ago by propatience‭  ·  edited 6mo ago by propatience‭

Answer
50%
+0 −0
Q&A When to use custom iterators versus pointers

However, I suspect that most iterators can be written as iterating over an array. From my experience, I wouldn't expect this to be the case. From the standard library containers, only std::vec...

posted 7mo ago by Angew‭

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

As mentioned in another answer, when you have code such as if (someVar), you're subject to truthiness. To be more precise, this code will run under the rules of Boolean coercion. In JavaScript, wh...

posted 6mo ago by hkotsubo‭  ·  edited 6mo ago by hkotsubo‭

Answer
50%
+0 −0
Q&A Maven exec:exec fails to see executables

The groupId and artifactId are wrong (this plugin is not from Maven but from codehaus). Additionally, the configuration is not applied to the relevant execution. If you reshuffle the part like so… ...

posted 6mo ago by mirabilos‭

Answer
50%
+1 −1
Q&A How do I concatenate two animated gifs together?

You can use imagemagick. Suppose you have the files a.gif and b.gif and want to play a and then b. Then use the command: convert a.gif b.gif out.gif And your results will be written to out.gif....

posted 6mo ago by congusbongus‭

Answer
50%
+0 −0
Q&A Tools for debugging coredumps

It's rare that you find a software tool that does exactly what you want in the way that you want. Hence the popularity of scripting languages among software developers for doing all sorts of littl...

posted 6mo ago by Invisible Mender‭

Answer
50%
+0 −0
Q&A How to hide files from the VS Code sidebar without pattern matching?

There are a few VSCode extensions that may be useful: Simple hide files allows you to hide individual files using a pane in the side bar. Make hidden allows you to hide a file via a right-click m...

posted 6mo ago by TomJB1‭

Answer
50%
+1 −1
Q&A Check if a file exists in Node.js

You can check if a file exists using the fs module. Besides the methods already mentioned, you can use fs.stat(path[, options], callback) [1]. It's also asynchronous, and the callback returns two ...

posted 6mo ago by ɯıpɐʌ‭

Answer
50%
+0 −0
Q&A Check if a file exists in Node.js

How to check in Node.js if a file exists?

2 answers  ·  posted 6mo ago by philipp.classen‭  ·  last activity 6mo ago by ɯıpɐʌ‭

Question javascript node.js
50%
+0 −0
Q&A Reinstall old Python libraries after update

Every time I run a program I'm used to, I get a bunch of import errors, and have to reinstall the dependencies. As you're presumably aware, the fundamental problem is that each Python installa...

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

Answer
50%
+0 −0
Q&A How can I make a standalone executable from Python code?

I know that I can make Python code run starting from the script, but this still requires the user to have Python installed (and will still rely on configuring the system so that it can find Python ...

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

Question python build
50%
+0 −0
Q&A Why does `venv` seem to be missing or broken? Isn't it part of the standard library?

I understand the benefits of virtual environments in general, and specifically I want to use a virtual environment so that I'll have access to Pip without exposing the system Python (i.e., included...

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

50%
+0 −0
Q&A How can I make a standalone executable from Python code?

Normally, Python is compiled, but it compiles to bytecode, not to your computer's native instructions. This bytecode is cross-platform, but it can't be used by the CPU directly - it can't be turned...

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

Answer
50%
+0 −0
Q&A Why won't Matplotlib show me a plot?

I installed Matplotlib and tried a simple demo, but I got a warning message and no plot showed up: >>> import matplotlib.pyplot as plt >>> plt.plot([1,2,3],[4,5,6]) [<matplo...

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

Question python matplotlib
50%
+0 −0
Q&A Why won't Matplotlib show me a plot?

Matplotlib uses a backend to render the plot. Some backends are "GUI backends", meaning that they can render into a window that displays on your screen. Others are "non-GUI backends" which can only...

posted 5mo ago by Karl Knechtel‭

Answer
50%
+0 −0
Q&A Why can't I run freshly-installed Python from the command line on Windows?

I tried installing Python on an old computer running Windows 8[1]. I know for a fact that there was never any previous installation of Python on the machine. The installation appeared to be success...

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

50%
+0 −0
Code Reviews Github workflow for a C application

I don't see much duplication in your workflow file here. Is there a lot of boilerplate? Yes, but I believe that's expected for CI/CD workflow definitions and a result of using the workflow being d...

posted 4mo ago by zmzaps‭

Answer