Programming
Sorting and Search Algorithms Explained in a Dance
Netty: How to Initiate SSL Handshake From Client
I have had spent some time recently making netty 3.6 sending some message when connection has been established.
What documentation suggests to do is to extend SimpleChannelUpstreamHandler
and override method channelConnected(...)
.
It works fine unless SslHandler
is used in the pipeline.
If handler is present, channelConnected()
was never called on my handler.
Using Expected Exceptions in UnitTests
Sometimes, reviewing code, I see misunderstanding of using Expected Exception concept in unit tests.
Crearing an array in JavaScript
Since it may be references to existing javascript array from other objects, the best way to clear array contents is assign its length to zero
Configuring Protobuf to Java compiler in maven
Here are few steps to configure protobuf-to-java compilation in your maven project:
Install google protobuf compiler on your computer.
brew install protobuf
Configure maven protobuf compiler plugin and protobuf-java dependency in pom.xml