Newest Questions
24,215,322 questions
1
vote
0
answers
11
views
How to create and apply a new layout with _Imports.razor's directives then embed this into existing templated authorization project?
I'm unable to separate the Login.razor, Register.razor, ForgotPassword.razor, and ResendEmailConfirmation.razor components from the MainLayout.razor layout properly. I am using _Imports.razor to ...
0
votes
0
answers
13
views
Can't get gtest to run in VS Code
I created a super simple C++ project to practice writing some sorting algorithms. I want to create some simple unit tests for my the algorithms to confirm correctness.
My code directory is as follows:
...
0
votes
0
answers
10
views
C++ class template with conditional data members
Consider the following C++ code.
#include <iostream>
#include <set>
#include <string>
enum class Field { kX, kY };
std::string ToString(const Field f) {
switch (f) {
case Field:...
0
votes
0
answers
6
views
In git PR i see a file without any change, how to fix this?
In git PR i see a file without any change, how to fix this?
I tried to replace the source branch file in another branch created from target branch in changes i see no diff/changes made in file.
still ...
0
votes
0
answers
10
views
How do you list all pods of a specific type using kubectl?
In the past I would use something like this
kubectl get svc --field-selector spec.type=LoadBalancer
kubectl get svc --field-selector spec.type=ClusterIP
However this stopped working when I updated ...
-1
votes
0
answers
10
views
React Mixed Content
I have deployed an API server and a client to azure containers. The client makes HTTPS requests to the API URL, This URL is set both at build time and as env variable, following the REACT_APP_API ...
0
votes
0
answers
13
views
Android System Monitoring: ADB polling vs. APK with Socket.IO - Which has lower performance overhead?
I need to collect various system metrics from an Android device, including:
Frame rate (FPS)
Memory usage
CPU frequency
Battery level
Battery voltage
Battery temperature
Battery current
Power ...
1
vote
0
answers
10
views
Usage of the "tuneup" program for the GNU GMP library
I was reading again gmp-man-6.3.0.pdf, and I happened to notice section 2.6 Performance optimizations.
I can read there:
In particular for long-running GMP applications, and applications demanding ...
0
votes
0
answers
12
views
Results of Questionnaire to be downloaded as a spreadsheet
So i have this Model namely Questionnaire in models.py file of a Django project
class Questionnaire(models.Model):
title = models.CharField(max_length=200)
description = models.TextField(blank=...
0
votes
0
answers
15
views
How to override Specific CMSParagraphComponent in SAP Spartacus and inject custom styles/scripts from CMS?
We're using SAP Spartacus as the frontend and fetching dynamic content from SAP Commerce Backoffice. Our CMS team is managing FAQ-style content using the CMSParagraphComponent.
Problem:
The content ...
0
votes
1
answer
16
views
How to extend fixture from the base class?
I'm trying to extend a fixture: that means not only overriding, but partially reusing the old one. For example, in the code below the fixture Test.values uses the fixture values and concatenates lists ...
-1
votes
1
answer
16
views
Using both clang-format and cpplint leads to race condition
How can I resolve this race condition?
Original CPP file content
#include "header/doc.hpp"
#include "header/node.hpp"
#include <string>
#include <cstdint>
#include &...
0
votes
0
answers
17
views
How to scatter plot marker size based on astronomy image data?
For example, in this code I plot a astronomy FITS image:
def displayimage(img, wcs):
fig, ax = plt.subplots(
figsize=(5, 3), layout="compressed", subplot_kw={"projection&...
0
votes
0
answers
19
views
Managing plaid integration for the same institute for different products
I am building an app that is supporting plaid integration. So, far with my research and endless tickets with plaid team it's still a huge issue to make things work.
In my situation, i support pulling ...
0
votes
0
answers
23
views
Any way to know which wallet to be used to sign in One-Click Auth with Reown iOS SDK?
I posted the same question in their GitHub but no response yet so let me ask here too.
I'm integrating Reown iOS SDK to do personal_sign via wallets.
I understand there are One-click auth and Two-...
0
votes
1
answer
32
views
How to Programmatically Style the Google Sheets Sidebar Container with Apps Script
I'm trying to change the background color and font color of the main Google Sheets sidebar container—the frame that holds the title and close button—using server-side Google Apps Script.
I know how to ...
0
votes
0
answers
9
views
Hyperledger Fabric chaincode typescript deploy error "MissingRefError: can't resolve reference Object from id PatientModel#"
I'm working on a smart contract using Hyperledger Fabric with TypeScript. I have the following model
import { Object, Property } from 'fabric-contract-api';
@Object()
export class PatientModel {
@...
0
votes
1
answer
24
views
GitHub updating old PR branch
ALL,
I have about a year old branch with submitted PR.
About 6 month later I tried to pull the latest master in but for some reason didn't finish.
Now I'll try to complete the PR and submit it for ...
0
votes
0
answers
27
views
Getting StopIteration when using HuggingFaceEndpoint with LangChain and flan-t5-large
I'm trying to use the langchain_huggingface.HuggingFaceEndpoint integration to call the "google/flan-t5-large" model from Hugging Face in a LangChain pipeline. Here's my code:
from langchain....
0
votes
0
answers
21
views
How can I click the first div class under a div class in Playwright testing?
new to Playwright Testing here.
Here's my HTML structure, I'd wanna click the first "div.card-body" under "div.position-relative", or even under "div.row".
<div class=&...
0
votes
0
answers
9
views
React Native Android fetch to Ngrok URL fails
I'm building a React Native Android app and trying to send a request to my local backend server, which is exposed using Ngrok the request fails
The Ngrok URL works perfectly in:
Browser,
Postman
Node....
-1
votes
0
answers
17
views
Is assigning a reference to a temporary undefined behavior? [duplicate]
I found this code in the wild. Does it produce undefined behavior?
struct Foo {
Data data;
Foo f1(const Foo&) const;
Foo f2() const {
return Foo().f1(*this);
}
Foo&...
0
votes
0
answers
14
views
How to cache serializable data class to Redis using @Cacheable in spring boot?
I am trying to cache a Kotlin data class(serializable) to Redis, but I am getting this error-
org.springframework.data.redis.serializer.SerializationException: Cannot deserialize
at org....
1
vote
0
answers
14
views
How to get the directory of the published package for Windows Forms application [closed]
I want to get the path of the folder from which the user accesses the application. This is the folder with setup.exe, .application, and the Application Files folder. Everything I have tried in my ...
-1
votes
0
answers
22
views
How to guarantee idempotency while i'm enqueuing?
I'm developing a new feature, that is basically this:
I put a file in the S3.
I set up a trigger that will create an event for new files uploaded.
A consumer will read the message and starts to ...
0
votes
1
answer
29
views
Excel VBA - Is It possible to merge 2 ObjectLists
I have a For Each loop that I'm trying to use with a
For Each objs In Sheets("Categories").ListObjects
Blah blah blah
Next
This works fine. The problem is that there is an outlier ...
0
votes
0
answers
17
views
How to compute the smoothed curve defined by gml:CubicSpline in a WAFS SIGWX Forecast?
I'm studying the gml:CubicSpline smoothing algorithm used in the IWXXM WAFS SIGWX Forecast, based on the WAFS-Example.xml sample.
For example, consider the following GML curve:
enter code here
<...
0
votes
0
answers
21
views
Spring Data - Sharing a common model between a transformer API and persistence layer API
I am working on a Java project where certain xml files are converted to POJOs and then saved to the database in Cassandra. The 2 projects have a common model which are identical in every way. Since ...
0
votes
0
answers
15
views
Both auto-reload and auto-preview stopped working on SNAP OpenSCAD-Nightly
I wish I could explain more succinctly but it makes no sense.
I bought a new computer which had Ubuntu 24.04.2 LTS preinstalled.
From the Snap-Store I installed OpenScad-Nightly latest/edge.
I use the ...
1
vote
1
answer
25
views
Align text bottom with floating images
I'm trying to have my text wrap nicely around two images, but I'd like the text to be aligned at the bottom of it's content (the last line touching the bottom margin of the wrapper).
<!DOCTYPE html&...
0
votes
0
answers
14
views
Error while setting a value using Actuator on kuksa
I am using https://github.com/eclipse-kuksa/kuksa-mock-provider in my local to try. My kuksa broker is up and running fine.
When do GET for a actuator path 'Vehicle.Body.Windshield.Front.Wiping.System....
-2
votes
0
answers
40
views
Template class construction
I'm fairly new to cpp, and stumbled upon this problem.
Suppose I have a template class like below, when I return the typename only in the function it seeems like the template class gets constructed. ...
0
votes
0
answers
15
views
What is the equivalent of Android Toast on iOS in Expo/React Native?
What is the equivalent of Android Toast on iOS in Expo/React Native?
In Android development, the Toast component is commonly used to display short, unobtrusive messages to the user. What would be the ...
0
votes
0
answers
18
views
VSCode: Highlighting active "section" (e.g. explorer sidebar vs. main editor vs. bottom terminal/output/problems/etc)?
First, please note I'm not sure of the proper terminology, so by "section", I mean, for example, the explorer sidebar, or the main editor, or the thing containing terminal, problems, etc.).
...
-1
votes
0
answers
23
views
Can npm modules be shared between environments?
I have a project that involves developing a website using NodeJS, and I've just run into a bit of a problem regarding my bad habit of jumping back and forth between Windows and WSL. I don't like ...
1
vote
0
answers
27
views
How to build multiple HTML entry points with TypeScript injection and nested output folders in Vite?
Background
I'm migrating a complex multi-page application from Webpack to Vite. Each HTML file has a corresponding .ts script, and the files live in nested directories.
Note: These entry HTML and TS ...
0
votes
0
answers
23
views
Delphi 12 localization tools are gone
I have a huge project where I was using Delphi 11.x and its embedded localization tools, like menu "Update localized project" and I could compile a DLL that contains all I need to localize ...
0
votes
1
answer
21
views
Expect script handling ssh key
I have script for running ssh, and it's running well when connected to new ssh version, the problem is when connected to old devices and still using diffie-hellman-group1-sha1. this is my script
spawn ...
-1
votes
2
answers
46
views
How to implement a method that receives two strings and displays a message with the longest string and its length, respecting the restrictions
How to implement a method that receives two strings and displays a message with the longer string and its length, without using if, switch or ternary operators?
-4
votes
0
answers
72
views
Write a program that uses dynamic programming to solve the following problem. Find the point closest to P [closed]
I've been trying to solve this question. Need it done in python. Every time I try I somehow get to the wrong answers and I think I may be trying to hard to figure it out. Someone please help me figure ...
0
votes
0
answers
18
views
How do I get my Ajax code to pass a Google Sheets ID parameter so my datatable can show that Google Sheet's data on my website?
I'm attempting to pass a parameter into an app script function so that it returns a specific Google Sheet by using Ajax. This is going on my hostinger website so I'm utilizing datatables for a more ...
0
votes
0
answers
16
views
Fluent HTML Builder that accepts html code in a funtion
I am trying to build a repeating list with a model class:
public class Item<TModel> : IHtmlContent
{
public Func<TModel, IHtmlContent, IHtmlContent>? TemplateAction { get; set; }
...
0
votes
1
answer
33
views
How can I return a Filter Formula reference range?
I'm trying to return a range I've gotten results with via cell formula with the app script equivalent so I can in turn overwrite the array with different values.
This is the formula I'm using which ...
0
votes
1
answer
23
views
Laravel12 rename() issue during composer install
I am going to setup Laravel12 MVP project, but I have a problem in installing packages with composer.
When I run composer require or php artisan config:clear , it gives me error.
rename(D:\workspace\...
1
vote
0
answers
17
views
Android Emulator not consistently receiving push notifications from various apps
I'm using an Android Studio emulator hosted on my mac and for some reason I only sporadically receive push notifications from apps like Gmail. I've noticed that toggling airplane mode off/on or cold ...
0
votes
0
answers
13
views
Conflict between RequiredFieldValidator and Client Side CustomValidator
3rd time's a charm. Let me apologize for not knowing proper StackOverflow etiquette in my previous two question attempts.
I am trying to validate a page. By design, it is allowable for the user to ...
0
votes
0
answers
15
views
Draw a straight line between two visual elements in MAUI app. .NET 9
I’ve developed a cross-platform Sudoku app for Android and Windows using MAUI (.NET 9) and Shell, following the MVVM design pattern. The UI is defined in XAML using StackLayout to organize visual ...
0
votes
0
answers
24
views
Flutter: inlineData content part not yet supported
I have been trying to implement Gemini image generation in Flutter, and I have use the sample code from their official documentation: https://firebase.google.com/docs/ai-logic/generate-images-gemini?...
0
votes
0
answers
21
views
Why does Spring WebFlux use CharSequenceEncoder instead of KotlinSerializationJsonEncoder when returning a Kotlin data class?
I'm building a Spring WebFlux API with Kotlin and using Kotlinx Serialization for JSON serialization.
build.gradle.kts
plugins {
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.kotlin....
0
votes
1
answer
21
views
How can I modify a statically-served file in express before serving it?
I have a simple website that stores cat pictures. (Ok not really but I'll use this example.) The server is a simple express server:
app.use(express.static("./public_html"));
But I have a ...