Posts by Vagner Wentz • 481 points
29 posts
-
3
votes1
answer765
viewsA: Typeerror: Cannot destructure Property `name` of 'Undefined' or 'null'
You need in your file that you raise the FAKE API with supertest, put this. Because then your server is able to receive requests in JSON format. The format the colleague above put using…
-
-1
votes1
answer41
viewsA: Typescript is not checking map types with spread operator
I checked a code of mine that basically has the same thing as you, and mine shows his typing. api.get('stocks').then((response) => { const stocksDataOrdered = response.data.data.map((stock:…
typescriptanswered Vagner Wentz 481 -
0
votes2
answers99
viewsA: Program a test to check for libraries in the "package.json" type "@types/..." that are in the wrong place. Is it possible?
We believe that there is no concrete possibility to do this, because let us think about the following case. Our library reference archive is package.json, right? And in it, it contains various…
-
0
votes1
answer834
viewsA: Multiple file uploads with React.js and typescript
Man, on your route you’re using upload.single() I believe that using this way, you will accept only one file, and not multiple. Otherwise I am mistaken you need to use upload.array('file').…
-
0
votes4
answers312
viewsA: Limit input value with Javascript
You need to use the maxlength HTML, a basic example <input id="quant" name="quant" class="text" size="1" type="text" value="1" maxlength="5" oninput="checa(this)" /> Without the min and max. I…
-
0
votes1
answer114
viewsA: Problem with Relationship Sequelize
I solved the problem, in Model agricultural_implement where there’s this part type_agricultural_machine_id: { type: DataTypes.INTEGER(5).UNSIGNED.ZEROFILL, allowNull: false, references: { model:…
-
0
votes1
answer114
viewsQ: Problem with Relationship Sequelize
I have two tables called type_agricultural_implement and agricultural_implement, in which the id of type_agricultural_implement is inside the table agricultural_implement as…
-
0
votes1
answer78
viewsA: I can’t clone project in Gitlab
I managed to solve it, I used the RSA Key that I managed and I switched it.
-
0
votes1
answer78
viewsQ: I can’t clone project in Gitlab
I’m having trouble trying to clone projects in Gitlab, I have two accounts in Gitlab where I ended up generating an SSH Key for one and the RSA for another, so I can update which account is…
-
0
votes1
answer256
viewsQ: Bluetooth in emulator
I’m wondering if it is possible to connect a bluetooth in some emulator, because, I’m doing a project that needs to test bluetooth and I do not have an Android smartphone and I wonder if it has how…
-
2
votes1
answer360
viewsA: Make input mandatory based on previous input
There is a possibility for you to check if the name field is filled in, and if it is filled in, the other field is required, there are libs for this, which are schema validation libs, for example,…
-
0
votes1
answer29
viewsQ: Problem with MYSQL data formatting
I am making a hotel management system using Javascript, Nodejs, Express and MYSQL. I need my date format to be DAY/MONTH/YEAR, this way: DATE_FORMAT(dt_entrada, '%d/%m/%Y') DATE_FORMAT(dt_saida,…
-
2
votes1
answer107
viewsA: Problem to install nodemon
I managed, by making the way to access the Visual Studio Code as administrator, to enter the folder that is my project, in the terminal type: Set-ExecutionPolicy RemoteSigned And when I spin…
-
1
votes1
answer107
viewsQ: Problem to install nodemon
I’m learning Node.JS and there’s a part I need to install nodemon. I use the command: npm install [email protected] -g And when checking the version of nodemon using: nodemon -v This error comes to me:…
-
0
votes3
answers120
viewsA: Problem with javascript filter in various JSON
It returns an Array [] because the filter method if it does not find what you want to find, it will always return an empty array. So maybe he’s not finding the ID you want. A link to help you:…
-
0
votes1
answer341
viewsA: How to fix the position of a header independent of the screen size?
As far as I know, there’s a way to use something like header: { position: fixed, backgroundColor: "#03a9f4", color: "white", padding: "5px", fontSize: "1.5em" } }; To make it easier, you can create…
-
0
votes1
answer43
viewsA: Installing Babel-cli and live-server locally
Upgrading! I uninstall Babel-cli and live-server using the command: npm uninstall babel-cli live-server And when installing again I used the installation command along with the --save-dev flag,…
-
0
votes1
answer43
viewsQ: Installing Babel-cli and live-server locally
I am installing Babel-cli and live-server locally, however, it is giving a problem saying that: run `npm audit fix` to fix 3 of them. 1 vulnerability requires manual review. See the full report for…
-
4
votes1
answer142
viewsQ: Problem with System.Indexoutofrangeexception in C#
I need to create a class Marca and a Modelo, both related to cars, where model will know your brand and brand should know your models. Model Class: namespace AssocMatrizes.Model { class Modelo {…
-
3
votes1
answer107
viewsQ: HTML design looks strange
This is basic HTML structure and I’m running it with a live-server, however, the web design is strange. Some body text is very far from the left edge, the css file that is in the code, is a CSS…
htmlasked Vagner Wentz 481 -
1
votes1
answer45
viewsA: ID being created and not starting with 0 - Oracle 11g
The solution that solves this problem is that the documentation of Oracle 11g is different from the others by the way, giving a search in the documentation I found that it is not only necessary to…
-
2
votes1
answer45
viewsQ: ID being created and not starting with 0 - Oracle 11g
I am studying Database, using Oracle 11g and making the tables in SQLPLUS. I create the table: CREATE TABLE COMPRAS (ID NUMBER PRIMARY KEY, VALOR NUMBER, DATA DATE, OBSERVACOES VARCHAR2(30),…
-
1
votes1
answer242
viewsA: Transpiling ES6 to ES5 using Babel
Give a check on this site, my friend, I’m just not going to give a simplified because I have some business run. https://medium.com/@Sunnyb/how-to-Convert-es6-into-es5-using-Babel-1b533d31a169…
-
2
votes2
answers336
viewsQ: I’m having import and export problems using ES6
I am using Google Chrome as a browser and when I try to run the code, this error appears. And I saw that in the HTML file I can use type="module", however, two other errors appear. The first error…
-
2
votes1
answer182
viewsQ: I want to add a key to my Javascript code on P5.js
I have these two functions, however, my problem is in moveRacketE(), I’m doing a ping pong, only I wanted to make for two people to play, and not I play against the computer, as I could add the W…
javascriptasked Vagner Wentz 481 -
0
votes1
answer621
viewsQ: Void pointer in C
Write a program in C that reads 2 numbers (integer or real) and prints their sum. The user informs what type of data will be entered. Note: Use only pointers and dynamic memory allocation to solve…
-
0
votes2
answers2087
viewsQ: Problem with perfect number in C
I’m having trouble showing if the number is perfect, when I put in 6, it says it’s not perfect, and I can only use pointer and dynamic allocation. Someone would know how to help me? #include…
-
2
votes1
answer50
viewsQ: Doubt on a Language Issue C
Write a function that takes an array of 10 integers and returns to number of distinct numbers that make up the vector. For example, if the given vector is v = {3, 2, 1, 3, 4, 1, 5, 5, 2}, the…
casked Vagner Wentz 481 -
4
votes2
answers385
viewsQ: Problem with C matrices
I have to do a program that will read 4 grades from each of the 6 students in a class and store them in a matrix NOTES[6][5]. For each student, the arithmetic mean of the 4 grades should be…