Posts by Matheus Barbosa • 361 points
31 posts
-
0
votes1
answer61
viewsA: How to use useRef correctly with React in ionic5?
As @Virgilio commented, using the ref for this case is not ideal. I solved the problem by resetting the state responsible for storing the select value. This worked because the possible values are in…
-
0
votes1
answer61
viewsQ: How to use useRef correctly with React in ionic5?
I’m using the following dependencies: Ionic/React: 5.0.7 React: 16.13.0 typescript: 3.8.3 I own a select: <IonSelectOption ref={refExemplo} {..propsDeExemplo…
-
0
votes2
answers532
viewsQ: How to render html inside a functional component in React?
I’m using the version 16.12.0 React. I own a functional Component called Card and would like to insert html into it (I would like to not change its source code). Card: function Card ({cardHeader,…
-
2
votes1
answer117
viewsA: How to connect a python container Docker to a sqlserver
Going through the container files I found the . ini that supposedly indicates the ODBC version installed, there was ODBC Driver 17 for SQL Server, that is, the container driver version was 17, while…
-
1
votes1
answer117
viewsQ: How to connect a python container Docker to a sqlserver
I want to create a python3 container that can connect to a SQLSERVER, I’m using Django in my application and it doesn’t have a native driver to make that connection. I created an image to configure…
-
3
votes1
answer811
viewsQ: Angular Integration with Pagseguro
I am trying to implement an integration of Angular 8 with the billet generating api of pay-off. Making the request by POSTMAN, I can generate without problems, by angular I am blocked by CORS.…
angularasked Matheus Barbosa 361 -
0
votes1
answer135
viewsQ: Exchange standard POST form
I have a Jquery function that creates a JSON object exactly as I need it. At the end of this function I send a POST to an API by passing this object $.post('http://localhost:3000/testStatus',…
-
0
votes1
answer49
viewsQ: LIKE with strange behavior in MYSQL
I have the following query SELECT p.nome_completo, p.id_pessoa, curr.link_video, prof.nome as nome_profissao, fav.id_favorito as fav_id FROM candidato as cand INNER JOIN pessoa as p on (p.id_pessoa…
-
-1
votes1
answer49
viewsA: Loader after clicking the link (a)
Try to decrease time in setTimeout(wptime_plugin_remove_preloader, 2000); This 2000 means 2000ms or 2 seconds. Try putting 500 ( 0.5s )
javascriptanswered Matheus Barbosa 361 -
2
votes1
answer20
viewsA: PDO returns only one rewrite
The method fetch do PDO will return the next records ( ie only one line ). The method fetchAll will return all lines of your query. fetch : https://www.php.net/manual/en/pdostatement.fetch.php…
-
0
votes1
answer21
viewsA: Iterator abnormal behavior within a JS function
Well, I solved it this way $('#resultadoBusca').append('<ul id="resultPaginacao" class="pagination justify-content-center">'); for(i=0; i < result['total_paginas']; i++){…
-
-1
votes1
answer21
viewsQ: Iterator abnormal behavior within a JS function
I have a function to generate pagination buttons dynamically, so I have to generate a button for each page ( of the page total ), so I used a for for that reason. $('#resultadoBusca').append('<ul…
-
3
votes1
answer265
viewsA: Git with Github / Java Project
Well, you can change your . gitignore as you wish, I find it strange to be created automatically by ignoring your /src/. But you can open it and take anything out. The ideal is for you to upload…
-
0
votes2
answers806
viewsA: App not compatible with buildpack (Heroku)
To upload an application in Django it is nice to use the https://www.pythonanywhere.com/. It already has some settings and interface to move up your application. Take a look and see if it solves…
-
0
votes1
answer102
viewsA: "Git for windows" in English
I looked here on their website and the translation to Portuguese has just been started, so I believe it is not yet available to use translated, you can see the complete translations, in progress and…
gitanswered Matheus Barbosa 361 -
0
votes2
answers192
viewsA: Change HTML during AJAX request
You can use the append instead of text, so it will include in html that has the desired id. example: $('#sensorName').append('AQUI ENTRA O HTML QUE DESEJA'); This html can be a…
-
0
votes1
answer20
viewsA: helps how to store image in mysql database and display it in index
Good, you take a look here: https://www.devmedia.com.br/armazenando-imagens-no-mysql/32104 is an article talking about storing images in mysql. Another alternative is to use Imgur API…
mysqlanswered Matheus Barbosa 361 -
0
votes1
answer426
viewsA: Connect php container + Apache container + mysql container without Docker-Compose
Well, looking at your problem, it seems to me that you don’t need the apache container, since with PHP you were able to instantiate a server as follows: php -S localhost:8000. Starting from this…
-
2
votes2
answers656
viewsA: Access web application that is running on apache from a Docker container inside a linux server that I access for ssh
First of all you need to know if the network that this server is, can be accessed by your machine direct by IP, and can test this by pinging its ip. If your machine can ping the server, it means…
-
1
votes2
answers187
viewsA: When selecting checkbox it selects other checkbox
Notice that you are going through a list of products, and for each product you generate a row in a table. But your id checkbox is the same for all rows in that table. Try to generate an id for each…
-
2
votes2
answers62
viewsA: error when compiling C++
Notice that you are putting a comma in place of a dot and comma in float v1,v2,v3,vt,vta, should be float v1,v2,v3,vt,vta;.
c++answered Matheus Barbosa 361 -
1
votes1
answer41
viewsA: 409 when trying to find a CSS
I did not find out exactly the reason for the conflict, I believe it was a problem with hostgator, I changed the name of the CSS file and returned to work on all machines..
-
-1
votes1
answer41
viewsQ: 409 when trying to find a CSS
I have a website that locally works all right. But when I go up to the server ( hostgator) The page is missing one of the CSS files, looking in the console Stop that when trying to fetch the CSS in…
-
1
votes2
answers97
viewsA: Use updatemany in Mongoose in a request
I figured out what the problem was, in Mongoose, necessarily I need to pass the last parameter which is a function so to solve the initial problem the code would be: for(let n of obj){…
-
1
votes2
answers97
viewsQ: Use updatemany in Mongoose in a request
I’m trying to make a update/Insert with the Mongoosis when finalizing a request. This request returns to me, for example: let obj = [ {nome: aaa,idade: 10}, {nome: bbb,idade: 11}, {nome: ccc,idade:…
-
0
votes1
answer66
viewsA: Angular 7.1.4 on Heroku
I solved the problem by creating a server.js basic and created a script for Heroku to instantiate that server
-
-2
votes1
answer66
viewsQ: Angular 7.1.4 on Heroku
Well, I’m trying to climb an angular application ( basically the get Started that you have in the documentation ) to Heroku, by the angle rotate over the Node, I know I need to set the port as…
-
0
votes3
answers781
viewsQ: Printing schedules at predetermined intervals
I’m trying to make a code that will print the hours in a certain interval. <?php //Array com os horarios que possam ser imprimidos $hora =…
-
1
votes2
answers521
viewsQ: Connecting Elephantsql with java
I’m trying to make a connection with the Elephantsql (postgres) through java. With the same code I was able to connect to the local postgres (just changing the url, user, password). I’m trying to do…
-
0
votes1
answer295
viewsQ: Problems connecting Postgres with java
Well, I’m having a problem connecting my java application to my database (I’m using pgAdmin4 which is basically postgres). Java code: public class ConnectionFactory { private static final String…
-
1
votes1
answer322
viewsQ: Problems making Arduino serial connection with PHP
I’m trying to make a thermometer with PHP, in Windows 10, and I’m capturing the data through an Arduino with code: #include <OneWire.h> #include <DallasTemperature.h> // Conectar o pino…