Posts by Gabriel Sousa • 481 points
37 posts
-
0
votes1
answer241
viewsA: Docker
We can divide your process into 2. the build that is running Composer installs and is not giving error, as it is working properly and creating the vendor folder. After the Docker-Compose build is…
-
-1
votes1
answer27
viewsA: Insert user information in the registration confirmation email message
For this you need to create a View that the email class will use as an email template. recommending this video . https://www.youtube.com/watch?v=exPc4kmJOrM&ab_channel=RobsonV.Leite…
-
0
votes1
answer201
viewsA: execute Docker/Docker-Compose commands on external folder
You can use the command of the Docker Composer, so every time before starting it runs a command Remembering that the command you want to run needs a bash so I am calling instead the /bin/bash, but…
-
0
votes1
answer122
viewsA: Single modal for lines of a DATA TABLE
To get a better result on the front end you can try using another approach like using Vuejs which is recommended by the Aravel itself. Vue allows you to create more dynamic applications using less…
-
1
votes1
answer408
viewsA: Docker-Compose error after removing containers
This is giving permission error in a Mysql file, probably because you are creating a database volume by setting a local folder, You can delete Mysql folder, this will erase the database sudo rm -R…
dockeranswered Gabriel Sousa 481 -
0
votes1
answer35
viewsA: Multi-language website folder and file structure
There are several ways to make such a structure, you can create a file where you will be saved all the texts of your site. create a file for the languages you want example: php. <?php $titulo =…
-
0
votes2
answers62
viewsA: Python 3: How to recover key names after a Sorted
abaixo_da_meta is a list, you have to go through it to be able to compare the values correctly. sellers = [ {"name": "Joaquina", "store": 2, "value": 1200.00}, {"name": "Pedro", "store": 2, "value":…
pythonanswered Gabriel Sousa 481 -
0
votes1
answer33
viewsA: Using the dockerp-Lamp
Try this version: "3.1" services: www: build: . ports: - "80:80" volumes: - ./www:/var/www/html/ links: - db db: image: mysql:8.0 ports: - "3306:3306" command:…
-
1
votes1
answer1094
viewsA: Fetch file path from input type="file"
First you need to get the file that comes in $_FILES[ ], Unlike other input types, files are sent to the PHP server through $_FILES, with it you can recover name, format, the file itself and etc. An…
-
0
votes2
answers68
viewsA: doubts regarding a dynamic select
You can sort requests with the SQL query with ORDER BY nome_do_compo DESC SELECT * FROM produtos WHERE id_compra = 'o id da compra' ORDER BY quantidate DESC; sql above sorts the products by the…
-
0
votes1
answer62
viewsA: Dashboard with php
There is a formula ready friend, imagine that Dashboard, but basically you will create several scipts on your site that collect information and save this data in the database. Then on your Dashboard…
phpanswered Gabriel Sousa 481 -
0
votes1
answer191
viewsA: Process of completing PHP purchase
you can use a json field and save the products with their Ids, value and quantity most databases support this type of data, as you are using PHP believe you are using Mysql, this is the official…
-
0
votes1
answer119
viewsA: Scalability with Pm2 or Docker?
Let’s go in pieces Pm2 is a Process Manager for Ode, basically it helps you monitor the application and get increased availability. Docker - tool to isolate processes, regardless of language type.…
-
0
votes1
answer76
viewsA: Configure Docker api to accept remote calls
You must access the Docker via SDK, which the Docker itself provides https://docs.docker.com/develop/sdk/examples/…
-
3
votes1
answer1078
viewsA: Delay in Java
Try using Thread.Sleep(); package com.journaldev.threads; public class ThreadSleep { public static void main(String[] args) throws InterruptedException { long start = System.currentTimeMillis(); //…
-
0
votes1
answer35
viewsA: Docker Automatic Containers after RUN on Dockerfile
this is normal, the first column of None is saying that it has a repository that means that you created (build) but did not associate to the Docker Hub repository for example, the second column was…
-
1
votes1
answer290
viewsA: Would the Docker in Laravel be the same as the Laragon?
The two are very different, the Laragon isolates the development environments while the Docker isolates the operating system resources using the OS kernel base, for this reason the Docker becomes a…
-
0
votes1
answer142
viewsA: How to deploy a Windows container to Heroku?
Heroku and most servers only deploy images based on the linux kernel because of Windows limitations, when it says to run on Windows and go up to Heroku it is telling you to develop in a linux base…
-
0
votes1
answer48
viewsA: Pass JS variable to PHP
in your function 2.php you should do something like this $comprovante = $_GET['comprovante']; // exemplo caso só precise percorrer uma lista foreach ($lista_vendedores as $vendedor) {…
-
4
votes1
answer1333
viewsA: Very slow docker in Windows 10
Unfortunately Docker in Windows is not so good, because he has to emulate a Linux machine to serve the kernel for the images and only then use the concept of container and batteries, and another…
-
0
votes2
answers462
viewsA: Laravel multitenancy with a user-only BD
It has a way of doing yes and has several approaches. 1 - Use multi-tenant library https://github.com/hyn/multi-tenant 2 - Make a class that will serve as middleware and always make the requisitions…
-
0
votes1
answer60
viewsA: Migrate Kohana to Laravel
You must configure in . ENV that stores the environment variables Example: APP_URL=http://localhost/sub read more in the documentation https://laravel.com/docs/5.8/configuration…
-
0
votes2
answers914
viewsA: Artisan Laravel not installed
within the project folder you must give Composer install to install the project dependencies
-
1
votes1
answer38
viewsA: Laravel + Android
routes is a web development concept android already uses an event orientation concept. If the question is to create routes on android the answer is no, because the user interaction comes through an…
-
1
votes2
answers87
viewsA: Updating OS packages from a Database container
You have to work with volumes to save the data outside the container, when it is to update only changes the container image, but the data is the same
-
1
votes1
answer294
viewsA: Error running container (Docker) with browser-Sync
Your application is giving error and stopping and execution at nodejs, as Docker sees that your Node has stopped and has no more processes it drops the container. try to handle application error…
-
2
votes2
answers940
viewsA: Status Exited (0) after a Docker-Compose up command
Containers use a concept that you have to execute what you ask for and then die, i.e., container is made to die. What’s happening is that the container is performing all the tasks and then dies, you…
-
0
votes1
answer200
viewsA: Error running PIP command on Docker
I managed to solve the problem, Here in the company uses NET and by default they block most of the doors, what happened was that the PYP did not make the communication by door lock, I requested the…
-
1
votes1
answer200
viewsQ: Error running PIP command on Docker
I have a python project that runs inside a Docker. When the image (Build) is mounted rele da um RUN pip install -r requirements.txt but when it executes the command returns a connection error.…
-
1
votes2
answers5547
viewsA: API or database to achieve latitude and longitude
I found how to do, there is this API OSRM and Nominatim, they do the same Google maps, but and Open Source. I set up a Docker for him and it’s working perfectly.…
-
-1
votes2
answers5547
viewsQ: API or database to achieve latitude and longitude
I need to know the latitude and longitude from a place searching for the CEP or any other option that you make available to me, may not be that of Google maps. Does anyone know any API or base de…
-
1
votes2
answers160
viewsQ: tool or technology to assist in controlling database data
I have a web application, that constantly the database receives data, the application is all tied to the database. if a change is made can compromise the whole system, I wish I could return a point…
-
4
votes1
answer68
viewsQ: Ecomerce maintenance environment - Prestashop
I took a service to support an e-commerce on the Prestashop platform. I found the environment configured this way: The main application files are in bitbucket. To do the maintenance, I change the…
-
0
votes3
answers638
viewsA: How to take the current time and decrease 24 hours of it?
The getDate() function of the Date object captures the day data = new Date();//cria o objeto dia = data.getDate();//recupera o dia atual console.log(dia) so it is positive to manipulate the variable…
javascriptanswered Gabriel Sousa 481 -
1
votes3
answers299
viewsA: Grid bootstrap getting misaligned in panel with results brought from database
bootstrep uses a grid system that a row (Row) can have up to 12 columns. when you dola the loop while it generates an x number of squares within a Row each square uses column uses 4 Row spaces while…
-
0
votes3
answers299
viewsA: Grid bootstrap getting misaligned in panel with results brought from database
Let’s go in pieces Semantically the HTML is wrong <h3 class='panel-title'> <h3> <font color='#FFFFFF'> <a class='Modal' data-toggle='modal' data-target='#myModal'><span…
-
3
votes0
answers952
viewsQ: voice recognition with Python 3
I’m developing a desktop application, I need to use voice recognition, but all the material I think is related to version 2 of Python. Does anyone know how to do this using libraries for Python 3?…