Posts by Van Ribeiro • 1,482 points
39 posts
-
0
votes1
answer240
viewsA: How to resolve the issue with the route in Node.js?
As recorded in the comments of this question, modulus ntwitter was discontinued (DEPRECATED). An alternative to it is the module Twit. You need to see the documentation for this API, because some…
-
0
votes1
answer183
viewsA: How to resolve: Column "id" not found [42122-197]?
Guys, the problem’s solved. If you are having a similar problem, I decided after that I made some modifications, as they are in this other question that I asked here in PTSO: Spring Data JPA does…
-
1
votes3
answers800
viewsA: Spring Data JPA does not recognize the SQL 'Limit' command?
In case you’re having the same problem, I found that response in the OS and adapted to my problem and worked. It uses paging, as suggested by Marciano Machado, in one of the answers above. Due to…
-
0
votes1
answer183
viewsQ: How to resolve: Column "id" not found [42122-197]?
Guys, I’m creating an API that will display random phrases from a table in the database. The problem is that whenever I access the route, on the console, I get this exception:…
-
3
votes3
answers800
viewsQ: Spring Data JPA does not recognize the SQL 'Limit' command?
I am creating a REST API, using Spring Boot, which, using data from a table, displays random phrases. Giving a Google, I found that it is possible to generate random results through pure SQL: SELECT…
-
0
votes3
answers1908
viewsA: How to upload image using Spring Boot?
I received the answer through the same question in another forum. If you have the same question and want to read the full discussion, read here.…
-
2
votes3
answers1908
viewsQ: How to upload image using Spring Boot?
I’m learning to use the Spring Boot and I need to create a field in the form that loads the image to be used. How do I map the directory and save to a particular project folder? Example: through the…
-
0
votes1
answer127
viewsA: Error: Thymeleaf is disabling the responsiveness of my Bootstrap form. How to resolve?
Guys, the problem was solved in another forum where I asked the same question. But I’ll leave it here, in case someone is having the same difficulty. Like I was wearing th:class he was "overwriting"…
-
1
votes1
answer127
viewsQ: Error: Thymeleaf is disabling the responsiveness of my Bootstrap form. How to resolve?
I’m creating a small web application to learn more about Spring Boot. I’m using the Thymeleaf as engine HTML and the Bootstrap as framework front-end. The problem is that I don’t know why, and I…
-
0
votes1
answer41
viewsA: Printing Percentage
As we can observe the javascript documentation for functionality console, we can pass several arguments through console.log(), provided that they are separated by a comma. var eleitores = 34; var…
javascriptanswered Van Ribeiro 1,482 -
0
votes1
answer4449
viewsQ: How to fix these and other errors: Failed to Convert from type [java.lang.String] to type [java.lang.Long] for value 'list'?
I’m implementing an example of a book about Spring Boot, but, after executing, while trying to access the route /clientes/list or else, /clientes/view in the browser appear the following errors:…
-
3
votes1
answer1007
viewsQ: How to solve this Spring Boot problem?
I’m learning to use the Spring Boot, following/adapting this tutorial from the official page, but whenever I try to run, these exceptions and errors appear: Error starting ApplicationContext. To…
-
-1
votes1
answer112
viewsQ: How to deal with the null values of an array when converting from String to Double?
I need to display the top 10 contract termination clauses, which are in a vector, extracted from a CSV file. Here, when I refer to contract termination clauses, I mean monetary values (money), more…
-
8
votes3
answers337
viewsQ: How to find the occurrence of equal integer values in a vector?
I need to find frequency of ages in a vector. I know how to do this when the vector is small, but not when it is large. Consider the vector below: int[] idade =…
javaasked Van Ribeiro 1,482 -
2
votes2
answers1277
viewsQ: How to manipulate a CSV file column?
Hey, guys! What’s up? I am learning Java and need help with CSV files. I can read the file, but I need to perform operations with a few columns. Example, with fictitious data, of the table I am…
-
3
votes2
answers175
viewsA: Doubt of if He is
From what I’ve observed in your code, the error is in condition. In C, like some other languages, the relational operator for testing the equality condition is "==". When you use only one "=" you…
-
0
votes3
answers985
viewsA: Store multiple numbers in a variable and then print and show the sum
John, I don’t know if it helps you, but I did it based on the instructions you passed on the question: Scanner lendo = new Scanner(System.in); int n = lendo.nextInt(); int soma = 0; while(n != 1){…
javaanswered Van Ribeiro 1,482 -
0
votes0
answers102
viewsQ: How to insert various user input values into Java dictionary?
I want to allow multiple pairs (key, value) to be inserted into a dictionary, in Java, from user-typed values. I made a loop for to try to insert but could not, because every time a new pair(key,…
-
0
votes1
answer72
viewsQ: How to print special characters by CMD when formatting coins?
A few days ago I did an exercise to format coins and used the following code for this: String us, china, france; us = NumberFormat.getCurrencyInstance(Locale.US).format(payment); china =…
javaasked Van Ribeiro 1,482 -
10
votes2
answers1420
viewsQ: How to split a String that contains white spaces at the beginning?
For the problem in question, I need to remove all the special characters and spaces and count the new possible outputs. My intention is to separate the string with the method split(). For this,…
-
3
votes1
answer104
viewsQ: How to print 0.10 instead of 0.1 in Java?
The code below counts how many letters there are in a word and multiplies by 0.01. The problem is that I want when a 10 letter word, for example, is typed, to have an output of 0.10 and not 0.1.…
-
2
votes2
answers51
viewsQ: How to modify the last item of a sequence in Java?
Guys, I don’t even know if that’s the question I have to be sure about, but come on... I want to get the following output: "V V V V!". First I created a simple algorithm just to simulate the output,…
javaasked Van Ribeiro 1,482 -
1
votes1
answer39
viewsQ: How to send the selected image with javascript?
I’m adapting my blog to be responsive. However, by hiding the banner, it’s still there and always loaded access to the page. I would like to know if it is possible to upload images according to the…
-
2
votes2
answers4089
viewsQ: How do I put the "like" and "share" button for each blog post?
I added a button to my blog Enjoy and share in the basements of posts of my Blog, so that the reader has the option to choose Like or not, only that post. But when clicking Like, I noticed that the…
-
3
votes1
answer64
viewsQ: How to delete a term inserted in a form using jQuery?
The code below is part of a function that uses a search term in a text field to extract images from the Flickr site. After typing the word to do the search, it inserts the text below the field, just…
-
3
votes1
answer3127
viewsQ: How to find the Expressjs version?
How do I find the installed version of Expressjs?
-
0
votes1
answer240
viewsQ: How to resolve the issue with the route in Node.js?
Using Node.js, this application should populate the terminal with tweets (the file name is tweet_counter.js): var ntwitter = require('ntwitter'), credentials = require('./credentials.json'),…
-
4
votes3
answers2804
viewsQ: Comparing an array element with a string
I need to create a function that receives a array and compare with a string, outside the array, returning true if, and only if, there is at least twice the occurrence of string outside the array.…
-
1
votes2
answers1085
viewsQ: How to test whole arrays in javascript?
Good night! I need to create a function that accepts an array of numbers and returns true if it contains at least an even number and false, otherwise. The code below even does this, SQN: var…
-
1
votes1
answer416
viewsQ: Submit input box data using enter key?
I want you to press the button Enter the value is inserted into the HTML page using jQuery. The code below is input simple in HTML: <!doctype html> <html> <head> <title>Somar…
-
1
votes2
answers129
viewsQ: How to do operations between functions in C?
The function funA() stores a value entered by the user. The function funB() will allow the user to choose an option. My difficulty is in the third function: I need to create a function that…
-
2
votes2
answers1487
viewsQ: How to round age with Postgresql?
I used the function age(), below, to calculate age, from a date stored in a table: select pessoa.*, age(data_nascimento) from pessoa; Returned the range: 27 years 9 months 9 days It is possible to…
-
16
votes3
answers10940
viewsQ: How to recover the previous commit?
After you have added modified file and have given commit, I had to modify the whole structure of the code, but it didn’t work and I wanted to have access to the previous code again. How do I…
gitasked Van Ribeiro 1,482 -
0
votes1
answer2472
viewsQ: Function is not running when page loads
The Javascript code below should display an alert window with the phrase "Hello World!" when the index.html page was loaded, but this does not happen... Page content loads, but the function does not…
javascriptasked Van Ribeiro 1,482 -
5
votes1
answer9108
viewsQ: How do I update Github repository after changing files locally in Git?
After I created a repository on Github and uploaded some files to that repository, I had to make some changes to the file, made the commits, but I don’t know how to send these changes to Github. How…
-
1
votes1
answer85
viewsQ: How to remove sidebar with CSS or otherwise?
I’m applying an example of a book I’m reading. only that of formatting with CSS the page displays beyond the natural scrollbar one within the class div that I created. Here’s a screenshot of what…
-
33
votes2
answers29427
viewsQ: Git warning: LF will be replaced by CRLF
I created a file called tests.html inside a folder. After typing: git add tests.html Message appeared: Warning: LF will be replaced by CRLF in testes.html The file will have its original line…
gitasked Van Ribeiro 1,482 -
4
votes3
answers19175
viewsQ: How to calculate the average of a column in R?
I have an Excel file in format .csv(comma separated values) and I want to read what is in a column, add and calculate its average. How to open the file I already know, but I don’t know how to add…
rasked Van Ribeiro 1,482 -
11
votes4
answers15696
viewsQ: How to extract digits from a Python string and add them together?
I need to decompose one string in Python, separating letter and numbers, and summing these numbers. For example: string = "96h11k" Of that string need to extract the numbers 9, 6, 1, 1 and add them:…