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%
+4 −1
Q&A How to overwrite lines of STDOUT in Python?

print() normally adds text to STDOUT, it does not erase existing text. https://linux.codidact.com/posts/289869 describes various ways of doing the overwrite in shell scripts. How can you do this ...

2 answers  ·  posted 1y ago by matthewsnyder‭  ·  last activity 1y ago by hkotsubo‭

Question python-3
66%
+2 −0
Q&A How do I install Chart.js as a file?

If you're not importing it as a module but just including it through a <script> tag, you can't use the regular file. You'll need to use the UMD file instead. You can either include it from a ...

posted 1y ago by Ullallulloo‭

Answer
66%
+2 −0
Q&A Redshift int casting from varchar - how to force early evaluation order?

Context: I have a varchar column in a segment event table that contains version numbers. Most of these are formatted nicely as X.Y.Z (major.minor.patch) where X, Y, and Z are integers. However, the...

0 answers  ·  posted 1y ago by Sigma‭

Question sql compiler-errors redshift
66%
+2 −0
Q&A Pipeline for zipping multiple file chanel into a single output channel

I am in need of downloading some files (from dynamic list of URLs) and archive them into a single zip file. Since these files can be arbitrarily sized (totaling hundreds of MB), I want to avoid dow...

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

Question filestream kotlin coroutines ktor
66%
+2 −0
Q&A Shortcut for inserting today's date in VS Code

You can use snippets for this. In the example below, when you type today and trigger completion (usually Ctrl+Space) you will see an option to insert the date by pressing Enter. Snippet code: "to...

posted 1y ago by matthewsnyder‭  ·  edited 1y ago by matthewsnyder‭

Answer
66%
+2 −0
Q&A `git submodule foreach git pull` in parallel

Git can't do this natively, but you can use git in combination with another command, such as GNU xargs First of all, fetching many repos in parallel is likely not worth it. Git fetch is likely to ...

posted 2y ago by GrantMoyer‭

Answer
66%
+2 −0
Q&A How does scoping work in R?

If I run ls() in R, it shows the variables (including functions) in my workspace. But there are other variables visible too, e.g. functions from packages like ls itself. And if I write a function...

1 answer  ·  posted 1y ago by djm‭  ·  edited 1y ago by Alexei‭

Question r scope
66%
+4 −1
Q&A How do I remove an element from a Java array?

