Wednesday, 1 February 2012

HOWTO fix shared Google calendars not showing up in Android

Google calendar is a simple and useful tool for sharing informations about events and tasks with colleagues. The nice part is that you can gather many calendars and sum them up in a single view. The even nicest part is that everything flows into your android mobile, so you can have a collaborative real-time calendar in your phone.

So, what's the matter? Well, the web-based calendar runs perfectly, but sometimes Android messes up: some calendars, which are correctly shown in Google Calendar, do not appear in Android. Repeating the synchronization does not fix a thing, you have to get dirtier than this.

Go to Settings > Applications > Manage Applications > Running > Calendar storage

Then, click "Clear data" and "Force stop". The first one wipes out the local cache; the latter forces the calendar to restart and download the calendars again from the internet.


A bit messy, but it works.

Wednesday, 18 January 2012

Automated twits from a workstation, using IFTTT

When optimizing parameters of stochastic systems you can have hard time predicting when the process is going to end. It would be nice if the workstation itself warns you when it's done, just like Joshua used to give Lightman a call asking him to keep playing

Hello, Mr. Falken. You are a hard man to reach.
Telephone calls are demodé, anyway. It is much more web 2.0 if the workstation twits you that the jobs are completed and you can check the results out (or something went wrong and you gotta fix the code and so on).

Twitter does offer a RESTful interface for directly twitting stuff around, but handling the authentication takes a lot of work and time (that I don't have, actually). So, I tried something different. Something like this:

Spannometric :) sequence diagram of the system
The key of the process is IFTTT, a nice tool that "[puts] the internet to work for you by creating tasks that fit this simple structure if-this-then-that". In this case, IF "a new message from the workstation is received" THEN "twit the message to @aresio", message that is then forwarded to my Android terminal automatically. IFTTT does a 15' polling, so it's not a real-time thing, but pretty close.

Almost anything was already done, I just glued the pieces together by developing all the stuff on the web server: a simple RESTful interface exposed to the workstation and a plain RSS feed; matter of five minutes, and it works.


Thanks Joshua! 

Thursday, 24 November 2011

Mission accomplished

Rastrigin's benchmark function is far more photogenic than I am
I finally got my Master's Degree in computer science, by defending a strongly interdisciplinary thesis about GPGPU-powered parameter estimation in biochemical systems. The method I propose spins around my favourite bio-inspired optimization method – the Particle Swarm Optimization – whose fitness function relies on simulations produced by Gillespie's stochastic simulation algorithm. But that's just the surface: there's a lot of complex stuff "under the hood" and plenty of room for future developments.

It has been a very interesting experience, enlightening in many ways; the most important aspects came from a human standpoint: I met, and worked with, some wonderful people from whom I've learned a lot, people I'll never cease to admire and be grateful to.

It's kinda funny, anyway: I run away from chemistry at high school, and now I'm onto it again. Strange to see how different routes ultimately lead into the same place.

Wednesday, 2 November 2011

Vademecum anti-Renzi

Matteo Renzi alla "Ruota della Fortuna"
Per usare un eufemismo, il sindaco di Firenze Matteo Renzi è una anomalia della politica italiana. Sedicente uomo "di sinistra", è stato eletto nelle fila del Partito Democratico, teoricamente di sinistra anch'esso. Tuttavia, nelle parole e nelle intenzioni, è completamente antitetico allo schieramento di cui, più o meno velatamente, si propone come leader e rinnovatore.

Renzi è un pericolo oggettivo: l'epoca post-berlusconiana deve risultare una totale rottura col passato. Il sindaco di Firenze non solo non propone un futuro progressista, ma anzi si aggrappa ad un intollerabile conservatorismo reazionario di cui, sinceramente, possiamo e dobbiamo fare a meno. In altre parole, è sempre la stessa solfa, meno cafona e più spocchiosa. Essendo figlio di un democristiano, non ci si può aspettare di meglio.

Non mi aspetto che mi si dia retta per partito preso: lascerò che sia il Renzi-pensiero a metterlo adeguatamente alla berlina.

Renzi-quotes

"Sono contrario ai matrimoni gay. Sono contrario anche al registro delle unioni civili tra gay, per quanto mi riguarda potrebbero bastare accordi privati" (fonte).

"Sono contrario all'eutanasia" (fonte).
 
"Sono favorevole all'applicazione completa della legge 194 sull'aborto" (fonte).

"Sono contrario alla liberalizzazione delle droghe leggere" (fonte).

"[Lavoratori?] Io sto dalla parte di Marchionne. Senza se e senza ma dalla parte di chi crea lavoro e ricchezza" (fonte).

"Voterò no al quesito referendario sull'acqua pubblica" (fonte). 

"Vorrei parificare l'età della pensione per uomini e donne, andando verso l'eliminazione delle pensioni di anzianità nell'ambito di un patto tra le generazioni" (fonte).

"Se fossi io a Palazzo Chigi, affronterei il tema licenziamenti senza tabù" (fonte).

"Sono per l'abolizione del valore legale del titolo di studio" (fonte).

"Riguardo il testamento biologico, vorrei che decidesse la famiglia ma dico no alla verità di partito" (fonte).

Renzi-gaffes

Qualora le posizioni cattolico-liberiste di Renzi non dovessero bastare a provocare ribrezzo negli elettori effettivamente di sinistra, il nostro si è anche prodotto in un paio di figuracce mediatiche non indifferenti che dovrebbero fugare ogni dubbio.

La visita a Berlusconi, direttamente nella villa di Arcore (fonte).

Il programma della sua "corrente" redatto da Giorgio Gori, ovvero un ex dirigente Fininvest/Mediaset creatore di perle tipo l'Isola dei Famosi o X-factor (fonte).

L'endorsement del Giornale (fonte), che fa il paio con quello di Berlusconi stesso.

La condanna in primo grado dalla Corte dei Conti della Toscana a pagare 14mila euro per danni erariali, in seguito a dei magheggi per delle assunzioni (fonte).

E quindi?

Il proposito di "rottamare" i dinosauri del Partito Democratico, e della politica italiana in generale, è assai buono e nobile. Ma a differenza di quello che pensa, non è affatto una questione anagrafica o di legislature trascorse in Parlamento, bensì di ideali. Dunque ci vuole qualcun'altro, con idee nuove, più democratiche, più moderne, più progressiste, più vicine alle vere necessità del paese. Matteo Renzi, pur essendo uno stimatissimo amministratore pubblico (stimato dai cittadini, non dalla Corte dei Conti), non incarna nessuna di queste e non rappresenta alcun vantaggio rispetto alla condizione attuale.

Thursday, 13 October 2011

RIP dmr

#include <stdio.h>
int main()
{
    printf("Goodbye world\n");
    printf("%c%c%c Dennis Ritchie\n", 82, 73, 80);
    return -1;
}