Posts by Emanoel • 1,621 points
27 posts
-
2
votes1
answer197
viewsQ: What does Java memory management accomplish in an assignment of a previously allocated variable in memory?
I would like to better understand what Java memory management does in the following situation. Knowing that I am suffering from performance problems, I am trying to take the utmost care not to make…
-
4
votes1
answer255
viewsQ: What is the need for an interface to have abstract methods?
We know that in an interface the methods do not have implementation, only signature, ie only the definition of their methods without the body, we conclude then that all are already methods Abstract,…
-
0
votes0
answers78
viewsQ: Error using Google graphics library
I am performing a simple project, where I am using Google library to work with graphics, but I am facing a problem when "plotting" the results, the following error is presented: You called the…
-
5
votes1
answer1457
viewsQ: Error while creating Makefile
When I am trying to use Makefile with the following content: all: teste teste: arp_discover.o arp_poisoning.o gcc -o teste arp_discover.o arp_poisoning.o arp_discover.o: arp_discover.c…
-
0
votes2
answers477
views -
1
votes0
answers202
viewsQ: Difference patterns Transaction script and Domain model?
I would like to know the conceptual and implementation difference between these two layers used in the business layer. For me the Transaction script pattern resembles very much the facade pattern,…
-
1
votes1
answer860
viewsQ: How to solve the problem of accentuation in the terminal?
I’m writing some strings on screen using the Opengl library and some of the words saved are accentuated words, example: república checa, where the exit ends up being: repblica checa has how to solve…
-
0
votes1
answer945
viewsQ: How do you assign data to a struct by reading from a CSV file?
I’m having difficulty assigning read values of a file in csv format to a struct, my file has the following structure: 1;República Checa;156.9 2;Irlanda;131.1 3;Alemanha;115.8 4;Austrália;109.9…
-
3
votes2
answers1291
viewsQ: Bigdecimal comparison returns unexpected result
In one of my methods I make the following comparison, as in the example below: public static void main(String[] args) { BigDecimal valor = new BigDecimal("100"); exemplo(valor); } public static void…
-
0
votes1
answer792
viewsQ: Insert elements using Javascript insertBefore
I’m trying to perform an insertion operation on my Javascript code, but I’m having some difficulty using the insertBefore function. First I’m creating an "ul" type element and performing its…
-
4
votes1
answer242
viewsQ: Is testing the interaction with html and Javascript using Jasmine wrong?
Javascript code has some interactions with html like this example: function retornaListaDeItens(argument) { return document.getElementsByClassName(argument); } I use the return of this function to…
-
4
votes3
answers2164
viewsQ: What is the use of the two points in Javascript?
What is the use of the two points : in Javascript, as the example below: function paciente(nome, idade, altura) { var clazz = { imprime: function() { alert("nome: " + nome + ", idade: " + idade); }…
javascriptasked Emanoel 1,621 -
3
votes0
answers237
viewsQ: Binary search mips
I am developing a code in mips in order to perform a binary search recursively, well along the development have arisen some doubts, being them: Right after my function call, I pop my arguments, but…
-
3
votes1
answer205
viewsQ: Path between nodes of a binary search tree
I need to create an algorithm that will define if a path between the value a and b are valid, my doubt is in relation to these rules, for example between node 3 and 7 there is a valid path, but…
-
14
votes2
answers3574
viewsQ: Why is set theory so important to computation?
For computer theory, formal languages among other areas as well as for programming (development) set theory is always present, I know that mathematics is strongly linked to computation, but why do…
-
6
votes1
answer77
viewsQ: What are the real problems for those working with Assembly development?
I am studying the architecture and implementation in MIPS, but as I do not work at low level what I am doing are basic initial exercises in any beginning of learning, I would like to know what are…
-
4
votes1
answer203
viewsQ: Ordering structures, why is the representation made in matrix?
Studying methods of sorting, I realized that even the method receiving a vector, its graphical representation of the functioning and explanation of the method in many materials is using a matrix. As…
-
5
votes1
answer408
viewsQ: Operations on matrix with no defined size
I need to perform operations on a matrix that will be passed by parameter, the problem is that its size is not fixed so I do not know how to perform the loop to go through the end of a column or row…
-
69
votes3
answers21607
viewsQ: What are the concepts of cohesion and coupling?
What are the characteristics of a code with cohesion or coupling? To what extent can this generate future problems?
-
0
votes2
answers255
viewsA: First application using Maven
Not to leave the topic without final answer, I ended up solving the problem by reinstalling the eclipse for the last version, apparently it was some problem with its installation because the Maven…
-
1
votes2
answers255
viewsQ: First application using Maven
In my application I am trying to use Maven, but I have some problems that can be related to configuration, when I will generate a project JAR or use some Run As option from the pom.xml file in the…
-
1
votes1
answer735
viewsQ: Dynamic circle using css and javascript only
I’m trying to develop a dynamic circle using only css and javascript, at first I don’t want to use any library and I can’t use the html canvas. My idea is to be able to define the size of the circle…
-
9
votes1
answer555
viewsQ: Location of specific points on maps
Hello I am developing an application that works with the Jxmapviewer library in the java language, one of the proposals is to find geolocation points (ex: stops/snack bars) in a certain street that…
-
3
votes1
answer1658
viewsQ: Chain list ordering
I am doing a job that I need to create a chained list and order it in ascending order, performing my tests I realized that I am losing the reference to a node, the problem may be logical but I am…
-
0
votes1
answer602
viewsQ: How to convert RGBA pixels to characters?
having access to the pixels of any image through the SFML library, my goal is captured and convert them to characters by placing in a new matrix (image) and then display it. For that I checked the…
-
3
votes3
answers258
viewsQ: Accessing an SFML pixel
I am developing a project where I must access pixel of an image and put them in a new matrix in RGB, for this I am using the SFML library, my difficulty is in logic, I know that a pixel is the…
-
3
votes2
answers1301
viewsQ: How to open a C++ image using SFML?
I am still at the beginning and need to open a C++ image using SFML, at the moment I am using a code that uses the address of the image, but all this via code and what I need is that this address…