Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
17 views

def close_apps(): for proc in psutil.process_iter(['name']): if proc.info['name'] in kill_apps: proc.kill() elif proc.info['name'] in terminate_apps: proc....
FatherFabian's user avatar
Advice
1 vote
1 replies
17 views

I am currently working on an AI-integrated ERP system that aims to achieve a "symbiotic" relationship between human decision-makers and AI models. Specifically, I am using Python (Pandas &...
蘇芳儀's user avatar
Best practices
1 vote
2 replies
37 views

Python lists and tuples have a __getitem__that takes a very specific key format. The key is either an integer, a slice, an Ellipsis, or a tuple combination of these (maybe I forget one). In short, I'm ...
Ben's user avatar
  • 603
1 vote
1 answer
48 views

I am using the Vosk speech recognition library in Python to recognize speech from a microphone in real time. The recognition works correctly and I can print the result in the terminal. However, I want ...
王中威's user avatar
0 votes
0 answers
19 views

I am currently working on a project that synthesizes tabular data for an electromagnetic interference detection system. My dataset contains mixed data types: continuous variables (e.g., power ...
PDEA Lab's user avatar
-1 votes
0 answers
39 views

I am implementing authentication in FastAPI using cookies for session management. I have a logout endpoint that deletes the authentication cookie. The logout request returns 200 OK and the frontend ...
KaranSRMA's user avatar
Best practices
0 votes
0 replies
30 views

I am developing a system that integrates "Source Verifiable" and "Content Decipherable" into a single service workflow. The system uses Robust Watermarking to ensure source ...
user32498208's user avatar
Best practices
0 votes
8 replies
66 views

i have multiple lists of a bunch of strings gathered indiscriminately. i want to remove any that are unsuitable based on various criteria. import re asdf = ["apple", "dreamy", &...
soweli's user avatar
  • 1
Advice
0 votes
4 replies
110 views

I'm not sure how to really motivate this question, but in playing around with integer hashes in Python (3.14.3, but I imagine this has been the case for many versions), I noticed that for almost any ...
JoDraX's user avatar
  • 121
Advice
0 votes
4 replies
58 views

I have a small Python script that requires a list of physical disks (not partitions or volumes) and their respective capacities. I'm using the pyparted module to accomplish this: readable_disks_dict = ...
oreganoid's user avatar
Advice
0 votes
1 replies
66 views

I need to do some processing and analysis on a large dataset of weather and hydrological data. The data I'm scraping from the host website is formatted like this: site_1 = [ ['1970-01-01 00:00', -1.40,...
Thomas White's user avatar
Advice
0 votes
6 replies
86 views

I'm implementing a simple stack in Python and I want to add the ability to undo the last pop() operation. The behavior I want is something like this: s.push(10) s.push(20) s.push(30) s.pop() # ...
Solomon Gleeson's user avatar
0 votes
0 answers
53 views

I am building an autonomous AI Agent (managing training workflows) that automatically generates PyTorch/OpenMMLab training scripts and executes them in a background subprocess. One of the common ...
user32496676's user avatar
-1 votes
0 answers
57 views

I am trying to fine-tune the MedGemma-9B model for a medical document auditing task. I am using a single RTX 4090 with 24GB of VRAM. However, I keep encountering a CUDA Out of Memory error right when ...
陳冠豪's user avatar
2 votes
0 answers
63 views

One of my Langchain tools returns the below error when the agent is invoked, and so the agent does not actually proceed after the program is run: groq.BadRequestError: Error code: 400 - {'error': {'...
RF2's user avatar
  • 31

15 30 50 per page
1
2 3 4 5
147169