Posts by Allan Vital • 171 points
9 posts
-
3
votes2
answers437
viewsA: Is declaring a class named after a reserved word a good idea?
Let’s go in pieces: I have to worry about not declaring classes and functions with the name of these key words described above (either accepted in the declaration, or nay)? Yes. You should avoid…
-
1
votes3
answers2397
viewsA: Why does "Return false;" in a click event cancel the link opening?
I’m not a javascript champion, but as far as I know the default behavior is: run the onclick function and then follow the link unless that onclick returns false. based on that question:…
-
1
votes1
answer47
viewsA: How to operate with Union
Hmm, I couldn’t test it here, but this should work: select sum(total_atend) total_atend, sum(total_infect) total_infet, ((sum(total_infect)/sum(total_atend) ) * 100) taxa_infec From ( select…
sqlanswered Allan Vital 171 -
0
votes2
answers266
viewsA: How to search for old files on Linux?
I’m not sure I understand the question. You need to search for something in old logs? If this is the case, you should not need Tail -f, it is only useful to track logs that are running at this time…
-
2
votes1
answer474
viewsA: Mongodb - Large Collections of Documents
In particular, I believe that the best solution would be to "denormalize". Leave two fields in the document of the place (one with the amount of positive votes, and the other with negative votes)…
mongodbanswered Allan Vital 171 -
1
votes2
answers466
viewsA: Optimize Mysql query to remove FILESORT
In theory, it is in need of filesort because it has no input in the order by field. Creating an isolated tile in the column name should remove the filesort.
mysqlanswered Allan Vital 171 -
1
votes2
answers634
viewsA: Change in audit in Java+Spring+Oracle application
Audit frameworks can be very useful at this time, but there are other ways to create an audit scheme. In the places where I worked always fall into one of the three options below: Database triggers:…
-
3
votes1
answer179
viewsA: Is it possible to inject cookies through a website?
In practice this is not possible, since cookies belong to a single domain. This means that Voce can make a cookie work in two places like teste.exemplo.com and teste2.exemplo.com, but never come…
cookiesanswered Allan Vital 171 -
2
votes1
answer460
viewsA: How to use android project in Gradle in eclipse?
The question is a little old, but it doesn’t hurt to answer :-) Since you have access to the source code (since it is open source), you could generate a Jar from the project (via Gradle) and then…