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
 
77%
+5 −0
Q&A Clear selectManyMenu component if user unselects item in JSF 2

You can do that by letting the required attribute evaluate true only when the form's main submit button is invoked. First bind the submit button component to an unique variable in page's EL scope ...

posted 1y ago by BalusC‭

Answer
77%
+5 −0
Q&A JavaScript redirect is getting "hijacked" and it is not onbeforeunload event.

Apparently, my form was inside an iframe. In order for me to redirect I had to change location of parent document, like so: <script type="text/javascript"> if (window.self != window.top...

posted 1y ago by Vanity Slug ❤️‭  ·  edited 1y ago by Vanity Slug ❤️‭

Answer
77%
+5 −0
Q&A Can GitHub rewrite authorship of commits?

GitHub has a setting wherein they offer to "anonymize" your user email from, say, [email protected] to [email protected]. I presume this is to prevent you from getting spam from ...

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

Question git hash github git-commit
77%
+5 −0
Q&A Does Python have a "ternary operator" (conditional evaluation operator like "?:" in other languages)?

How to do it Yes, Python has an equivalent operator. However, it's spelled with keywords rather than punctuation, and it uses a different order of operands. It looks like: condition_value if some...

posted 1y ago by Karl Knechtel‭

Answer
77%
+5 −0
Q&A Best practices for company internal Swagger Docs in production

The current project I am working on consists of a bunch of microservices (Web APIs) accessible only internally using Entra ID (formerly Azure ID). To simplify the development, all services expose ...

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

Question security swagger swagger-ui
77%
+5 −0
Q&A Are "strong passwords" at all meaningful?

The assumption of 1k attempts/s is wishful thinking, as is the idea that a hacker will go on mail.google.com and try to guess your login (they would get a captcha after like 5 failed attempts). Pa...

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

Answer
77%
+5 −0
Q&A What is the purpose of having underscored names and then defining a non-underscored alias to it?

In a C implementation in <stdio.h> on Linux I saw something like: extern FILE *__stdinp; extern FILE *__stdoutp; extern FILE *__stderrp; And then: #define stdin __stdinp #define stdou...

1 answer  ·  posted 1y ago by 90 98‭  ·  last activity 1y ago by aghast‭

Question c naming-conventions
77%
+5 −0
Q&A What is the default port number of MariaDB?

The default port is 3306. MariaDB is a fork of MySQL, and this is the default port for MySQL as well. Source.

posted 1y ago by Iizuki‭  ·  edited 1y ago by manassehkatz‭

Answer
77%
+5 −0
Q&A How to speed up MySQL query?

The main issue with your approach is that, in some cases, you execute a lot of queries to fetch the data. When working with SQL (regardless of relational flavor), you must aim from a set-based appr...

posted 1y ago by Alexei‭

Answer
77%
+5 −0
Q&A Wikidata: How do I ask for the start date of a property in SPARQL?

I have a SPARQL query to Wikidata that returns the names and handles and parties of politicians for whom a Mastodon address is stored at Wikidata. Filtered by nationality and with an output of the ...

1 answer  ·  posted 1y ago by wasuko‭  ·  last activity 11mo ago by Ordoviz‭

Question SPARQL wikidata
77%
+5 −0
Q&A How to run Gitlab CI jobs only in specific branches?

By default Gitlab CI jobs run on any commit. I would like to restrict some of them to run only on commits to specific branches. How to do this in .gitlab-ci.yml?

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

Question gitlab-ci
77%
+5 −0
Q&A How to compare a git stash to the current working tree?

Well it was easier than I thought: git diff stash A note about the direction: This will show things which are present in the working directory but not present in the stash as added +. And vice ...

posted 1y ago by Iizuki‭

Answer
77%
+5 −0
Q&A Using an existing web server vs writing your own

3rd Option: You put a web server like Nginx, etc in front of your application server which can also handle 'raw' network traffic. Even in the PHP scenario this is common. There are a few reason I ...

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

Answer
77%
+5 −0
Q&A What are the benefits of starting a Git repo with an empty commit?

Found an article about starting a repo with an empty commit. Read the post a couple of times, but still don't understand the reasoning: 1. git log and other commands blow up with terrifying ...

2 answers  ·  posted 1y ago by toraritte‭  ·  last activity 1y ago by Michael‭

Question git
77%
+5 −0
Q&A How to create and manipulate (read/write) Excel (XLSX) documents with complex rules using general programming languages?

Our organization (blindness non-profit in California) is obligated to submit reports to grant organizations (e.g., Department of Rehabilitation) on a regular basis. Most of the time, this means exp...

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

Question excel xlsx
77%
+5 −0
Q&A How to create and manipulate (read/write) Excel (XLSX) documents with complex rules using general programming languages?

All of these projects use Microsoft's OpenXML SDK for Office behind the scenes: 1. .NET (F#, C#) The F# Guide recommends NPOI, which also seems to be the most popular and most up-to-date, but the...

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

Answer
77%
+5 −0
Q&A When should I parenthesize macro arguments in C?

I've seen macros use parentheses to enclose its arguments. Most of these make sense, as in #define sum(a, b) ((a) + (b)) The outer prevents the following: #define sum_bad(a, b) (a) + (b) ...

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

Question c macros
77%
+5 −0
Q&A How to convert Dos paths to Posix paths in Powershell

TL;DR: Use wslpath and hope for the best. You can use it like this in Powershell: wsl wslpath -u 'C:\\some\\path\\to\\folder\\or\\file.txt' Long answer Converting them is hard. There is windows...

posted 2y ago by H_H‭  ·  edited 1y ago by H_H‭

Answer
77%
+5 −0
Q&A Why does calloc accept 2 arguments, and with what arguments should one call it?

According to the standard (C17 draft, 7.22.3.2) The function calloc void *calloc(size_t nmemb, size_t size); "allocates space for an array of nmemb objects, each of whose size is size [and] i...

1 answer  ·  posted 2y ago by Lover of Structure‭  ·  last activity 2y ago by Lundin‭

Question c language-design calloc
77%
+5 −0
Q&A How can I schedule a later task in Python?

I want my CLI Python program to schedule a task, and then exit. After some times has passed (say 10 minutes) the task should execute. The task can be a Python method or a shell command, whatever i...

3 answers  ·  posted 2y ago by matthewsnyder‭  ·  last activity 2y ago by H_H‭

Question python linux command-line-interface scheduling
77%
+5 −0
Q&A How can I properly type-hint methods in different files that would lead to circular imports?

I am writing a Python package where I have two classes in different files that (indirectly) depend on each other. If I wouldn't care about type-hints, there would be no problem, but unfortunately,...

2 answers  ·  posted 2y ago by mr Tsjolder‭  ·  edited 2y ago by Alexei‭

Question python mypy typing type-hinting
77%
+5 −0
Q&A How to trigger an error/warning immediately upon compile/run if an item on my class-path is missing

I have a very simple source file -- HelloWorld.java public class HelloWorld { public static void main(String[] args) { System.out.println("hello world"); } } I have th...

0 answers  ·  posted 2y ago by davidalayachew‭  ·  edited 2y ago by davidalayachew‭

Question java compiler-errors compiler-warnings javac classpath
77%
+5 −0
Meta What categories could we benefit from having?

So far, existing Meta discussion seems to have at least hinted at the possibility of using separate categories here: To shuffle closed questions out of the way (globally for Codidact) (also) Fo...

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

Question discussion site-culture categories
77%
+5 −0
Q&A How can I schedule a later task in Python?

Use at to schedule the command, using subprocess from Python to invoke at. It doesn't even require shell=True. For example: import shlex, subprocess subprocess.run( # `at` command to run n...

posted 2y ago by Karl Knechtel‭  ·  edited 2y ago by Karl Knechtel‭

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

Answer