Posts by adventistaam • 3,354 points
330 posts
-
-1
votes0
answers14
viewsQ: Access direct URL after compiled
Often there is a need to access a direct URL on a system, for example, www.site.com/registration, www.site.com/forgot password, those things In the meantime, I’m using Vue.js with the Vuetify…
-
0
votes0
answers12
viewsQ: Nodemailer does not send to different customers
Searching for user tickets and customizing a message for each one can be a value requirement for a customer I’m trying to do just that A loop to customize a message to a found user I have the…
-
3
votes1
answer39
viewsA: How to initialize form using value from an angular service
Considering the comment you made that your URL returns an integer number and then it would look something like this service ts. currentId(){ return this.http.get(`${this.baseURL}/currentId`) } In…
-
0
votes1
answer32
viewsQ: Errortext conditional does not work
I’m trying to use a validation on Textfield, I tried it as Textformfield too, but without success! I would like that when typing or pressing the Confirm button, the error message appears or not in…
-
1
votes1
answer54
viewsQ: How to compare only dates in Sequelize?
I am using ORM Sequelize and would like to compare only one date instead of the date with time. I have the following date: 2021-05-06 03:00:00.0000000 +00:00 And I’m doing like this: const dataAtual…
-
-1
votes1
answer45
viewsQ: Trigger a tab function from another widget
Communication between screens is essential in an application. In this case I am trying to conduct a search from a Searchdelegate But when I return from the Searchdelegate I cannot communicate with…
-
0
votes0
answers20
viewsQ: Add title to table row
Conditionally sometimes we need to put one title in a table row to inform the user about what is happening, some status, etc. Using vuetify, I would like to add this title in some lines…
-
0
votes0
answers27
viewsQ: Show my connected physical device in Android Studio on logcat
Debugging a code using Logcat is very good. Due to my machine not having many features I am using physical device to test my apps. Only this device does not appear in the list of connected devices…
-
0
votes1
answer31
viewsQ: Reuse Angular Service Code
Productivity for system development often happens due to the wisdom of reusing codes and/or Components Analyzing my code I realized that my crud repeats many times changing only the url that calls…
-
1
votes0
answers69
viewsQ: Import data using xlsx package
Hello Sometimes there is a need to import excel file to the database in order to take a shortcut to avoid Inserts one by one So, I made a function in Vue.js that imports an excel spreadsheet import…
javascriptasked adventistaam 3,354 -
1
votes2
answers94
viewsQ: Action by clicking on the clear vuetify field
In a filter where fields are filled in there is the need sometimes to clear the field. I’m trying to clear a field and recognize the value of that action by clicking on the "x" to clear the form…
-
0
votes1
answer49
viewsQ: Deploy Node application in Heroku with ES6 modules?
Speak, devs! Following... I would like to know how to deploy a Nodejs application using ES6 Modules In my package.json I am using so: "type": "module", ... "scripts": { "test": "echo \"Error: no…
-
0
votes1
answer150
viewsQ: How to work with anchors at Reacjs
I would like to call an id inside my html page Type: <a href="#meuid">Meu id </a> <section id="meuid> Meu Id </section> No React I’m trying like this: header js. import {…
reactasked adventistaam 3,354 -
0
votes0
answers17
viewsQ: How to avoid caching a v-text-field
Analyzing the submissions that html makes of the data, I realized that the inputs always leave one cached for future fills, but in the case of html the inputs have the directives autocomplete="off"…
-
0
votes0
answers18
viewsQ: Problem reloading page that has parameter in Vue
Sometimes it is necessary to send a parameter through a route In my case it’s happening like this: When my route (URL) has no parameter, I can press the F5 key and the page loads normally. But when…
-
1
votes2
answers51
viewsA: Error trying to save in BD
I believe you’re using a point (.) in place of the comma (,) to send the data Another interesting thing is that you’re using async and then catch in his role employee.save = async (data) => {…
-
-1
votes1
answer43
viewsQ: Reuse mysql connection function where
Hello! Analyzing my source code I realized that within the project there is a part that repeats many times. I would like to reuse repetitive code in my mysql project const pool =…
-
-3
votes1
answer54
viewsA: Import and Export does not even work with type="module"
When you want to use different functions of Avascripts files in html, you need to import them with priority care For example: redirect.js const redirectToCorrectPage = () => {…
-
0
votes0
answers11
viewsQ: Set column type for text using exceljs
Hello! I am using exceljs to export excel file I would like to define before exporting the column type to String Currently I’m doing so: const EXCEL_TYPE =…
-
1
votes1
answer39
viewsA: how to select an Array within an api in React?
Based on your text, I believe the result of your api comes like this: results: [ {id: 1, name: 'Nome1'}, {id: 3, name: 'Nome2'}, {id: 3, name: 'Nome3'}, {id: 4, name: 'Nome4'} ] So, in Axios Sponse…
-
0
votes1
answer66
viewsA: Why doesn’t anyone plug into my socket.io?
I found out. After so much research, Findei finding where to search using firefox In the socket.io statement. const io = require('socket.io')(http) I changed it to this const io =…
-
1
votes1
answer66
viewsQ: Why doesn’t anyone plug into my socket.io?
Hello! I have an api with the following example code: const app = require('express')() const http = require('http').Server(app) const io = require('socket.io')(http) const cors = require('cors')…
-
1
votes1
answer428
viewsA: How to call a controller method via JS or Ajax in Windows
In your project or in the Blade file you can call a file or it can even be within the code a Javascript snippet. But before calling you can import a file or use a CDN from a Jquery to make it…
-
1
votes2
answers215
viewsQ: How to map class fields with names other than database columns?
I’m using IDE Intellij. I have the following model: @Entity(name = "carro") @Data public class Carro { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String nome;…
-
0
votes1
answer2231
viewsQ: How to do Inner Join in Jpa Springboot
I have the following appointment: select m.id, m.nome, m.crm, e.descricao especialidade from medico m inner join especialidade e on e.id = m.especialidade_id Whose database return is like this: '5',…
-
1
votes1
answer107
viewsA: API Returns Json Object with ID - IONIC 5 and Angular
Hello, Igor! To reach the object players you can make to search for parts of the object you recovered before. As a suggestion I did so: let obj = { "authorized":true, "status":200,…
-
1
votes3
answers67
viewsA: Take the url and change the value?
Like the colleague said, there are several ways to get this value. According to this reply may be as follows To get the value you can use so: let searchParams = new…
-
0
votes0
answers29
viewsQ: Warning on Reactjs routes
I have the following custom route configuration <BrowserRouter> <Switch> <IntroducingLayoutRoute exact path="/" component={Main} /> <IntroducingLayoutRoute path="/about"…
-
0
votes0
answers154
viewsQ: What is the recommendation for the Mysql Connection Pool in Nodejs?
According to the documentation of mysql for Nodejs, it is possible to configure a connection pool to limit the number of connections in Mysql When running the following command on my Mysql server:…
-
-2
votes2
answers116
viewsQ: Recover value if null in Flutter Sharedpreferences
I’m learning to flutter these days. I’m studying Shared Preferences: When I save to Shared Preferences and retrieve the information, it works, but when I remove and try to retrieve the information,…
-
1
votes1
answer3465
viewsQ: Working with environment variables in Reactjs
Hello! I’m starting now with Reacjs. Usually in Nodejs I create a folder environments and put the index.ts or index.example.ts, with values there DB=nome_banco HOST=localhost USER=username When I…
-
0
votes0
answers73
viewsQ: Export data to excel using html javascript
I would like to know how to use a javascript library called Exceljs in the browser I’m importing it into html like this <html> <body> <script src="exceljs.js"></script>…
-
1
votes1
answer81
viewsA: Laravel returns empty attributes in Edit method
To return the item of your model in your controller, you need to instantiate the object searching for the code For example: use App\ItemNfe; class ItensNfeController extends Controller{ public…
-
0
votes1
answer39
viewsA: Loop adding repeated values
Instead of doing like this: if(all_id[index] != data.live_id){ all_id.push(data.live_id) index++ }else{ index++ } You the new function findIndex if you do not find it in your array, returns -1, and…
-
0
votes2
answers159
viewsA: Why does this function return Object and not array?
Taking advantage of my colleague’s reply Maniero, its function already returns a array, but the type of the returned variable is object function s_for_l(s){ var string = new Array(); for (let i of…
-
1
votes1
answer37
viewsQ: How to set constant value
I’m using the React-Dropzone package to upload imgages Now I would like after loading the data from the server, I would like to set an image that came from the data search in the React-Dropzone How…
-
2
votes1
answer161
viewsQ: Add javascript plugins at angular 7
I’m trying to plot a hierarchy chart on the page using a plugin Angular from this tutorial. Even looking at the demo and trying to put them that way When I load the page, the page does not work...…
-
-1
votes1
answer314
viewsQ: Equivalent to NPM I for React Native Expo
When I develop an application that requires Nodejs on site there if I need to go to another location and continue my project I need to give the following command: npm i ou npm install When an…
-
0
votes1
answer35
viewsQ: Install the Six package in the python3.7 project
I’m trying to install that project on my computer, but I’m not getting I already installed python3.7 and when I execute command sudo python3.7 setup.py install, I have at the end the following…
pythonasked adventistaam 3,354 -
0
votes1
answer137
viewsQ: Send Array in an input as string for javascript php
Hello! I would like to place an array of objects inside an input and send to php using the Jquery mounted form At the moment I’m testing like this: My object const myObject = [ { id: 1, nome:…
-
0
votes2
answers54
viewsA: JS to add online checkbox
I made a basic example for you to analyze Look at you: I created a vector called: codigo which will store only the codes When clicking, it sums up the totals and displays in place Then you can take…
-
0
votes1
answer107
viewsA: Problem testing app in emulator
I was able to solve it this way: In my briefcase ~/.android, I erased everything I had debug.keystore and debug.keystore.lock and guess what? It Works I hope I can help someone someday…
-
-1
votes1
answer107
viewsQ: Problem testing app in emulator
I’m having the following problem: When I run the following command on Ionic 6.6.0 ionic cordova run android -l The project compiles, but when it will try to emulate brings the following problems:…
-
1
votes1
answer72
viewsA: How to rewrite / restructure JSON from external URL?
For you to bring the writing this way: [ { "usuarioId": 3370, "ano": 2015, "entidadeId": "2102309", "nome": "Jack Sparrow" } ] You will need to store in array and return with json_encode. For…
-
1
votes0
answers25
viewsQ: Create subquery in Mongoose
Which brings the following table ________________________________________ id | descricao | ip | id_parent | 1 | Teste | 14 | 0 | 2 | Outro | 15 | 1 | 3 | Meter | 16 | 1 | 4 | Tra | 17 | 2 | I have…
-
0
votes1
answer67
viewsA: How to get the value of this Array in php?
You can use the json_decode to read the string in json format and then convert it to json object For example: <?php $value =…
-
1
votes1
answer261
viewsA: Registering password 123 with MYSQL encryption, but only login with the password generated by the encryption
According to the link that @Magichat sent in the comments. On your.php login, on the line if($senha_user == $senha) You can replace it with if( password_verify ( $senha, $senha_user ) ) In this case…
-
2
votes3
answers998
viewsA: Displaying successful Alert() on the same page. PHP, Html
Really with ajax and json would be pretty cool, too. Take a look On this page I’m using bootstrap, it’s just html, but use the following separate codes: HTML, JS and PHP HTML const msgArr = […
-
2
votes2
answers544
viewsA: How to scan an array of objects and return their values in a string
With jquery you can use $.each with the array Join This if you intend to use on some page Following example: var usuarios = [ { nome: "Diego", habilidades: ["Javascript", "ReactJS", "Redux"] }, {…
-
1
votes1
answer25
viewsA: Installer with autoscoll
You can make a php backend have this return, since PHP returns only when everything is ready.. Follow the suggestion: var retorno = $('.retorno') $('[botao]').on('click', function(){ const aguarde =…