[Java] Conversione file da CSV unico a tanti VCF

Salve a Tutti,

ho scritto questo semplicissimo programmino per convertire un fileone unico CSV, importato da un qualsiasi Nokia attraverso Nokia PC Suite, in tanti file vcard (biglietti da visita virtuali) con estensione VCF, in generale digeribili da un qualsiasi smartphone Android. I sorgenti li ho caricati su Github, mentre il jar lo trovate qui.

Ringrazio Flame_Alchemist e skary, di HackerForum, per l’aiuto sulle regexp!

Saluti
hawake

openSUSE 12.1 Milestone 5

Salve a Tutti,
e’ disponibile per il download la Milestone 5 di  openSUSE 12.1. Tra le novità troviamo l’introduzione di systemd al posto di System V, GNOME 3.1.5 e glibc 2.14. Inoltre questa sarà l’ultima Milestone ad essere distribuita con la versione di Oracle di Java, infatti dalla prossima sarà presente soltanto l’OpenJDK.

Link vari: ANNUNCIO , BUG NOTI .

Buon testing,

Saluti
hawake

JDK 7: punto della situazione…

Proprio ieri Mark Reinhold, tramite un messaggio nella mailing list di sviluppo del JDK 7, ha chiarito la situazione post acquisizione Oracle, dello sviluppo della piattaforma Java. Ecco l’email:

It’s been clear for some time that the most recent JDK 7 development
schedule [1] is, to put it mildly, unrealistic.

We created that schedule over nine months ago, prior to the acquisition
of Sun by Oracle.  The post-acquisition integration process took longer
than any of us anticipated, unfortunately, but we’re now ready and able
to focus on this release with a larger (and still growing) staff which
will continue to work in the open alongside other contributors.

So, whither JDK 7?

Our present best estimate is that we could complete, test, and stabilize
the planned work in time for a release around the middle of 2012.

Looking at what’s in the forest today, however, much of that work is in
fact already done, or very nearly so.  The main outstanding items are
the Lambda and Jigsaw Projects, along with a few of the Coin proposals.
We’ve made a lot of progress on these features, and they now have more
Oracle engineers working on them than before, but significant work
remains to be done.

Another possibility, therefore, is to take everything we have now, test
and stabilize it, and ship that as JDK 7.  We could then finish Lambda,
Jigsaw, the rest of Coin, and maybe a few additional key features in a
JDK 8 release which would ship fairly soon thereafter.

This approach would give developers production-quality access to the
nearly-finished features sooner rather than later, and with much less
risk.  It would also allow more time to really shake out Lambda and
Jigsaw, which is critical given that these higher-risk efforts are
making deep changes to the very foundations of the platform.

Our current estimate for this “Plan B” is that we could ship a reduced
JDK 7 in mid-2011 and JDK 8 in the second half of 2012.

To summarize:

Plan A:  JDK 7 (as currently defined)                      Mid 2012

Plan B:  JDK 7 (minus Lambda, Jigsaw, and part of Coin)    Mid 2011
JDK 8 (Lambda, Jigsaw, the rest of Coin, ++)     Late 2012

(As always, our intent is that JDK 7 will ship concurrently with a Java
SE 7 JSR, and likewise for JDK 8 and Java SE 8, and also that there
will be JSRs for Lambda and Coin.)

Here at Oracle we’re leaning heavily toward the lower-risk Plan B.  The
platform has been idle for (more than!) long enough — it’s time to get
Java moving again.  If there are good reasons to prefer Plan A, however,
then I’d like to hear them.

– Mark

(potete trovarla nell’archivio pubblico della mailing list)

In sintesi, siccome l’organizzazione post-acquisizione Oracle ha preso più tempo del previsto rallentando lo sviluppo, ora bisogna scegliere tra due alternative per lo sviluppo della piattaforma Java:

  • Proseguire per la strada intrapresa completando i vari Jigsaw, Lambda e tutto il Coin Project facendo slittare il rilascio della nuova versione a metà 2012 (il cosidetto piano A);
  • Oppure fixare e ottimizzare il lavoro già fatto rinviando i sopracitati progetti alla versione 8 e rilasciando la 7 a metà 2011 (il piano B);

Detto ciò, sinceramente, sono daccordo con Mark Reinhold optando per il lower-risk piano B permettendo agli sviluppatori di godere delle prime succulenti novità, per poi focalizzarsi senza fretta su Jigsaw, Lambda e Coin, cambiamenti radicali che rivoluzioneranno la struttura della piattaforma e del linguaggio.

Saluti
hawake

openSUSE 11.3 Milestone 6

E’ un po’ che non mi faccio sentire… postando questo video ne approfitto per aggiornare un tantino il blog sulla mia situazione informatica asd! Dunque i progetti portati avanti sono sempre gli stessi + una novità: JavaChemistryAssistant (pressocchè un concept embrionale), JavaSecureExplorer, JavaFluxboxManager (un tool che mi sta tornando utile per moddare un minimo Fluxbox usando una GUI Swing, appena raggiungerà una certa maturità e stabilità lo rilascerò tramite un repo mercurial su kenai o in qualche altro modo…).

In conclusione, ecco il video della netinstall di openSUSE 11.3 Milestone 6 su sistemi x86 a 64 bit:

Saluti
hawake

Twitter e Java

image
Hmm qualcuno che ha pensato la stessa cosa mia, ma in maniera migliore! asd

Mi sono iscritto da poco a Twitter e già mi sono stufato di accedere tramite interfaccia web (leggete: aprire un browser, loggarsi e poi iniziare a scrivere dopo essere venuti a capo della montagna di twitt in home), così mi sono chiesto quanto sarebbe comodo avere un’applicazione desktop scritta appositamente con la quale gestire il tutto. Con un linguaggio a caso… direi… Java! 😛

La libreria twitter4j fornisce tutto il necessario per iniziare, ma in un secondo momento non escludo di riscrivermela a modo. Esempio:

Twitter twitter = new Twitter("username", "password");
twitter.verifyCredentials();
JOptionPane.showMessageDialog(null, "Now you are logged in!");
java.util.List statusList = twitter.getUserTimeline();
jTextField1.setText(String.valueOf(statusList.get(0).getText()));

In questo modo riceveremo il primo tweet (cioè l’ultimo ricevuto) dal nostro account.

E ora… al lavoro! 😀