Recent Posts

Idiom for generics on static methods

less than 1 minute read

I always forget this idiom: [sourcecode language=”java”] public static Collection getFirstN(int numRecs, Collection records) { List rtn = new Ar...

Some Functional JQuery bits

less than 1 minute read

Return a processed array, leaving underlying array unaltered var arr = Array.apply(null, Array(5)).map(function (_, i) {return i;}); var processedArr = $.ma...

Tiles in Javascript

less than 1 minute read

Tried using Freewall, a small tiling library written in jquery. It looked nice in the demos and easy to incorporate but didn’t like tiles composed dynamic aj...