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)
18%
+0 −7
Choosing A CMS -possibility of creating locate function for users [closed]

With Respect Is there a Content Management System where I can create something like the locate feature of the Quicklaw database, that can take a user to place(s) in a document or web page where th...

0 answers  ·  posted 1y ago by AlanEDunne‭  ·  closed 1y ago by Alexei‭

software-practices
71%
+3 −0
Why is package.json needed for running a SvelteKit application?

I'm trying to containerize a SvelteKit application that uses the @sveltejs/adapter-node. The Build and Deploy section from the documentation recommends to build the application, and then run the a...

0 answers  ·  posted 2y ago by deleted user  ·  last activity 1y ago by Karl Knechtel‭

node.js docker sveltekit
66%
+2 −0
How to change tab size in VSCodium?

Say I have some code written with 2 space tabbing, and I wish to upstream it to a codebase with 4 space tabbing. I should make my tabbing match with that of the upstream project, but how to do that...

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

vs-code code-formatting tab-size
75%
+4 −0
Do Where and OfType preserve List capacity?

Unless I am mistaken, myList.Select(a => a).ToList() initializes the resulting list to the capacity of myList.Count. Does myList.Where(a => true).ToList() do so or does it build up from the i...

2 answers  ·  posted 2y ago by LyndonGingerich‭  ·  edited 1y ago by riQQ‭

c# linq performance iterable list
66%
+2 −0
Does GLib's "GTest" testing framework have any filesystem mocking functionality?

I'm writing tests for some code that interacts with the filesystem, and I want to assert that it writes the expected data to disk. My problem is that some of the code I want to test includes hardco...

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

unit-testing mocking testing glib
71%
+3 −0
How to configure launch settings for a Quarkus application using Gradle in Visual Studio Code?

I'm developing a Quarkus application that uses Gradle as the build tool. The application doesn't have a main class. I'm trying to configure a launch setup in VS Code, but looks like something is n...

0 answers  ·  posted 1y ago by deleted user  ·  last activity 1y ago by Alexei‭

java debugging vs-code quarkus
66%
+2 −0
How does the GLFW time acquirement function differ from Java’s built-in time getters?

glfwGetTime() and System.nanoTime() both claim to provide precision-based time interval management based on the host platform’s highest resolution and accuracy clock. Naturally, I will only use on...

1 answer  ·  posted 1y ago by Andreas‭  ·  last activity 1y ago by Monica Cellio‭

java lwjgl glfw
77%
+5 −0
What is a "security protocol"? Is it the same as a "cryptographic protocol"?

What is the difference (if any) between a "security protocol" and a "cryptographic protocol"? Or are they synonyms? Some of the references I've seen -- (a), (b), (c), (d), etc. -- mention both "se...

1 answer  ·  posted 1y ago by DavidCary‭  ·  last activity 1y ago by JakenVeina‭

terminology security authentication language-agnostic encryption
60%
+1 −0
Add additional shapes on a GeoPandas matplotlib

I have some GIS data that I'm trying to plot with Python. One feature at a time works fine,[1] but I'd like to have two (or multiple) datasets on the same map. import matplotlib import geopandas ...

1 answer  ·  posted 1y ago by Michael‭  ·  last activity 1y ago by ArtOfCode‭

python matplotlib geopandas
66%
+2 −0
Can you have syntax highlighting for streaming text in Python?

Suppose you have a situation where text is coming 1 word at a time, and you want to quickly show it to the user. "Quickly" is not in the sense of a performance constraint, but rather we don't want ...

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

python-3 syntax-highlighting pretty-print data-streaming
80%
+6 −0
C#: Performance hit from using calculated property instead of get-only property with initializer?

