加载中...
Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
2 replies
14 views

There are a large number of images that need to be uploaded to my organization’s website. Currently, it takes a significant amount of time to manually classify each image into categories such as tower,...
Sylver Star's user avatar
0 votes
0 answers
19 views

I’m facing an issue while trying to download a job artifact from one GitLab project into another using GitLab CI/CD. What I’m trying to achieve In the project A, I want to improve CI testing by: ...
achu prasad's user avatar
-2 votes
1 answer
35 views

I have two lists of dictionaries in Python, and I need to merge them into a single list based on a shared key (e.g., id). My Data: Python list_a = [ {'id': 1, 'name': 'Alice'}, {'id': 2, 'name'...
洪敬愷's user avatar
-2 votes
0 answers
16 views

I’m running Celery with multiple workers on a low-memory server (1GB RAM). When a worker’s memory usage grows and hits its limit, it stops processing tasks and eventually crashes with a memory error. ...
Prince Suriya's user avatar
0 votes
0 answers
15 views

I am trying to solve the “Minimize the Heights II” problem from GeeksforGeeks using Python. The problem gives you a sequence of tower heights and requires modifying each tower height by either ...
ArunKumar Muthuvel's user avatar
-1 votes
1 answer
28 views

I'm struggling to figure out how to call the base class implementation of stringification in Python. The following illustrates what I am attempting to do: class A: def __init__(self, text): ...
Jeff G's user avatar
  • 4,729
-2 votes
0 answers
16 views

But why does it still give an output when both the start and end index are not present as index. (as in the image). This behavior is similar to position based rather than label based enter image ...
Anhad003's user avatar
-2 votes
0 answers
18 views

I am using version 6.0.0 in Docker Desktop and tried to embed a dashboard in a simple .html file through iframe. But it says localhost refused to connect whenever I am tying to execute the HTML file....
sayan paul's user avatar
0 votes
1 answer
37 views

I have these two models (I've trimmed away extra fields to keep it readable): class Forum(LegacyBase): __tablename__ = "forums" id: Mapped[int] = mapped_column("forumID", ...
Rohit's user avatar
  • 3,240
-7 votes
0 answers
30 views

A text file SCHOLAR.txt contains student academic records. Each record is stored on one line in the following format: RollNo@Name@Class@Section@SubjectCodes@Marks Where: RollNo → integer (no gaps ...
wizard's user avatar
  • 1
Best practices
0 votes
1 replies
18 views

I am writing (in Python) a function for import and use in another program. This function takes standard Python data structures as input, e.g., list of strings, and outputs a numpy array based on the ...
TheSenate's user avatar
  • 101
-3 votes
0 answers
34 views

My design in dash changed without me asking for it. I'm using: app = Dash(__name__, external_stylesheets=[dbc.themes.BOOTSTRAP]) And that gave me this design: But for some reason it changed and now ...
Francisco Augusto Varela Aguir's user avatar
1 vote
0 answers
27 views

After a lot of digging and trying to sort out the older interface API from the gimp 3 version. I find I'm stuck. I'm using the code below to try to select a triangular area. The code runs in the ...
Michael Trombley's user avatar
3 votes
1 answer
68 views

I'm on Win11 and have a relative Path instance for which is_dir() returns False: >>> s = "../../../a/b/c" >>> p = pathlib.Path(s) >>> p.is_dir() False >>> ...
mayaknife's user avatar
  • 334
0 votes
0 answers
32 views

I'm trying to train a character-level GRU on Linux kernel source but the training loop keeps crashing with this error: RuntimeError: view size is not compatible with input tensor's size and stride (...
Cat lover's user avatar

15 30 50 per page
1
2 3 4 5
147224