All Questions
24,206,836
questions
-1
votes
1
answer
10
views
jar file is not generated in my spring project
My name is Alex. I am learning spring and I have already completed a project. Now I want to upload it to the internet and publish it in my portfolio. However, when I give the following command in cmd: ...
0
votes
0
answers
42
views
How to ensure non-async portion of async function executes before view assignment?
I have following (simplified) model:
struct PostDetailResponse: Codable {
var post_detail: PostDetailContent
}
struct PostDetailContent: Codable {
var userHasLiked: Bool?
enum CodingKeys: ...
0
votes
0
answers
7
views
Figuring out the difference between cv::imread / cv::dnn::blobFromImage and QImage
I have the following image loading code (example: to feed YOLO recognition algorithm) which works:
cv::Mat image = imread(image_path, cv::IMREAD_COLOR);
cv::Mat blob = cv::dnn::blobFromImage(
image,
...
3
votes
2
answers
712
views
Building a Public GitHub Repository using Azure DevOps
How do I build a Public GitHub repository using Azure DevOps as part of my Build Pipeline? For example, I use an Open Source toolkit such as SonarQube I'd like the SonarQube deployed using Continuous ...
0
votes
1
answer
20
views
How to Remove the "Series1" Label from a Pie Chart in "openpyxl" in Python?
I'm using openpyxl to create an Excel file that includes a pie chart. However, I can't seem to remove the default "Series1" label from the chart. I have included the entire export_to_excel ...
0
votes
1
answer
7
views
Decreasing Unity resource usage when sitting in a menu
I was wondering if there is any way to lower the amount of resources that Unity uses when its ostensibly not doing anything - such as sitting in a menu that isn't animated. This is something that ...
1
vote
1
answer
249
views
Using Inotify and/or epoll to monitor processes terminating, perhaps using the /proc/<PID> directory
Have an issue where we want to be able to receive an event in one process if another, unrelated process terminates. The first process is sent the PID of the second process. The first process allocates ...
0
votes
0
answers
21
views
cannot access class com.sun.tools.javac.api.JavacTrees (in module jdk.compiler)
I have customized an annotation handler using java21. The pom file of the project where the annotation processor is located is shown below:
<project xmlns="http://maven.apache.org/POM/4.0.0&...
1
vote
3
answers
9k
views
How to enable Android-14 'Accessibility' Restricted Setting?
In Android 14, we utilized the 'Accessibility' service API in our application. However, this option is not available by default. After clicking "OK" on the 'Restricted Setting' dialog, we ...
0
votes
0
answers
3
views
Idle object detection with how much time it is idle using opencv
Opencv is used to detect the objects that are in motion. But, can we detect the objects which are not moving instead of the moving objects with the time stamp that how much time the object is idle?
I ...
0
votes
0
answers
2
views
Unity runtime-created Particle system graphic bug
To create Explosions in my Unity Game, I pool 3 runtime-configured particle systems, with the stop-action equals to disable (so I can pool all disables particleObjects);
I do something like this:
...
3
votes
1
answer
10k
views
"npm install @azure/msal-browser @azure/msal-angular@latest" but nothing inside of node_modules
I'm trying to include Azure AD for the login, but after running npm install @azure/msal-browser @azure/msal-angular aswell as npm install @azure/msal-browser @azure/msal-angular@latest no new entries ...
0
votes
3
answers
11k
views
Workbooks.Activate not working on some computers
I ran into a strange Excel 2013 VBA behavior today and felt posting the solution to the problem may help someone else in the future.
The following command worked fine on my computer and most others ...
4
votes
2
answers
17k
views
How can I load cross domain html page with jQuery AJAX?
How can I load cross domain HTML page with jQuery AJAX?
Suppose I want to get a page outside my domain using jQuery AJAX:
$.get('http://www.domain.com/mypage.html', function(data) {
alert(data);
})...
0
votes
1
answer
15k
views
Display selected range of cells in Textbox1
I am facing an issue while trying to display a selected range of cells from Excel to a UserForm textbox, say C1:E14. The code below is giving me an Runtime error '13' Type Mismatch:
Private Sub ...
0
votes
0
answers
17
views
Problem With Adding SFML 2.6.1 To Dev C++ (Linker Error)
I'm trying to add SFML 2.6.1 to Dev C++ (I use Windows 7). I added lib and include to Libraries and C++ Includes in Compiler Options; and added "-lsfml-graphics -lsfml-window -lsfml-system" ...
0
votes
1
answer
1k
views
Parsing KML/XML with ElementTree library
I would like to parse the "ID2" name attribute found in the SimpleData tag utilizing the ElementTree python library.
<Placemark>
<ExtendedData>
<SchemaData>
...
0
votes
0
answers
12
views
Protobuf parse message fields one at a time
I am familiar with the protobuf wire format where the designers chose not to include the size of the serialized message on the wire.
I am also familiar with the strategies to deal with it from scratch:...
-1
votes
0
answers
16
views
C# reading large file data of leads to memory leak
I have a file having 2500000 lines. each line has this format data : -946.469900574903,2024-07-03 15:56:20.562891
I am reading this file in chunks of every 25000 lines, i.e 100 times ...
1
vote
1
answer
318
views
Clang-format _Pragma("once") indent move side effect
I think clang-format have some kind of problem with directive _Pragma("once") vs #pragma once - please see example below - namespaces indent changes depending on the pragma directive type ...
0
votes
2
answers
20
views
Most idiomatic way to mutate multiple similar columns?
I'm generating multiple columns in a mutate() call, all by using a function of 1) an already-existing column and 2) some value which is different for each output column. The following code produces ...
-2
votes
0
answers
11
views
when two scripts use parse_string, the game crashes
I don't really want to show my code here since I've already found the problem. I just want to know how I should fix this or if there is another way to read the JSON file.
The error message is ...
-1
votes
0
answers
8
views
Existe una forma en Excel para poder copiar (Casilla Control de Formulario) "n" cantidad de veces con la celda vinculada correspondiente? [closed]
Estoy creando un hoja de Excel que me permita llevar la asistencia de aprendices, esta hoja de Excel tiene el listado de estos y he colocado un control de formulario tipo Casilla de verificación (No ...
1
vote
1
answer
16
views
Return Value Empty When Searching with Milvus
I was attempting to create a Milvus collection using this function below
def __generate_collection(self):
if self.collection_name not in self.milvusClient.list_collections():
schema = ...
0
votes
1
answer
29
views
I want to return the max value of a row and then return the header in Power Query
I want to be able to return the maximum date of a row, but I want to return the heading of the column rather than the actual date. But, I want it to write the heading instead of the date. For example,...
5
votes
2
answers
434
views
Background crash: _SwiftData_SwiftUI: one-time initialization function for empty
I'm using SwiftData & SwiftUI and my App keeps crashing in the background. I sadly can't reproduce it, I'm only seeing the TestFlight crash reports.
These are my observations so far:
Having ...
0
votes
0
answers
10
views
(JavaScript) How to set a weekday as the starter and ender of a countdown instead of using an specific/static date?
So, I have this personal project that I'm trying to do more for studying purposes. It would be two timers to monitor two different events in a week, in which one would countdown the remain time of a ...
0
votes
0
answers
7
views
Python Pandas multi-indexing across column levels using .loc
I am still new to python and pandas and want to know if there's a better way to go about the indexing problem I'm having. Since I've seen people doing pretty slick things on this site, beyond what I ...
1
vote
1
answer
32
views
A strange behavior when checking `extends ReadonlyArray<any>`
See code:
https://www.typescriptlang.org/play/?#code/...
0
votes
1
answer
15
views
Nested thread_local variable
When declaring static thread_local variable, then each thread has a copy of that variable. Imagine a thread then spins another thread, will this variable still be a copy in the nested thread?
0
votes
0
answers
9
views
How to avoid deadlock / hang when using SwiftData and @Observable?
I'm curious if someone will easily spot my mistake here. I've got a problem where my App hangs during a call to sleep. My best guess is that this is a deadlock caused by using SwiftData and @...
0
votes
0
answers
5
views
Need to test an async function that contains multiple async calls. How to mock these calls?
I have a function I need to test
example:
async def post(self):
#bunch of calls
try:
var = await another_func(x, y) #returns int value
if var != 1:
raise exception
...
0
votes
0
answers
5
views
Creating sprinting and stamina mechanic in 3d Godot game
I’m creating a 3d doom like game and I want to create a sprinting mechanic that will lower the stamina bar, then once that bar reaches 0 it should stop you from sprinting.
My current code:
Player.gd
(...
0
votes
2
answers
39
views
Warp crate error. Trying to configure server in Rust for HTTPS, but "Identity PEM is missing"
So I'm applying my certificates to my server, but a runtime error is occurring:
thread 'tokio-runtime-worker' panicked at /home/ubuntu/.cargo/registry/src/index.crates.io-6f17d22bba15001f/warp-0.3.7/...
-1
votes
0
answers
57
views
+150
macos-14 github runner: how do I launch my app
I am using github actions macos-14 arm64 runner to test building of an app, followed by a test launch for verification. (This is to enable regression testing.)
On x86_64 runners this works ok:
- ...
0
votes
0
answers
7
views
Why jenkins setup is not responding after the below mentioned step
The Jenkins setup window is not working after the destination screen
i just need to install the jenkin on windows
i downloaded the jenkins for windows setup and tried to install but i couldn't able to ...
0
votes
1
answer
18
views
Predicate macro doesn't build with Array.contains()
DocumentModel contains tags relationship to TagModel. A View receives selectedTag. Predicate (as part of @Query) should filter documents that have given tag.
let selectedTag = TagModel()
#Predicate&...
0
votes
0
answers
17
views
How do I prevent my header from changing when the screen gets smaller?
I've installed a Wordpress theme where the menu items of the headers go onto multiple lines when the screen size gets smaller. Only when the screen gets too small, it goes to the (mobile) hamburger ...
0
votes
0
answers
11
views
+500
How do you change the global shadow colour in Angular Material
I would like to change the shadows across an entire Angular material theme. Please note that this is not the same as changing the shadow under a specific element, e.g. a card, which has been asked ...
0
votes
0
answers
9
views
failed in boost::filesystem::abolute(root_path).lexically_normal();
Got almost nutty about a failure which I spent two days but still cannot find out the reason
It failed in fs::abolute(root_path).lexically_normal(); where root_path=C:\Users\myname\Documents\. I am ...
18
votes
6
answers
26k
views
How can I prevent scanf() to wait forever for an input character?
I want to fulfill the following things in a console application:
If user inputs a character, the application will do the
corresponding task. For example, if user inputs 1, the program
will do task 1, ...
0
votes
0
answers
7
views
How to provide auto scaling for CollectionView in Popup object from CommunityToolkit.Maui, after filling it by button clik event on Windows platform?
I am trying to provide auto height adjustment for CollectionView object in toolkit:Popup. In the popup there are some header, entry and button which invoke command to fill the CollectionView bellow it,...
0
votes
1
answer
10
views
is there a way to share /dev to guest in qemu
In our environment, the host machine dynamically generates some character devices in /dev. Is there a way to share /dev to guest in qemu?
0
votes
0
answers
6
views
Title: Improving Performance for Netting and Settlement Cron Job in Spring JPA
I am working on a netting and settlement process in the banking and finance sector. Specifically, I need to run a cron job every 4 hours and 15 minutes to retrieve data from the transaction table for ...
0
votes
2
answers
61
views
How to make PowerShell `Select-String` aka `sls` output exact match(es) only?
In a PowerShell script, I would like to check if a branch exists locally already, which I'm currently doing as $existsInLocal = (git branch | sls $branch) -ne $null, but that's incorrect because sls $...
8
votes
8
answers
43k
views
How do I uninstall android studio in Ubuntu 20.04
I download Android Studio - Arctic Fox | 2020.3.1 from their official website in my ubuntu 20.04 LTS.
My installation Process:
I downloaded the zip file and extracted it.
I cd into the /bin/ directory ...
0
votes
0
answers
6
views
how to iterate through a *.shp file and plot a fraction of the total available shapes in folium
m = folium.Map([53, -113], zoom_start=8, control_scale=True)
minimap = plugins.MiniMap()
m.add_child(minimap)
map_shape = gpd.read_file("some_huge_shape_file.shp")
import random
def ...
-3
votes
0
answers
25
views
Can I write a library to preload in C++? Is there anything I need to do other than prepend `extern "C"` to the functions to intercept?
I am working on a personal project where I need to intercept Linux APIs like open(), read() etc, and I would like to do some data analysis on them. I would need to keep a C++ data structure std::map ...
-1
votes
1
answer
14
views
Cannot find external header included in a cmake built library
I have a very simple library with the following dtructure:
src
- myLib.h
- myLib.cpp
App
- testApp.cpp
CMakelist.txt
cmake_minimum_required(VERSION 3.10)
project(Testing)
# JSON
find_package(...
0
votes
0
answers
6
views
What validation does IQueryProvider.CreateQuery need to perform to ensure that it can evaluate the expression argument?
From the docs for the IQueryProvider.CreateQuery method:
CreateQuery(Expression):
Constructs an IQueryable object that can evaluate the query
represented by a specified expression tree.
How the ...