Posts by dev-john • 415 points
18 posts
-
1
votes2
answers2305
viewsA: React.js creating several components with arrays
It worked, I just needed a few tweaks: const dado = { compra: this.state.responseCompra, venda: this.state.responseVenda }; this.state.dados.push(dado); in yielding const pits =…
-
1
votes2
answers2305
viewsQ: React.js creating several components with arrays
I’m trying to create several components <Pit /> however, one per result coming from the API, without excluding the previously created. The API returns an object with 2 arrays inside, the…
-
2
votes1
answer649
viewsA: Error: NJS-047: poolAlias "default" not found in the Connection pool cache
After several attempts, I arrived at a solution: Checking the internal code of the Node oracledb, I noticed that the getConnection method receives some connection attributes as parameter: function…
-
2
votes1
answer649
viewsQ: Error: NJS-047: poolAlias "default" not found in the Connection pool cache
I’m trying to make a connection using Connection Pool to build a API Nodejs consuming data from Oracledb, I followed the following documentation. However, when trying to make the connection I get…
-
0
votes0
answers70
viewsQ: Error 1215 Mysql
First of all, I would like to say that I have checked several questions about this here and no solution has worked. I am giving alter table in the working table to add two Foreign Keys...one of them…
-
3
votes2
answers47
viewsQ: Catch date previous to year 2000 Mysql
I need to select all employees with employment date prior to the year 2000. How can I put this condition in the clause Where? SELECT nome_funcionario FROM funcionario WHERE data_contratacao...…
-
2
votes3
answers2044
viewsA: PHP Mailer - "Could not connect to SMTP host"
I found the solution by adding the following excerpt: $mail->SMTPOptions = array( 'ssl' => array( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true ) );…
-
1
votes3
answers2044
viewsQ: PHP Mailer - "Could not connect to SMTP host"
I am trying to send an email using Phpmailer, but without success. My code is this: <?php use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; //Load composer's autoloader…
-
0
votes1
answer42
viewsQ: Entity Framework bank creation
I’m new to Entity and I’m following a step by step to create a Code First application ( http://www.entityframeworktutorial.net/code-first/simple-code-first-example.aspx ). I created the application,…
-
0
votes1
answer389
viewsQ: Disable Validators.Required Angular2
I have the following form using Validators. this.formulario = new FormGroup({ CodigoTemp: new FormControl(null, [Validators.required]), }); I need to disable Validators.Required if a checkbox is…
-
1
votes2
answers1505
viewsQ: Search file path C#?
I need to find a file path .wav in C#. I can find and execute the .wav with the complete path "c: caminhox...", however, I need the application to find the file in any directory that he is. I tried…
-
2
votes2
answers342
viewsQ: Mask SQL Select return
I’m using the following SELECT to return the Ids one-table. SELECT id, duracao_sessao FROM usuario For ID 1 I want the text "Object" For ID 2 I want the text "Class" For ID 3 I want the text…
-
2
votes1
answer533
viewsQ: SQL Select highest value item
I’m using the Northwind database, and I want to select the category that has the largest number of registered items. I was able to list the category ID and the number of products it has with the…
-
0
votes1
answer562
views -
0
votes1
answer292
viewsQ: Calculate circular Progressbar time C# (Windows Forms)
I have the following circular Progressbar, the idea is that it be decremented second by second, so far so good. However, I need the bar to always start complete (circling the circle 100%) and the…
-
2
votes6
answers11997
viewsQ: Current date Angular 2
I need to get the current system date. I use Angular 2. I tried the following validation, but without success. var now = new Date; if(dataInicial > now.getFullYear() + now.getMonth() +…
-
10
votes3
answers5420
viewsQ: Configure ng-bootstrap Datepicker for EN
I’m wearing a Datepicker from Ng-Bootstrap with Angular 2 and I want to set the date format (YYYY/MM/DD) to the format (DD/MM/YYYY) I also need to change the calendar days and months to Portuguese.…
-
1
votes1
answer1668
viewsQ: index outside range c#
I am trying to make an assignment of value in a certain index of a String, however, I get the following error that I do not understand the reason: System.Argued tofrangeexception: 'The index was out…