2,205,648 questions
0
votes
0
answers
24
views
Pyside6 "`Signal source has been deleted`"
In my pyside6 project, the following code works:
# in main.py
if __name__ == "__main__":
app = QApplication(sys.argv)
window = mainWindow.MainWindow()
controller = control....
Advice
0
votes
2
replies
77
views
Learning WinTAK
I was able to get some experience with ArcGIS while I was active-duty Army; it has been a long time since I have been able to use the software so my skills have deteriorated considerably. To my ...
Advice
0
votes
1
replies
69
views
Floating Window with Python on MacOS
I want to create floating window using python on MacOS but don't know how to do it, I googled and looked through apple's documentation and found that Cocoa API can be used for this but still don't ...
0
votes
0
answers
53
views
Add URL parameter to forms.ModelForm object and pass to html template
Models.py:
class Training_details(models.Model):
training = models.ForeignKey(Training, on_delete=models.CASCADE)
description = models.TextField()
class Meta:
db_table = '...
2
votes
1
answer
74
views
I'm trying to detect an ArUco marker in a picture. However, the detection does not work and gives 'None' even if the pic only contains the marker?
import cv2
import numpy as np
import matplotlib.pyplot as plt
width = 1080
height = 1920
# create the dictionary for markers type
dictionary = cv2.aruco.getPredefinedDictionary(cv2.aruco.DICT_4X4_50)
...
1
vote
1
answer
88
views
Why are my Python multiprocessing.Pool subprocess logs going to my log file but not the stream (command window)?
Python version 3.13.7 on Windows 11 Enterprise
I am running a FileHandler and StreamHandler using a QueueHandler for my pyton script. The main process logs go to both the stream and file, but the logs ...
0
votes
0
answers
49
views
Open Telemetry configurations
What are the best practices for configuring open telemetry distributed tracing for Fastapi application.
I've been working on that for about a week and dont seem to getting it right. I've made minimal ...
0
votes
1
answer
78
views
Cannot enforce foreign key constraints when autocommit is false
I am building a tiny program using a database, and I found that SQLite should be well suited for my requirements. I started designing my database schema with some foreign keys and my first tests ...
0
votes
1
answer
63
views
How to delete the selected text in a ScrolledText widget in Tkinter?
from tkinter import scrolledtext, Tk, Button
def copy():
try:
txt = text.get('sel.first', 'sel.last')
window.clipboard_append(txt)
except tk.TclError:
pass
window = ...
Best practices
0
votes
2
replies
80
views
Python program to automatically "use" a js program with Inquirer interactive menu
I have a javascript code that prints an interactive menu using inquirer prompt.
When running node code.js the user gets something like this
Select an option:
> Option A
> Option B
> Option ...
Advice
0
votes
0
replies
51
views
Is FastAPI + Java DSA enough for a backend internship, or should I learn more?
I am looking for a backend internship.
My tech stack:
Python (FastAPI)
Streamlit
Java (OOP + DSA)
MySQL (basic)
REST APIs
I have built 2–3 CRUD API projects.
My questions:
Is this enough to ...
-8
votes
1
answer
165
views
NameError: name 'string' is not defined when trying to use ascii_lowercase in Python [closed]
I am working on a small pet project where I need to implement a simple substitution cipher decoder (similar to the Atbash cipher). The function should reverse the alphabet for both uppercase and ...
-2
votes
2
answers
96
views
Class representing floats in scientific notation
My app needs to track float numbers in the format of scientific notation (eg. 1.23E4) - data is imported and exported in this format. So I made a simple dataclass:
@dataclass
class SciNotation:
...
Tooling
0
votes
4
replies
84
views
Am I done for? Dlib taking a while to compile
I was compiling Dlib for ageitgey's Face Recognition, and it is taking an unusually long time. For those who don't know, Dlib is a library in C++ (in what i believe) was made for machine learning. As ...
Advice
0
votes
9
replies
181
views
Which one is best coding language
Since I am in undergraduate and in btech engineering computer science I am in first year so in second year I want to choose best programming language that has worth now a days, I heard about python , ...