加载中...
Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
4 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
0 votes
0 answers
15 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
13 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
32 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
0 votes
0 answers
23 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
2 votes
1 answer
59 views

I'm on Win11 and have a relative Path instance which for which is_dir() returns False: >>> s = "../../../a/b/c" >>> p = pathlib.Path(s) >>> p.is_dir() False >&...
mayaknife's user avatar
  • 324
0 votes
0 answers
28 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
Advice
0 votes
1 replies
22 views

I have made a Python function that simulates a cash withdrawal from an ATM, checking for the correct PIN and sufficient balance before processing. I have defined a function called cash_machine with ...
Ruby Pepper's user avatar
0 votes
0 answers
28 views

It's not recommended in the current scope to download NSSM, and we have used sc create for other services before. However, it seems that sc create is having trouble actually accessing the API. I've ...
user30589464's user avatar
0 votes
1 answer
49 views

I'm using two excel files (each file for the years 2024 and 2025) and combining the files through Pandas. I discovered this issue when checking the sums that my program outputs and comparing them to ...
Hayden Wilcox's user avatar
0 votes
0 answers
33 views

I want to get the kernel template that cupy uses for its subtract function to compare with my (really simple) kernel: subtract_kernel = cp.RawKernel( """ extern "C" __global__ ...
mle's user avatar
  • 101
-1 votes
1 answer
25 views

I am trying to iterate through a list of Urls find some elements, one of which is a list of other Urls. I then want to, in the same overarching loop iterate through the second list of Urls and find a ...
Nip's user avatar
  • 57
0 votes
0 answers
13 views

I have been trying to test OTEL auto instrumentation for Python and been having trouble getting metrics, traces, and logs to all be properly exporting consistently. I have been attempting this will ...
Shane Sanborn's user avatar
-1 votes
0 answers
24 views

I want to paginate over potentially thousands of objects. I want to offer users a list of buttons they can pick. The list depends on a search of a database and the number of buttons could be between 0 ...
pileofrogs's user avatar
Best practices
0 votes
2 replies
16 views

I’m building a backend workflow runner where each job is a sequence of steps (mix of pure compute and side-effects like HTTP calls, DB writes, file uploads). If the process crashes mid-step, the job ...
Bodhi Silberling's user avatar

15 30 50 per page
1
2 3 4 5
147224