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)
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 11d ago by Alexei‭  ·  edited 1d ago by Alexei‭

postgresql cronjob azure-database-postgresql pg-cron
75%
+4 −0
How to plot table from pandas dataframe

MWE import pandas as pd import numpy as np import matplotlib.pyplot as plt df = pd.DataFrame(np.random.rand(9, 4), columns=['a', 'b', 'c', 'd']) df.plot.bar(table=True) # don't want plot, ...

1 answer  ·  posted 3y ago by mcp‭  ·  edited 7d ago by Alexei‭

python plot pandas matplotlib
50%
+0 −0
How can I display an interactive family tree-style graph in PyQt6?

I'm trying to create an expandable/collapsible horizontal visualization of interlinked documents using a tree diagram that looks very similar this, where the documents spread outward from a single ...

0 answers  ·  posted 8d ago by pycoder‭

python python-3 pyqt6 pyqt
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 3y ago by Alexei‭  ·  last activity 9d 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 9d ago by TRiG‭

php bash
80%
+6 −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 12d ago by Bennshinpoes‭  ·  last activity 9d ago by John C‭

algorithms sorting
60%
+10 −6
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 4y ago by theabbie‭  ·  last activity 10d 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 11mo ago by Ivan Nepomnyashchikh‭  ·  last activity 11d 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 1mo ago by pycoder‭  ·  last activity 12d 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 21d ago by Iizuki‭  ·  last activity 16d 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 1mo ago by Franck Dernoncourt‭  ·  last activity 16d ago by Mithical‭

pytorch machine-translation tokenization encoder-decoder
85%
+10 −0
What is the general process for merging two git branches, reviewing edits on each branch?

Suppose you have a largish git repository with many files of different types (both text and images) distributed among a number of nested directories. Parallel development has occurred on two branc...

2 answers  ·  posted 11mo ago by SystemExplorer‭  ·  last activity 16d ago by Mithical‭

git
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 19d ago by John C‭  ·  last activity 17d 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 22d ago by CrSb0001‭  ·  closed 21d ago by Karl Knechtel‭

python python-3 math number-theory
50%
+2 −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 2mo ago by mavavilj‭  ·  last activity 24d 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 27d ago by billynoah‭  ·  last activity 25d 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 25d ago by Franck Dernoncourt‭  ·  edited 25d 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 29d ago by Franck Dernoncourt‭  ·  last activity 29d ago by Franck Dernoncourt‭

python huggingface-datasets onnxruntime glibc
80%
+6 −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 1mo ago by Trevor‭  ·  edited 29d 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 1mo ago by Franck Dernoncourt‭  ·  closed 1mo 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 1mo ago by Franck Dernoncourt‭  ·  last activity 1mo 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 1mo ago by Franck Dernoncourt‭  ·  edited 1mo 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 1mo ago by FractionalRadix‭  ·  edited 1mo ago by FractionalRadix‭

.net
60%
+1 −0
When I write and run a prompt in Cursor IDE, what's passed in the context to the model (GPT/Claude/etc.)?

When I write and execute a prompt in Cursor IDE, what specific information is included in the context that gets sent to the underlying language model (such as GPT or Claude)? E.g., does it include ...

1 answer  ·  posted 2mo ago by Franck Dernoncourt‭  ·  last activity 1mo ago by Franck Dernoncourt‭

cursor-ai
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 1mo ago by Franck Dernoncourt‭  ·  edited 1mo 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 1mo ago by Matthias Braun‭  ·  edited 1mo 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 2mo ago by Franck Dernoncourt‭  ·  last activity 1mo 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 3mo ago by ɯıpɐʌ‭  ·  last activity 1mo 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 3mo ago by Trevor‭  ·  last activity 2mo ago by Trevor‭

autocomplete zsh
83%
+8 −0
Setting custom HTTP status code messages in nginx

I think it would be funny if my web application that is hosted using an nginx reverse proxy (proxy_pass) returned something like 200 Could Be Worse rather than 200 OK, when the page load was succes...

1 answer  ·  posted 2mo ago by luap42‭  ·  last activity 2mo ago by Ancepaid‭

http nginx
71%
+3 −0
How to find the last line number of a section in a text file (particular format)

I'm writing a function which reads specified sections in a text file formatted a particular way, but I'm having a hard time figuring out how to locate the last line number. Here's an example of the...

1 answer  ·  posted 2mo ago by pycoder‭  ·  edited 2mo ago by hkotsubo‭

python python-3
77%
+5 −0
Why is SQL usually written in CAPS?

Why are keywords in SQL usually written in capital letters? For example: SELECT * FROM person WHERE mood = 'happy'; My understanding is that SQL is case insensitive, so the case doesn't actuall...

2 answers  ·  posted 2mo ago by Iizuki‭  ·  last activity 2mo ago by luser‭

sql
28%
+0 −3
Why does the types returned by 'valueOf()' are incompatible with the type `Partial<Temporal.PlainDate>`?

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 2mo ago by Ooker‭

typescript deno temporal
66%
+2 −0
How is `Temporal.PlainDate.from()` constructed?

Continuing from What is the advantage of creating instances from a method rather than constructor?, I want to construct a method that create a new instance of a class without using the constructor....

0 answers  ·  posted 2mo ago by Ooker‭  ·  edited 2mo ago by ArtOfCode‭

javascript constructor class
42%
+1 −2
How can I autocomplete variable names in prompts in Cursor?

