11,408 questions
-3
votes
0
answers
40
views
Wireguard with docker on Synology NAS [closed]
I'm struggling trying to make Wireguard working with Docker in Synology NAS.
NAS model: DS420j
SO version: DSM 7.2 (recently updated)
I followed this guide to compile wireguard .spk and this other to ...
Advice
1
vote
9
replies
101
views
Is it a good practice to maintain separate properties for factories, singletons, and instances in the Service Container?
I'm implementing a simple PHP service container for my personal website blog and want to make sure I'm setting it up correctly. My container has three types of service registration methods:
singleton(...
5
votes
4
answers
306
views
How to implement perfect forwarding for a container?
Consider the code fragment below:
using List=std::vector<Data>;
List generate();
List a = generate();
List b = generate();
a += generate(); // append generate() output to a
a += b; //...
3
votes
2
answers
164
views
Why does Container's add(panel, Integer) provide a different result than add(panel, int)?
To provide background and explanation of the question:
I was working with a base program (below) to figure out how to use JLayeredPane. I created a JLayeredPane and added it to the JFrame, then moved ...
2
votes
1
answer
158
views
std::unordered_map using key with explicit constructor
I'm trying to compile this piece of code but with Gcc15 and Clang21 it doesn't compile.
It does compile with gcc 14 and Clang20.
I want to create a std::unordered_map and use a class with explicit ...
0
votes
0
answers
30
views
Large empty space on the right side of chat bubble: need iMessage style wrapping
My chat bubbles leave a large empty space on the right when messages wrap into multiple lines.
I want the behavior like iMessage/WhatsApp:
Bubble shrinks to fit short text.
Long messages use max ...
0
votes
0
answers
53
views
Terraform - AWS ECS - Communication between containers in single task definition using awsvpc network (ADOT collector for prometheus )
OK so I have created a Terraform ECS cluster and In a single task definition, i have 3 containers.
Backend spring boot - which exposes actuator endpoints health, info and prometheus on port 8080
...
3
votes
0
answers
56
views
How to differentiate containers.Map objects in octave?
In Octave, containers.Map objects are handle objects that can be passed around by reference but always refer to the same object [1]. However, the only test for "equality" between containers....
3
votes
1
answer
144
views
Why destruction order of array elements is not from last to first?
Does Rust have any rules regarding calling drop on arrays? Or vectors?
E.g. in C++ desctruction order of array elements is from last to first (opposite to construction order) while in Rust it seems ...
1
vote
0
answers
55
views
PrestaShop Docker container: ‘Access denied for user’ when connecting to MariaDB, even after volume reset on ARM Mac
I am new to Docker. I am trying to run PrestaShop 1.7.7.2 using Docker Compose on my ARM Mac. The stack includes MariaDB, PrestaShop, and phpMyAdmin. Instead when I access the localhost on the web I ...
0
votes
0
answers
57
views
ASP.NET Core container app works in debug but returns numerous errors in other profiles
I have an ASP.NET container app that uses DevExtreme (a UI package from Dev Express). When I run this containerized app locally in debug mode, it works without error. However, I also have Test and ...
-2
votes
2
answers
261
views
Is there a better way to keep ids in a vector sequential in C++?
I have a simple C++ program that manages as a todo list. The Todo, class contains a vector of Item to track each todo action and their id. The key constraint is that the ids must be kept strictly ...
0
votes
0
answers
77
views
Running a system command from an R container
I am using a container to run R:
FROM bioconductor/bioconductor_docker:RELEASE_3_19
RUN apt-get update
RUN install2.r -e rmarkdown ggplot2 etc
Which I run:
module load apptainer
apptainer exec --...
0
votes
1
answer
48
views
How should a Function App (Container) authenticate to GitHub via the GH CLI?
I've setup a custom container in Azure that will run a Function App, with the intention of connecting to my organisations GitHub (GHE) instance and using GH CLI pull a list of repos.
I have a PAT ...
0
votes
3
answers
214
views
Confusion about invalidated iterators
If vectors are stored contiguously, as long as they are not made smaller or reallocated, any iterator pointing to an element within it should be valid. The following code would be defined:
#include &...