Questions tagged [global]
Refers to a space where variables and other items may be accessed from any scope.
global
1,130
questions with no upvoted or accepted answers
8
votes
1
answer
582
views
Nibernate / Fluent NHibernate : Using Filter with SubclassMap
Using Fluent NHibernate, I have succeeded in setting up a global Filter on my NHibernate session, and using it in ClassMap classes. The Filter WHERE clause is appended to queries using that map ...
7
votes
1
answer
248
views
Polymer globals attributes something strange
in my test, i have 3 elements imported from the main html file :
<html><head><title>my-app</title>
<script src="bower_components/webcomponentsjs/webcomponents.min....
6
votes
0
answers
748
views
Where are Global Functions & Variables stored in Swift?
From my understanding, the Stack is used to store value types (like Enumerations and Structures) and variables which are referenced to objects (like class instances) in the Heap. Furthermore, the ...
5
votes
1
answer
1k
views
How to display SwiftUI Alert on top of all other Views and Sheets (MacOS)
I am trying to display an Alert globally on top of all other views and sheets or alerts, that are open at that moment, so I can show a globally relevant error that can occur at all times while the ...
5
votes
1
answer
544
views
Install npm package globally that has peer dependency (not mentioned in package.json)
I am trying to install marktext globally using npm (after cloning the repository):
npm install -g
npm WARN [email protected] requires a peer of d3@^4.13.0 but none is installed. You must ...
5
votes
1
answer
345
views
Registering Variables and Functions Declarations in Java Script
I was watching a video on javascript scopes which said that just before browser interprets java script code, it actually involves a quick compilation step(well not exactly 'compilation' so to speak ...
5
votes
0
answers
447
views
How to include globals.h in Android NDK
I need the correct syntax for
#include <globals.h>
to access the DvmGlobals struct.
How can I include Globals.h in my c++ file?
I tried several ways and always get the "unresolved inclusion" ...
5
votes
2
answers
495
views
gulp tasks sharing a common setting without a global object
I have a number of gulp tasks each residing in its own file (using the require-dir module) rather than a monolithic file.
I am using modules for configuration settings instead of json files (which I ...
5
votes
0
answers
393
views
Save/restore IPython kernel globals
I am currently working on creating an interactive python terminal, using the IPython kernel.
I have been successful at setting up a working interpreter (over web using websockets), using the ...
5
votes
1
answer
1k
views
Create a globally accessible node.js module
I would like to create a globally accessible node.js module, like express and mocha.
So I dived into their source code, and created the following short example:
The index.js file, located in the ...
5
votes
2
answers
12k
views
How To Set Global Random Seed in Python
Like in R, I would like to set a random seed globally for the entire script/session, instead of having to call the random seed function every time I execute a function or run a model. I am aware that ...
4
votes
0
answers
935
views
How to fix Storybook Webpack error with CSS file
I have a design system set up using Storybook.
The new issue I am having now is after trying to use react-responsive-carousel within my design system. I'm trying to import a (global) CSS file in ....
4
votes
2
answers
2k
views
Django global filter
Is there a way to filter globally a Django model? We need to set a filter in a single place so that it gets applied in all queries generated by Django ORM including related objects lookups etc. ...
4
votes
0
answers
998
views
How to create mongo replica set on docker swarm global mode
I would like to setup 3 member mongo replica set on docker swarm with mode = global and stuck in enabling replication.
For e.g. Docker swarm nodes: node1, node2, node3 (all manager). All nodes were ...
4
votes
1
answer
86
views
how to produce TypeScript definitions for both commonjs and globals?
I have a TypeScript project written with the commonjs module system that I would like to make it usable also from globals (no modules).
I can use webpack to bundle it and publish into global ...