Posts by adventistaam • 3,354 points
330 posts
-
2
votes1
answer121
viewsA: Connect Laravel to Mysql
I found the problem: I added the link to the php73 container: links: - mysql:db Then my file went like this: version: "3.3" services: mysql: image: mysql:8.0.1 container_name: mysql environment:…
-
-1
votes1
answer121
viewsQ: Connect Laravel to Mysql
I’m trying to develop an Laravel application with Docker My Docker-Compose.yml file looks like this: version: "3.3" services: mysql: image: mysql:8.0.1 container_name: mysql environment:…
-
0
votes1
answer35
viewsQ: Query between multiple Inserts
I have an api that is every second (varying the time according to the response of the webservice) sending data to be inserted into the nodejs(v12.11.0) of several units that call the url…
-
-1
votes1
answer45
viewsQ: See list of containers
I am using Docker Toolbox (Docker on Windows 10), when I have to give the command docker ps it brings the following result: error During connect: Get…
-
-1
votes1
answer61
viewsQ: Connect to LAN database
I have the following network: Standard gateway -> 192.168.1.1 Host -> 192.168.1.2 Database (Mysql) -> 192.168.1.3 I generated a container using Docker-Compose.yml with the following…
-
0
votes1
answer699
viewsQ: Configure Mysql in Docker container
When I take an SQL file of about 80 Mb and try to dump it in Mysql Workbench He gives: Error Code: 2006. Mysql server has Gone away My Docker-Compose configuration looks like this: version: "3.3"…
-
2
votes1
answer114
viewsQ: Know the total file size to download
I have the following code that downloads file from the internet public boolean copiar(){ boolean teste = false; try { String local = System.getProperty("user.dir") +"\\PDV.jar";; String archive =…
-
0
votes1
answer86
viewsQ: Access specific folder project
I have the following url http://localhost/meuApp Angled My file . htaccess is like this: RewriteEngine On # If an existing asset or directory is requested go to it as it is RewriteCond…
-
0
votes1
answer72
viewsA: Use custom folder directive
I managed to make it work, but it was like this: The seletor of my directive I put onClickOutSide @Directive({ selector: '[onClickOutside]' }) export class ClickOutSideDirective { @Output ()…
-
0
votes1
answer41
viewsQ: Release url that start one way
I am using jwsonwebtoken and would like to release urls with dynamic ending that is to download files For that I have the following code: import * as jwt from 'jsonwebtoken' import env from…
-
-2
votes1
answer72
viewsQ: Use custom folder directive
I created this directive inside a directive folder app |_ diretivas |_ click-outside.directive.ts My directive is like this: import { Directive, Output, EventEmitter, ElementRef, HostListener } from…
-
0
votes0
answers51
viewsQ: Deploy application using --Prod and path strategy
I’m trying to deploy angular application 8 When I use the command ng build --prod --base-href /app/ When I try to run the application on localhost/app The app does not load On the console you have…
-
0
votes1
answer266
viewsQ: Socketio com Typescript
I am trying to make a Altime application with express ( 4.17.1"), Node (10.12.0) using typescript. Only in the socket that is giving Cors problem Access to Xmlhttprequest at…
-
1
votes0
answers30
viewsQ: Submit form with file
I have the following form: <form [formGroup]="notifForm"> <div class="box-body"> <app-input errorMessage="Preencha a Descrição" [showTip]="false"> <label…
-
0
votes1
answer76
viewsQ: Call Jdialog without closing/hide Jwindow
I’m making a shipment using a Jwindow public class TelaCarregamentoConf extends JWindow{ // JProgressBar barradeprogresso; Outraclasse outra = new OutraClasse(barradeprogresso) new Thread(){…
-
0
votes1
answer121
viewsQ: Remove options from Google Maps
I’m using the Google Maps and would like to take away all other options (restaurants, churches, schools, posts, etc.) and leave only my markers Currently I start the map like this: function initMap(…
-
1
votes3
answers157
viewsA: How to do explode inside the $request->all() array
You can make a foreach and take the key and from there do the explode <?php $array = array( "_token" => "NZ68b8h3L560aUc6DXBeb8Myb4JFD0hSgfSpJ2Lk", "_method" => "PUT", "col1-22" => "22",…
-
0
votes1
answer242
viewsQ: Problem in angular design
I went to try to install the socket.io-client in my project and ruined my system Is giving the following message: Unhandled Promise rejection Error: Zone.js has Detected that Zoneawarepromise…
-
3
votes1
answer1084
viewsQ: Return value of Promise
I have the following code: const retorno_valores = [] result.forEach( value => { var reader = getReader(conn, 10) retorno_valores.push({reader}) }); const getReader= async (conn, cdReader)=>{…
-
1
votes1
answer61
viewsA: Problem with Utf8 encoding in Laravel
In Laravel you can show exactly the contents of your string with {{ }} Example if you saved like this: | campo | | <h1>Bem vindo</h1> | If you use it like this: {{ $field }} He’ll show…
-
0
votes1
answer516
viewsA: pm2 is not recognised
What I tried to: I closed and opened I restarted the server I tried as an administrator None of it worked: I realized that I had a node_modules folder in my drive where Apis are located…
node.jsanswered adventistaam 3,354 -
0
votes1
answer516
viewsQ: pm2 is not recognised
After giving the command npm i -g pm2 When close and open cmd and type pm2 to test He says that: 'pm2' is not recognised as an internal or external command, a operable program or a batch file How to…
node.jsasked adventistaam 3,354 -
0
votes1
answer101
viewsQ: Allow https source access
I developed a Node api using restify only for real-time warnings, but came across a https problem: If the origin of the request comes from an https site the api does not work My Cors on the Node is…
-
2
votes2
answers367
viewsA: Can’t you use onclick in a select option?
You can use the $('#tamanho').on('change', function(){ to choose the options Look at the example $('#tamanho').on('change', function(){ const value = $(this).val() if( value == 'Nenhum' ){ nenhum()…
-
0
votes1
answer21
viewsQ: Add first item to Jcombobox
I’m filling my Jcombobox like this: private void preencherCombo( ){ jComboEstado.removeAllItems(); List<Estado> lista = ec.listaObj(""); jComboEstado.addItem("Selecione um estado"); for(…
-
1
votes1
answer144
viewsQ: Equivalent to sendFile in restify
I would like to show a page when calling a route on Node using restify No express use like this: app.get('/', (req, res)=>{ res.sendFile(__dirname+'/index.html') }) What it would be like in…
-
2
votes1
answer111
viewsQ: Problem updating
I am the following version of php PHP 7.2.19 (cli) (built: May 29 2019 13:58:59) ( ZTS MSVC15 (Visual C++ 2017) x64 ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c)…
-
0
votes1
answer33
viewsQ: Using the dockerp-Lamp
I’m trying to user the Docker-Lamp But every time I try to access phpmyadmin with root login and password 123, it gives the following message Não é possível fazer login no servidor MySQL…
-
0
votes1
answer39
viewsQ: Multiple validators in the form
I have the code seguints With the version of angular.json so: "@angular/cli": "~6.0.0" When trying to use a more current version it looks like this: With the angular cll so: "@angular/cli": "1.2.7",…
-
0
votes1
answer353
viewsQ: Problem running application
Following this tutorial here, when you arrive at the first execution, my project does not run I downloaded my initial project from Springinitializr. My pom.xml file looks like this: <?xml…
-
-1
votes2
answers78
viewsA: Comparison of php dates
Another suggestion would be that: You can use with PDO: <?php class Horas_DAO { private $conn = null; public function verificaDatas($data1, $data2) { require_once "conexao_pdo.php"; $retorno = 0;…
-
1
votes1
answer110
viewsA: Mysql Date type field returning incorrect value in Java
By taking advantage of your code in the getDtNascimento function, you can add getTime(). Example: Calendar data = Calendar.getInstance(); data.setTime(rs.getDate("dataNascimento"));…
-
0
votes3
answers55
viewsQ: Switch between results
Hello! I have the following appointments: SELECT id, nome, idade, data_nascimento, cpf FROM internos WHERE cpf = '12345678911' and SELECT id, nome, idade, data_nascimento, cpf FROM externos WHERE…
-
0
votes1
answer65
viewsQ: Convert jquery object to html DOM
I have the following code: var valuePlan = variavel > 0 ? $('<a>').attr({ target: '_blank', href: 'file.php' }).append( m.plan ) : '' In the code above, I check if the variable is greater…
-
-1
votes2
answers626
viewsQ: Install Docker in Mint
I’m trying to install Docker on my Linux Mint 19 64-bit Cinamon laptop using this tutorial Only when you reach that line https://docs.docker.com/install/linux/docker-ce/ubuntu/ 1. I have the…
-
0
votes1
answer345
viewsQ: Set up dynamic menu
I have the following array I would like to introduce a menu with a dynamic submenu, more or less like this one I tried to do it that way <ul class="sidebar-menu" data-widget="tree"…
-
3
votes1
answer203
viewsQ: Return Array inside the other
I have the following array Array ( [0] => Array ( [id] => 232 [menu] => Energia [logo] => fa-bolt [url] => # [submenu] => Array ( [0] => Array ( [id] => 209 [menu] =>…
-
0
votes1
answer86
viewsQ: Apache does not find URL
I developed my page using angular Only that by giving the ng build --prod --bh=/projeto/ When I want to access my system by sending a parameter via url The same only works if you are using the…
-
0
votes0
answers61
viewsQ: Raspberry PI does not load page
We developed a page using Laravel to load on Raspberry Pi Load normally, only there was a need to change technology. We did not change to angular/cli The angled page does not connect. Gives Gah!…
-
0
votes1
answer454
viewsQ: Laravel keeps missing the session
Hello I have a system developed in Laravel 5.6 that keeps missing the session When I log in: private $prefix = ''; public function __construct(){ $this->prefix = env('APP_NAME')."_"; }…
-
2
votes2
answers84
viewsA: Group Messages by PHP date, Jquery
I think pirmeiro you should group the array inside php My suggestion is this: Inside your loop, in the function if ( !in_array_r( $date, $sorted_date )) { $sorted_date[] = array( 'data' => $date,…
-
9
votes2
answers813
viewsQ: Draw circle in Html5
I’d like to draw that circle But that’s all I got here yet function draw() { var canvas = document.getElementById('circle'); if (canvas.getContext) { var ctx = canvas.getContext('2d'); var X =…
-
0
votes1
answer973
viewsQ: Return message to user
I would like if this error when logging in to return a message to the user In my view login.blade.php is like this div class="login-form"> <form action="{{ route('logar') }}" method="post">…
-
1
votes0
answers61
viewsQ: Error Validation after firing
I have the following function that fires a form I would like in case that mistake showed showValidationError on sweetalert2. At least to say that the field is mandatory or error when saving…
-
0
votes0
answers61
viewsQ: Convert string to path
I would like to save the route in the database. So I saved it like this. Example: Route table | id | rota | | 1 | route( 'login' ) Then I would like to recover and use as route even in Laravel, in…
-
0
votes1
answer88
viewsQ: Prefix in Node restify
I have my module in the nodejs and I would like to have a prefix so I don’t have to repeat every time the beginning: For example, in the file route js const db = require('../services') const routes…
-
0
votes1
answer45
viewsA: Use the device camera
I was able to solve it this way: To use the normal camera in Ionic 3 you need to run the following commands If you already have in package.json a plugin with version 5, delete 1. ionic cordova…
-
0
votes1
answer45
viewsQ: Use the device camera
I would like to use the device camera but I’m finding it difficult In my file list.ts is just: import { Camera, CameraOptions } from '@ionic-native/camera/ngx'; constructor(public navCtrl:…
-
0
votes1
answer53
viewsQ: Sort array by first coming the object
I have an object that returns array and object at the same time Example: I was able to retrieve the object by calling straight var obj = { name: obj.name, month: obj.month, year: obj.year } You can…
-
1
votes0
answers87
viewsQ: Apache2.4: Service is already installed
I’m trying to install two apache2.4 services only with different ports, 64 and 32 bits respectively. Both using the php7 64-bit apache2.4 is installed. As I thought it was because architecture…