Posts by João Paulo Silva • 177 points
18 posts
-
0
votes1
answer2528
viewsQ: Release local port to Docker
When I give a telnet from inside the container on port 3306 it from the refused Connection message. When running the command below I have an error saying that the door is in use docker run -td…
dockerasked João Paulo Silva 177 -
0
votes1
answer97
viewsA: Problem sorting Mysql results in Datatables
You need to see the Ajax you’re going through. I’ll give you an example that works: $query = "SELECT a.idcharge, a.cha_tag, a.cha_date_entry, a.cha_obs, b.mod_name, c.bra_name, d.typ_vehicle_name,…
-
0
votes2
answers536
viewsA: Laravel validation if there is a child record
Follow the adapted solution following example above: <?php namespace App\Rules; use Illuminate\Contracts\Validation\Rule; use App\Models\TypeVehicle; class CheckTypeVehicleChildren implements…
-
1
votes2
answers536
viewsQ: Laravel validation if there is a child record
I wonder if there is any default validation that returns an error to the user if he tries to delete a parent record where there are children. I have a table of vehicle types, where I register car,…
-
0
votes1
answer30
viewsQ: How to validate Insert with relationship
I have three tables, one of the types of vehicles: car, motorcycle. A table of brands: Honda, Ferrari Another associative, called tag_type_vehicle. The Honda brand for example, has cars and…
-
0
votes1
answer62
viewsA: How do I remove a commit from the history?
I figured out which commit I wanted to go back to: git log I went back to an earlier one than I had versioned: git reset (hash do commit) If you also want to undo the changes in the file: git reset…
-
1
votes1
answer62
viewsQ: How do I remove a commit from the history?
In the first commits I versioned my e-mail password, now I uploaded a file. dist without this password, but wanted to remove from the commit history the file that had my password. That’s possible?…
-
0
votes1
answer80
viewsA: Datatables Jquery
I managed to solve, by way of curiosity I’ll leave to help someone else who goes through the same mistake. $json_data=array( "draw" => intval(1), "recordsTotal" => intval(1), "recordsFiltered"…
-
0
votes1
answer80
viewsQ: Datatables Jquery
I can list the data, but I can’t filter the data, my query is right, returns the json, but I get a processing message. I’m using the slim for the routes. my call: <script>…
-
0
votes2
answers383
viewsA: Problem with file_get_contents
use a library called Guzzlehttpclient. follows the documentation: http://docs.guzzlephp.org/en/stable/request-options.html Example of how to get a get with her: $client = new Client([ 'verify' =>…
-
5
votes2
answers866
viewsQ: Git - how to ignore files inside a folder
How do I view the folder without Versing all the files that are inside it? I have tried several ways and I can’t, either versioning the files or stopping the folder. I need it created for the proper…
gitasked João Paulo Silva 177 -
3
votes1
answer381
viewsQ: Calculation of SQL hours
I need to implement a report of hours worked within a period. My difficulty is as follows: the records of each day are in different lines and because of this, I’m having difficulty to beat the entry…
-
0
votes0
answers61
viewsQ: Error while passing parameter
I will try to give you as much detail as I can, but I don’t even know how to make a mistake in this situation. I am sending data via POST with Ajax, but one of the fields does not pass value to PHP.…
-
0
votes2
answers48
viewsA: Working with Ajax
I managed to solve the problem! the tips helped me get on a path and adapt, thank you! include_once('status_logado.php'); require_once('db.class.php'); //crio uma array $retorno = array(); $placa =…
-
0
votes0
answers39
viewsQ: How to receive a Webapi data parameter
I receive an xml in my webAPI and deserializo it. What I did, I took the exact XML template that I’m going to receive and I call my service locally, just for the test effect. So far so good, I can…
-
0
votes2
answers48
viewsQ: Working with Ajax
In a field Blur event, I give a select in my bank and bring a value and fill in my html. My question is how I get more than one result or a specific result on the ajax date. The code below works,…
-
3
votes1
answer282
viewsQ: Ajax does not work on firefox and Chrome works
I’m giving an input in the database, Chrome works, firefox my request not success. Someone has already gone through this? I switched the serialize() function and passed the values invidual, to see…
-
3
votes1
answer408
viewsQ: deserialize xml c#
I made a call through my web api and put in a class. How I display the values? xml: <result> <resourceName>activity</resourceName> <size>1</size> <entries>…