JetBrains Rider suggests that I change this (for example): public class Foo { public int OnePlusOne { get; } = 1 + 1; } to this: public class Foo { public int OnePlusOne => 1 + 1...

1 answer  ·  posted 2y ago by LyndonGingerich‭  ·  last activity 1y ago by ArtOfCode‭

c# attribute
18%
+0 −7
Facebook Automation [closed]

Can you walk me through Facebook posts creation, scheduling and automation with n8n setups?

0 answers  ·  posted 1y ago by Sourcedigitaltech‭  ·  closed 1y ago by ArtOfCode‭

content-management-system automation
75%
+4 −0
How to format Markdown in terminal

When printing Markdown text to the terminal, how can I get a bit more formatting so it looks nicer? I realize that this is a bit of a contradiction, since terminals generally use only one font. Bu...

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

markdown python-3 software-recommendation pretty-print terminal
62%
+3 −1
How do I choose the correct Perl module from these variations?

When looking for Perl modules to handle JSON strings and/or documents, I found JSON::PP and JSON::XS. The documentation of JSON::PP says it is compatible with JSON::XS. What do these suffixes me...

2 answers  ·  posted 6y ago by ghost-in-the-zsh‭  ·  last activity 1y ago by Karl Knechtel‭

perl json perl-module
71%
+3 −0
how to update RPROMPT each time a key is pressed in zsh

In zsh, I want to create a function that updates RPROMPT when I have typed cd .. into the terminal. As a starting point, I know I can, for example, add the + character to my RBUFFER when I have typ...

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

terminal zsh
60%
+1 −0
empty line in table cell in reStructuredText (rst)

I would like to have an empty line in the cell of a table in reStructuredText. Consider the following example: .. list-table:: :header-rows: 1 * - aaa - bbb * - ccc - ddd ...

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

reStructuredText
25%
+0 −4
Why does the types returned by 'valueOf()' are incompatible with the type Partial<Temporal.PlainDate>? [closed]

This code: type A = Partial<Temporal.PlainDate>; const a: A = { day: 1, month: 1, year: 2025 } yields this error: Type '{ day: number; month: number; year: number; }' is not assignable ...

0 answers  ·  posted 1y ago by Ooker‭  ·  edited 1y ago by Ooker‭

typescript deno temporal
66%
+2 −0
From local, how to create new GitHub repo to have GitHub Pages with actions?

gh repo create doesn't have a flag to set GitHub Pages with GitHub Actions. Is there a way to do so, or am I have to visit the setting page to set it manually?

0 answers  ·  posted 1y ago by Ooker‭

github
50%
+0 −0
What is the reverse of an ndarray.tolist()?

I have a nested python list structure, generated by a happily executed tolist() method on a more than 2 dimensional ndarray. How can I get back my numpy ndarray from the list?

1 answer  ·  posted 1y ago by peterh‭  ·  last activity 1y ago by mr Tsjolder‭

numpy python-3
75%
+4 −0
Macro to count the number of arguments

Let's say we have a function void f(int argc, ...); where argc is the number of variadic arguments. Can we write a macro of the form #define F(...) f(CNT(__VA_ARGS__), __VA_ARGS__) which...

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

c c-preprocessor
75%
+4 −0
What binds together the loss function, the optimizer and the model in PyTorch?

To have a successful "training session", these should cooperate. I.e. model generates an output from the input data, the loss function says, how bad or good is it, and then the optimizer tunes...

1 answer  ·  posted 1y ago by peterh‭  ·  last activity 1y ago by mr Tsjolder‭

python-3
60%
+1 −0
How to preserve pip install temporary directory for error analyse?

Here I am trying to install a pip package. While installation, pip tries to compile something. With meson. Meson calls cmake. Cmake fails on a missing dependency. Then, meson fails on the fail...

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

python-3 pip
57%
+2 −1
Convert Shaded Java class to its original

How do I cast or convert a shadow/shaded class (a package relocated class which is generally generated via tools like gradle/maven) to its original class in Java? The assumption is that both the s...

1 answer  ·  posted 1y ago by Abbas Gadhia‭  ·  edited 1y ago by Abbas Gadhia‭

java
22%
+0 −5
Get free Domain [closed]

How can I get a free domain? I'm looking to start a website but want to avoid upfront costs. Can someone guide me on how to obtain a domain name for free, and what platforms or services offer this?

0 answers  ·  posted 1y ago by kritikasahi20‭  ·  edited 1y ago by Alexei‭

web domain-registrar
28%
+0 −3
How can I unmount a filesystem hidden behind another? [closed]

Let's say I mount a filesystem and then mount another filesystem over it the same location: (sshfs for example) sshfs foo@server1:/path /mnt/path sshfs foo@server2:/path /mnt/path The contents...

0 answers  ·  posted 1y ago by user253751‭  ·  closed 1y ago by Alexei‭

linux
66%
+2 −0
How to schedule cron jobs in multiple Azure Database for PostgreSQL databases?

The microservices I am working on use multiple PostgreSQL databases on the same instance. Some of them require some cron jobs. I have decided to use the pg_cron PostgreSQL extension, but when tryin...

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

postgresql cronjob azure-database-postgresql pg-cron
83%
+8 −0
Are there any downsides related to using Maybe or Optional monads instead of nulls?

I have recently stumbled across the Maybe (or Optional) modal usage in .NET Code: example code or this one example article Based on everything I read, there are multiple advantages on relyi...

3 answers  ·  posted 5y ago by Alexei‭  ·  last activity 1y ago by asynts‭

.net functional-programming monads maybe
66%
+2 −0
How do I unescape shell arguments in PHP?

I have a PHP script which I want to call a Bash script which then in turn calls another PHP script. This may be completely unnecessary, but nonetheless. PHP script 1: // Borrowed from https://sta...

0 answers  ·  posted 1y ago by TRiG‭

php bash
83%
+8 −0
What is the correct cost formula for the average case in insertion sort algorithm?

I have been trying to learn about the cost of the insertion sort algorithm lately. I already understand the best case, worst case and average case formulas (eg $n-1$, $\frac{n(n-1)}{2}$, $\frac{n(n...

1 answer  ·  posted 1y ago by Bennshinpoes‭  ·  last activity 1y ago by John C‭

algorithms sorting
57%
+10 −7
Is it wrong to demand features in open-source projects?

I have been using open-source software, and the open-source Community is great at maintaining such projects. But I have observed something in smaller open-source projects. Whenever I demand some f...

3 answers  ·  posted 5y ago by theabbie‭  ·  last activity 1y ago by Alexei‭

open-source ethics
66%
+2 −0
How to make Box drive have the files prepared for access when I need it?

I have Box drive on Windows. I use it as a regular folder on the computer. I can store images there. When I store a small number of images (on the order of a couple hundreds) and I do not wait lon...

1 answer  ·  posted 2y ago by Ivan Nepomnyashchikh‭  ·  last activity 1y ago by Mithical‭

python windows box-drive
50%
+1 −1
How to turn lines of text in PyQt6 QTextEdit into clickable links that call a function?

A while back, I made this post about reading specified sections in a text file formatted a particular way. I've since updated the format for that file to include links at the start of arbitrary li...

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

python python-3 pyqt6 pyqt
84%
+9 −0
Is it possible to query all known domains from a DNS server?

Normally you ask a DNS server to resolve a domain like example.org to the corresponding IP address. The server either knows the answer right off the bat (cached or authoritative), or where it might...

0 answers  ·  posted 1y ago by Iizuki‭  ·  last activity 1y ago by Mithical‭

dns
60%
+1 −0
Why would the tokenizer for encoder-decoder model for machine translation use bos_token_id == eos_token_id? How does it know when a sequence ends?

I see on this PyTorch model Helsinki-NLP/opus-mt-fr-en (HuggingFace), which is an encoder-decoder model for machine translation: "bos_token_id": 0, "eos_token_id": 0, in its config.json. ...

1 answer  ·  posted 1y ago by Franck Dernoncourt‭  ·  last activity 1y ago by Mithical‭

pytorch machine-translation tokenization encoder-decoder
75%
+4 −0
Extracting Firefox Local Data

How does one parse/decode/extract information stored by a web page in Firefox's browser local storage without the browser? So far, I've worked out that the data lives at ~/.mozilla/firefox/${profi...

1 answer  ·  posted 1y ago by John C‭  ·  last activity 1y ago by Zoe‭

json sqlite firefox
50%
+2 −2
Current solution for Project Euler 250+ (HackerRank) is giving incorrect answers, why is this? [closed]

Note: I originally posted this on Stack Overflow on Stack Exchange here however I am posting the same question here as I might be able to get a answer more quickly here. Project Euler+ #250 on H...

0 answers  ·  posted 1y ago by CrSb0001‭  ·  closed 1y ago by Karl Knechtel‭

python python-3 math number-theory
55%
+3 −2
Is it possible to deploy data science notebook servers on shared servers (no root access)?

Are there libraries that allow deploying data science notebooks (like Jupyter notebooks) on servers with no root access (for example, shared servers)? A shared (non-VPS) server is, for example, a ...

0 answers  ·  posted 1y ago by mavavilj‭  ·  last activity 1y ago by Helengrace‭

cloud data-science
75%
+4 −0
PHP curl / how to ensure cookie file is read?

I've recently discovered that php curl does not load cookies from a cookie file until after at least one request is made. For instance, assume I already have a cookie file from a previous session ...

0 answers  ·  posted 1y ago by billynoah‭  ·  last activity 1y ago by Alexei‭

php curl
50%
+0 −0
How can I save a plot in a file in PyCharm without changing the code?

How can I save a plot in a file in PyCharm without changing the code? I used plt.show(), so that the plot shows like this: But how can I save a plot in a file without changing the code? I don'...

0 answers  ·  posted 1y ago by Franck Dernoncourt‭  ·  edited 1y ago by Franck Dernoncourt‭

pycharm
40%
+0 −1
Import onnxruntime then load_dataset "causes ImportError: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found": why + how to fix?

Running import onnxruntime as ort from datasets import load_dataset yields the error: (env-312) dernoncourt@pc:~/test$ python SE--test_importpb.py Traceback (most recent call last): File...

1 answer  ·  posted 1y ago by Franck Dernoncourt‭  ·  last activity 1y ago by Franck Dernoncourt‭

python huggingface-datasets onnxruntime glibc
81%
+7 −0
how to apply ANSI escape codes when a backslash precedes the escape code

I am using ANSI escape codes in a shell script to colorize some parts of a string. For example, here I add the text NOTE with a red background color at the end of $var: $ var='test' $ echo $var'...

2 answers  ·  posted 1y ago by Trevor‭  ·  edited 1y ago by Alexei‭

escaping terminal
33%
+0 −2
Can't run a Python file in PyCharm: why? [closed]

I can't run a Python file in PyCharm: why? The run icon is greyed out: I went to Run → Edit Configurations… to make sure the correct Python interpreter is selected. Debug, coverage, and profile...

1 answer  ·  posted 1y ago by Franck Dernoncourt‭  ·  closed 1y ago by Karl Knechtel‭

python pycharm
33%
+0 −2
"This model is not available on the selected Azure OpenAI Service resource." error, but I think it is. Why did I miss?

I deployed a finetuned GPT 4o mini model on Azure, region northcentralus. I getting this error in the Azure portal when trying to edit it (I wanted to change the max hit rate): This model is no...

1 answer  ·  posted 1y ago by Franck Dernoncourt‭  ·  last activity 1y ago by Franck Dernoncourt‭

azure-cognitive-services fine-tuning
60%
+1 −0
How can I export an encoder-decoder PyTorch model into a single ONNX file?

I converted the PyTorch model Helsinki-NLP/opus-mt-fr-en (HuggingFace), which is an encoder-decoder model for machine translation, to ONNX using this script: import os from optimum.onnxruntime im...

0 answers  ·  posted 1y ago by Franck Dernoncourt‭  ·  edited 1y ago by Franck Dernoncourt‭

python onnx pytorch machine-translation
50%
+0 −0
DllExportAppDomainIsolatedTask task failed, requested value Version48 not found

I have a .NET Framework project in Visual Studio. While trying to build it, I get the following error message: Error The "DllExportAppDomainIsolatedTask" task failed unexpectedly. System.Argume...

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

.net
50%
+0 −0
How can I deploy a fine-tuned GPT model in Azure via Python without using a token (e.g., using an endpoint key instead)?

I follow Azure's tutorial on fine-tuning GPT. I follow the deployment phase. Code: # Deploy fine-tuned model import json import requests token = '[redacted]' subscription = '[redacted]' ...

0 answers  ·  posted 1y ago by Franck Dernoncourt‭  ·  edited 1y ago by Lundin‭

deployment azure-cognitive-services llm fine-tuning
80%
+6 −0
Java record with final keyword

Although record classes in Java are implicitly final, it's valid to add the final modifier/keyword when declaring a record: final public record Person(String name, String location) {} Does fina...

1 answer  ·  posted 1y ago by Matthias Braun‭  ·  edited 1y ago by Matthias Braun‭

java
57%
+2 −1
"google.auth.exceptions.RefreshError: Reauthentication is needed.": How can I extend the authentication time?

I use Gemini via CLI via Google Vertex AI. I keep getting google.auth.exceptions.RefreshError: Reauthentication is needed. Please run gcloud auth application-default login to reauthenticate. ...

0 answers  ·  posted 1y ago by Franck Dernoncourt‭  ·  last activity 1y ago by Alexei‭

google-cloud-platform
66%
+2 −0
Best practices for designing a central gateway/hub for microservices communication

I'm currently working on an architecture for a microservices-based platform and I would like to get some feedback in this regard — best way to handle integrations between the internal microservices...

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

architecture design-patterns system-design microservices
77%
+5 −0
zsh - autocomplete with braces in the middle of a directory

Suppose I have the following directory structure: folder/ aaa/ f.txt bbb/ f.txt I want to compare the file f.txt as it is common to both directories. So in zsh I type this: % d...

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

autocomplete zsh