Posts by Jefferson Quesado • 22,370 points
421 posts
-
2
votes1
answer293
viewsA: Apache server stopped recording accesses to the access file.
Always remember to check the http codes in cats: Basically, you did so much running to the Apache that some parts of it said "goodbye, cruel life". One of these parts was the logger/appender, which…
-
2
votes1
answer225
viewsA: Doubt with relation of tables Database
The answer is: it depends. A very good tip when designing a table in the database is to ask what its working entities are and what relationships these entities have with each other. This model of…
databaseanswered Jefferson Quesado 22,370 -
2
votes3
answers79
viewsA: Totalcross - Whiteboard starts stroke with point difference initially pressed
The class Whiteboard works with the concept of several small traits. At each moment, it captures the point where the touch is and draws a line compared to the previous point. The magic of this…
totalcrossanswered Jefferson Quesado 22,370 -
6
votes3
answers327
viewsA: Query to get 1024 sum in maximum 3 transactions
I need all rows in the table to be uniquely numbered for this solution. Anything, it is trivial to generate a copy table of transfers with autogenerated id. I am only naming this numbered column…
mysqlanswered Jefferson Quesado 22,370 -
1
votes2
answers150
viewsA: After @Joincolumn JPA does not find Entity attribute
I was struck by the root cause of the problems: Caused by: java.lang.IllegalArgumentException: Can not set int field br.com.biblioteca.model.Estado.idEstado to java.lang.Integer I then suggested to…
-
5
votes2
answers294
viewsA: How does Junit work?
how the Junit framework works At work, we use Junit to ensure the outcome of our system. At any time, we send the IDE to perform the automatic tests to see if there is anything out of the expected.…
-
0
votes1
answer146
viewsA: Program does not execute when filling vector with non-repeated random numbers in C
When you create a vector in a static way (without using malloc or things like that), its size is set at the time of creation of the variable. Try changing your code to something like this : #define…
-
3
votes1
answer98
viewsA: Is Linden Scripting Language a robust programming language?
I don’t really know LSL, but from the description on Wikipedia, you define in it a finite state machine, defining which computation is done in each state. If I’m not mistaken, Turing completeness is…
eventsanswered Jefferson Quesado 22,370 -
1
votes1
answer1111
viewsA: Save object with uppercase vs lowercase letter
Here we are dealing with the persistence of objects coming from the browser. We need to ensure that, in the database, there is no difference between the name of the Manufacturer all in High Cash or…
-
2
votes2
answers1728
viewsA: How to receive a string and switch to check in C?
In C, you can only put scalar constants in one switch. A string is a pointer type variable, so we will have difficulties using exactly this method. At Stackoverflow in English, who replied suggested…
-
0
votes2
answers1296
viewsA: What applications for binary trees implemented in vectors?
The Heapsort is a classic case where you have a binary tree represented on a vector. The advantages of using a binary tree represented on a vector are relative to performance: the data is not…
canswered Jefferson Quesado 22,370 -
0
votes2
answers7908
viewsA: How Binary Tree Removal Works in C
You are removing a value within a binary search tree (it always maintains sorting after removal, so it is necessarily sorted). Take a look at the Wikipedia binary search tree article, will help your…
canswered Jefferson Quesado 22,370 -
1
votes3
answers849
viewsA: How to go through each row of the database compare and update a specific column?
You need to give a UPDATE. In the Tutorial Points has a page on the subject: Using Mysql: UPDATE produto SET PROD_ATIVO = CASE WHEN DATA_INICIAL <= now() AND DATA_FINAL > now() THEN 1 ELSE 0…
-
2
votes1
answer220
viewsA: What the command means: gfortran -c -03 $<
Well, this is one Makefile. For more details, the GNU people provide an online manual: https://www.gnu.org/software/make/manual/make.html Split: you are using a syntax of implicit rules it is said…
-
1
votes2
answers1259
viewsA: Sort Collection
If you are using Java 8, you can do the following: List<Evento> lista = new ArrayList<>(service.findAll()); lista.sort(new Comparator<Evento>() { @Override public int…
-
2
votes3
answers1527
viewsA: Connect 2 tables with same id
Try the query in a DB query before trying it in PHP, it is much easier to test and try. You want to make a JOIN in SQL. Using Mysql, I know two methods to do this: SELECT nome, comissao FROM…
-
3
votes2
answers440
viewsA: Why is it not possible to modify local variables when accessed within anonymous classes?
localVariable only exists during the execution of the method myMethod(). Since the created object can exist in the external scope of the method, the variable localVariable there will be no more.…
javaanswered Jefferson Quesado 22,370 -
4
votes5
answers29639
viewsA: How to convert an int number to string in python?
When you say i inputo a 3 digit integer variable Interpreted as i read from the standard input an integer If you are using Python 3, you read from the default input with the function input, the…
-
1
votes1
answer299
viewsA: doubts about Regex using Primefaces
When creating a regular expression, you need to keep in mind what you want to give match. I learned a lot about this from Aurelius Verde’s book Regular Expressions; the regular expression guide is…
-
1
votes1
answer339
viewsA: How do I compare a character in the range of an alphabet?
This question is about the guys you’re using. "a" (note the double quotes, the character ") is a String. 'a' (note the quote/single quotes, the character ') is a char. Note also that 'A' is…
-
6
votes2
answers396
viewsA: consume REST service with totalcross
I would like to know how to consume a REST service using totalcross. [...] Put in line "byte[] buf = new byte[hs.contentLength]", the value of contentLength is -1 and generates In the service…