Posts by enriq • 85 points
9 posts
-
1
votes2
answers70
viewsQ: Error passing JSON arguments
I am trying to make an insertion in Mongodb passing some arguments in JSON: { "name": "TESTE", "category": "B", "service": "Novo processo", "description": "Novo Teste", "active": false,…
-
0
votes2
answers33
viewsA: Doubt in the insertion of data performing the relationship in another table
I was making a mistake using INSERT instead of UPDATE SET. The correct query is as follows: WITH new_adresses AS ( INSERT INTO adresses (cep, street, neighborhood, city, state, number_house,…
-
0
votes2
answers33
viewsQ: Doubt in the insertion of data performing the relationship in another table
I am trying to enter an Address in the address table and refer to a User already registered without Address in the user table, through the _id that is generated when I enter an Address. I return…
-
2
votes1
answer1226
viewsQ: Doubt about Recursiveness in a Power Method
I didn’t understand how recursion works in the method that performs potentiation. public class calculaPotencia { static Scanner scan = new Scanner(System.in); public static void main(String[] args)…
-
1
votes1
answer174
viewsQ: Data Structure, Double Chained List. Doubt about the Double List Constructor
Note: Code taken from a Data Structure booklet. Why not pass the number of nodes from the Double Chained List by its Constructor (as in Stack or Queue structures)? public class ListaDupla { private…
-
1
votes1
answer447
viewsQ: Data Structure, Circular Queue. Questions about the Queue and Queue methods
I’m not getting the two blocks else in the methods Desenfileirar and Enfileirar. More specifically the lines: this.tras = (++this.tras % this.info.length); this.frente = (++this.frente %…
-
2
votes1
answer67
viewsQ: Unstacking can’t return an empty element?
Code taken from a Data Structure booklet. public class PilhaContig { private Item [] info; private int topo; public PilhaContig(int qte){ this.topo = 0; this.info = new Item [qte]; } public Item…
-
0
votes1
answer2071
viewsQ: How can I filter objects in an Array with Typescript?
Example: function isBigEnough(element, index, array) { return (element >= 10); } var passed = [12, 5, 8, 130, 44].filter(isBigEnough); console.log("Test Value : " + passed );…
-
0
votes1
answer41
viewsQ: Error checking Apache Cordova version
When I go to check the version of Apache Cordova on Ubuntu appears the message below. Error: EACCES: permission denied, open '/home/henrique/.config/configstore/insight-cordova.json' You don't have…