Newest Questions
24,189,459 questions
0
votes
0
answers
6
views
Why is my Python loop only printing the last value?
result = [ ]
for i in range(5):
value = input("Enter number: ")
result = value
print(result)
0
votes
0
answers
4
views
Discord.py logging in multiple times when restarted
I'm working on a project that has a Discord client running in a background thread to listen to incoming messages. I noticed each time the client is stopped & restarted, it logs in 1 extra time, as ...
-3
votes
0
answers
24
views
Unexpected regex behavior
re.search(
r"(\d{1,4}[^\d:]{1,2}\d{1,4}[^\d:]{1,2}\d{1,4} | \w{3,10}.{,6}\d{4})",
'abc2024-07-08'
)
Why does this regex extract the second pattern, "abc2024", not "...
-1
votes
0
answers
16
views
cannot convert from '__XamlGeneratedCode__.__Type0E459CAF0A856A27' to 'Microsoft.Maui.Controls.Element'
Severity Code Description Project File Line Suppression State
Error (active) CS1503 Argument 1: cannot convert from '_XamlGeneratedCode_.__Type0E459CAF0A856A27' to 'Microsoft.Maui....
0
votes
0
answers
16
views
Android AccessibiltyService : How can I enabling perform action on a sealed instance
I am using AccessibilityService in AndroidStudio for an app which is going to access an another app. In a view there is not available actions of "ACTION_CLICK". Its sealed and I am getting ...
-4
votes
0
answers
23
views
How to efficiently validate and sanitize large CSV datasets without blocking UI? [closed]
I'm building a data quality tool in React/TypeScript that allows users to upload CSV files (10,000+ rows) and validate/clean the data before processing. I need to handle client-side validation without ...
0
votes
0
answers
12
views
How to get the index of the wp-each directive in Interactivity API Wordpress?
I am learning interactivity API and when I tried wp-each directive, I noticed that there is no way to get the index of the array. e.g. If this is my array
$config = [
'fruits' => [
[
'...
-1
votes
0
answers
10
views
How deploy trained model on react native mobile application?
I have a project of leaf classification, I already have trained model so i want to integrate the model to through mobile application using react native does anyone know how to make it possible?
Best practices
0
votes
0
replies
16
views
Creating a PDF of webpage
i have one audit module which i need to implement in which i have to create one pdf of single webpage, pdf should consist 5 pages which devides my webpage (there is seperator lines in ui of that ...
Advice
0
votes
0
replies
23
views
Why is FileReader as efficient as BufferedReader in reading 1KB chunks of data?
I was trying to read data (chars) from a large text file (~250MB) in 1KB chunks and was very surprised that reading that file using either FileReader or BufferedReader takes exactly the same time, ...
-1
votes
0
answers
13
views
How to format a partition in Red Hat Enterprise Linux? [closed]
I’m new to RHEL and Linux system administration. I have a disk with an existing partition that I want to format, but I’m not sure what the correct and safe steps are.
What is the recommended way to ...
-3
votes
1
answer
28
views
How to make flutter calculator [closed]
Title: Flutter Calculator Layout Issue - Buttons Not Displaying Correctly
Description:
I'm building a calculator app in Flutter and facing layout problems with the button grid. The calculator ...
-3
votes
0
answers
18
views
I need this audio plsyer . what player is this [closed]
site :https://onlineradiofm.in/stations/vividh-bharati
I need this audio player for my fm radio site . What is this player script and name . Where do i get it? Thank you for your help
if only Euuph ...
0
votes
0
answers
17
views
What happens when uploading a large file from client browser to my Spring boot server if I delay reading the multipart file from input stream?
Context: I am trying to build a Spring Boot application and have exposed a REST api endpoint to upload files(as large as 1 GB).
Question: Since the data transfer for a multipart file happens in chunks ...
Best practices
0
votes
0
replies
11
views
How to correctly implement a global redirect/navigation guard in Expo Router?
I’m trying to implement a global <Redirector /> component in Expo Router to control the navigation flow of my app.
The logic depends on:
Authentication state
Whether the user completed ...
0
votes
0
answers
11
views
svyCreateTableOne cannot process factors
I tried to produce a table 1 from a code which worked perfectly well a year ago, but doesn't work now.
Here a simple example :
library(tableone)
library(survey)
age<- c(55,66,77,33,44)
gender<-c(...
Advice
0
votes
0
replies
12
views
SPA framework output access without node or any server setup?
New SPA frameworks like React, Angular, Vue etc. Requires running node js server. But is there any way to run "output" (code generated after transpilation step) without running any server, ...
0
votes
0
answers
11
views
Autodesk Viewer - setThemingColor not working without Object Tree loaded
I'm trying to run setThemingColor before the properties are loaded and the object tree is available, since I don't need the recursive option to be true.
However, the coloring doesn't seem to be ...
0
votes
0
answers
29
views
What are examples of non-finite float values other than infinity and NaN?
C23 §5.2.5.3.3 [Characteristics of floating types <float.h>] paragraph 8 says:
Floating types shall be able to represent signed zeros or an unsigned zero and all normalized floating-point ...
0
votes
0
answers
13
views
Azure Durable functions in Running state for durable entities
I'm troubleshooting why async tasks within the durable entity hang forever. My entity looks like this
public MyEntity : IMyEntity {
[JsonIgnore]
private MyService _myService;
[JsonProperty]
public ...
0
votes
0
answers
30
views
how to read_html https://finngen.gitbook.io/documentation in r
I use
read_html("https://finngen.gitbook.io/documentation")
with error
Error in open.connection(x, "rb") : cannot open the connection
however i can oepn https://finngen.gitbook....
-1
votes
1
answer
24
views
How to systematically untrack build files from a git repository?
Branch x in my git repository contains the undesired build files. It happened because I do not separate build directory from the source code and I git add-ed the build files. The main branch is in a ...
0
votes
0
answers
22
views
Focus border on grid cell with overflow: hidden
I'm trying to draw a focus border on a grid cell.
First, I tried outline with offset. Almost perfect, but left and top borders aren't covered.
Then I tried with box shadows (also with inset). Here I ...
0
votes
1
answer
33
views
How Can I use i20 Sidebar Widgets WordPress plugin multiple times in my Blog pages?
i installed this wp plugin in my Blog. I want to use this Shortcode plugin multiple times in Category and tag pages but the Shortcode is working Same for all pages. How can I change width and height ...
0
votes
0
answers
16
views
Noiseless Gausian Proces regression not crossing the training points
I'm trying to perform a Gaussian Process Regression on the following series of data points (X and Y):
X Y
0.00001 -6.8200000000000003
0.00014 -6.8073846153846160
0.00042 -6.6818333333333326
...
0
votes
0
answers
14
views
Animating Svg path in the desktop compose app flickers without actually rendering anything. Why?
I am trying to create a path animation of Svg in the desktop compose app.
fun SvgDocument.drawCompletedFills(buildPaths: List<BuildPath>, drawScope: DrawScope, canvas: Canvas, targetLength: ...
0
votes
0
answers
29
views
Transparent, unfocusable and clickable BrowserWindow in Electron
I am creating a button that is clickable but doesn't bring the app to the foreground. To achieve this I implemented the button as a separate BrowserWindow with focusable: false and its parent set to ...
Advice
0
votes
0
replies
22
views
How can I integrate the Computer Use API to enable AI-powered navigation and actions within my own application?
I'm building a voice-assisted navigation feature for my app that would allow users to:
Navigate between screens/pages using voice commands
Have an AI agent take actions on the current page (clicking ...
0
votes
0
answers
22
views
Macro for auto-mining 24x24 area in Minecraft 1.8
I need an advice which programming language is suitable in this situation. I need a macro/script that will dig a 24-block-long, 24-block-wide, and 24-block-deep mine. The blocks break instantly, and I'...
-1
votes
0
answers
16
views
JavaFX Desktop Application. Executable for windows
Guys, I really need some guidance. I’ve written a lot of code and classes in IntelliJ IDEA for my JavaFX application, but I’m running into serious difficulties when trying to turn it into an ...
0
votes
0
answers
14
views
CSS Flexbox Issue
I have a container with multiple items displayed using CSS Flexbox, with flex-wrap: wrap and justify-content: center so that the items are visually centered and wrap responsively. Each item has a ...
Advice
0
votes
0
replies
19
views
Adding stack information to jit'd code for sanitization
Disclaimer: I'm expecting that the answer to this question will be that it can't be done, but I'm asking as a just in case.
I am working on a JIT'd language with the compiler and runtime implemented ...
0
votes
0
answers
12
views
How can we retrieve the flows associated with a specific list from the current site?
We have developed a SharePoint Framework (SPFx) application for customizations and are using @pnp/sp to perform GET/POST operations on SharePoint lists.
Our system sends email notifications through ...
-1
votes
0
answers
47
views
How to make "npm audit fix" fix vulnerabilities if it does nothing even there is "fix available via `npm audit fix`" message?
Executing the npm audit. It will be enough to show just last three issues - all of them has "fix available via `npm audit fix" message:
All dependencies mentioned above are transitive ones, ...
0
votes
0
answers
29
views
how to only strip types using swc cli or rust library [closed]
Playground has an option to strip types only, which removes the types but line and column numbers of everything else remain same.
How can I replicate this behaviour with swc cli or from rust code ...
0
votes
0
answers
19
views
Is it possible to modify existed .task file?
I'm studying & trying to use mediapipe
I want to modify the Android project face-landmarker
I want to modify the graphs & parameters of landmarker by modifying the .task file. By this way:
...
Advice
1
vote
0
replies
34
views
How do I make an authenticated request from my Next.js API on Supabase with RLS enabled?
In my case, I only want authenticated users to perform a SELECT query on my database, so I set up my RLS Policy for this scenario. This is where I am hitting an issue. With RLS enabled, I need to let ...
0
votes
0
answers
23
views
How to manage DTO proliferation for different API operations
I'm having trouble managing DTOs.
I'm working as follows: I have a reusable DTO called PhoneResponseDTO that is used in both findAll and findByID. Then I created a DTO for each operation like Created, ...
Tooling
0
votes
2
replies
45
views
Which IDE and tools for gcc C development?
Which IDE and tools are best suited for gcc C development? I currently use vscode and the tried using the ms-vscode.cpptools extension which "supports" gcc C. But extensions like nested ...
-1
votes
0
answers
33
views
Restarting backend container became unreachable for traefik(504 Gateway timeout)
I’m having a problem and I can’t find a solution.
I have deployed a Django backend and a React frontend using Docker.
I’m using Traefik as a reverse proxy for the web server. When I start Traefik, the ...
Advice
0
votes
0
replies
15
views
Deploying embedded Javascript to a remote server
I am an experienced programmer, but am new to Web Development. I have become familiar with several technologies, including embedded Javascript, which I would like to use for my employer's project. ...
0
votes
0
answers
29
views
How to correctly call an iOS completionHandler block from Delphi without crashing?
I’m trying to implement this iOS delegate method in Delphi:
- (void)URLSession:(NSURLSession *)session
task:(NSURLSessionTask *)task willBeginDelayedRequest:(NSURLRequest *)request ...
Best practices
2
votes
1
replies
26
views
Docker - how to launch a container with non-variable name?
I launch a container in docker (using powershell) by running the first command however I have a couple other operations I need to do on start-up like connecting the gotenberg to a network.
The ...
Advice
2
votes
5
replies
70
views
determine cpu after c++ compilation with gcc?
Does anyone know if there is, in c++, any way to determine at runtime the cpu characteristics of the machine that compiled the code? For example, in gcc (which I'm using) the preprocessor variable ...
-5
votes
0
answers
39
views
How should I approach my CSV cleaning project for my OCBC bank statements? [closed]
I am new to programming, and I am trying to start a project on cleaning my CSV file into different formats that I want. How should I go about doing that, and what resources can I use to do it?
-2
votes
0
answers
16
views
Where can I manage my database when running Laravel without XAMPP? [duplicate]
I just realized that Laravel can run without starting XAMPP, which confuses me. I’m used to monitoring my database through phpMyAdmin, but since I don’t run XAMPP when using Laravel, I’m not sure ...
Advice
0
votes
1
replies
29
views
How to have a hover Sound in Dear ImGui
How do I add:
menuSound.loadSound("hover_sound", "Audio/Sound/button_hover_sound1.wav", 0.5f);
sound effect to all button in ImGui, so that when the mouse hover over them it will ...
1
vote
0
answers
12
views
How to diagnose differences between versions of .so file to understand different linker behaviour?
I have a pre-built image of a shared library, and that library implements main() with something like:
int main(...) {
bootstrap(...);
return 0;
}
bootstrap(...) {
/*...*/
sc_main(...);...
0
votes
1
answer
53
views
How to remove a css border from a twitter embed?
There is a grey border around all embeded tweets but I want to remove it and add round corners too. But because its in an iframe i have no idea how to remove the border.
<blockquote class="...
-2
votes
0
answers
21
views
How Calculate PostHoc Power and Effect Size for all Numeric Columns in Python
I generated a random dataset that has 1 categorical column and 30 numeric columns. The categorical variable has 3 classes X, Y and Z. See data generation code below
I need help with Steps 2,3 and 4:
...