Newest Questions
24,143,656 questions
Score of -2
-2
votes
0 answers
0
answers
16 views
16
views
Lambda in max returns weird value
Why does the code
L = [1, 2, 10, 4, 3, 191, 14, 1]
print(max(L, key=lambda x: x % 2 == 0))
print 2 and not 14? The way I see it it should return the largest even number. But Python doesn't think so ...
Score of 0
0
votes
0 answers
0
answers
9 views
9
views
Invalidate strings that contain spaces, numbers and letters, but end with space and number, with regex
I am making a form that has street name and street number in separate fields and I want to validate them. How do I validate that a string has spaces letters and numbers, but doesn't end with space and ...
Score of 0
0
votes
0 answers
0
answers
7 views
7
views
how to trouble shoot in stm 32
Program received signal SIGTRAP, Trace/breakpoint trap.
WWDG_IRQHandler () at ../Startup/startup_stm32f411ceux.s:117
117 b Infinite_Loop
(gdb) how to fix this isuue in stm 32 ...
Score of 0
0
votes
0 answers
0
answers
14 views
14
views
The Cloudinary image upload returns 403 when uploading a profile image with Multer and Express
I am practicing a PERN stack backend project using Prisma ORM, and I am implementing user registration with a profile image upload.
I am using:
- Node.js
- Express.js
- Prisma ORM
- PostgreSQL
- ...
Score of -1
-1
votes
0 answers
0
answers
11 views
11
views
Tailwind interferes with default button style
globals.css:
@import "tailwindcss";
:root {
--background: #ffffff;
--foreground: #171717;
}
@theme inline {
--color-background: var(--background);
--color-foreground: var(--...
Score of -1
-1
votes
0 answers
0
answers
12 views
12
views
Playwright Fixture Run In Order and Fixtures Options
I coded a simple Playwright test where I have a storage state login and searchFix.ts.
I want to have my test code running the login follow by searchFix.ts and the rest of my code.
searchFix.ts
import {...
Score of 0
0
votes
1 answer
1
answer
25 views
25
views
Powermail settings not changing in sitepackage setup?
I am making a site package for TYPO3 13, and in it I need to override some Powermail settings eg. checkClasses, but the settings are not working.
Configuration/Sets/SitePackage/setup.typoscript:
...
Score of -3
-3
votes
0 answers
0
answers
32 views
32
views
What are the most useful Node.js commands every developer should know? [closed]
I'm looking for a comprehensive list of useful Node.js commands that developers commonly use in day-to-day development.
Score of -4
-4
votes
1 answer
1
answer
34 views
34
views
Explain the difference and similarity between two code blocks [closed]
Code block 1 is repeat (10)
Code block 2 is forever
Explain how they are different and how they are similar
Score of -2
-2
votes
0 answers
0
answers
11 views
11
views
Keeping state (connections) alive with Cloudflare workers
At work I built a custom datastore / multimodel database on top of io_uring and Rust, which I would like to expose to the public via Cloudflare workers. Unfortunately there is a cost in setting up a ...
Score of -3
-3
votes
1 answer
1
answer
29 views
29
views
I have a working docker-compose.yaml - what specifically will kompose convert NOT carry over into production-grade Kubernetes manifests?
I have a compose.yaml that works fine locally — app plus Postgres, with depends_on, a build: section, some bind mounts, and env vars for credentials. I'm moving this service to Kubernetes and found ...
Score of 1
1
vote
0 answers
0
answers
21 views
21
views
Qt QCheckBox indicator checkmark not visible with custom stylesheet
I'm building a Qt 6 application with a custom theme. I'm having trouble getting the
QCheckBox indicator to display a visible checkmark when checked.
Here is the relevant code:
app.setStyleSheet(
&...
Score of 0
0
votes
0 answers
0
answers
11 views
11
views
PowerShell .ForEach() method
I tried to reproduce an example from the MS page: about_arrays
The five lines of code are:
$myObject = [pscustomobject]@{
singleValue = 'Hello'
arrayValue = @(0..10)
}
$myObject.ForEach('...
Score of -3
-3
votes
2 answers
2
answers
65 views
65
views
How to use a list in a pattern in re.match
I'm making a program to automate a task, and at some point in it I need to use a list comprehension [f for f in ...] to make a list, and I want to use re.match() or re.search() to compare the files in ...
Score of -4
-4
votes
0 answers
0
answers
60 views
60
views
Why do I get a syntax error "Expected ')'" from my compiler but the syntax is correct? [closed]
I have created a 'baregear' named compiler for easier to readable, writable, and baregear automatically implement 'prevent user from unexpected crashes of software without any correct feedback' ...