Questions tagged [global-namespace]
54 questions
1
vote
1 answer
PHP ImageWorkshop package with Composer failing
So very strange issue. I only recently starting using auto loading in PHP 5.3+ and of course, this inevitably led to composer.
I did a really simple install with composer with only one package, php Image Workshop.
In addition to my own auto…

Daniel Saint James
- 21
- 5
1
vote
2 answers
How do I use the C# Global namespace operator with a using directive in my View?
Having some trouble with my view in asp.net mvc. My using directive's namespace is clashing with the namespace of the view, causing compile errors in my Razor generated class. I had the same issue with the @model directive, but using the global::…

Stu
- 101
- 6
1
vote
3 answers
c++ global namespace compile problems
I'm using a specific toolchain (the one that comes with the BlackBerry Playbook NDK). I think it's based on GCC 4.4.2. When I try compiling certain libraries with this toolchain, I run into strange issues with what I think is c++ global namespace…

Prismatic
- 3,338
- 5
- 36
- 59
0
votes
0 answers
How do I make a module make use of a variable defined globally in Jupyter-notebook?
So I have a jupyternotebook main.ipynb.
I have to submodules named x.py and y.py.
x.py contains the line x = 30 and y.py contains the line y = 2*z
I know how I can use the variable defined in the secondary file by using it as an attribute of that…

AayushNepal
- 3
- 2
0
votes
0 answers
Why does WildFly (version 26) only make JNDI namespace "java:jboss/exported/" available to remote EJB clients?
I am currently configuring remote JNDI calls for WildFly (version 26.1.2) and have found in the official WildFly documentation that only the JNDI namespace "java:jboss/exported/" is available for clients.
Why is this the case? Is there a good reason…

Peter Branforn
- 1,679
- 3
- 17
- 29
0
votes
0 answers
Is there a better way to add local variables in the global namespace?
I use the following approach (code below) to add all the local variables from a function to the global namespace. Is there a better way to do this?
This specific case is not for general practice, but for debugging some process automation. The idea…

Nomesis
- 21
- 4
0
votes
1 answer
The type name XXXX does not exist in the type XXXX
I have the following code (which compiles and works fine if I leave the warning in, I haven't tested it using the global:: hack):
namespace NotifierService.Models {}
namespace NotifierService
{
using Models;
}
The 'using Models' statement is…

Paul Zahra
- 9,522
- 8
- 54
- 76
0
votes
1 answer
Accessing carbon_get_post_meta value inside of a namespace
How can I access a Carbon Fields value using the function carbon_get_post_meta from within a namespace?
If I do:
if ( function_exists( 'carbon_get_post_meta' ) ):
echo 'true';
else:
echo 'false';
endif;
Then I get false, but if I check for…

Stuart
- 45
- 8
0
votes
0 answers
How can I access a running thread
By starting the main, I´m starting a thread that keeps a connection to a opcua server alive (and a few things more).
I now want to open a function inside this thread but I don´t want to import everything again (because it takes to long).
In if…

Flu
- 49
- 4
0
votes
2 answers
Showing Garbage values in Structures in c++
#include
using namespace std;
struct student
{
char name [50];
int roll;
float marks;
}s = {"Karthik",1,95.3};
int main()
{
struct student s;
cout<<"\nDisplaying Information : "<

karthik oggu
- 35
- 11
0
votes
2 answers
'Node' is not a member of global namespace?
I don't know whats wrong with the code, but keep getting these error messages in visual studio.
Error 18 error C1903: unable to recover from previous error(s); 29
Error 15 error C2039: 'Node' : is not a member of '`global namespace'' …

k787
- 397
- 2
- 5
- 11
0
votes
0 answers
Error C3083 '`global namespace'': the symbol to the left of a '::' must be a type cpprestsdk
I'm using cpprestsdk for a Http client in my code as given below:
std::string MyClass::GetPage(std::string url)
{
web::http::client::http_client httpClient(utility::conversions::to_string_t(url));
pplx::task request…

kovac
- 4,945
- 9
- 47
- 90
0
votes
4 answers
Can you pass values to included files in PHP without using globals?
A pattern I tend to use often in PHP is setting a few globals (such as $page, $user, $db, etc), and then including a file which uses those globals. I've never liked the idea of using globals for this, though, so I'm looking for a better way.
The…

zildjohn01
- 11,339
- 6
- 52
- 58
0
votes
1 answer
Cannot reference a property without removing the Namespace or adding Global in front
I got a solution with several projects and was working fine. One fine day, hundreds of errors cropped out, apparently from nowhere!
After hours trying to find out why, I noticed that any Property within a project with Namespace 'IBS_DAL' cannot be…

JPScerri
- 115
- 1
- 1
- 8
0
votes
1 answer
How to track/preserve global namespace in Javascript
I was wondering what would be the best way to track changes made to the global namespace by some external javascripts. For example, lets say I have a website and I would like to know which object are being added to the global namespace by some third…

demonius
- 3
- 3