116 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-1
votes
1
answer
74
views
Superglobals vs $GLOBALS visibility in PHP
here is how Superglobals are defined in PHP
Superglobals — Built-in variables that are always available in all
scopes
And here is how $GLOBALS are defined here
$GLOBALS — References all variables ...
1
vote
2
answers
158
views
C++ Why is it not possible to invoke functions globally without initializing new variables?
If I had to run functions in the global scope e.g. in order to populate a static container in several cpp-files, then each time such a function is invoked I would have to initialize a new variable as ...
0
votes
1
answer
163
views
Rollup says my const names are global, renames them with 1ドル suffix
I see this Q&A here, but that's for an obvious global named Promise. I can find Promise in the MDN docs easily enough. But Rollup is renaming 4 of my consts that I don't find anywhere in any docs:...
10
votes
1
answer
506
views
How to check at compile time for the existence of a global-scope function accepting given argument types?
What (I think) I need
How can I define a type trait that checks whether, for a type T, the function ::foo(T) is declared?
What I'm finding hard, is to have ::foo in SFINAE friendly way. For instance, ...
0
votes
1
answer
79
views
Run multiple stand-alone scripts from one tethered Google Sheets Script
This may be a very dumb question but I've exhausted every search I can think of.
I have a large set of data in a Google sheet that I run 3 separate scripts(1 tethered/2 standalone) on that pull data ...
1
vote
2
answers
104
views
How to avoid shadowing the window.close function?
I have a function named close in a js file that can't be renamed for some reason. Now whenever I want to use window.close function (to close the browser tab) I can't: my close function overrides that ...
0
votes
3
answers
194
views
get data from coroutine globalScope in Room database kotlin
I want to fill the ProductList in the code below but it's always null.
do you have any solution?
fun nameValidation(name: TextInputEditText, cactusDao: CactusDao): String? {
val nameText =...
0
votes
1
answer
949
views
Expose Functions Using Webpack & Then Call Them From an Inline Script
I'm working on getting a bunch of legacy inline scripts cleaned up.
My question is: How do I call a function from an inline script that is compiled in WebPack.
After trying a bunch of different ...
1
vote
1
answer
271
views
Laravel - Controller dependency is injected before middleware is executed
So I created a middleware to limit the data a connected user has access to by adding global scopes depending on some informations:
public function handle(Request $request, Closure $next)
{
...
0
votes
1
answer
86
views
GAS files: how to free global space from polution?
How do I clean up my global space without having to create +1000 lines .gs files
Here follows two photos of some of my files/folders. Mind how low the scroll bar can slide (30+ GAS files) ↓
In ...
1
vote
2
answers
354
views
Ambiguous column in left-join in global scope
Im using Laravel 9.39.0, php 8.1, mysql 8.0.31.
My goal is to add a scope that will filter models where the user that user_id references has been archived or filtered in some way. The filtering of the ...
0
votes
2
answers
187
views
Dataflow Streaming Job Error: name 'function' is not defined. How to create a global function for all Dataflow steps
I'm developing a Dataflow streaming job for CSV check triggered by a creation of an object in Cloud Storage (via Pub\Sub notification).
I'm using Dataflow because is a business requirement and for the ...
0
votes
1
answer
557
views
Laravel - Global scopes and relationship check -undefined property
So, trying to scope what a user can see according to him belonging to a providers model, I have this global scope defined :
class Provider extends Model
{
protected static function booted()
{
...
0
votes
1
answer
944
views
Snowflake Global function and variable
I have a many (snowflake) javascript stored procedures per data pipeline , in all the procedures I have this function defined.
create or replace procedure procedure1()
returns strint
language ...
0
votes
1
answer
628
views
Laravel Global Scope Custom Message when Not Found
In our project, we have anonymous global scope defined this way:
static::addGlobalScope('user_team', function (Builder $builder) {
$builder->where('team_id', '=', auth()->user()->team_id);
}...