Questions tagged [namespaces]
A namespace is a container that provides context for identifiers, within which names are unique.
namespaces
12,452
questions
-1
votes
0
answers
14
views
How to correctly route the packets through host and namespaces?
I am trying to route the packets from Client [Host], through namespaces [Demo0 -> Demo1], to Server [Host]. The packets should be routed to tun device 10.0.3.2, from where the black-box process ...
0
votes
0
answers
16
views
Change namespace with Jaxb2Marshaller
In my config spring boot have this:
@Bean
public Jaxb2Marshaller jaxb2Marshaller() {
Jaxb2Marshaller marshaller = new Jaxb2Marshaller();
marshaller.setPackagesToScan("com....
0
votes
0
answers
56
views
Zeitwerk and Namespacing STI Models
I am trying to figure out an issue I am having with my rails app that involves namespacing some sti models.
Originally, I had a collection of sti models located in: app/models/foo
I validated these ...
1
vote
0
answers
35
views
Is it safe to use "conflicted" instead of fully qualifying namespaces for package development in R?
The usual advice, when developing R packages, is to always fully qualify package dependencies, rather than importing the namespace.
https://r-pkgs.org/dependencies-mindset-background.html#sec-...
0
votes
0
answers
47
views
How to call a global function within a namespace function of the same name in C++? [duplicate]
I have tried creating a namespace function with the same name as a global function in C++ which resulted in recursive calls to the namespace function.
For example, if I create a namespace function ...
0
votes
0
answers
36
views
PHP Fatal error: Class 'Laravel\Http\Controllers\Controller' not found
I'm new to Laravel and I'm unsure about the cause of this error:
Class 'Laravel\Http\Controllers\Api\V1\Controllers' not found in C:\xampp\htdocs\public_html\local\app\Http\Controllers\Api\V1\...
-1
votes
0
answers
74
views
Are namespaces in C++ the same as those in Python? [duplicate]
Namespaces in Python are "a mapping from names to objects". They're a pretty fundamental part of the language, even making it to The Zen of Python.
As per cppreference, "namespaces ...
0
votes
0
answers
36
views
Issues with Cross-Namespace Service Discovery in Kubernetes with Spring cloud kubernetes
I'm running multiple Spring Boot applications in two different Kubernetes namespaces. Here’s my configuration for all services:
SPRING_CLOUD_KUBERNETES_DISCOVERY_NAMESPACES_0: welcoming
...
0
votes
0
answers
8
views
ARP issues in cross-host namespace interaction based on ovs_openflow
I'm trying to build connectivity between linux namespaces on different hosts. Here's my network topology.
topo
Here's the scripts to build this topo.
hostA:
ovs-vsctl add-br ovs1
ifconfig ovs1 up
ip ...
0
votes
1
answer
56
views
Why am I getting Compilation Error from web.config
We have a .NET 4.8 WCF project that was working just fine and compiles just fine but is now throwing up the following web.config compilation error when I try to access any end point:
Compilation ...
0
votes
2
answers
34
views
Postgres XMLTABLE problem with namespaces in the XML data
I have an example XML dataset that contains a namespace reference:
<Records xmlns="http://example.com/sample.xsd">
<Record>
<Id>1</Id>
</Record>
&...
1
vote
1
answer
73
views
Unqualified name lookup after using-directives in C++
From cppreference :
From the point of view of unqualified name lookup of any name after a using-directive and until the end of the scope in which it appears, every name from namespace-name is visible ...
-1
votes
1
answer
17
views
CS0115: 'addCategoryToDbAndSeedTable.BuildTargetModel(ModelBuilder)': no suitable method found to override
I'm following this course on Udemy and after a lesson on refactoring, my project keep failing with this issue.
The comments in the course suggest, that my namespace is wrong, but it isn't (as far as I ...
1
vote
2
answers
110
views
Ambiguous variable reference in C++
I have this piece of code
#include <iostream>
namespace ns{
int a = 10;
}
using namespace ns;
int a = 20;
int main(){
std::cout << a;
}
As per my understanding, when std::cout &...
0
votes
0
answers
22
views
Update ControlzEx from version 3.x to 4.3 and MahApps.Metro from version 1.65 to version 2.0
Hy, I am not a very experienced developer (recent graduate). My task is to update all dependencies of an application .
One dependency is ControlzEx. I updated ControlzEx from version 3.x to 4.3.
With ...