Posts by Billly Jow • 193 points
12 posts
-
1
votes0
answers250
viewsQ: Generating jwt manually using JAVA, but jwt.io does not validate
I am trying to manually generate JWT in Java without using libs, but the returned JWT is not being validated by the web application https://jwt.io/. public String authenticateUser(String body) { try…
-
0
votes1
answer63
viewsA: JAX WS RS JPA does not return Onetomany relation in JSON
After many researches, I arrived at the following solution. The Called model must contain in the Historical Collection attribute the annotation that informs the relation type and as a parameter the…
-
-1
votes1
answer63
viewsQ: JAX WS RS JPA does not return Onetomany relation in JSON
In my relationship, a Call is related to many Histories. The key to the Call is present in each History. When consulting a History by code, there is a @Manytoone relation that returns the Call to…
-
0
votes1
answer335
viewsA: RNA training phase - Artificial Neural Network in Weka
Testing Step five is network testing. During this phase the test set is used to determine network performance with data that has not been previously used. The performance of the network, measured at…
wekaanswered Billly Jow 193 -
0
votes0
answers57
viewsQ: Jsonobject does not add Arraylist
I use the code below to popular my arrays quietly, but when researching a topic here, I realized that for my problem I could use a generic class. The problem is that Jsonobject is not populating…
-
0
votes1
answer32
viewsQ: Query to count how many fields equal to 0 a record has
I need to return how many fields equal to 0 each record has and rank the one with the most zeros down. Example: id | col2 | col3 | col4 1 | 1 | 0 | 0 2 | 0 | 0 | 0 3 | 0 | 1 | 4 4 | 0 | 3 | 5 5 | 3…
-
0
votes1
answer335
viewsQ: RNA training phase - Artificial Neural Network in Weka
I am developing software that enables users to create new Rnas. When creating a new Multilayerperceptron RNA in Weka, the testing phase is already performed by lib routines or it is necessary to…
wekaasked Billly Jow 193 -
0
votes2
answers176
viewsA: Select a certain amount of data for each status type
SELECT h.* FROM historico h LEFT JOIN historico h2 ON h.his_status = h2.his_status AND (h.his_data < h2.his_data OR (h.his_data = h2.his_data AND h.his_codigo > h2.his_codigo)) WHERE…
-
12
votes2
answers312
viewsQ: Optimization of SQL code
How can I optimize the following code to not use 3 Selects and not plaster the query to only 3 status ( SELECT * FROM historico WHERE his_status = 'FRACASSO' ORDER BY his_data DESC LIMIT 50 ) UNION…
-
2
votes2
answers176
viewsQ: Select a certain amount of data for each status type
Billy Jow here! On my table historical I have a field status that can assume four possible values: 'EVALUATE', 'FAILURE', 'REEVALUATE', 'SUCCESS' I wish to select 20 records from each status where…
-
2
votes1
answer646
viewsA: Android, PHP e Httpurlconnection - Send a message to PHP with UTF-8
Java Code in Android App: String solicitacao = URLEncoder.encode(txSolicitacao.getText().toString(), "UTF-8"); String descricao = URLEncoder.encode(txDescricao.getText().toString(), "UTF-8"); PHP…
-
2
votes1
answer646
viewsQ: Android, PHP e Httpurlconnection - Send a message to PHP with UTF-8
Gentlemen, good morning/afternoon/evening! I’m having trouble accentuating words. The back-end of my system works in PHP chatting with an Android app. When I send the App message to the PHP server…