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.3k posts
 
60%
+1 −0
Q&A What are the prefixes like "md:" and "ds:" in SAML metadata?

The prefixes are explained in saml-metadata-2.0-os spec in section 1.1: "Notation" Prefix Explanation saml: This is the SAML V2.0 assertion namespace [SAMLCore]. The prefix is gen...

posted 3mo ago by Iizuki‭  ·  edited 2mo ago by Michael‭

Answer
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 3mo ago by Iizuki‭  ·  last activity 2mo ago by Michael‭

Question saml saml-metadata
71%
+3 −0
Code Reviews GnuTLS config for my own root CA, for use on internal server

I am trying to generate my own root CA certificate. Context My goal is to sign an intermediate CA with this certificate, and then install the intermediate CA on my own client machines. The interm...

2 answers  ·  posted 3mo ago by matthewsnyder‭  ·  last activity 2mo ago by matthewsnyder‭

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 3mo ago by Melkor-1‭  ·  edited 2mo ago by Melkor-1‭

Question c string input output
77%
+5 −0
Q&A How to log first n lines of a stack trace in Java?

It's not clear where this stack trace comes from (either from an exception or the current thread), but it doesn't matter, the way to do it is the same. Both Exception's and Thread's have the getSt...

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

Answer
60%
+1 −0
Q&A How to log first n lines of a stack trace in Java?

Throwable: ... Arrays.stream(throwable.getStackTrace()) .limit(yourIntLimit) .forEach(stackTraceElement -> log.error(stackTraceElement.toString())); ... ...

posted 3mo ago by propatience‭  ·  edited 3mo ago by propatience‭

Answer
60%
+1 −0
Q&A How to log first n lines of a stack trace in Java?

How to log first n lines of a stack trace in Java?

2 answers  ·  posted 3mo ago by propatience‭  ·  last activity 3mo ago by hkotsubo‭

81%
+7 −0
Q&A How to delete a remote branch in git?

The other answer already provides the more straighforward solution (push with --delete option). But there's an older syntax that also works: git push <remote-name> :<branch-name> N...

posted 3mo ago by hkotsubo‭

Answer
84%
+9 −0
Q&A How to delete a remote branch in git?

With the --delete option of git-push: $ git push <remote-name> --delete <branch-name> For example: $ git push origin --delete my-branch

posted 3mo ago by Iizuki‭

Answer
77%
+5 −0
Q&A How to delete a remote branch in git?

How to delete a branch from a remote in git? E.g. maybe you had this branch locally too, but you deleted it already according to this question. Now you want to get rid of the corresponding remote ...

2 answers  ·  posted 3mo ago by Iizuki‭  ·  last activity 3mo ago by hkotsubo‭

Question git
66%
+2 −0
Q&A Proper location of docstring on struct with attributes

Option 1. The docstring precedes the attributes by convention. Here is an example of the docstring for std::vec::Vec. However, if using cargo doc to generate documentation, it works just fine if y...

posted 3mo ago by qohelet‭  ·  edited 3mo ago by qohelet‭

Answer
57%
+2 −1
Q&A Proper location of docstring on struct with attributes

When documenting a struct with attributes, where does the docstring go? Before or after the attribute(s)? Option 1: /// Does it go here? #[derive(Deserialize, Debug)] pub struct Metadata { ...

1 answer  ·  posted 3mo ago by qohelet‭  ·  last activity 3mo ago by qohelet‭

Question rust docstrings
71%
+3 −0
Q&A Why does this work? .collect() automatic conversion to function return type

You're very much on the right track. std::iter::FromIterator trait This trait is indeed what makes it work. In particular, both functions' return types implement the trait: std::result::Result&l...

posted 3mo ago by Iizuki‭

Answer
76%
+8 −1
Meta Email alerts for notifications

How can I get an email when I get a notification on Codidact? I missed an answer because I thought I would get an email for it.

2 answers  ·  posted 3mo ago by LyndonGingerich‭  ·  last activity 2mo ago by Olin Lathrop‭

77%
+5 −0
Q&A Why does this work? .collect() automatic conversion to function return type

I'm completing the rustlings exercises as part of self-teaching Rust. While working on the third iterators exercise, I solved the exercise but don't quite understand why my solution works. Specifi...

1 answer  ·  posted 3mo ago by qohelet‭  ·  last activity 3mo ago by Iizuki‭

Question rust
77%
+5 −0
Q&A Are there technical reasons to pick one struct coding style over the other?

Arguments in favour of "struct tag style": Less namespace clutter. C has a peculiar name space system where all identifiers belong to one of: labels, tags, members, ordinary. Struct tag style...

posted 3mo ago by Lundin‭  ·  edited 3mo ago by Lundin‭

Answer
77%
+5 −0
Q&A Are there technical reasons to pick one struct coding style over the other?

C offers two different styles when it comes to structs (and union/enum too). Either declare them using a struct tag only ("struct tag style"): struct my_type { ... }; struct my_type x; Or ...

1 answer  ·  posted 3mo ago by Lundin‭  ·  last activity 3mo ago by Lundin‭

Question c code-style struct
71%
+3 −0
Code Reviews Trie Implementation, Graph Visualization and Auto-Completion in C

General/program design: I would have expected a public header file with the API for the whole thing, rather than having some main() test case calling static functions from the same file. Sure,...

posted 3mo ago by Lundin‭

Answer
66%
+2 −0
Code Reviews Trie Implementation, Graph Visualization and Auto-Completion in C

Given a list of strings (say a text file containing some C symbols: c-symbols.txt), the program can: Generate a graph of the underlying trie (-p/--prefix can be specified to inspect a specific ...

1 answer  ·  posted 3mo ago by Melkor-1‭  ·  last activity 3mo ago by Lundin‭

66%
+2 −0
Q&A Git command formatting characters in msbuild are interpreted incorrectly

From MSDN: To escape a special character, use the syntax %<xx>, where <xx> represents the ASCII hexadecimal value of the character. So to use format %ad you should escape as %25ad.

posted 3mo ago by Peter Taylor‭

Answer
66%
+2 −0
Q&A Git command formatting characters in msbuild are interpreted incorrectly

I wish to add a property with the date of the current Git commit to the assembly info. From my .csproj: <Exec Command="git -C &quot;$(ProjectDir).&quot; log -1 --pretty=format:%ad" ...

1 answer  ·  posted 3mo ago by LyndonGingerich‭  ·  edited 3mo ago by Michael‭

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

You could just move the files to a new folder and open that :) Alright alright here's a serious answer: I noticed that VSC automatically dereferences symlinks. So if you create a temporary new fol...

posted 3mo ago by matthewsnyder‭

Answer
50%
+1 −1
Q&A What is the difference between hashing and encryption?

Hashing is lossy compression. You can't recover the input of a hash from the result. This would obviously not work as an encryption. How would you decrypt it, if half the message is destroyed :) ...

posted 3mo ago by matthewsnyder‭  ·  edited 3mo ago by matthewsnyder‭

Answer
62%
+3 −1
Q&A Building a language model completely from scratch

This is not feasible as described. To learn LLMs, you can look at models like 3B WizardLM. These are open source and should be possible to just train and run as is. The build may be very complex, ...

posted 3mo ago by matthewsnyder‭

Answer
66%
+2 −0
Q&A Why does `Zip` require `Semialign`

There's good reason to believe this is simply historical accident. The Semialign class came first, and used to include zip and zipWith directly. When those members were separated out into their own...

posted 3mo ago by r~~‭

Answer