Posts by Marcos Paulo S. Rezende • 351 points
22 posts
-
-1
votes2
answers83
viewsQ: How to make a CASE WHEN for named expressions?
Good morning! I’m having trouble making one CASE WHEN of a named expression. I have a SELECT in which one of the parameters has a named expression. Example:…
-
0
votes1
answer48
viewsA: Listview prints only the first element of Arraylist
The problem is in values.put(Database.COLUMN_ID, diagnosticoSintomas.get_id()); of the Diagnosticodatasource class, it is not receiving an id value, causing the error presented. The solution of the…
-
0
votes1
answer48
viewsQ: Listview prints only the first element of Arraylist
My application has a screen that lists all the elements registered in BD. The method I use to list the results returns a List (in the Diagnosticodatasource class), until then all right, the problem…
-
1
votes0
answers95
viewsQ: Image SVM classifier does not work
Hello, I’m with a program in Python that uses the library Dlib 19.10, the classifier uses an xml file to learn the images and then I run the following code that creates a file. svm for the…
-
0
votes1
answer58
viewsA: IMPORT ERROR - No module named dlib
In Pycharm just go to the project root folder and right-click > Mark Directory as > Sources Root. this will solve. Problem solved in: Import modules into Pycharm…
-
1
votes1
answer58
viewsQ: IMPORT ERROR - No module named dlib
I installed dlib, opencv and Pillow through Anaconda, creating a enviroment, but when I will import dlib the following error happens: No module named dlib. I’ve already deleted the interpreters and…
-
1
votes1
answer274
viewsQ: Error inserting data with Spring
I am entering data that the user type in the console, I take these values with the class Scanner of Java and play in the Postgres database using Spring Boot. The problem is when I will insert a…
-
1
votes2
answers700
viewsQ: Failed to execute "cmake." command at the prompt
I’m studying object detection with Python and Dlib and for that I need to compile the imglab folder inside the directory: "dlib-19.17 tools imglab" from the dlib-19.7 file I downloaded from the…
-
4
votes1
answer1677
viewsQ: Calculate percentage of certain colors in an image
I have a program that reads an image and checks if there are certain colors in that image, if it does paint each pixel a certain color. I couldn’t find materials on the Internet that could help me,…
-
3
votes1
answer48
viewsQ: Setting an array element with a Sequence
I’m with a program in python and opencv that reads an image and then checks the colors of the image at each position of two for nestled. How I’m making a threshold in the image to facilitate the…
-
3
votes1
answer85
viewsQ: Array always getting the same value [Loop in two matrices simultaneously]
My program scans an image and assigns color values R,G, B the variables that were compared with matrices containing the colors R,G, B asphalt and earth called auxAsfalto and auxTerra. The point is,…
-
1
votes3
answers16511
viewsA: Validate only number in input
In input type just put number. It looks like this: <input formControlName="sGPTypeDeliveryId" type="number" placeholder="Tipo de Entrega" class="form-control" required="required">…
-
3
votes2
answers309
viewsQ: Error while updating Java
A standard notification came up saying that there was a new Java update available, so I decided to update. After the update I can’t run my apps on Eclipse and the following message appears: Imports:…
-
0
votes1
answer99
viewsQ: Counter zeroing for no reason
I have a method in which every time it is triggered, in addition to performing other operations, a certain counter cont should be incremented and then call another method where it will check that…
-
1
votes1
answer333
viewsQ: The Operator + is Undefined for the argument type(s) Charsequence, int
I’m trying to concatenate a text into CharSequence with int, but java warns that it is not possible to do this conversion by saying: The Operator + is Undefined for the argument type(s)…
-
1
votes1
answer185
viewsQ: Error finding the center of an Opencv Python object
Hello, I am studying opencv to use in a drone and while I was implementing a code of a tutorial that detected objects and drew a circle in the center of it, and for that you should take half the…
-
2
votes1
answer199
viewsQ: How to randomize the values of an object in java
I am building a card game program, in which at a certain moment he must mix the cards and pick up the one that is at position 0, but I cannot do that. Follows the code: public class Baralho {…
javaasked Marcos Paulo S. Rezende 351 -
0
votes3
answers51
viewsA: Redirecting in Javascript
On the line you put return location.href = url; You must put, dear want to replace the current page by the url typed by the user window.open(url, _self);…
-
1
votes1
answer114
viewsQ: The program cannot call the set method from another class, even with it instantiated
When I call the method setNomedoMetodo() in another class, even with it instantiated, appears: The method setNaipe(String[]) is Undefined for the type Deck. I can’t put a value on that method. And I…
javaasked Marcos Paulo S. Rezende 351 -
-2
votes1
answer166
viewsQ: How to convert Scanner to double in java?
I am developing a software, in which at a moment the system must take a value informed by the user using the Scanner class and insert it into an array and then return an array with the values typed…
javaasked Marcos Paulo S. Rezende 351 -
1
votes2
answers91
viewsQ: How to remove all options from an interactive list and add new ones using Javascript?
Hello, I am working on an interactive menu, in which the user chooses a sandwich and in this act appears a certain list of breads for choice. However, when I select a bread option and then another…
javascriptasked Marcos Paulo S. Rezende 351 -
2
votes1
answer999
viewsQ: Manipulating options from a select using Javascript
I’m making a menu that has an interactive selection list manipulated by Javascript. The problem is that when I change the bread option according to the chosen sandwich nothing happens. Follow the…
javascriptasked Marcos Paulo S. Rezende 351