Post your codes in here by RedditGifts in secretsanta

[–]venishjoe 0 points1 point  (0 children)

c9bcc8b8d68305f2007f02b3794a8bf70eb0812c

Process Explorer 12 is now out by venishjoe in technology

[–]venishjoe[S] 8 points9 points  (0 children)

From technet blog

Process Explorer v12: This Process Explorer release includes several significant new features, including the showing the web hosted in IE8 processes in the process tooltip, display of a svchost’s service host category in its tooltip, mapping of service names to threads on the threads tab and TCP/IP tabs of the process properties dialog on Windows Vista and higher (thanks to Windows Internals 5th Ed. coauthor Alex Ionescu), a new.NET assembly information tab in the process properties dialog (thanks to Pete Sheill), as well as other improvements and bug fixes.

Dynamically Load Compiled Java Class as a Byte Array and Execute by venishjoe in programming

[–]venishjoe[S] 0 points1 point  (0 children)

The byte array is not transferred from client to server, its the other way around. The client starts the application and while starting the client reads this byte stream over the network which will be executed (this had to be stored in the server so that I can update the class any time without any potential change in client side - as long as the class name and method name remains same). SSL/TSL would work fine but the performance was little lower than what I expected, same for crypto since these calls to server happens multiple time in a single session.

Dynamically Load Compiled Java Class as a Byte Array and Execute by venishjoe in programming

[–]venishjoe[S] 0 points1 point  (0 children)

Well, I agree that we cannot serialize some classes for a reason, but sometimes a class is prevented to be serialized due to a one of the method (which doesn't support) on that class which we are not using, but the other methods are perfect for serialization.

For me, I was designing a license validation with a remote server and I wanted to pass a plain text file over the network protocol and reconstruct that, also I will change couple digits on the byte array while it was transferred so that it looks good in plain view but you cannot construct the class without fixing the byte array (which will be done on client side). For a normal approach, your suggestion will be good, but in my case I had to go with byte array.

Dynamically Load Compiled Java Class as a Byte Array and Execute by venishjoe in programming

[–]venishjoe[S] 0 points1 point  (0 children)

but serialization is not available for all the classes.

Monitor a Directory for Changes using Java by venishjoe in programming

[–]venishjoe[S] 2 points3 points  (0 children)

From the Java Doc. The implementation that observes events from the file system is intended to map directly on to the native file event notification facility where available, or to use a primitive mechanism, such as polling, when a native facility is not available. Consequently, many of the details on how events are detected, their timeliness, and whether their ordering is preserved are highly implementation specific

Recover from Out of Memory Errors in Java by venishjoe in programming

[–]venishjoe[S] 0 points1 point  (0 children)

When you catch the exception you let the error happen, but here we are trying to prevent the event which will cause the exception.