Chunking Base64 binary data in Java
I’m not an expert but it seems to me that the different methods to encode as Base64 a *binary* stream exposed by Apache Commons don’t chunk for binary inputs or don’t chunk at all, in spite of what their documentation states. So let me write here a little snippet, which uses guava-libraries, for an already [...]
JPA (JSON Partners Agenda)
Having gone through partial or outdated documentation, buggy examples and many forums, I’m now ready to release my first Android application. :) It is on GitHub, not on the Android Market, though. JPA (JSON Partners Agenda) displays partners’ details of a given company, fetching them as a JSON array like this one. [ { "company":"", [...]
PHP5 class for bit.ly API
Having chosen to convert a bunch of long URLs using bit.ly, I slightly modified and packaged in a simple PHP5 class the code written by David Walsh. The following is an example of usage of this class: $mbit = new BitlyWalsh($login, $apiKey); echo $mbit->getShort($yourLongUrl); // echo $mbit->getLong($bitlyShortUrl); You can download here this basic class.
Google Spelling
I’ve written a short PHP script that outputs what I call “the Google spelling” :) a 26 words list of the most frequent words/phrases taken from Google Suggest. You can also pass the language to it, so the today’s (2010-06-07) English list is amazon bank of america craigslist dictionary ebay facebook gmail hotmail imdb jet [...]
MarkerClusterer clearMarkers bugfix
(This should be a crosspost written with Massimiliano) It seems that MarkerClusterer has a bug, fixed with this patch (*) written by Massimiliano while we were hunting together for it on this application (now working fine): after the ajax submit and zooming out, the library was still displaying old clusters and markers, because, after destroying [...]
KML Confini Comuni
Partendo dall’eccellente lavoro di localMapping e utilizzando parte dei dati di un mio post precedente ho creato, con un piccolo script, il file comuni.kml, che abbina quindi i confini dei comuni piemontesi ai relativi codici ISTAT: Google Earth riesce a visualizzarlo mentre Google Maps no, dato che il file è per lui troppo grande; in [...]
jQuery easy checkbox
This little jQuery script (demo here) makes it easy to select checkboxes: it is almost comparable to Comodo Click.
dilw 0.6 is out
This release adds a call for templates (inside your template, write echo get_dil();).
jQuery Quick Pagination (trivial patch)
jQuery Quick Pagination plugin is well… quick :) and it works well: this simple patch adds the options to change the text of the “next/prev” links. The new call is jQuery(document).ready(function(){ jQuery(‘#list_nav li’).quickpaginate({ prev_text: ‘blah previous’, next_text: ‘blah next’ }); });
dkdil 0.7 is out
This release fixes a small bug (thanks to Michael Klein).
