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
 
75%
+4 −0
Q&A Why does `Zip` require `Semialign`

The Zip class from Data.Zip requires an implementation of Semialign: class Semialign f => Zip f In my mind: Zip takes the intersection of two shapes. Semialign takes the union of two sha...

1 answer  ·  posted 3mo ago by WheatWizard‭  ·  last activity 3mo ago by r~~‭

Question haskell
66%
+4 −1
Q&A What happens when you “Sign in with Google”?

I believe when you sign in with Google, the web application running in your browser calls a command to request the Google Sign In page, and includes a “callback URL” as a parameter in that HTTP req...

0 answers  ·  posted 3mo ago by Julius H.‭  ·  edited 3mo ago by Julius H.‭

71%
+3 −0
Q&A What guarantees does Bash make about order of :- Parameter Expansion when it is not in POSIX mode?

I tried to check info bash but only got a copy of the man page. This is when I learned that I could apt install bash-doc to get the "full" Bash manual. After checking both the info pages and the m...

1 answer  ·  posted 3mo ago by aghast‭  ·  last activity 2mo ago by Quasímodo‭

Question bash
80%
+6 −0
Q&A What is the difference between hashing and encryption?

What specific algorithm makes it possible to scramble data into an unrecoverable form, yet still be usable for its intended purpose? It isn't any one specific algorithm. There are many differe...

posted 3mo ago by manassehkatz‭

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 3mo ago by aghast‭

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

According to this article: Since encryption is two-way, the data can be decrypted so it is readable again. Hashing, on the other hand, is one-way, meaning the plaintext is scrambled into a uniqu...

3 answers  ·  posted 3mo ago by Julius H.‭  ·  last activity 3mo ago by matthewsnyder‭

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

I want to clear my view of my file explorer sidebar in VS Code, and just see a few files I want to focus on. Is there an easy way to do this, using the mouse, and not file hiding using pattern mat...

2 answers  ·  posted 3mo ago by Julius H.‭  ·  last activity 10d ago by Monica Cellio‭

Question vs-code
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 3mo ago by Julius H.‭

Answer
75%
+4 −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?

I want to add the ability to "Sign in with Google" into a Ruby on Rails web application, that is using Devise to handle authentication. How do I do that?

1 answer  ·  posted 3mo ago by Julius H.‭  ·  last activity 3mo ago by Julius H.‭

41%
+3 −5
Q&A Building a language model completely from scratch

What I would like to do I would like to try to build a language model 100% from scratch if possible, for a learning experience. That means no external libraries and no pre-curated datasets. It ...

1 answer  ·  posted 3mo ago by Julius H.‭  ·  last activity 3mo ago by matthewsnyder‭

50%
+0 −0
Code Reviews Azure Service Bus queue message consumption in an ASP.Net Core 6 application

My team is introducing Azure Service Bus consumption into the solution and we have developed an implementation that we want to act as a model for other services in the future. It is split in two p...

0 answers  ·  posted 3mo ago by Alexei‭  ·  edited 3mo ago by Alexei‭

50%
+0 −0
Q&A Can Swashbuckle.AspNetCore generate exclusiveMinimum validation?

This can be achieved with a schema filter. For this proof of concept, I based the filter on a custom attribute: [AttributeUsage(AttributeTargets.Property)] public class GreaterThanAttribute(doubl...

posted 3mo ago by Kevin Krumwiede‭

Answer
60%
+1 −0
Q&A Can Swashbuckle.AspNetCore generate exclusiveMinimum validation?

Is there a way to make Swashbuckle.AspNetCore generate a Swagger exclusiveMinimum range validation for a model property? There doesn't seem to be any way to do this with the attributes recognized ...

1 answer  ·  posted 3mo ago by Kevin Krumwiede‭  ·  last activity 3mo ago by Kevin Krumwiede‭

60%
+1 −0
Q&A MongoDB Java Morphia case insensitive criteria query?

I realized myself what I should do: ... query.criteria("fieldName").containsIgnoreCase("regex"), ... Also mentioned here: https://github.com/MorphiaOrg/morphia/issues/832

posted 3mo ago by propatience‭

Answer
60%
+1 −0
Q&A MongoDB Java Morphia case insensitive criteria query?

So I googled some on how to make a case insensitive criteria query but could not find the solution very easily. So I basically have code that looks like this: ... query.criteria("fieldName").con...

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

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

Why does the wrapper exists and why doesn't it override close()? Apparently, this wrapper was introduced to "Attempt to fix memory leak in JarFile class". The memory leak issue was caused by a cha...

posted 3mo ago by Miss Skooter‭

Answer
71%
+3 −0
Q&A Should a salt be stored in the same database as the hash?

The other answers are correct, but over complicate things. Suppose you have a database with 1,000,000 email addresses and password hashes, 20% of whom are idiots and have used "password123" as the...

posted 3mo ago by bencurthoys‭

Answer
75%
+4 −0
Q&A Is there any rationale for the lack of local constants in PHP?

The last few years, PHP has basically exploded with lots of modern language constructs that makes the life easier. But local constants are still missing, and I find that very strange. I have found...

0 answers  ·  posted 3mo ago by klutt‭

Question php
71%
+3 −0
Q&A How to surround jinja expression with curly brackets?

You can separate the curly brackets with spaces, and instruct jinja to remove them afterwards: { {{- jinja_expression -}} }. That way the outer curly brackets are left untouched. The minus signs s...

posted 4mo ago by Iizuki‭

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 4mo ago by Iizuki‭  ·  last activity 2mo ago by Alexei‭

Question jinja
71%
+3 −0
Q&A Open file in script's own folder

Theory Relative paths are relative to the current working directory of the Python process. This can be checked from within Python using the os.getcwd function and set using the os.chdir function. ...

posted 4mo ago by Karl Knechtel‭

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 4mo ago by Karl Knechtel‭

Answer
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 4mo ago by Derek Elkins‭

Answer
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 4mo ago by toraritte‭  ·  last activity 4mo ago by Derek Elkins‭

Question f#
50%
+0 −0
Q&A Why is inter-VLAN communication not working in my bus topology network set-up in Cisco Packet Tracer?

I have created a simple bus topology connecting 2 switches and a router, with each switch connected to their respective end devices through ordinary star topology. The switch model used was 3560-24...

0 answers  ·  posted 4mo ago by Phoenix‭  ·  edited 4mo ago by Alexei‭