Posts by André Raubach • 93 points
10 posts
-
1
votes0
answers164
viewsQ: Job Format does not pass constructor data to Handler
When dispatching a job in Laravel 5.6, send parameters to it. In the constructor, the parameters are received normally, containing the data sent. However, when executing the job with the php artisan…
-
0
votes1
answer984
viewsQ: Obtain approach radius from a geographical coordinate
I have a PHP application that gets the latitude and longitude of an address, using the Google Maps API. The idea is to delimit a "tolerance" distance around this point to later validate whether the…
-
0
votes0
answers35
viewsQ: PHP query with response from another query
I run a query that returns me a list of Ids. With each ID of this list I want to do an Insert in a second table. My code: <?php $db = mysqli_connect("localhost","root","","test") or die("Erro ao…
-
2
votes1
answer195
viewsQ: How to make a "for each" on Sqlite
I have an A table with n records. For each record of this table, I want to get information from a field x to make a select and, based on the results of select, make a insert in a table B. Only I…
-
0
votes2
answers652
viewsQ: Convert SQL query to Mongodb
I have little (or no) knowledge in non-relational banks. I need to convert the below query (Sqlite) into an equivalent query to be executed in Mongodb. SELECT COUNT(*) FROM match_table WHERE…
-
0
votes0
answers137
viewsQ: How to convert a JSON to a generic class
In a project with multiple client-server applications, I have a number of configuration files in JSON, which contain the connection port, host, etc. For each application, the information in JSON is…
-
3
votes2
answers677
viewsQ: Java regex help - comma-separated sequence of numbers
I’m breaking my head to put together a regular expression that validates String: /aluno/1/Teste dos Testes/1,2,3 String reg = "/aluno/[0-9]+/[^0-9]+/......." I’m having trouble validating last field…
-
0
votes1
answer1911
viewsQ: Insert Json within Json
In a client-server structure (in JAVA), I have the following Json structures separately (example): Structure of Students: {"idAluno":1,"nomeAluno":"Teste da Silva","listaDeTurmas":[1,2]} Structure…
-
0
votes2
answers407
viewsQ: Sort objects in json file (Java)
I have the following JSON file: {"idAluno":1,"nomeAluno":"Teste","listaDeTurmas":[1,2,3,4]} {"idAluno":4,"nomeAluno":"Teste","listaDeTurmas":[1,2,3,4]}…
-
2
votes0
answers264
viewsQ: Include and remove elements from a Json with lib Gson (Java)
I am using the Gson library in Java, I have the following structure in a json file: {"idAluno":4, "nomeAluno":"Teste da Silva", "listaDeTurmas":[1,2,4]} Is it possible, with this library, to change…