marcellorvalle

1

votes
2

answer
421

views

JQuery - $(this).find() is not a function

I am using a Material front-end that is built in Bootstrap. Trying to use JQuery to edit the values of a modal component: Send × $('#formMail').on('show.bs.modal', function (event) { var modal = $(this); modal.find('.modal-title').text('It works!'); //
marcellorvalle
1

votes
1

answer
142

views

Vue loading all the chunks on the first request

I am learning Vue and just got to the routing chapter. I am able to create a template project with vue/cli with a initial router configuration. This is the Router code: export default new Router({ mode: 'history', base: process.env.BASE_URL, routes: [ { path: '/', name: 'home', component: Home, }, {...
marcellorvalle
1

votes
0

answer
12

views

Omit extra parameters on the Redirect URI

I am implementing an Oauth2 auth server using Spring. After authentication I need to generate an JWToken with some extra information in it. I have an AuthorizationServerConfigurerAdapter configuration: @Configuration public class AuthServerConfig extends AuthorizationServerConfigurerAdapter { //extr...
marcellorvalle
1

votes
1

answer
26

views

Invalid JWToken: kid is a required JOSE Header

I am trying to implement an Oauth2 Authorization Server with SpringBoot using this guide as a reference. My keystore has a single key. I have successfully managed to create a JWToken (I can check it at jwt.io). I have also a test Resource Server. When I try to access any endpoint I receive the follo...
marcellorvalle
0

votes
0

answer
4

views

Saving a entity with multiple lazy-associations

I have a scenario where I need to save an entity with multiple associations but I don't want to retrieve these associations if not needed. I will try to give a simple example: Entites: public class Foo { private Long idFoo; private String defaultMessage; /* Getters and Setters Ommited */ } public...
marcellorvalle
2

votes
0

answer
726

views

Resizing Oracle Datafiles

I have an Tablespace with 3 datafiles (autoextend enabled). Actually Datafile_1 and Datafile_2 are 32GB in size and Datafile_3 size is 10GB. I Dropped one huge table and Datafile_2 occupation dropped to 4GB. Using some queries**[1]** over the dba_extents view I could see the HWM was still at 32GB. I...
marcellorvalle
3

votes
2

answer
2.8k

views

Generate the same MD5 using javascript and PHP

I am trying to build an application that needs to compare the MD5 hash of any file. Due to specific issues, before the upload, the MD5 must be generated client side, and after the upload the application needs to check it server side. My first approach was to use, at the client side, the JavaScript...
marcellorvalle
3

votes
3

answer
738

views

Regex to match a pattern only if its length is bigger than a value

I have 2 strings and want to know if string 2 have a subset of the characters of string 1 on the same order this subset has a minimun size determined by me. For example: string 1 = stackoverflow minimun size = 5 string 2a = stack (MATCH) string 2b = stac (DO NOT MATCH) string 2c = staov (MATCH) s...
marcellorvalle
4

votes
3

answer
183

views

Java generic type resolution

I have started to work with Java recently and still got confused when dealing with generic types. The following is a simplified scenario where I am having some problems. I have a class wich holds a Map using a Class type as Key and an Collection of objects of that class: public class GenericListInsi...
marcellorvalle
7

votes
2

answer
382

views

Java and generic type boundaries [duplicate]

This question already has an answer here: Java map with values limited by key's type parameter 5 answers Some background I am developing a small DI Container based on Lambda expressions. I have the interface representing the lambda: @FunctionalInterface public interface LambdaOp { T resolve(); } A...
marcellorvalle