Posts by pablosaraiva • 211 points
5 posts
-
2
votes2
answers1804
viewsA: Running program in the background
I believe you want to run part of your program in another Thread. Take a look at the Thread class. In the method triggered by clicking the button, you run the task in another Thread while the Main…
javaanswered pablosaraiva 211 -
1
votes1
answer462
viewsA: How to test the service layer
You can avoid this work by using the Arquillian. It allows you to upload a part of your program to the server and run the tests. Preferably in the same environment as production. The way you are…
-
1
votes4
answers1341
viewsA: An algorithm for finding repeated files?
List all the files; For each file, perform the steps below: Generate a Hash from the contents of the file and store it in a Hash Table; In case of Hash collision, check that the file is equal to the…
-
6
votes5
answers12657
viewsA: How do I protect PHP code from theft and piracy after deploying?
If you really want to hide your code, the client cannot have access to the server. Make the service hosting yourself.
-
1
votes4
answers4778
viewsA: How do value types and reference types work in Javascript?
Javascript is a "weakly typed language". The type of the variable is determined by the interpreter at runtime and can be changed during the execution of the program as the contents of the variable…