Skip to content

Instantly share code, notes, and snippets.

Guava is just better with JMX
@theotherian
theotherian / Jersey ServerSide connector
Last active February 15, 2017 13:05
In memory request handling on the server side with Jersey
It's possible to handle requests in memory with Jersey client
Don't mix eager or subselect joins with max results; the by product is pretty nasty.
Subselects can select all entities in the associated table, and potentially issue an additional select for each parent, while joins often load duplicate entities due to the max results being applied to the row and not the parent.
@theotherian
theotherian / Strong Soft Weak and Phantom References
Last active January 1, 2016 22:19
Different reference types in Java can be confusing
What does it mean?
@theotherian
theotherian / Binary Serialization Shootout Part 1
Last active January 1, 2016 04:29
A serialization shootout
JSON vs Smile vs Kryo
@theotherian
theotherian / Handlebars Helper Functions with Jersey
Last active December 24, 2015 04:58
A way to map Handlebars helper functions on the server side within a Jersey resource
A way to map Handlebars helper functions on the server side within a Jersey resource
@theotherian
theotherian / Jersey 2.0 client with generics
Last active December 20, 2015 22:18
Jersey 2.0 client with generics
It's easy to use Generics with Jersey 2.0 client
@theotherian
theotherian / ByteBuffer side effects
Created August 11, 2013 03:12
Bits.class is scary
Using ByteBuffer instances to allocate memory can be dodgy
XML for pom files to declare a dependency on Thread Local DNS
Files for creating Maven Archetypes - part 1