Posts by Milrak Pereira Pessoa • 801 points
46 posts
-
0
votes1
answer48
viewsA: Ansible does not execute mvn clean install command
It is certainly not the best way to solve the problem. But I put the absolute path of Maven and it worked. Staying: - name: Build projeto backend command:…
-
-1
votes1
answer48
viewsQ: Ansible does not execute mvn clean install command
The problem is that amid a deploy automation for approval, I have to execute the command mvn clean install only that I saw Ansible. my task is like this: - name: Build projeto backend command: mvn…
-
1
votes1
answer23
viewsA: Button not activating function in Javascript
The button id, change to id="incluirItensNoGrid" removing the () at the end, because you are setting the property ID and not calling a function... Staying: <div class="modal-footer d-flex…
-
0
votes1
answer345
viewsQ: Authentication error in WSDL
using the phptester to test the following code: <?phptry { $opts = array( 'http' => array( 'user_agent' => 'PHPSoapClient' ) ); $context = stream_context_create($opts); $wsdlUrl =…
-
1
votes1
answer556
viewsQ: Soapclient error with php 7.1 on shared server
I have the following code that works perfectly on host location: $wsdl ='http://ws.portaledu.com.br:8051/wsConsultaSQL/MEX?wsdl'; $client = new SoapClient($wsdl,array( 'trace' => true,…
-
0
votes1
answer350
viewsQ: Does not work the "Soapwrapper" with Laravel
I am trying to consume a WS through application in Aravel 5.6. That’s the test code: namespace App\Http\Controllers; use SoapClient; use Artisaninweb\SoapWrapper\Facades\SoapWrapper; use…
-
0
votes1
answer702
viewsQ: Route api in Laravel 5.4
Through Composer, I started a project with the command: composer create-project --prefer-dist laravel/laravel api After the installation of the dependencies, I was able to visualize the "Welcome" of…
-
0
votes0
answers457
viewsQ: Consume WS with javascript
I’m using Soapui to take the test at WS: Another image that shows authentication to consume XML: Only when I try to consume the same xml only through javascript, I can’t (I think it lacks technical…
-
1
votes3
answers146
viewsA: How to disable the login button when sending the form to the user not to make several requests?
I modified the example of the site: Jquery $( "#target" ).submit(function( event ) { console.log('desabilita'); $("#botao").prop("disabled", true); event.preventDefault(); }); <script…
htmlanswered Milrak Pereira Pessoa 801 -
1
votes1
answer300
viewsA: How to send browser token to server?
I use the satellizer who does this for me, nor do I care where I should save or not. He sends the token JWT to the server, and save the token in the browser. Follow the link: Satellizer…
-
2
votes2
answers239
viewsA: How to transform data from a textarea into an ordered array?
Although ugly, but functional, it improves there: <?php if(isset($_POST['numeros'])){ $resultado = array(); $linhas = explode(PHP_EOL, $_POST['numeros']); foreach ($linhas as $linha){ $numeros =…
phpanswered Milrak Pereira Pessoa 801 -
3
votes4
answers7452
viewsQ: Formatting date with Laravel
I’m unable to change the date format using the laravel 5.4 My model is like this: class Feriado extends Model{ protected $fillable = ['id', 'data', 'descricao', 'created_at', 'updated_at' ];…
-
1
votes1
answer604
viewsA: Rock, paper, Scissors
While running the code here, I noticed the error in the browser console: html:29 test Uncaught Syntaxerror: Missing ) after argument list Line 29 had: alert (Papel envolve pedra); I switched to:…
javascriptanswered Milrak Pereira Pessoa 801 -
1
votes3
answers2249
viewsA: Error: Laravel ao Enviar email
I use version 5.4 of laravel And I went through the same problem, set it up in gmail, with Hotmail, until I got a behavioral email, and nothing made that mistake go away, until I noticed…
-
3
votes1
answer45
viewsA: query in 2 tables at the same time
So we have two tables: Table1: |--------------------------------| |id | descricao | preço | |--------------------------------| |1 |Pão de Mel | 15 | |2 |Pão Frances | 7 |…
queryanswered Milrak Pereira Pessoa 801 -
1
votes1
answer177
viewsQ: select part of the JSON that was filtered in Where
In the database I have a field called resources, in it I save the permissions of a user, in Json format: [ { "rota":"reserva", "sref":"oQueFazer", "ordem":"1", "recursos":[ "index", "show", "store",…
-
0
votes3
answers1741
viewsA: Change the breakpoint (breakpoint) of the navbar
Much simpler than I thought, Open the bootstrap.css file, and using the preferred IDE just apply a "replace all" to the following strings: @media (min-width:768 Trade in for @media (min-width:990…
-
-1
votes1
answer118
viewsA: Laravel and Ajax - Doubt about route
The question is so basic that it’s hard to imagine that this is it: To URL correct to be called is: http://localhost/PASTA_DO_PROJETO/PASTA_ONDE_INSTALOU_O_LARAVEL/public/paineladmin/galeriaArquivos…
-
1
votes2
answers58
viewsA: Returning linked data
Only returns an error on account of your While: while( $row = mysqli_fetch_assoc($resultado)){ $valores['codigo_produto'] = $row['codigo_produto']; $valores['id'] = $row['id'];…
-
2
votes1
answer1478
viewsQ: Clasura Where em campo tipo json no (Laravel + Eloquent)
The problem is the following, I have to bring from a select the permissions that a profile has, only that the permissions are in a json field, and because it is several permissions we have a…
-
0
votes1
answer39
viewsA: Create a Directive that forces the bind of a form
I wonder, how to search a property that is not stated in the code? I used that code adaptation: tcc.directive('forceBind', function() { return { require: '^form', priority: -1, link: function…
-
0
votes1
answer1095
viewsA: Swift_transportexception error when sending e-amil using SMTP + Laravel 5.4
Sometimes the laziness of not reading the documentation gets in the way: Driver Prerequisites /-/ The API based drivers such as Mailgun and Sparkpost are often Simpler and Faster than SMTP Servers.…
-
0
votes1
answer39
viewsQ: Create a Directive that forces the bind of a form
Following a publication by Fernando Mantoan, the thing seems to be quite simple, creates the Directive: myApp.directive('forceBind', function() { return { require: '^form', priority: -1, link:…
-
1
votes1
answer96
viewsA: Why does DELETE give error?
In your controller, force it to return a success message: public function destroy($id){ $clientes = Clientes::find($id); if(!$clientes) { return response()->json([ 'message' => 'Cliente não…
-
1
votes1
answer1192
viewsA: Bootstrap Navbar not functional
First Jquery, then bootstrap. If you look at the developer console, you will notice the error: Uncaught Error: Bootstrap’s Javascript requires jQuery Then change: <!-- Bootstrap JS -->…
-
0
votes2
answers439
viewsA: Tag html inside a string displayed one character at a time
var TxtType = function(el, toRotate, period) { this.toRotate = toRotate; this.el = el; this.loopNum = 0; this.period = parseInt(period, 10) || 2000; this.txt = ''; this.tick(); this.isDeleting =…
-
1
votes1
answer43
viewsA: In this Laravel Validator, what is the right code with variable?
I wear it like this (part of the login code): public function logar(Request $request) { $credenciais = $request->only('email', 'senha'); $validator = Validator::make($credenciais, [ 'email' =>…
-
2
votes3
answers197
viewsA: Press button and appear "CURSOR/ or ANYTHING" until operation is finished
There are 15,000 different solutions to this, and the one I use is css-Loader Very simple to use: 1-Downloads the css file in git. 2- lynx in its application: <link rel="stylesheet"…
-
1
votes2
answers184
viewsA: Enable PHP page with jquery
According to this site this function in jquery executes some command when loading a page // A $( document ).ready() block. $( document ).ready(function() { console.log( "ready!" ); }); And second…
jqueryanswered Milrak Pereira Pessoa 801 -
1
votes3
answers151
viewsA: Display success message once in for loop
You have to create a control variable (auxiliary), to stay inside the loop, and the IF that displays the success message must leave the loop.
-
0
votes1
answer1095
viewsQ: Swift_transportexception error when sending e-amil using SMTP + Laravel 5.4
Speak Person, one more trouble, it’s as follows: I am trying to send an email through my application (api), where I develop with Laravel 5.4. The thing seems very easy, just not! My file . env is as…
-
3
votes1
answer4164
viewsQ: Problems with angular-input-masks?
I am trying to use this module that is available on github and I think this module is very complete, provides the masks I need, however is very confusing its documentation. The point is, I cloned…
-
0
votes3
answers10624
viewsA: Success message after filling the form with HTML and PHP
After the insert line (down in your file inserir_dados.php Puts: <script>alert("Dados Salvos com sucesso!");</script> It is not the most "beautiful" way, but quite simply this is what…
-
0
votes2
answers421
viewsQ: Problem when mounting JSON with database return
It all comes down to this image: The problem is in the JSON mount, it does not group the first result and assigns an array to the dates, as it should be in the image below: Is there a plugin in…
-
1
votes1
answer286
viewsA: Why are you giving him endless noose?
At the beginning of the program you put that A = 0.0; (will receive 0). Then you check whether A is < that 6,3 (Yes, for the first tie that’s true). Then you run the line: A = A - (((pow(A,3) /…
canswered Milrak Pereira Pessoa 801 -
1
votes2
answers1014
viewsA: How to execute a function after Angularjs perform all get/post requests?
You can use the return in "Success" to execute something in case of success or even load an error with the return "error" of an http call. Follow the simple example:…
-
1
votes1
answer31
viewsA: Trigger for immovable system
As you are thinking of executing an action in the bank from time to time, I see that the best option is to use "Events" Create event teste //bome On schedule Every 1 week //aqui é o intervalo Do…
-
0
votes1
answer332
viewsQ: Manipulating list<int> in c++
My Class class Grafo{ int numeroVertice; list<int> *arestas; public: Grafo(int vertices); int addVertice(int quantidade); void addAresta(int verticeOrigem, int verticeDestino); void…
-
-1
votes1
answer2460
viewsQ: Function in Mysql for sending EMAIL
I want to shoot some email to some clients I have registered in a table, I did not want to develop an application to run this task, I would like to do directly in the data group, is it possible to…
-
3
votes2
answers325
viewsA: How to use random in C++?
The code below generates 10 random numbers from 0 to 10; if you random numbers with a longer range, just change the line item = rand() % 100; (now it will generate 10 elements with the range from 0…
c++answered Milrak Pereira Pessoa 801 -
1
votes2
answers2609
viewsA: Run function only once after site loading
I made a code that you can put at the top of the page. <?php session_start(); if(!isset($_SESSION["caixinha"])){ //pega a hora que a página foi carregada $_SESSION["hora"] = date('H'); //se não…
-
5
votes2
answers9312
viewsA: Include PHP Menu
Remove the tags <?php ?> menu.php file (You will leave only html, and save with the php extension as already). and then will call you normally: <?php include "includes/menu.php"; ?> The…
-
2
votes3
answers264
viewsA: Pointer return error in function
I managed to print here: char *monet(float v){ static char str[30]; sprintf(str,"R$ %.2f",v); return str; } int main(int argc, char *argv[]){ char *resultado; float valor = 12735.98;…
-
4
votes6
answers56799
viewsA: What is Nullpointerexception and what are its main causes?
This error always occurs when I try to capture information that had no value assigned. Example: You have in your BEAN a class Client. In your main class you instance Client Cliente cliente = new…
-
2
votes0
answers69
viewsQ: Java socket not printing what it should
Server: BufferedReader inFromClient = new BufferedReader(new InputStreamReader(connectionSocket.getInputStream())); String s = inFromClient.readLine(); System.out.println("> "+s); This simple…
-
-1
votes2
answers505
viewsA: Field validation when submitting form
Simple example of going through all form inputs with javascript WILL MAKE THE MISTAKE IF THERE IS ONE BLANK *I did not test but apparently saw no error. $(document).ready(function () {…