169 questions
0 votes
1 answer
66 views
Issues with weighting in principal of psych
I am trying to replicate a principal component analysis in R based on one I have performed in SPSS. I am using the psych package and the principal function, but I cannot get it to account for the ...
0 votes
0 answers
30 views
How do I restrict access to specific pages based on a role system in a flask webapp?
I saw that some people use Flask Principal for that matter and tried that. How ever I'm new to Webdevelopment and have problems to figure out how the extention works. here is what I got so far: In the ...
0 votes
1 answer
77 views
unexpected token ':', expected one of token or <phrase> sequence: ] <typ_args>? or <typ> . <id> -> <typ_nobin> and <typ>Motoko(M0001)
I'm new to Motoko and I tried this but the syntax seems to fail With this line of Code " private var users : [Principal : Types.User] = []; " Here is where all the problem occurs, I can't ...
0 votes
1 answer
115 views
OpenLiberty Authentication: Adding roles to Principal
We are using OpenLiberty 24.0.0.x with openIdConnectClient (https://openliberty.io/docs/latest/reference/config/openidConnectClient.html). This is our configuration: <openidConnectClient id="...
1 vote
1 answer
391 views
When to use PCA(n_components=0.95) and when to use PCA(n_components=2), what is the difference between them?
For the Principal Component Analysis (PCA) model training when to pass variance as PCA(n_components=0.95) and when to use PCA(n_components=2) with pipeline having Standardscaler for standardizes the ...
1 vote
0 answers
66 views
SpringBoot Injected Principal not null but SecurityContextHolder.getContext().getAuthentication() always null - Websocket
In any HTTP request, I managed to get the principal from the SecurityContextHolder. But in case of a WS one, I can't. Here is the code @Override protected Principal determineUser(...
0 votes
0 answers
65 views
How to mock a Principal object?
I am learning Spring. I am making online bookstore project, in which you can make an order for books.I am trying to test method that creates order's, but I use principal, to figure out who is making a ...
0 votes
1 answer
598 views
Ktor OAuth, cant set User session when I have token
So im trying to set up a OAuth way of logging in my Ktor program. Quite new to Kotlin and Ktor so I am having a hard time. I am able to create a token and I get sent to the "get("/callback&...
0 votes
0 answers
123 views
KernelPCA explained variance is (99-100)% for all the features of the dataset
I am trying to perform PCA+LDA on this dataset Structural Protein Sequences. The problem is that every feature has explained variance at 99-100 % and to keep 95% of the information only 1 principal ...
0 votes
1 answer
56 views
I have 5 folders (each contain about 200 RGB images), I want to use "Principal Component Analysis" for image classification
I have 5 folders (which represent 5 classes, and each contain about 200 colored images), I want to use "Principal Component Analysis" for image classification. previously I used Resnet to ...
1 vote
1 answer
498 views
Principle Component Analysis, add a line to the 3d graph showing the first principal component
I am conducting PCA on a dataset. I am attempting to add a line in my 3d graph which shows the first principal component. I have tried a few methods but have not been able to display the first ...
0 votes
3 answers
183 views
How to change the role of a user in CustomUserDetails?
I wrote my implementation of UserDetails in order to change the login and user roles. With the login, everything turned out to be quite simple, but I had problems with the roles. I don't understand ...
0 votes
1 answer
489 views
How to update user data in Principal when changing his login?
I made a page with editing user information, where it is possible to change the login. When I change it and return to the user profile, I get an error that Account is null. Found out the reason. When ...
1 vote
1 answer
1k views
How to define custom principal class in Elytron WildFly 26.1?
In legacy system is used dedicated login-module with custom principal class defined in security domain used by application, like below (JBoss 7.2) <subsystem xmlns="urn:jboss:domain:...
3 votes
1 answer
2k views
Can I access the current user in session statically in Quarkus?
I need to do access to the current user (previously set up by a ContainerRequestFilter) in a static way, to avoid the passage of the @Context SecurityContext in every method of every controller. I ...