E.g., I have a variable name options. Then I write a prompt. How can I autocomplete the variable name in prompt in Cursor? (i.e., instead of typing options, I want to only type o then it'll autocom...

1 answer  ·  posted 2mo ago by Franck Dernoncourt‭  ·  edited 2mo ago by ArtOfCode‭

cursor-ai
50%
+0 −0
How can I automatically delete any deployment of a fine-tuned OpenAI model on Azure that hasn't been used in the past x hours? [duplicate]

How can I automatically delete any deployment of a fine-tuned OpenAI model on Azure that hasn't been used in the past x hours? I am aware of 15-day timeout. However, this is too long for me, as th...

0 answers  ·  posted 2mo ago by Franck Dernoncourt‭  ·  closed as duplicate 2mo ago by ArtOfCode‭

azure azure-cognitive-services
50%
+0 −0
How can I automatically delete any deployment of a fine-tuned OpenAI model on Azure that hasn't been used in the past x hours?

How can I automatically delete any deployment of a fine-tuned OpenAI model on Azure that hasn't been used in the past x hours? I am aware of 15-day timeout. However, this is too long for me, as th...

0 answers  ·  posted 2mo ago by Franck Dernoncourt‭

azure azure-cognitive-services
50%
+0 −0
Why doesn't my Azure OpenAI model show up in Cursor?

I added my Azure OpenAI account show up in Cursor in the settings: But I don't see the Azure OpenAI model as one of the available models: Why doesn't my Azure OpenAI model show up in Cursor? ...

0 answers  ·  posted 2mo ago by Franck Dernoncourt‭  ·  edited 2mo ago by Franck Dernoncourt‭

cursor-ai
66%
+2 −0
What is the advantage of creating instances from a method rather than constructor?

Take the newly Temporal.PlainDate class as an example. New instances can be created via the constructor: new Temporal.PlainDate(year, month, day) new Temporal.PlainDate(year, month, day, calendar...

1 answer  ·  posted 2mo ago by Ooker‭  ·  last activity 2mo ago by Derek Elkins‭

javascript class
66%
+2 −0
Understanding "subprocess-exited-with-error" from Pip

This question is about the general case of subprocess-exited-with-error. It's intended to help you understand the situation if you get an error like this, and there are some common workarounds - ...

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

python pip
50%
+0 −0
Property 'DurationFormat' does not exist on type 'typeof Intl'

I run this code with Deno from Temporal.PlainDate.prototype.since() - JavaScript | MDN: const date = Temporal.PlainDate.from("2022-12-25"); const now = Temporal.Now.plainDateISO(); const duratio...

0 answers  ·  posted 2mo ago by Ooker‭

javascript typeof deno
40%
+0 −1
.NET for ERP development [closed]

I am wondering if .NET is used in ERP development, or if i decide between using .NET or another technology for ERP project.

0 answers  ·  posted 2mo ago by bilalzulficar‭  ·  closed 2mo ago by Alexei‭

.net .net-core
60%
+1 −0
Which model is Cursor IDE using when I specify a random model name?

Example: I specify a random model name some random name: Then I call it: Which model is Cursor IDE using when I specify a random model name? Cross-posted: https://stackoverflow.com/q/79...

0 answers  ·  posted 2mo ago by Franck Dernoncourt‭  ·  edited 2mo ago by Franck Dernoncourt‭

cursor-ai
66%
+2 −0
Does the Rate limit (Tokens per minute) of an Azure OpenAI instance corresponds to the input tokens, the output tokens or the sum of both?

Does the Rate limit (Tokens per minute) of an Azure OpenAI instance corresponds to the input tokens, the output tokens or the sum of both? Crossposted at: https://serverfault.com/q/1176440/...

1 answer  ·  posted 2mo ago by Franck Dernoncourt‭  ·  edited 2mo ago by Franck Dernoncourt‭

azure azure-cognitive-services
57%
+2 −1
How shall I refer to the documents and the context in the prompt when using the Azure RAG-QA framework?

I use Azure OpenAI RAG-QA (aka "bring our data"): which I call via e.g.: import os import pprint from openai import AzureOpenAI #from azure.identity import DefaultAzureCredential, get_bear...

0 answers  ·  posted 2mo ago by Franck Dernoncourt‭  ·  edited 2mo ago by Franck Dernoncourt‭

azure azure-cognitive-services
66%
+2 −0
Why does Azure Command-Line Interface (CLI) list no groups and no resources in my Azure account?

I have several resource groups and instances in my Azure account. Yet, the Azure Command-Line Interface (CLI) lists no groups and no resources in my Azure account: franck [ ~ ]$ az group list [] ...

1 answer  ·  posted 2mo ago by Franck Dernoncourt‭  ·  edited 2mo ago by Franck Dernoncourt‭

azure
66%
+2 −0
How can I resolve the 403 Forbidden error when deploying a fine-tuned GPT model in Azure via Python?

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

0 answers  ·  posted 2mo ago by Franck Dernoncourt‭

python azure
71%
+3 −0
Advanced Regex extension for VS Code

VS Code supports regex search, but the search/replace UI is just a tiny dialog box. It's okay if you know regex well and the expression is not complex, but when trying to apply complicated expressi...

0 answers  ·  posted 1y ago by matthewsnyder‭  ·  edited 2mo ago by trichoplax‭

regex software-recommendation vs-code ide
75%
+4 −0
Why force designation of a remote main branch?

GitHub seems to require that one of the branches on it be marked as the "primary" branch. I understand this (perhaps mistakenly) to be the origin/HEAD. Why would they make it compulsory? On forked...

2 answers  ·  posted 3mo ago by Michael‭  ·  last activity 3mo ago by InfiniteDissent‭

git github
75%
+4 −0
Get the name of the remote tracked branch of my local branch for use in script

Can I programmatically get the name of the remote branch which my local branch is tracking? I'm interested in scripting around git-range-diff(1), so that I could do something like this: [alias] ...

1 answer  ·  posted 3mo ago by alx‭  ·  last activity 3mo ago by Alexei‭

git