1,031 questions
1
vote
2
answers
94
views
How to determine the arity of a ≥5.20 signatures method?
Problem shown below:
use 5.036; # signatures
use strictures;
package Foo {
use Moose;
sub quux($self) { ... }
}
package Big::Quux {
use Moose::Role;
sub quux($self, $another) { ... }
...
0
votes
1
answer
46
views
What's the right way to determine which kind of cl_program I have?
The OpenCL API has one object which is sort of a "kitchen sink" for a lot of stuff: The program (with handle type cl_program). It can hold:
A textual program source ( ...
0
votes
0
answers
36
views
How can I expose a backend service's name and version via rest a in a standard way?
How can I expose a backend service's name and version via rest a in a standard way? Is there a rfc that defines a route like whoa I which provides a backend service name and version in a route like ...
2
votes
1
answer
89
views
Getting the module and class of currently executing classmethod in Python
For code that exists in a module named some.module and looks like this:
class MyClass:
@classmethod
def method(cls):
# do something
pass
I'd like to know in the block marked as "do ...
2
votes
0
answers
220
views
OpenIddict Introspection + .net Aspire (Service Discovery)
I'm trying to get introspection working with .net Aspire Integration tests, which use random ports for everything. In regular mode the port is consistent and thus setting the issuer using the ...
0
votes
0
answers
289
views
How to inspect Python file/module information without using `__file__` — perhaps in a module-level `__getattr__(…)` function?
I have a utility package for Python projects I maintain and use. It’s a bundle of lightweight, common, junk-drawer tools (e.g. command parsing, app lifecycle management, document generation, &c &...
0
votes
0
answers
48
views
How to inspect the body of a function (without it's signiture) [duplicate]
How can a function's body be inspected in Python?
def main():
def example_function():
x = 4
y = 3
if x + y < 6:
print("Test")
print("...
3
votes
1
answer
822
views
Micronaut : No bean introspection available for external class
Introspection error while trying to import class from external lib.
Steps to reproduce :
Using a common DTO from a shared lib which has micronaut annotation processing enabled.
@Data
@Serdeable....
0
votes
2
answers
117
views
Is it possible to get the name of variable passed to function in Java?
Sometimes I saw stack traces that said which value of which variable caused an exception to occur. So I guess it's possible to determine the name somehow. I've already searched, but haven't found ...
0
votes
0
answers
529
views
node-oidc-provider JWT token introspection always returning active: false
I try to allow JWT introspection on my oidc provider, but it always results to an { "active": false }. I precise that i don't encounter problem for opaque introspection and I turned on the ...
2
votes
1
answer
76
views
Is there a way to iterate through a Codable (e.g. each item in a JSON parse)?
Say you're decoding a huge JSON file:
struct Examp: Codable {
let Cats: [CatsItem]
let Dogs: [DogsItem]
let Horses: [HorsesItem]
.. forty more
}
After you parse it, on the console you simply ...
1
vote
0
answers
371
views
GraphQL schema inspection not working in command line
I am using Java 21 with Spring Boot 3.2 and using
implementation "org.springframework.boot:spring-boot-starter-graphql:3.2.0"
I can run my project in IntelliJ and it works just fine:
2024-...
-1
votes
1
answer
388
views
checking for static member function [duplicate]
I'm working on introspection technics and wanted to implement a trait to tell if a member-function is static or not.
After a bit of reading (so and cppreference) I understand that the type of a ...
0
votes
2
answers
109
views
check if an input is lambda in Tcl
I get an argument in Tcl. How can I tell if it's a lambda function, other than usingcatch {apply $arg}?Thanks
0
votes
1
answer
1k
views
Keycloak Access Token Introspection without explicit REST
First time asking here and going straight to the point: I'm working on an API with Spring that connects to a Keycloak instance and I need every endpoint to accept an Access Token for security reasons, ...