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 »
Q&A

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.

General Q&A about programming, scripting, software design & architecture, process, tools, testing, and more.

Filters (None)
60%
+1 −0
Drop-down values in Excel cells are not specified in Data Validation rules and global search didn't find them in workbook, so where do they come from?

On top of values seemingly coming from nowhere in multiple columns, they also affect each other's behavior: In the GIF below, if the cells in the left column have no value selected, then there is n...

1 answer  ·  posted 5mo ago by toraritte‭  ·  edited 5mo ago by toraritte‭

60%
+1 −0
How to start creating a Giraffe web project and how to serve it?

Having some trouble with giraffe-template on Mac M1, so decided to set up a Giraffe project manually. Started following the Doing it manually section of the Giraffe README, but got stuck right away...

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

60%
+1 −0
Maven JPA integration: processor not found

Personal Project: I am new to Maven and have spent a few weeks troubleshooting pom errors with chatGPT. Tutorials are hard to come by online, because annotation-processing in Java is more complica...

2 answers  ·  posted 1mo ago by tylerbakeman‭  ·  last activity 1mo ago by Zer0‭

60%
+1 −0
How to set the cell color to a user defined value using NPOI from F#?

As far as I can tell (from F# at least), cell can only be colored using predefined NPOI.SS.UserModel.IndexedColors. From the available methods / properties, val it: ICellStyle = NPOI.XSSF.UserM...

1 answer  ·  posted 4mo ago by toraritte‭  ·  last activity 4mo ago by toraritte‭

60%
+1 −0
What is the difference between `static let` and `static member` in F#?

Taking the example from this Stackoverflow question: type Vector2D(dx : float, dy : float) = static let zero = Vector2D(0.0, 0.0) static let onex = Vector2D(1.0, 0.0) static let ...

1 answer  ·  posted 4mo ago by toraritte‭  ·  last activity 4mo ago by toraritte‭

f#
60%
+1 −0
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 2mo ago by propatience‭  ·  last activity 2mo ago by hkotsubo‭

60%
+4 −2
How to speed up MySQL query?

I have a website about vacation villa rentals. Around 800 properties are listed. When i start a search, i get properties with my first query which filters type, style, area, no. of rooms, capacity ...

2 answers  ·  posted 5mo ago by erenlerhakan‭  ·  last activity 5mo ago by ArtOfCode‭

60%
+1 −0
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
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
Convert Synapse SQL Server hex `sid` to Azure Entra group object ID.

Suppose I have an Azure Synapse Serverless SQL database. I can run the following to get the sid of added groups: select name, type_desc, authentication_type_desc, sid from sys.database_principal...

0 answers  ·  posted 16d ago by daviewales‭

60%
+1 −0
Adding dependency with cabal in gitlab-ci

I have a project I normally build with nix and cabal, however I also want to publish my documentation onto gitlab pages. It's impractical to run my nix on the gitlab CI, so I've just been using cab...

0 answers  ·  posted 16d ago by WheatWizard‭

60%
+1 −0
Best practices for business versioning within Web APIs

Context Our team is developing a solution mainly composed of several microservices relying on ASP.NET Core. We have decided that the simplest and most cost-effective solution would be for service...

0 answers  ·  posted 6d ago by Alexei‭  ·  edited 6d ago by Alexei‭

57%
+2 −1
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 2y ago by deleted user  ·  edited 2y ago by Alexei‭

57%
+2 −1
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 2y ago by deleted user  ·  edited 2y ago by Alexei‭

57%
+2 −1
How to pass in a readable file (stream) to a Zig function?

Most of the example code in the Zig online docs is in the form of test blocks. Sadly, this means there aren't quite enough examples of how to write functions. Given that one has a readable file, p...

0 answers  ·  posted 2y ago by aghast‭

57%
+2 −1
How can the Caesar cipher be implemented in Java?

The Caesar cipher is a substitution cipher in which the letters of an ordered alphabet are cyclically shifted by a given number. A detailed description can be found e.g. here. Let u be the index o...

2 answers  ·  posted 2y ago by Holden‭  ·  last activity 2y ago by hkotsubo‭

57%
+2 −1
Can pandas be used as a database backend for persistent storage?

Question What is the current state of the art database app? How does it compare to SQL? Can pandas be used in place of either? If not, is there something that bridges the gap between SQL and pand...

2 answers  ·  posted 10mo ago by mcp‭  ·  last activity 10mo ago by matthewsnyder‭

57%
+6 −4
Why can parentheses cause exceptions in Python when using for loops?

Using parentheses in Javascript is always needed when you want to create functions, if/else statements and for/while loops. But in Python it has a function that is called tuples. When using an if s...

1 answer  ·  posted 1y ago by Bennshinpoes‭  ·  edited 1y ago by trichoplax‭

57%
+2 −1
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 3y ago by deleted user  ·  last activity 3y ago by Alexei‭

57%
+2 −1
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 3y ago by deleted user  ·  last activity 3y ago by Alexei‭

57%
+2 −1
What should I read if I knew C++ twenty years ago? [closed]

For someone who was familiar with C++ in the past and is coming back to it after a long break, what are some useful books that won't waste time with basics but will cover the new features of the mo...

0 answers  ·  posted 1y ago by Fred Wamsley‭  ·  edited 1y ago by Alexei‭

c++
57%
+2 −1
ffmpeg: apply a filter from a start time to the end of the video

I'm using ffmpeg to apply a filter in between two time points. I am using the between() operator to specify the times. For example, to apply the yadif filter between 30 and 90 seconds I run: ffmpe...

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

57%
+2 −1
Jenkins failed to delete a file - why? How to prevent?

We are using Jenkins to run our system tests on a regular schedule. The Jenkins job downloads some python scripts from Perforce, runs them and compares the outputs with known-good results. The pro...

2 answers  ·  posted 3y ago by anatolyg‭  ·  last activity 1y ago by anatolyg‭

57%
+2 −1
How to filter data from the view using MVVM Pattern?

I am trying to filter data in the DataGrid using the texboxes using the MVVM pattern. Just not sure how to do it. Would appreciate any guidance. My current code: Model public class Technical_Bes...

1 answer  ·  posted 3y ago by gzi98‭  ·  last activity 3y ago by FoggyFinder‭

57%
+2 −1
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 2mo ago by qohelet‭  ·  last activity 2mo ago by qohelet‭

57%
+2 −1
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 2mo ago by Julius H.‭  ·  last activity 2mo ago by matthewsnyder‭

57%
+2 −1
How to write a bash function to sanitize filenames for Linux and Windows

I'm trying to write a bash function that can sanitize filenames to make them compatible with both Linux and Windows file systems. The function should perform the following operations: Replace in...

0 answers  ·  posted 21d ago by ShadowsRanger‭

57%
+2 −1
Change font-family with JavaScript

I want to change the font-family of all elements in a document with JavaScript. I have tried this: document.querySelectorAll("body").forEach( (e)=>{ e.style.fontFamily = "arial"; }); ...

2 answers  ·  posted 2y ago by deleted user  ·  edited 2y ago by deleted user

57%
+2 −1
Fixing vertical discrepancies with CSS

I have a "Our menu" webpage automatically created with Drupal 9 Views module which presents a miniature version of each menu dish webpage in that "Our menu" webpage (illustration image below). My ...

1 answer  ·  posted 2y ago by deleted user  ·  edited 2y ago by deleted user

57%
+2 −1
width="100%" for an iframe, breaks responsiveness CSS directives

In a MediaWiki website I embed a PHP file containing a contact form via <iframe> with the following attribute pattern: width="100%" frameBorder="0" My problem I need the iframe to stre...

1 answer  ·  posted 2y ago by deleted user  ·  edited 2y ago by deleted user

57%
+2 −1
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 2y ago by Anonymous‭  ·  edited 2y ago by Alexei‭

57%
+2 −1
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 2y ago by deleted user  ·  last activity 2y ago by Ullallulloo‭

57%
+2 −1
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 2y ago by Anonymous‭  ·  last activity 2y ago by Anonymous‭

57%
+2 −1
How can I reduce the size of .svn folder?

Note: This question and its answer are an aggregate of the most up to date information about this topic from here. I have noticed that .svn folder has grown a lot and I want to reduce it. How can ...

1 answer  ·  posted 3y ago by Alexei‭  ·  edited 3y ago by r~~‭

57%
+2 −1
How to convert an RFC822 timestamp to a date index number?

A self-answered question - How to get DATEVALUE to recognize RSS 2 pubDate (RFC822)? - written by spcsLrg on Web Applications Stack Exchange offers this formula: =DATEVALUE(TRIM(REGEXREPLACE(A1,"^...

1 answer  ·  posted 3y ago by pnuts‭  ·  last activity 3y ago by Alexei‭

55%
+3 −2
How to proportionally convert a number in the range of -1 and 1 to a number in the range of 0 and 319

I have float noise values, between -1 and 1, for every x,y coordinate in a 2D area and I am trying to convert that to a whole number between 0 and 319 which represents a vertical z coordinate to re...

3 answers  ·  posted 1y ago by cuzzo‭  ·  last activity 1y ago by Dirk Herrmann‭

55%
+3 −2
Uncaught TypeError: Failed to construct 'FormData' [closed]

I am trying to submit a form with Ajax from a well-configured shared hosting environment. Emails don't arrive to my email client although I have already sent emails without Ajax from this environm...

1 answer  ·  posted 2y ago by deleted user  ·  closed 2y ago by Alexei‭

55%
+3 −2
Why does fopen return NULL?

#include<stdio.h> #include<stdlib.h> int main (void){ FILE *cfPtr; char name[15]; int ID; if ((cfPtr = fopen("draft.txt","w")) == NULL){ printf("File could n...

2 answers  ·  posted 2y ago by dumplings‭  ·  edited 2y ago by dumplings‭

54%
+4 −3
How can I make --reset-author the default?

I do a lot of rebasing and amending of my topic branches. I don't think it's especially useful for me or my colleagues to see in the logs what date it was when I first started working on the partic...

3 answers  ·  posted 3y ago by Hyperlynx‭  ·  last activity 3y ago by Charlie Brumbaugh‭

git
53%
+5 −4
What's the difference between Inheritance and Polymorphism?

I'm using Java code as an example, but this can be answered if you don't know Java. class Bird{ public void sing(){ System.out.println("Testing"); } } class anClass ex...

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

53%
+5 −4
What is an example for a URI which is not a URL?

Every URL is a URI but not every URI is a URL is a saying I know from long ago, but what is an example for a URI which is not a URL (whatever the user agent would be - a web browser, a *nix utility...

1 answer  ·  posted 3y ago by deleted user  ·  last activity 3y ago by Wezl‭

50%
+0 −0
Can Drupal be used to develop native (non web) applications?

I have used Drupal since 2010 to create websites and I recall a few years back reading that it can be used to create smartphone applications (or something similar). Is this only the "web-integrate...

1 answer  ·  posted 3y ago by deleted user  ·  last activity 3y ago by corporat‭

50%
+0 −0
I need a term to search for contact form Software as a Service (SaaS) provider

There is this service for website owners which is a both an email server (Backend as a Service) and a comfortable GUI for creating contact forms (Frontend as a Service). Website owners who don't w...

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

50%
+1 −1
Why are my EMA values ​​different from the ones on the website? [closed]

I wrote a program for calculating EMA, but my values ​​differ from the values ​​calculated on this site. My program: double[] x = Numbers();//array numbers int N = 5; double k = 2.0 / (N + 1...

0 answers  ·  posted 3y ago by kolaa‭  ·  closed 3y ago by Alexei‭

50%
+0 −0
When is information schema not needed and when is it indeed when migrating from one website hosting provider to another?

In some situations, could it be problematic to migrate a website's database (MySQL) from one website hosting provider to another without the information schema or with the information schema? In m...

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

50%
+3 −3
What is a typeless programming language?

I have read that several programming languages, listed below are considered "typeless": Forth Brainfuck B MUMPS BLISS Lucid BCPL I have shared this data with a programmer who clued that...

1 answer  ·  posted 3y ago by deleted user  ·  last activity 3y ago by deleted user

50%
+0 −0
Creating a Right-To-Left, primarily-backend, HTML-PHP contact form

I host my website on a PaaS-modeled, shared hosting environment by SiteGround which is quite a well known hosting company with (as I believe) well-venerated email servers. I am trying to create ...

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

50%
+1 −1
Running remote scripts (cloud scripts) locally --- valid and securely as possible

I use CentOS with Bash and I would like to download, execute and delete the executed downloaded file (running a remote/cloud script locally). I often prefer to load my own shell scripts from my ow...

1 answer  ·  posted 3y ago by deleted user  ·  last activity 3y ago by Peter Taylor‭

50%
+1 −1
yyyy/mm/dd instead expected dd/mm/yyyy format in PHP-created-HTML output

I have an HTML-PHP-CSS contact form with a date field: <input type="date" name="date" id="cf_input_date"></input> The default value in this field is the W3C built-in default: dd/m...

1 answer  ·  posted 3y ago by deleted user  ·  last activity 3y ago by Peter Taylor‭

50%
+0 −0
Submitting a form via XHR/AJAX causes partial data arrival to email inbox (only HTML without input)

I have a simple HTML-PHP contact form with some CSS. I desire to prevent the default behavior of the form which leads the user into a blank PHP page after submission, and, to have the form being s...

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