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 Regex to get text outside brackets

First, we need to define some semantics. While it may not matter for your actual inputs, I propose that it should be valid for the output elements - the parts of the text found outside of brackets ...

posted 10mo ago by Karl Knechtel‭

Answer
66%
+2 −0
Q&A How do I trim a sorted list in Python?

Python has inbuilt list filtering syntax: l = [1,3,5,6,7,8] trimmed_list = [item for item in l if item > 4]

posted 11mo ago by mellen‭

Answer
66%
+2 −0
Q&A Reinstall old Python libraries after update

The pip freeze command may output individual dependencies with format zipp @ file:///Users/abcxyz/work/recipes/ci_py311/zipp_1677907997878/work Using this output will not work (unless you happen ...

posted 11mo ago by mudskipper‭

Answer
66%
+2 −0
Q&A How is this code "dividing" by a string?

Python allows for operators to be overloaded (the subject of a separate future Q&A). The / operator doesn't strictly mean division in a mathematical sense; it means whatever the operands define...

posted 11mo ago by Karl Knechtel‭

Answer
66%
+2 −0
Q&A How can I start my Python code, from the code itself?

Mac/Linux In this environment, Python scripts can be given a shebang line that tells the operating system that the file is a script, and what interpreter (i.e., Python) to use for it. Because # st...

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

Answer
66%
+4 −1
Q&A Where to place digit separators in C23?

This probably makes for a thoroughly unsatisfying answer, but there's probably far stronger cultural pressure than technical pressure. In European-derived cultures, we mostly group numbers by powe...

posted 10mo ago by John C‭

Answer
66%
+2 −0
Meta How can we grow this community?

Broaden the scope (slightly) I noticed https://software.codidact.com/posts/292660 was closed due to being off-topic. That's fine on a site the size of Stack Overflow, where there are too many ques...

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

Answer
66%
+2 −0
Q&A Multiple versions of scala libraries detected!

While compiling my scala project I'm getting following error. org.scala-lang.modules:scala-parser-combinators_2.13:2.4.0 requires scala version: 2.13.13 org.scalatest:scalatest_2.13:3.2.19 requ...

0 answers  ·  posted 6mo ago by talex‭

Question maven scala
66%
+2 −0
Meta Question/Answer views on Codidact

Where can I see the number of views for a specific question/answer? It motivates if i know more people are seeing the Question or Answer

1 answer  ·  posted 7mo ago by Abbas Gadhia‭  ·  last activity 7mo ago by Moshi‭

Question feature-request
66%
+2 −0
Q&A ffmpeg script outputs video with unexpected resolution and frame rate despite scaling and fps filtering

I'm having trouble with an ffmpeg script that's supposed to convert videos to a specific resolution and frame rate, but the output video has unexpected dimensions and frame rate. Here's my script a...

2 answers  ·  posted 7mo ago by ShadowsRanger‭  ·  last activity 6mo ago by harmony‭

Question bash ffmpeg
66%
+2 −0
Q&A Unit Testing #define Directives in Visual Studio

To clarify why what you show can't work, it's because you are mixing build-time and run-time constructs. All the #xxx commands are to the C pre-processor. They are used to modify the source code ...

posted 7mo ago by Olin Lathrop‭

Answer
66%
+2 −0
Q&A Turn all changes after latest origin/main into a branch

I handle this with: Create a new branch with same commits Delete commits from main branch In the situation shown, if you do git checkout -b new_branch it will create a new branch with the sa...

posted 8mo ago by matthewsnyder‭

Answer
66%
+2 −0
Q&A SQL scripts referenced in persistence configuration must have each statement on its own line

I'm currently working on a Java application using Jakarta Persistence with EclipseLink and PostgreSQL. While setting up the application to test the database layer, the persistence configuration is ...

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

Question java sql jpa jakarta-ee jakarta-persistence
66%
+2 −0
Q&A Unable to use conditional Must term in C# NEST client for Elastic Search

I'm trying to write a Elastic Search query using the C# NEST client, but right now I'm stuck on an issue with a conditional query. The query takes in two optional values, meaning they are both all...

1 answer  ·  posted 7mo ago by hest‭  ·  last activity 6mo ago by hest‭

Question .net
66%
+2 −0
Q&A Why is the new auto keyword from C++11 or C23 dangerous?

A pitfall in C++ that I didn't see mentioned in the other answer is that it might give unexpected results with libraries using expression templates. What are expression templates? In a nutshell, ...

posted 8mo ago by celtschk‭

Answer
66%
+2 −0
Q&A VSCode go is confused about what version of Go I have installed

I'm trying to work with a Go project that I'm taking over from another developer. The go.mod file says I need at least version 1.13, and I have 1.22.3 installed according to go version. However, wh...

0 answers  ·  posted 7mo ago by Andrew Ray‭  ·  edited 7mo ago by Alexei‭

Question go vs-code
66%
+2 −0
Q&A Why is package.json needed for running a SvelteKit application?

I'm trying to containerize a SvelteKit application that uses the @sveltejs/adapter-node. The Build and Deploy section from the documentation recommends to build the application, and then run the a...

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

Question node.js docker sveltekit
66%
+2 −0
Q&A LocalDate format in fields stored as json via Hibernate

Setup I have a database table with field of JSONB type. I access said database using Hibernate. In hibernate I have entity mapped on said table. Entity contains field marked with @JdbcTypeCode(...

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

Question java json spring hibernate
66%
+2 −0
Q&A Simultaneous comparison in Python

I want to make multiple comparisons at once, of the same type, in a Python program. For example, to check whether all of a certain group of strings are in a longer test string; or whether a specifi...

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

Question python operators logic
66%
+2 −0
Q&A C#: Performance hit from using calculated property instead of get-only property with initializer?

You're right about the recalculation, as you can see from some easy experimentation by rigging two (dynamic) properties and logging what each one gives you. public long TimeStamp1 { get; } = DateT...

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

Answer
66%
+2 −0
Q&A Best Practices for Precalculating Expensive Variables in Functions

If you want a best practice, I'm pretty sure the best practice is to do the straightforward and "naive" thing. From the perspective of OOP, your complaints are misguided. The unit of coherence isn'...

posted 5mo ago by Derek Elkins‭

Answer
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 5mo ago by misbahskuy‭  ·  edited 5mo 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 5mo ago by Lundin‭  ·  edited 3mo 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 5mo ago by Lundin‭  ·  edited 5mo ago by hkotsubo‭

Question c gcc clang c23 typeof
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 5mo ago by Lundin‭  ·  edited 5mo ago by Lundin‭

Answer