Recently Active Questions

0 votes
1 answer
27 views

interactiveDismissDisabled prevents the user from quitting the app?

I'm building a macOS app with SwiftUI and I have a modal I want to show users that must not be dismissed. interactiveDismissDisabled seems like the perfect fit for my use case (and indeed it works ...
0 votes
1 answer
16 views

Why does pd.to_datetime('2025175', format='%Y%W%w') and pd.Timestamp.fromisocalendar(2025, 17, 5) gives different output?

Why does pd.to_datetime('2025175', format='%Y%W%w') and pd.Timestamp.fromisocalendar(2025, 17, 5) gives different output? I expected to obtain Timestamp('2025-04-25 00:00:00') for both cases. But the ...
0 votes
1 answer
10 views

Ag-Grid: Return "default" group cell renderer

I have an ag-grid with grouping using the "singleColumn" group styling. I want to use a custom renderer in my group column, but I only want it to be applied to the "individual" ...
0 votes
0 answers
6 views

How to export chart in Excel with text boxes

I have a chart in Excel which consists of a chart object called "Diagram". On top of this are added som text boxes with explanatory text. When I output with the Chart.Export method, the ...
91 votes
3 answers
118k views

What is the purpose of "pm2 save"?

I am using pm2 to manage my node.js processes. Very happy with it so far. What is the purpose of $ pm2 save? What is the purpose of saving a process list? I don't quite understand from the ...
0 votes
0 answers
2 views

Clarify template usage for nested secret paths in InfisicalSecret CRD

I'm using InfisicalSecret to manage Kubernetes secrets in my cluster, and I'm organizing my secrets in nested folders such as /be/core/auth/DB_USER. However, it's not entirely clear from the ...
0 votes
1 answer
7 views

C++20 Constexpr vector

The latest C++20 standard supports dynamic allocation memory in compile time with a limitation. The memory allocation cannot “go outside” the constant expression. That means that vector cannot be ...
837 votes
31 answers
1.8m views

How do you round UP a number?

How does one round a number UP in Python? I tried round(number) but it rounds the number down. Here is an example: round(2.3) = 2.0 and not 3, as I would like. Then I tried int(number + .5) but it ...
0 votes
0 answers
11 views

Why my "defineConstant" in pyrightconfig.json does not work in VSCode

In VSCode, my "defineConstant" does not work. For example, "defineConstant": { "__dev__": true, }, But __dev__ in my code is still warnning in VSCode. View Problems: ...
-1 votes
0 answers
14 views

How to create a function to determine the current school grade based on graduation year and month

I'm trying to create a function in TypeScript like the one below: getSchoolGradeLabel(gradYear: number, gradMonth: number): string This function takes the graduation year (gradYear) and graduation ...
2 votes
2 answers
14k views

How Can I Upload Multiple Files In MVC ASP.NET

With this code, I am able to just upload one file, but in my case I need to upload multiple files at once. How can I modify it to upload multiple files at once? This is my Controller code: public ...
3 votes
1 answer
4k views

How to initialize a set and print an empty set {} in python?

I tried x={} but this gives a dict I also tried x=set() but when I do print(x) it gives output as set() and not {} How do I initialize and print a set such that if it is empty then it should show {} ...
24 votes
1 answer
57k views

How to add doubleclick event to Canvas element using the "AddEventListener" method?

I'm just trying to add a double click event to a HTML5 Canvas element. It works fine with: myCanvas.ondbclick However, I want to use the addEventListener method to do that. I guess it might be a ...
11 votes
4 answers
8k views

LINQ in win32 DELPHI

Is it possible to use LINQ in win32 DELPHI applications
0 votes
0 answers
6 views

How to setup SQL-Server 2022 Express in Azure Pipeline

I try to install a SQL Server 2022 Express in a Azure Devops Pipeline (windows-latest). What I've tried: Use SQL-Server docker file => fails as im not running the pipeline on linux. Use choco ...

15 30 50 per page
1
2 3 4 5
1615880