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)
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...
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...
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...
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...
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...
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...
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...
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...
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 ...
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 ...
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...
Can you walk me through Facebook posts creation, scheduling and automation with n8n setups?
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...
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...
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...
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 ...
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 ...
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?
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?
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...
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...
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...
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...
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?
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...
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...
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...
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...
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...
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...
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...
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...
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...
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. ...
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...
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...
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 ...
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 ...
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'...
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...
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'...
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...
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...
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...
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...
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]' ...
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...
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. ...
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...
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...
