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 Where is the `.fsproj` project file documented?

No, there is no single page. Simple answer - different project requires specific properties. For example, building a mobile app you'd be interested in whether NativeAot is enabled or not. More sp...

posted 1y ago by FoggyFinder‭

Answer
66%
+2 −0
Q&A Command to format code from repo into single markdown file

You need to use backslashes (\) to escape your grave accents (`). Otherwise, Bash tries to see them as enclosing a command, as you would do in a command like echo `which python3`. So, with all the...

posted 1y ago by Sylvester‭  ·  edited 1y ago by ShadowsRanger‭

Answer
66%
+2 −0
Q&A Escape both reserved characters and curly braces in a URI in Spring Boot

I need to pass URI's that contain special characters, using Spring Boot. The characters include spaces, curly braces ({ and }), square brackets ([ and ]), and hash signs (#). The problem is that ...

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

Question spring-boot escaping uri
66%
+2 −0
Q&A Find the name of the student with the top mark, display their name and mark

Normally you should use a CSV library to read CSV, but assuming your data is simple, a Split should be adequate. Using the File.ReadLines() method allows you to read the file as an IEnumerable<s...

posted 1y ago by NetMage‭

Answer
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 1y 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 1y ago by LyndonGingerich‭  ·  edited 1y ago by Michael‭

Question git msbuild encoding csproj
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 1y ago by Melkor-1‭  ·  last activity 1y ago by Lundin‭

Question c Trie graph-visualization autocomplete
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 1y ago by r~~‭

Answer
66%
+2 −0
Code Reviews Detecting balanced parentheses in Python

Command-line timing Rather than using separate code for timing, I tried running the timeit module as a command-line tool. I wrote initial versions of the implementations based on the OP and hkotsu...

posted 1y ago by Karl Knechtel‭

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

I would say the difference is one of intent. In encryption, the objective is to hide the information contained in such a way that third parties cannot get it, but approved second parties can retri...

posted 1y ago by aghast‭

Answer
66%
+2 −0
Q&A How do you add "Sign In with Google" to a Ruby on Rails web application that is using the Devise authentication framework?

Step 1: Locate your Gem file and add the omniauth-google-oauth2 gem to it. Step 2: Add configuration for Google OAuth2 to your Devise configuration file, located in /config/initializers/devise.rb....

posted 1y ago by Julius H.‭

Answer
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 1y ago by qohelet‭  ·  edited 1y ago by qohelet‭

Answer
66%
+2 −0
Q&A Do the elements of 'required' array need to be defined in 'properties' dictionary in JSON schema?

In a JSON schema, do the required properties need to be a subset of properties? E.g. is this a valid schema, even though cookies isn't mentioned in properties? { "type": "object", "properti...

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

Question json json-schema
66%
+2 −0
Q&A How to write a function that only accepts a list of `Error string` `Results` in F# on the level of types?

For example, given a mergeErrors function where input is always a list of Error strings, let es = [ Error 1; Error 2; Error 3 ] let mergeErrors<'a> (errors: Result<'a,int> list) : R...

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

Question f#
66%
+2 −0
Q&A How to write a function that only accepts a list of `Error string` `Results` in F# on the level of types?

I'm pretty sure the answer is "no", especially in some reasonable way. If Result was defined in some object-oriented way, i.e. as an interface with Ok and Error being implementations of that interf...

posted 1y ago by Derek Elkins‭

Answer
66%
+2 −0
Q&A How can I provide additional information when raising an exception?

The raise statement in Python accepts either an Exception class or an instance of that class. When used with a class, Python will create and raise an instance by passing no arguments to the constru...

posted 1y ago by Karl Knechtel‭

Answer
66%
+2 −0
Q&A How to surround jinja expression with curly brackets?

A jinja template expression starts and ends with double curly brackets, which the templating engine consumes. But what if you need a single pair of curly brackets left in the output? Something lik...

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

Question jinja
66%
+2 −0
Q&A What is the purpose of having a wrapper class for JarFile in Spring-boot-loader?

My question relates to Spring-boot-loader v2.6.15. For the purposes of this question, I will refer to Spring's custom JarFile class as CustomJarFile to avoid confusion. Context I am reusing so...

1 answer  ·  posted 1y ago by Miss Skooter‭  ·  last activity 1y ago by Miss Skooter‭

Question java spring spring-boot
66%
+4 −1
Q&A How to implement a relationship between 2 tables where the type of participation is mandatory and RESTRICT rule for both?

Found the example below in a book teaching logical database design, but I'm stuck on how one would implement this in PostreSQL: The diagram reflects the following business rule: An instructor...

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

Question database postgresql database-design
66%
+2 −0
Q&A Are there best practices for sticking conditions in WHERE clauses vs the JOIN statement?

Some condition require you to put conditions in the join clause. For example, if you're doing a LEFT OUTER JOIN, and you want to match all rows from table A with only the rows from table B with th...

posted 1y ago by billkarwin‭

Answer
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 1y ago by tmpod‭  ·  last activity 1y 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