One way to remove element from array is to replace element with zero. Below is a rough snippet I am sharing: int N = sc.nextInt(); int pos = sc.nextInt(); int A[] = new int[N]; if(pos == i) { ...

1 answer  ·  posted 1y ago by abhinavxyz‭  ·  edited 1y ago by E_net4‭

Question java array
66%
+2 −0
Q&A What is the meaning of "short circuit" operators?

It means the program can give up early if checking the rest of a boolean expression is pointless. For example, naively to evaluate p and q you must check the value of both p and q, and then do the...

posted 1y ago by matthewsnyder‭  ·  edited 1y ago by matthewsnyder‭

Answer
66%
+2 −0
Q&A VS Code: How to open a file and folder in a new window?

I've figured out that code --new-window /foo/bar/baz.txt will open baz.txt in a new window. But when I do this, it says "no folder opened" in the file explorer pane. That makes it hard to work with...

2 answers  ·  posted 1y ago by matthewsnyder‭  ·  last activity 1y ago by Moshi‭

Question vs-code
66%
+2 −0
Q&A How does scoping work in R?

Unlike some other languages, all scoping in R is dynamic. When R evaluates an expression like print(b), it looks up the function print in the current "environment", and later will look up the v...

posted 1y ago by djm‭

Answer
66%
+2 −0
Q&A .NET dependency management: `dotnet add package` vs. Paket?

Based on what I know so far, there is no difference. Paket has been created more than 10 years ago to address (perceived?) shortcomings of NuGet. (Reading the .NET history made my head spin, and l...

posted 1y ago by toraritte‭  ·  edited 1y ago by toraritte‭

Answer
66%
+2 −0
Q&A .NET dependency management: `dotnet add package` vs. Paket?

Many older projects (i.e., older than 5 years) provide instructions to the Paket .NET dependency manager (e.g., Suave), so I started digging into it, got confused, then gave up for while because er...

1 answer  ·  posted 1y ago by toraritte‭  ·  last activity 1y ago by toraritte‭

Question .net-core nuget paket
66%
+2 −0
Q&A Maven JPA integration: processor not found

My annotation processor "cannot be found" but everything ~looks okay. In Eclipse IDE, I created a new Maven project with the "quickstart-architype" resulting in a project with this structure: ___...

1 answer  ·  posted 1y ago by tylerbakeman‭  ·  edited 12mo ago by Andreas demands justice for humanity‭

Question java xml jpa
66%
+2 −0
Code Reviews GnuTLS config for my own root CA, for use on internal server

Does GnuTLS support CA Name Constraints (RFC 5280, 4.2.1.10), so you can limit the valid domains directly in the root CA? I'm not aware of any CAs that self-limit this way,[1] except for when the ...

posted 1y ago by Michael‭  ·  edited 1y ago by Michael‭

Answer
66%
+2 −0
Q&A PHP - Why using "global" considered bad?

In PHP why is using global like in the example below considered bad? $a = 1; class foo { public function bar() { global $a; // <-- Why is this considered bad? } } ...

1 answer  ·  posted 1y ago by Vanity Slug ❤️‭  ·  last activity 1y ago by matthewsnyder‭

Question php global-variables
66%
+2 −0
Q&A What are the prefixes like "md:" and "ds:" in SAML metadata?

SAML service provider (and other types as well) metadata XMLs are full of prefixes like md: and ds:. What do these mean? To illustrate my point, here's a sample metadata file from Wikipedia (CC-BY...

1 answer  ·  posted 1y ago by Iizuki‭  ·  last activity 1y ago by Michael‭

Question saml saml-metadata
66%
+2 −0
Q&A How can I manage multiple consecutive strings in a buffer (and add more later)?

This question is inspired by If I have a char array containing strings with a null byte (\0) terminating each string, how would I add another string onto the end? on Stack Overflow. Suppose I have...

2 answers  ·  posted 1y ago by Karl Knechtel‭  ·  last activity 1y ago by Lundin‭

Question c string
66%
+2 −0
Code Reviews A small header-only input output library

The library (inspired by stb libraries) attempts to provide some commonly used functions (reading a file into memory, determining the size of a file) that are missing from the C standard library po...

0 answers  ·  posted 1y ago by Melkor-1‭  ·  edited 1y ago by Melkor-1‭

Question c string input output
66%
+2 −0
Q&A How to group a flat list of attributes into a nested lists?

The obvious way would be to simply start with an empty list of lists, loop through the input, and for each item decide which sublist to put it in. It's not super dev-friendly to remember which lis...

posted 1y ago by matthewsnyder‭

Answer
66%
+2 −0
Q&A How to troubleshoot ModuleNotFoundError?

ModuleNotFoundError means that in running your program, Python attempted to import some module xyz but it was not present on your system. It could be that you forgot to install the module (forgot ...

posted 1y ago by matthewsnyder‭  ·  edited 1y ago by Karl Knechtel‭

Answer
66%
+2 −0
Q&A CS8032 analyzer warnings in empty EF Core project in Rider

I resolved this by installing Microsoft's dotnet-sdk-8.0 instead of Ubuntu's dotnet-sdk-6.0. Here's a loose summary of Microsoft's instructions. Remove existing dotnet packages: sudo apt remo...

posted 1y ago by Kevin Krumwiede‭  ·  edited 1y ago by Kevin Krumwiede‭

Answer
66%
+2 −0
Q&A CS8032 analyzer warnings in empty EF Core project in Rider

I'm evaluating JetBrains Rider 2023.3 on Linux and almost immediately ran into a compiler warning that I don't understand. Attempting to isolate it, I created a new solution containing a .NET 6 cla...

1 answer  ·  posted 1y ago by Kevin Krumwiede‭  ·  last activity 1y ago by Kevin Krumwiede‭

Question entity-framework-core rider
66%
+2 −0
Q&A How to speed up MySQL query?

Sounds like you may also have a problem with your database structure. A query that fetches 800 records from a table with only those 800 records in it should not take a full second - it should be mi...

posted 1y ago by ArtOfCode‭

Answer
66%
+2 −0
Q&A Does Python have a "ternary operator" (conditional evaluation operator like "?:" in other languages)?

The Python ternary "operator" is if and else: x = 1 if some_condition else 0 In Python, this is called a "conditional expression" rather than an operator, and the documentation explains it: htt...

posted 1y ago by matthewsnyder‭

Answer