Newest Questions
24,177,569 questions
0
votes
0
answers
2
views
Destroy derived class from 2 downcasted references
struct Data {
// some fields
};
struct E : public virtual Data {
// some fields
};
struct A : public E {};
struct B : public E {};
struct EE : A, B {
public:
E& a() {
return *...
0
votes
1
answer
5
views
Nuxt Fonts does not generate the correct `@font-face` when the font is set as the default font in TailwindCSS v4
I'm using the @nuxt/fonts package to provide the font declarations. When the package detects a font name, it automatically adds the required @font-face rules to the compiled CSS. Based on the tests, ...
Best practices
0
votes
1
replies
7
views
Is there a standard image size to be used for a website
Is there a standard image sizes for a website for varios aspect ratio ? I do not want to create a huge image which indirectly impact the page size. So are there a recommended size to use for aspect ...
-1
votes
1
answer
17
views
volumes on docker compose
I have encountered a weird issue. docker compose throws an error with the following compose.yaml
$ cat compose.yaml
volumes:
nuc_docker:
name: node-red_docker
external: true
services:
...
0
votes
0
answers
14
views
Use folding in constexpr function c++
I created the following constexpr function:
template <unsigned int M, unsigned int N, unsigned int P, typename T, T... ints>
constexpr int computeGeneratorCount(std::integer_sequence<T, ints.....
-1
votes
0
answers
17
views
Different display for doom on arduino
I wanted to run doom on my arduino but instead of i2c 128x64 oled I have 1.54TFT-SPI-ST7789 (240x240)is there any easy solution for it?
Repository I wanted to use: https://github.com/daveruiz/doom-...
0
votes
0
answers
11
views
MUI container query
I want to use a container query in MUI in the same way the useMediaQuery hook works.
But there is no useContainerQuery hook in MUI right now. So how can I use a container query in a component like:
...
0
votes
1
answer
27
views
C++ reflection - compile time index access - but not with a macro
Using C++26 reflection, the following works nicely:
template<size_t from, size_t to, typename F>
void compile_time_index_access(size_t index, F&& f) {
template for(constexpr size_t i : ...
-2
votes
0
answers
13
views
Terraform Job Stuck - Gitlab CI - IAC Pipeline
I have a IAC pipeline with Terraform in gitlab ci, always works fine but today i had a stucked job in multi-projects that use WAF resource and CloudWatch... anyone had the same issue any day ?
In this ...
0
votes
0
answers
15
views
Handling log inconsistencies in Raft: how should a follower reconcile conflicting entries?
I'm trying to learn Raft, but some edge cases I find hard to understand.
Here’s an example scenario:
The leader has the following log:
1: A, 2: B, 3: C
A new entry arrives: 4: D. The leader will ...
0
votes
0
answers
12
views
Multi-Level Split Plot Analysis for Agronomy
I have a field trial that is a split-split-split-split-split plot analysis. I am looking for some guidance into the best way to analyze this in R. I've attached an image of the structure of the trial (...
Tooling
0
votes
3
replies
25
views
SQL vs R : when to use which?
I am in the process of becoming a data analyst and I am having a hard time understanding when to use SQL and when to use R. I have tried re-watching videos of my data analyst course, but I am still ...
0
votes
0
answers
17
views
Maven cannot resolve dependency for public GitHub package despite correct PAT
My pom.xml file includes the following dependencies:
<dependencies>
<!-- Google GSON -->
<dependency>
<groupId>com.google.code.gson</groupId>
<...
0
votes
0
answers
21
views
Shell on arduino uno q?
So I'm trying to see if I can run android ADB on my arduino q. I can install it and run it in the shell, but I can't run it in the context of an app. The app seems to be a separate container that ...
Tooling
0
votes
2
replies
22
views
Filtering an inconsistent string
I'm working on a project. in which i need to filter out specific strings from an inconsisten api, where the strings are not always what i want. I need to filter out eligebility for diffrent education ...
0
votes
0
answers
21
views
pyqtgraph/PySide6 horizontal gradient flickers when data updates and repeats gradient
I am using PySide6 with pyqtgraph to display a graph of data where the X-axis is fixed and I have a horizontal linear gradient across the graph.
The horizontal gradient displays just fine if the data ...
0
votes
1
answer
60
views
std::format warnings bloating my warning list
When I include <format> from the std C++20 library, I get warnings from inside the format.h header (and other related files).
I only include <format> once in my entire codebase, inside of ...
1
vote
0
answers
25
views
cannot install Hilide using pip install
The instruction on Halide website is to use pip install for python development
I tried
pip install halide
But I am getting this error that cannot find Halide. Is it not supported anymore?
ERROR: ...
0
votes
0
answers
20
views
How to register an C# class for COM?
I'd like to create an C# WPF library exposing some class to COM to use the class functionality from separate C++ project.
What I'd like to achieve is to have a WPF class which implements simple form ...
2
votes
1
answer
22
views
How do I set the authenticated_user for the DBOS context with Java SpringBoot?
I'm using dev.dbos:transact:0.6+ with a SpringBoot api and Postgres database.
I've configured DBOS like this:
@SpringBootApplication
public class MyApiApplication {
public static void main(String[...
-1
votes
0
answers
14
views
Cannot install Adobe Experience Manager (AEM) 6.5 on Windows Server 2022
I'm trying to install Adobe Experience Manager 6.5 on Windows Server 2022 on command with the following command C:\AEM\Author>java -jar AEM_6.5_Quickstart.jar -r author -p4502
However the ...
-2
votes
0
answers
15
views
Subclass of Camel DefaultContext in version 3.22.3 throws NPE as HeadersMapFactory is not initialized
Migrated existing Camel libraries version 2.25.4 in JBoss EAP 7.4 applications to Camel version 3.22.3. These applications use a subclass of DefaultCamelContext, which work fine in Camel 2.x, but ...
0
votes
1
answer
20
views
How to specify all database login parameters using one single URL opening H2 Console?
We can open H2 Console using URL:
http://localhost:8082
Then login screen will be displayed:
Can we specify all login parameters (JDBC URL, username, password, driver class, etc.) as parameters for ...
-1
votes
0
answers
21
views
Python API to ollama running another node of my LAN
I'm trying to write a small Python test program to connect to an Ollama installation running on a Windows11 PC on my LAN. Initially, I did this to successfully connect to Ollama Running on my local ...
-3
votes
0
answers
17
views
disabling biome linter char by char output
I want to find a way to disable char by char output of biome linter.
'char by char means' that when i run bunx biome check, biome starts to output the content of checked files slowly, even though ...
0
votes
0
answers
38
views
Code doesn't delete the blank rows in my table when I merge from MS Excel
I have an MS Word Doc with just a 2 column table and a header. The table has all the subjects that pupils could have an exam result for in column 1 and the field codes for the results in column 2. ...
0
votes
0
answers
18
views
How does string replacement operation in CMAKE?
Here is a piece of cmake code:
macro(my_macro p)
message("--my_macro--")
if(p)
message("p is true")
endif()
set(i 1)
message("ARGV${i}:${ARGV${i}}&...
0
votes
0
answers
12
views
Cannot import function/class from Android library published on Jitpack
I just created an Android library (check the directory uselesslib, there's a class called MyLib), and published it on Jitpack.
Inside the library's build.gradle.kts, there are these lines:
...
2
votes
0
answers
43
views
Why doesn't NRVO work if there is a previous return statement?
Say I have this code:
std::string bar(...)
{
std::string out;
if (...) return out; // default constructed (empty)
out = stuff(...);
return out;
}
In this example, NRVO happens.
Why doesn't it ...
-1
votes
0
answers
17
views
Qt6 simple text item placement
I have a situation where I need to meet a stringent set of requirements for QGraphicsSimpleTextItem placement, including rotation, and point alignment at a specific location within the text string. ...
0
votes
0
answers
23
views
Defining the ssh user in deploy.rb instead of stages file
Is there a way to define a default ssh user (instead of "capistrano" when none are defined) in tasks?
I tried to do something like this but some tasks cannot be handled like this:
before ':...
0
votes
0
answers
22
views
Azure AD SAML group claims return only on-prem AD groups when user is member of both cloud and on-prem groups [closed]
I’m configuring SAML SSO with Azure AD (Entra ID) and group claims, and I’m seeing a confusing behavior that I can’t find clearly documented.
Setup
Azure AD (Entra ID)
Enterprise Application using ...
0
votes
0
answers
15
views
Conditionally merge a map of objects in Terraform
I have a map of objects, and I want to filter the objects into a new map based on another variable. I think this should be fairly simple, but I get an error when using merge (which I assumed would be ...
0
votes
0
answers
31
views
Mutate function and as.Date functions in R not working [closed]
I am trying to create a few columns with data from a date-time column in an R data frame. I've been using the mutate function to create the new column and the as.Date function to get the date values ...
1
vote
0
answers
36
views
Why is this code leaking Oracle connections?
I've been using Npgsql, which uses the DbDataSource abstraction. It's really nice since commands created by it do not need explicit connections to be opened by them. However, the equivalent code using ...
Advice
0
votes
8
replies
32
views
Conflicting typedef 'long int t4_i32’ vs. 'long t4_i32' vs. 'int t4_i32'
I'm trying to build the Metakit database from source, but get such an error message:
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS -I../unix/../include -I../unix/../src -I. ../unix/../src/column.cpp
In file ...
0
votes
0
answers
16
views
How to embed a fully interactive Windows console (cmd / PowerShell) into a PyQt5 application?
I am developing a Windows desktop application using PyQt5 and I want to embed a fully interactive Windows console (cmd or PowerShell) directly inside the GUI.
By “interactive†I mean:
bidirectional ...
0
votes
0
answers
38
views
I am trying to recall a specific variable, from an object, using a string, aka, how would I be able to effectively do, object."string"?
public Dictionary<string, int> inventory = new Dictionary<string, int>();
public List<string> itemNames;
public List<IslandPrObject> islandTypes;
...
foreach(string item in ...
Advice
0
votes
1
replies
16
views
R code to randomly assign treatments to blocks where block size is not an even multiple of the number of treatments
This is related to a recent question I asked, which I did not pose properly.
The context here is an experimental design with "natural" blocks. In this case, the blocks are PVC pipes, each of ...
-3
votes
1
answer
60
views
Making a console rock, paper scissors game [closed]
Hi so I’m learning JavaScript and having issues with my Rock paper scissors game.
When I press enter in my console for the user to input their choice the input box pops out twice and the console ...
1
vote
0
answers
38
views
HTML5 Canvas: How to generate ambigram-style text same after 180° rotation?
I am working on an HTML5 Canvas project where I generate text dynamically
and want it to behave like an ambigram (the text should look the same
after rotating the canvas by 180 degrees).
My goal:
- ...
0
votes
0
answers
18
views
How to add simple login dialogue to a blazor client WASM app. Using the default templates
There is a lot of code in the Blazor Default template app for managing user accounts. A lot rarely used but great none the less and no need to rewrite that. But the login/forgot pwd etc happens more.
...
3
votes
1
answer
47
views
Reporting stack trace from inside a library (static vs dynamic)
Let's take a simplistic example (see source code at the bottom of question)
g++ -g -O0 -fPIC -c ./doit.cpp -o doit.o
ar rv libdoit.a doit.o
g++ -g -O0 main.cpp -L. -Wl,--whole-archive -ldoit -Wl,--no-...
-3
votes
0
answers
39
views
Return Product Loaded in Machine based on Machine and Timestamp [closed]
I have two tables...one (Table A) has product data from 6 different machines...Date/Time, Barcode and Machine Name being the most pertinent for what I am trying to accomplish. The second data set (...
0
votes
1
answer
12
views
SCIP Installation to load SOPLEX, PAPILO, ZIMPL, GCG, etc
In trying to follow the instructions from https://scipopt.org/doc/html/md_INSTALL.php
I am unable to get beyond the first couple of steps.
I have
tar xvzf scipoptsuite-10.0.0.tgz
cd scipoptsuite-10.0....
2
votes
0
answers
14
views
ShareFile API: How to Create Account-Wide Shares Without Explicit Recipients?
Problem
I'm using the ShareFile .NET SDK to programmatically create shares that should be accessible to all employees in our ShareFile account (similar to the "Employees Only" option in ...
Advice
0
votes
0
replies
13
views
Copy/Paste a range of cells into an image (or how to replicate this)
I cannot alter/add VBAs or other Macros to the Excel file.
I'm using the MS Graph API to copy and edit an Excel file (kept on Sharepoint) used for certain calculations. This file has an output page ...
0
votes
0
answers
21
views
A problem in indexing hub selection for a many-body state problem and erdos number
I'm working on reproducing figure 8 of “Dynamical decoherence of a qubit coupled to a quantum dot or the SYK black hole,â€.
The figure is:
In the paper "hub=0 corresponding to the many-body state ...
0
votes
0
answers
21
views
ggsankey entries for "no node"
My ggsankey diagram is coming out wrong: it is showing unwanted nodes. Here is as simple an example as I can manage. A tibble expresses the money exchange on an Uber trip (simplified). Code cut and ...
0
votes
0
answers
27
views
Google Search displays other favicon than my website
I built my website with WordPress. When I search for my website (amngroup.se) on Google, the search results display a strange or incorrect favicon (a bird) instead of my own. However, when I visit the ...