jump to navigation

Obfuskacja - Java code obfuscation tool, June 17, 2009

Posted by artiko in: Java , Software , 2comments

Nowadays, applications written in Java or C # fairly easily zdekompilować and sometimes get cleaner code. Of course, long ago devised ways of hedging against the :)
One very simple and is just obfuskacja, that is obfuscation of code. It involves modifying the code or bytecodu that it was not possible to understand it later. After a detailed description refer to the Wikipedia page - pl.wikipedia.org / wiki / Zaciemnianie_kodu .
After a short search the web, I found a project called ProGuard , which allows you in a really fast way to obfuscate code, reduce the volume of files and to optimize the object code. It can be run from the command line, but also has a GUI. Personally I prefer the GUI, because if you use the console version have to create a configuration file for each package. The application is written in Java, making it multiplatform.
The program tab in the Input / Output just add the jar file our application, the resulting file, and, very importantly, the library files, which are references in our code. The next tab, you can leave the default values, click the Process in the Process! and after a while we get an output file, protected from those who would look to him :)
I am on the first use I found the error
Warning: javax.swing.JFrame: can't find superclass or interface javax.swing.TransferHandler$HasGetTransferHandler

The solution is simple, the Information tab, simply uncheck the box Skip non-public library classes and class members.

Grouping objects displayed Java3D May 13, 2009

Posted by artiko in: Java , add a comment

To solve a common problem: the canvasie display dozens of objects, some of which is static at run-time, part of the dynamically updated. What to do to avoid having to remake reload all objects in canvasie and avoid blinking?
The answer is simple if you use the class to which javax.media.j3d.BranchGroup addChild (Node arg0) you can just add 3D objects. Of course all of this group can easily be transformed.
If we add to one group of static objects in the display, the second refreshed enough that during the execution of the program will refresh only the second group. This can be done using the method detach () for the group, and then reload the content and adding it to canvasu, or parent group.

Forest Fire - a forest fire simulator November 23, 2008

Posted by artiko in: Java , Software , add a comment

Forest Fire is a student project that simulates a forest fire by using the theory of cellular automata.
The same approach to the use of cellular automata is the custom, because it received from several superimposed layers, which allows much better simulate forest and the spread of fire in him. This has also allowed a more faithful way to simulate the impact of such factors as wind, terrain and forest structure in the fire.
I encourage you to test, the project is available as a Java Web Start on this page -> Link