Posts by Adriano Valentim • 73 points
5 posts
-
0
votes1
answer37
viewsQ: Generate key to access document
I need to generate a key that contains letters and numbers Ex: "AJ67G8". I am generating with Random from java.io.Serializable: public static String nomeAleatorio(int nCaracteres) { Random rand =…
-
0
votes1
answer129
viewsQ: Error when requesting API
I’m getting an error, possibly from CORS, when making a GET for an API, which is a third-party API and I don’t have how to release server-side CORS: Exception in thread "main"…
-
2
votes2
answers91
viewsQ: Problems traversing Javascript object
I am consuming an API and displaying data with React. The API returns the following Json: { "1": { "id": 1, "nome": "Outros", "abreviacao": "OUT", "escudos": { "60x60":…
-
2
votes0
answers69
viewsQ: Why doesn’t my Managedbean receive the amount passed on the xhtml page?
I am in error of those who can no longer visualize the problem and maybe, you "looking from outside" can help me. The question is simple, I’m not getting the value of an input from my view in…
-
1
votes1
answer67
viewsA: Timestamp or datetime calculate Lifetime/diff (php)
That time is in milliseconds. Convert to 41.0772675 h hours 41h -24(one day) = 17 that is 1 day 17 hours