Posts by Carlos Storari • 163 points
16 posts
-
0
votes1
answer804
viewsQ: View nodejs data in front-end using express without using front-end framework
I wonder if there is any way to pass data manipulated in the back-end in nodejs to an html file without using front-end framemework. In my researches I found examples using jquery.
-
-4
votes1
answer94
viewsQ: Why does the vowel function not return the right value?
I’m trying to do a function that reads a txt file and returns the number of vowels in the file. const fs = require('fs'); let texto = "Teste";//tem 2 vogais fs.writeFile("teste.txt",texto…
-
0
votes0
answers81
viewsQ: Problems searching for file via Google Drive api
I’m trying to return the file id from google drive based on the following example: Search for files and folders code : function searchFiles (auth) { const drive = google.drive({version: 'v3',…
-
10
votes2
answers73
viewsQ: On the implementation of some() and Every()
I’m trying to understand how the implementation of some() and every(), but I did not understand very well the two implementation algorithms. some(): Array.prototype.mySome = function(callback,…
-
0
votes1
answer28
viewsQ: Compare 2 arrays with some() or Every()
I am trying to do an exercise that compares whether the array of objects inserted in a function has any element equal to the following array: const gooUsers = [ {id: 1}, {id: 2}, {id: 3} ]; The…
-
0
votes0
answers46
viewsQ: (hibernate) Tables are created, but data is not inserted
I am trying to create and insert data into a table through Hibernate, but when I run the code no data is inserted. I have a medical class that inherits from the Employee class. Staff Class: import…
-
0
votes1
answer3740
viewsQ: "Referenceerror: Document is not defined" in querySelector
I’m running some tests here and I’m making a mistake: The index.html: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>teste</title> <link…
-
0
votes0
answers200
viewsQ: Error running program in C "No such file or directory"
I am trying to run a program in C, but an error occurs I take the following steps: gcc -c prog.c -o prog /.prog And it turns up: bash: /.prog: No such file or directory…
-
1
votes1
answer1182
viewsQ: Angular routes
I’m studying routes at the angle and following a tutorial from their website. They ask to create an app-routing.module with the ng generate module app-routing --flat --module=app in cmd, my code…
-
1
votes1
answer185
viewsQ: Receive array values from the console
I am starting the studies in Ode and decided to do an exercise in which I need to receive a value n by the Node console that will be the amount of elements of an array and receive n elements by the…
-
0
votes2
answers443
viewsQ: Display date correctly on a Jtable
I am unable to display the sql database date type Date in Jtable, the date appears that way: I use the following method to call the table data: public ArrayList<Alunos> read(){…
-
2
votes1
answer145
viewsQ: Generate a new JSON by manipulating data from another JSON
I was participating in an internship test and I was proposed the following problem: I would have to read the JSON below: [ { "nome":"Jabba, the Hutt", "jedi":false, "sistemas":[ "Tatooine" ] }, {…
-
0
votes1
answer381
viewsQ: Error in this page script
I am trying to start C# studies with visual studio, but when I run the code the following error occurs I’ve looked into what happened but I can’t find out why this is happening…
-
0
votes1
answer3290
viewsQ: appendchild is not working
I’m trying to pass the array elements with for( of ) to the html elements I created by js. The problem is that when I try to put the created in js inside, using appendchild, the error code. That’s…
javascriptasked Carlos Storari 163 -
0
votes1
answer6606
viewsQ: How to compare a list of numerical values with another Python variable
I need to do a function that compares the values of a list with a variable, returns the value of the list nearest or equal to the value of the variable. ex:The list is list = [1,2,3,7] and variable…
pythonasked Carlos Storari 163 -
0
votes0
answers75
viewsQ: How to pass the value of a js variable to a php variable
I have a js file that handles variables, but I need to pass these variables to php to insert them into the database.