temporaneità
English scratches and Italian notes written by Carlo Perassi
  • About
    • Borges
  • Curriculum Vitae
  • Contact
Browse: Home / trivial hacks

trivial hacks

Chunking Base64 binary data in Java

By Carlo on 2011-05-13

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 [...]

Posted in English | Tagged Java, trivial hacks | 2 Responses

JPA (JSON Partners Agenda)

By Carlo on 2010-12-01

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":"", [...]

Posted in English | Tagged Android, trivial hacks | 4 Responses

PHP5 class for bit.ly API

By Carlo on 2010-07-01

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.

Posted in English | Tagged PHP, trivial hacks | Leave a response

Google Spelling

By Carlo on 2010-06-07

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 [...]

Posted in English | Tagged Google, PHP, trivial hacks | Leave a response

MarkerClusterer clearMarkers bugfix

By Carlo on 2009-12-01

(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 [...]

Posted in English | Tagged Google maps, javascript, trivial hacks | 1 Response

KML Confini Comuni

By Carlo on 2009-09-04

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 [...]

Posted in Italiano | Tagged Google maps, Piedmont, trivial hacks | 4 Responses

jQuery easy checkbox

By Carlo on 2009-08-20

This little jQuery script (demo here) makes it easy to select checkboxes: it is almost comparable to Comodo Click.

Posted in English | Tagged jQuery, trivial hacks | Leave a response

dilw 0.6 is out

By Carlo on 2009-05-08

This release adds a call for templates (inside your template, write echo get_dil();).

Posted in English | Tagged trivial hacks, WordPress | Leave a response

jQuery Quick Pagination (trivial patch)

By Carlo on 2009-05-05

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’ }); });

Posted in English | Tagged jQuery, trivial hacks | Leave a response

dkdil 0.7 is out

By Carlo on 2009-02-09

This release fixes a small bug (thanks to Michael Klein).

Posted in English | Tagged DokuWiki, trivial hacks | Leave a response

Next »

Search

It passes

it passes

My posts, unless otherwise expressly stated, are licensed under a Creative Commons Attribution-Share Alike 2.5 Italy License.

Copyright © 2006 - 2012 by Carlo Perassi. Powered by WordPress and Hybrid.