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

Question java logging stacktrace
60%
+1 −0
Q&A Shortcut for inserting today's date in VS Code

Is there a way to easily insert today's date when editing a file in VS Code?

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

Question vs-code snippet
60%
+1 −0
Q&A How to use Ansible extract filter in map with an external dictionary

Ansible's extract filter is supposedly made for use in map, but at the time of writing the documentation doesn't actually show how to use it together with the map filter. The following outputs VAR...

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

Question ansible
60%
+1 −0
Q&A Alternatives to `EXPLAIN ANALYZE` for queries that won't complete

Note: I have limited experience with PostgreSQL, but extensive experience working with SQL Server, so not everything below might apply to PostgreSQL. I have a large and complex PostgreSQL query ...

posted 1y ago by Alexei‭

Answer
60%
+1 −0
Q&A How to use Ansible extract filter in map with an external dictionary

Turns out I wasn't far off. The dictionary mustn't be quoted. So the following works: - name: Extraction test vars: dictionary: one: 1 two: 2 key_list: - one ...

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

Answer
60%
+1 −0
Q&A How to validate Ansible role dictionary argument's "additionalProperties"

In JSON Schema one can use the additionalProperties key to validate properties whose names are not know. You can still impose restrictions on their type. How to do this in an Ansible role argument...

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

Question ansible
60%
+1 −0
Q&A Optimized representation for sets?

I need to do a lot of calculations involving sets. There are relatively few values in the "universe" of candidates that could appear in any of the sets, but potentially very many such sets (they mi...

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

Question data-structures language-agnostic set
60%
+1 −0
Q&A Optimized representation for sets?

First store the universe of potential elements as a sequence, then encode each set as an unsigned integer interpreted as follows: if the 1s bit in binary is set (1), the set contains the 0th elemen...

posted 1y ago by Karl Knechtel‭

Answer
60%
+1 −0
Meta Should self-answered Q&A use separate answers for different techniques/approaches (even if there's a caveat that applies overall)?

I believe one of the main strengths of Q&A websites is that they provide a more digestible alternative to dense documentation. Especially for programmers who do not yet know how to find/use th...

posted 1y ago by mr Tsjolder‭

Answer
60%
+1 −0
Q&A How to validate Ansible role dictionary argument's "additionalProperties"

Apparently there just isn't an equivalent of additionalProperties in Ansible. The way around this is to break the dictionary argument into a list of key/value pairs: argument_specs: main: ...

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

Answer
60%
+1 −0
Meta Should self-answered Q&A use separate answers for different techniques/approaches (even if there's a caveat that applies overall)?

the answer is incredibly long It really isn't - though it might look that way because of the extensive use of large font headlines. I think it is a good answer - there's no problem in discussi...

posted 1y ago by Lundin‭

Answer
60%
+1 −0
Q&A How do I install Chart.js as a file?

I'm trying to replace Flot.js with Chart.js. In my application, Flot.js is included as a normal JavaScript file, like so: <script language="javascript" type="text/javascript" src="jquery.flot-...

1 answer  ·  posted 1y ago by CavanWright‭  ·  last activity 1y ago by Ullallulloo‭

Question chart.js
60%
+1 −0
Q&A VS Code: How to open a file and folder in a new window?

Best I could do was: cd /foo/bar && code --new-window . && code baz.txt The cd is not necessary but makes the command cleaner. I would still like to know if there's a cleaner wa...

posted 1y ago by matthewsnyder‭

Answer
60%
+1 −0
Q&A How to delete a local branch in git?

How to delete a local git branch which hasn't been pushed to anywhere, and only exists locally?

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

Question git git-branch
60%
+1 −0
Q&A How do I pass field names containing dashes in dbt source yml file?

There may be a better way to handle this but this eventually worked for me. It's necessary to add quote: true below each field name with a dash. E.g.: tables: - name: my_table ...

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

Answer
58%
+5 −3
Q&A Why is it considered bad practice to use float for representing currency?

I see that Klutt has explained why integers should be used, but there is more that the programmer must keep in mind. Consider the number of bits the integer needs. For US currency, you'd use cent...

posted 3y ago by Olin Lathrop‭

Answer
57%
+2 −1
Q&A What's the minimum API level for activity transition?

I was trying to show transition on activity changes. I had followed two method from SO. I lost those link so I can't add them here. My first method was I had used overridePendingTransition on onCr...

1 answer  ·  posted 3y ago by Anonymous‭  ·  last activity 3y ago by Anonymous‭

Question java android android-api-levels android-5.0-lollipop
57%
+2 −1
Q&A Hash sum mismatch (only for openjdk-11-jdk)

I was installing Java yesterday. I had faced lot of problem. I had fixed most of them. But I had changed Hash that's what I think. I don't remember which command I had executed since I had executed...

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

Question java xubuntu javac openjdk openjdk-11
57%
+2 −1
Q&A How to append HTML to the DOM with JavaScript?

I have a .html file containing only the following data, and I keep that file on top of my website's directory. <link rel="stylesheet" href="./css/mobile_general_structure.css"></link> ...

2 answers  ·  posted 3y ago by deleted user  ·  last activity 3y ago by Ullallulloo‭

Question javascript html dom
57%
+2 −1
Q&A Not obligating http:// or https:// in a url field of a contact form

I have a simple HTML-PHP-CSS contact form (no JavaScript) with an input type="url" field. Currently in 30/03/2021, the default behavior of input type="url" (by W3C design I guess) is to obligate t...

1 answer  ·  posted 4y ago by deleted user  ·  last activity 4y ago by Alexei‭

Question php javascript html
57%
+2 −1
Q&A Are JavaScriptless forms accessible?

I consider to make my website's contact form totally javascriptless (only HTML-PHP-CSS --- no JavaScript at all). No modals or alerts No prevent default No AJAX/AJAX/XHR/JHR No form disappear...

1 answer  ·  posted 4y ago by deleted user  ·  last activity 4y ago by Alexei‭

Question php javascript html contact-form accessibility
57%
+2 −1
Q&A Function.prototype.call()

I wanted to print to browser console the number of li list items of a given ul list. This didn't work (console output was undefined): console.log(document.querySelectorAll(".example").length); ...

1 answer  ·  posted 3y ago by deleted user  ·  edited 3y ago by Alexei‭

Question javascript function prototype
57%
+2 −1
Q&A How to include HTML files in another HTML file with vanilla Javascript?

I develop an HTML-CSS-JavaScript-PHP contact form and I have a large HTML file which is very long and very wide (lots of horizontal scrolling due to nesting) and it's hard for me personally to work...

0 answers  ·  posted 3y ago by deleted user  ·  edited 3y ago by Alexei‭

Question javascript html include
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 1y ago by qohelet‭  ·  last activity 1y ago by qohelet‭

Question rust docstrings
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 1y ago by Julius H.‭  ·  last activity 1y ago by matthewsnyder‭

Question hash