-
Scala
Probability distribution for programmers
This is one of these very simple programming puzzles I came across recently: given a function returning random integers from…
Read More » -
Software Development
OAuth 2.0 Bearer Token Profile Vs MAC Token Profile
Almost all the implementation I see today are based on OAuth 2.0 Bearer Token Profile. Of course its an RFC…
Read More » -
Core Java
Fluent Object Creation
Many posts have been written on this subject (overwhelmingly many) but I just wanted to contribute my two-cents and write…
Read More » - Enterprise Java
-
Software Development
Caveats With MySQL Pagination
We’ve all done pagination – it’s sensible for both lists in the UI and for processing data in batches. “SELECT…
Read More » -
Core Java
How to shoot yourself in foot with ThreadLocals
It will start nicely. Like most of the stories. You discover a new concept and are amazed by it’s powers.…
Read More » -
Enterprise Java
Going REST: embedding Jetty with Spring and JAX-RS (Apache CXF)
For hardcore server-side Java developer the only way to ‘speak’ out to the world is by using APIs. Today’s post…
Read More » -
Enterprise Java
Mixin in Java with Aspects – for a Scala traits sample
Scala traits allow new behaviors to be mixed into a class. Consider two traits to add auditing and version related…
Read More » -
Enterprise Java
MySql connections autodrop after a certain hours
MySql is configured to drop any connection which has been Idle for more than 8 hours. What is the implication…
Read More »