2,206,348 questions
Advice
2
votes
3
replies
47
views
Detecting audio transcoding with ffmpeg
I'm building a small CLI tool for myself to help me find transcoded audio files. The idea is to detect "fake" high-bitrate files that have actually been transcoded from a lower-quality ...
1
vote
2
answers
115
views
Double digit subscripts in Python output?
I am writing a piece of Python code which will output results in binary, denary, hexadecimal or even octal. I would like to provide a subscript to indicate the relevant base – e.g. :
10 + 11 = 1012
...
1
vote
2
answers
74
views
How to parse audio.cdindex
Some audio CDs have a file called audio.cdindex with artist, album and a list of the titles. I have a python tool to copy my CDs on the NAS and if I don't find the ID of a CD on musicbrainz or cddb I ...
Advice
0
votes
3
replies
55
views
Guidance on Training an AI Connect 4 Bot
(If StackOverflow is not the place for these kinds of general guidance questions, please point me to where I should ask them 😊)
Hi there!
I have a lot of experience as a programmer, but I've never ...
Advice
0
votes
2
replies
52
views
YOLO11m fine-tuned on SKU dataset hallucinating and missing DuoPack detections
I am working on a retail shelf product detection system using YOLO11m fine-tuned on a 110k SKU dataset with a single class `product`. The model performs well overall but I have two problems after ...
Advice
0
votes
6
replies
65
views
Try adding star borders on the sides
I need some star signed borders around my billing form. The first thing that comes to mind is adding star symbols all throughout the code manually. This should work. My question is if there is a ...
0
votes
1
answer
53
views
"exclude-newer" does not respect duration
I have a python project with uv where I want to set an exclude-newer policy but it ignores duration. In my pyproject.toml I have
[tool.uv]
exclude-newer = "7 days"
However when I run e.g. ...
Tooling
0
votes
6
replies
119
views
Python `.split()` for Bash?
With Python it's gorgeously simple, my problem is instantly solved in one method:
text='''
dab
a
b
c
dab
e
f
g
dab
h
i
j
'''
print(text.split('dab'))
Nevertheless, doing everything in Bash is a ...
-2
votes
0
answers
44
views
In DDD, should domain logic that depends on external libraries be placed in the infrastructure layer? [closed]
I am building a Python library for molecular dynamics simulations using Domain-Driven Design. My Molecule entity will have a Topology value object to handle coarse-grained representations.
I found two ...
-5
votes
0
answers
63
views
selenium with proxy authentication using chrome extension not working [closed]
I recently used this python library on injecting proxy username and password on Selenium https://github.com/freezingdata/selenium-authenticated-proxy
It worked for a couple of months, but recently ...
Advice
0
votes
1
replies
41
views
how can i get multiple website team page data through automation
How can I automate the extraction of team page data from multiple websites?
I need to collect person details from pages like “Team,” “Our Team,” “Meet the Team,” “Leadership,” or “Join the Team.” ...
0
votes
0
answers
82
views
Image won't update despite variables being updated properly
In the following snapshot, the image of the pet is supposed to be in an "Idle" state, but is currently in a "Sad" state, despite the console saying the state is currently in "...
0
votes
0
answers
67
views
Label text isn't updating from the methods coded in, what do I do? [closed]
In the following window, I intend to have the labels on the right to be updated as the variables relating to these labels are modified
import random, csv
import tkinter as tk
from tkinter import ttk, ...
0
votes
0
answers
91
views
Shared Python Swig Modules [closed]
I have a complex C++ application (call it foo) that exposes an API that is wrapped for Python via Swig.
This provides a 'statefull' library -- i.e. large amounts of complex data are kept on the C++ ...
Best practices
1
vote
0
replies
65
views
Proper unit testing of a project built using scrapy that is supposed to make many network requests and database operations
I'm creating a project to add to a not-yet-existent portfolio and I have some things I'm confused about. The goal of the project is to create the most comprehensive collection of artwork (drawings,...