12,485 questions
1
vote
1
answer
114
views
Unallowed GRANT does not raise an exception and doesn't grant the privilege either, if user already has other privileges on the object
I have a regression test for a PostgreSQL database that checks to make sure a particular user cannot self-assign additional privileges to a particular schema. I do this by logging in as the user "...
0
votes
1
answer
88
views
Is there a way to import internally defined functions in an R package into the main working environment?
I need to create a modified version of a function found within a package namespace to perform a specific statistical calculation. E.g., say I have a function function and save the modified version as ...
0
votes
0
answers
34
views
XDP Program on veth Host-side Blocking Inter-Namespace Communication
I have two namespaces, ns1 and ns2. I created two veth pairs and connected the namespaces to the host via these veth pairs. Now, I want to enable these two namespaces to ping each other using a very ...
2
votes
0
answers
29
views
Merge namespace in two different files typescript [duplicate]
In file1.ts I have:
export namespace MyGlobal {
export namespace File1 {
export const X = 2
}
}
In file2.ts I have:
export namespace MyGlobal {
export namespace File2 {
export const X = ...
1
vote
1
answer
102
views
Local composer dev repo namespacing issue
I am using Composer version 2.2.25
Per https://getcomposer.org/doc/05-repositories.md#path, I have this structure:
├── path
│ └── to
│ └── composer_stuff
│ └── compiled
│ ...
0
votes
1
answer
80
views
DownloadButton in nested Shiny module UIOutput is inactive
When working on a larger app that has Shiny modules that include modules themselves, I've noticed that I can't put a downloadbutton in a renderUI call without it being disabled. Here's an example:
...
0
votes
0
answers
41
views
Directory / API structure moving to flask-smorest from flask-restx
Well, I found that flask-restx may no longer be maintained (last commit was 10 months ago as of this post). That's too bad seeing as I spent a decent amount of time learning it and overall thought it ...
4
votes
1
answer
210
views
Are circular "using namespace" directives allowed?
Let's say I'm trying to rename a namespace with lots of symbols in a huge monorepo codebase. I want to go from old_namespace to new_ns, but I can't atomically update every user, and there are so many ...
0
votes
0
answers
31
views
How to copy data between namespaces in Dgraph (community version)?
I'm using the Dgraph community version and I want to copy all data from one namespace to another (for example, from namespace 1 to namespace 2).
I understand this can be achieved using a Python script ...
-1
votes
1
answer
106
views
Fix a CS0030 error due to wrong VS2022 generated namespace
This CS0030 error occurred after switching from a Windows 10 pc to a new Windows 11 machine.
The solution (and all the code) is located on my onedrive, used both on W10 and on W11. Both systems use ...
1
vote
1
answer
139
views
Symbol lookup rules for :: global namespace operator
All this time, I thought that the global namespace resolution operator was optional, and for instances where a symbol refers to something in the global namespace, eg:
void my_func()
{}
int main()
{
...
7
votes
1
answer
334
views
R `use(library, function)` a second time
Related to :
Why might one load a library more than once in an R script?
Now, usually, with a complete library import, it is a good idea that a library is not loaded a second time.
However, if my main ...
1
vote
1
answer
91
views
Force beginning of namespace in C#? [duplicate]
I have a set of classes that all are in the namespace A.B, like
A.B.Class1
A.B.C.Class2
etc...
But I have a referenced assembly that uses the namespace B.C, for example in a fully qualified class B.C....
2
votes
2
answers
87
views
Why does my XSLT return empty namespace xmlns=""?
Why do I get the xmlns=""? I've tried putting the namespace in many other places and messed with the prefix but can't seem to remove the empty xmlns="" attributes.
XML:
<?xml ...
2
votes
1
answer
90
views
PHP class not found when using name spacing
I am trying to load my class through namespacing but Im struggling to find the right configuration and I keep getting a class not found error.
Here is the psr-4 property in my composer.json
"psr-...
-1
votes
1
answer
70
views
JavaScript NameSpace already declared error
I am loading a script with the jQuery getScript function after the document is ready.
The script has these 2 lines:
const myNameSpace={};
function myNameSpace.test() {
}
I am getting this error:
I ...
2
votes
3
answers
193
views
Multiple namespaces overloaded operator<<, how can I use them?
I'm reading a book. Obviously there are some failures in it.
In the code below, how can I access plant::operator<< in run() and plant::debug::operator<< in diagnostic()? The compiler can't ...
6
votes
1
answer
158
views
function selection finding unexpected candidate when using namespaces
This is a follow-up of this question: `requires` expressions and function namespaces
Trying to design an answer I stumbled on this strange behavior:
#include <cstdio>
// dummy default ...
5
votes
2
answers
212
views
`requires` expressions and function namespaces
How can I define a C++ constraint that involves a namespace-specified function? Example:
template<typename T>
concept C = requires(T t) {
{ N::foo(t) } -> std::same_as<void>;
};
...
0
votes
1
answer
124
views
How to Iterate Outlook Calendars via Excel VBA?
I've been reading multiple discussions on the web relating to my issue. I've been trying to read appointments from a specific Outlook calendar (non-default) via Excel using VBA.
I can't seem to find a ...
-6
votes
1
answer
78
views
Two classes from two different namespaces, why is one call working without its namespace and the other isn't? [duplicate]
I am creating a static class for use with multiple projects, in its own file with its own namespace. When I try to call the class and invoke its methods from within another file, namespace, and class,...
-3
votes
1
answer
59
views
Why can the for attribute and the id attribute agree, but then the name element can overrule them?
<label for="indoor"><input id="indoor" type="radio" name="indoor-outdoor"> Indoor</label>
<label
If you omit the value attribute, the ...
0
votes
0
answers
52
views
How do I change a global constant of a loaded module so that other global variables of the loaded module that depend on it reflect the change?
This question may have a simple answer. I have a near-trivial module0.py:
a = 1
b = a + 3
I import this module into a script and redefine module0's global constant a:
import module0 as m0
m0.a = 2
...
5
votes
3
answers
139
views
Adding an ostream inserter into std:: namespace
We have dozens of string-like classes spread across dozens of namespaces, but they each have a similar structure:
namespace N::N1 {
struct S1 {
std::string_view sv() const;
};
}
We'd like to ...
0
votes
2
answers
77
views
C++ - Candidate function not viable: no known conversion from 'double[10][Globals::MAX_COL]' to 'double (*)[Globals::MAX_COL]'
When compiling my program, I get the following error:
No matching function for call to 'fillWithRandomNum'
Candidate function not viable: no known conversion from 'double[10][Globals::MAX_COL]' to '...
1
vote
1
answer
87
views
How to specify namespace for included module: on_audio_query_android
In my Dart project pubspect.yaml uses on_audio_query: 2.9.0 , which depends on on_audio_query_android.
I have recently upgraded to Java 21.0.4 and Gradle 8.1
The upgrade was motivated by switching to ...
3
votes
1
answer
308
views
Why can't I specialize std::formatter inside of my namespace?
I want to specialize std::formatter inside my namespace. However, this does not work as I want to (variant 1). It works outside the namespace (variant 3) as well as with a workaround inside the ...
0
votes
1
answer
42
views
Namespace not specified. Specify a namespace in the module build file
I have worked on a flutter project in 2023. I was facing errors with gradle settings. I managed to migrate the gradle settings following the official Flutter documentation(https://docs.flutter.dev/...
0
votes
0
answers
36
views
Importing __init__-Methods temporarily to submodules
In Python, I am having trouble with referencing between methods within a package of mine. My package is structured like so
mypackage (folder)
__init__.py (containing ...
1
vote
1
answer
63
views
None type when parsing xml data in Python
I'd like to be able to parse some info from xml data while uses namespaces. I have been trying to read/follow steps in:
https://docs.python.org/3/library/xml.etree.elementtree.html#parsing-xml-with-...
-1
votes
1
answer
151
views
How to deal with OpenSSL poluting the global namespace in C++?
I am trying to build C++ code with ASIO and OpenSSL (on windows, without boost). I have been using ASIO no problem for a while now. However, I now tried to include "asio/ssl.hpp" and I get a ...
1
vote
0
answers
64
views
Is it possible to perform a CIFS mount with user permissions after namespace isolation using clone() or unshare()
I'm working on isolating namespaces using clone() in a Linux environment and I have a question regarding CIFS mounts.
If I use clone() to isolate the network namespace (and potentially other ...
3
votes
2
answers
170
views
Where does the C++ standard allow an identifier with name space of a structure in a primary expression?
Where the C++ standard allows an identifier with name space of a structure (a "non-ordinary" identifier in C) in a primary expression?
Consider the following code (which is a valid C++, but ...
3
votes
1
answer
66
views
Using function template in namespace to local namespace without need of namespace prefix
I have a function template in namespace
namespace sft
{
template <typename To, typename From>
auto safe_cast(From from) -> To
{
// assert cast
return static_cast<To>(from);
}
} /...
2
votes
1
answer
116
views
no matching function call error when introducing a namespace
The following code works as expected:
template <int N> struct Int {
constexpr auto dec() const -> Int<N - 1> {
return {};
}
constexpr operator int() const {
...
0
votes
1
answer
38
views
How can I resolve Java package namespace error?
In this error ('package="io'), there has an operator " between ' and '.is it a system error? How do I solve it?
Error:
Namespace 'package="io.flutter.plugin.pathprovider"' is not ...
0
votes
0
answers
50
views
Namespace Package Import Issue in Linux but Not in Windows
I have a namespace package called foo, which contains multiple distribution packages:
foo.bar_one, foo.bar_two, and foo.bar_three are installed as
distribution packages via pip from a private GitLab ...
1
vote
0
answers
126
views
SendUsingAccount of Shared Mailbox
I am trying to find the equivalent of MailItem.SentOnBehalfOf for an AppointmentItem. My extensive research tells me AppointmentItem.SendUsingAccount is the only option.
After re-thinking my e-mails (...
1
vote
0
answers
105
views
Proper reference naming in namespaced models migration
I have a Rails app with namespaced models and routes:
# config/routes.rb
namespace :bank do
resources :exams
resources :exam_sections
resources :exam_units
# ...
end
# Migration file
class ...
2
votes
0
answers
50
views
PostScript - defining a namespace for a library
I've been coding in PostScript for a couple of months, and I'm wondering how one would implement namespaces, and use libraries.
As usual, the idea is to address:
name collisions
keeping separate ...
3
votes
1
answer
117
views
why does 'using namespace' not take priority when in a namespace
This is a follow-up to no match for operator<<(std::ostream, ns::Type) when in the global namespace, combined with the namespace numerical_chars trick from https://stackoverflow.com/a/21389821/...
0
votes
0
answers
27
views
Replacing Referenced Project Usings Using Visual Studio Templates in Multi Project Solution Not Working
I have created a solution in Visual Studio and I have the solution in a good place now to create a template that I can use for future projects. I have added ApplicationDbContext with Identity and ...
-2
votes
2
answers
93
views
no match for operator<<(std::ostream, ns::Type) when in the global namespace
Can someone explain why the << operator cannot be found when it's in the global namespace? Also, why might it be a problem if it could be?
#include <ostream>
#include <iostream>
...
1
vote
1
answer
354
views
createNamespacedJob Fails with “namespace was null or undefined”
Summary:
When calling BatchV1Api.createNamespacedJob with a hard-coded namespace (“audio-processing”)—both as the first argument and in the job manifest metadata—the client throws a RequiredError ...
1
vote
2
answers
122
views
Loading Route.php and Routing.php settings in different Modules in CodeIgniter4
I have different custom Module paths/ Namespaces in my CodeIgniter4 project, and I just recently upgraded to version 4.4.0. in this upgrade the route settings will move from Config/Routes.php to ...
0
votes
0
answers
162
views
Using user namespaces to create network namespaces
I am trying to create a program that runs a command in a new network namespace. I'd like to be able to run my program without being root. What I have working at the moment is that I first create a new ...
1
vote
1
answer
120
views
Flutter: "Namespace not specified" error while configuring agora_rtm in Android build
A problem occurred configuring project ':agora_rtm'.
Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
Namespace not specified. Specify a namespace in ...
0
votes
0
answers
123
views
I have error with react-native-safe-area-context the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ign
Task :react-native-safe-area-context:processDebugManifest
package="com.th3rdwave.safeareacontext" found in source AndroidManifest.xml: C:..\node_modules\react-native-safe-area-context\...
1
vote
1
answer
83
views
Problems with accesing elements outside nested namespace C++
I have this big namespace for my entire Project and then each componenet (file) has its own nested namespace inside that file. The big namespace is called IEEngine and the nested ones are called ...
0
votes
1
answer
26
views
Should I be using tempnames in Stata ado packages, or will using local macros be sufficient to avoid namespace collisions?
Assuming that the user will only interface with a Stata .ado package program through any data supplied, and via command syntax (i.e. with options, etc.), do I gain any protection around namespace ...