December 2011
1 post
3 tags
WatchWatch
La presentazione “NFC Programming in Android” che è stata presentata 24 Novembre 2011 nell’incontro di GTUG (Google Technology User Group) Milano.
Dec 7th
5 notes
July 2011
1 post
Liferay: Disable the IE Compatibility View
If Internet Explorer detects that a web page is not compatible, the address bar displays the Compatibility View button. When you turn on Compatibility View, the Web site open appears as if you were using an earlier version of Internet Explorer. However, this is an emulation of an earlier version of Explorer, which creates additional display problems when compared with other browsers like Firefox...
Jul 22nd
June 2011
1 post
Split svn repository into multiple repositories
Sometimes it appends that a project is divided in different sub project. Each one then, can earn ti’s own prioriry and become a full project. If everything was stored into the same svn repository, how can you move away one directory of it without loosing all the commit history? Here’s how : 1. create a dump from the repository To create a dump file use the svnadmin dump...
Jun 24th
May 2011
2 posts
2 tags
NFC operating modes
In these days you should probably heard talking about NFC. Through Google’s new mobile payment method news, rumors which talk about up coming iPhone’s NFC functionality and so on. NFC (Near Field Communication) is a short-range (< 5cm) wireless communication technology. Working in Myti I got some opportunities to implements several mobile applications which based on this...
May 31st
3 notes
6 tags
Creating a osx app bundle in Java registered to a...
Recently we extended our enterprise search engine bleen adding a desktop utility automatically launched clicking on a result link. To achieve this we created a native applciation ( for windows and osx ) registered to the protocol url bleen:// In this tutorial we will see how to build this utility in Java for Mac OS X. The base code is a simple java class displaying a Dialog Application bundle ...
May 3rd
28 notes
April 2011
1 post
Benvenuto Tomson
Da oggi abbiamo un nuovo collega. Tomson è uno sviluppatore java, viene dal Camerun e la seconda laurea (!) l’ha presa alla facoltà di Ingegneria di Brescia. Tomson mangerà pane-grails-e-liferay per le prossime settimane. Buon lavoro!
Apr 1st
February 2011
3 posts
3 tags
Cloud computing e Enterprise Search
In questo periodo di forte fermento della IT, tutta eccitata dall’avvento del Cloud, quali sono le prospettive a medio periodo di una applicazione di Enterprise Search, per sua natura funzionante in rete locale (in-premise)? Credo che l’Enterprise Search sarà uno dei pochi ambiti di applicazioni Enterprise che otterrà vantaggi dal Cloud. Innanzitutto dal punto di vista tecnico può...
Feb 23rd
1 note
Ascii art in groovy
Giocando con groovy, ho scritto un semplice programma per trasformare un’immagine in “ascii art”. (su gist trovate il codice completo) Il programma è molto semplice: un ciclo recupera, per ogni pixel dell’immagine un intero (tramite il metodo image.getRGB) che rappresenta il valore RGB del pixel stesso. Il metodo image.getRGB ritorna un unsigned integer nella forma...
Feb 22nd
Leggere e denormalizzare una tabella con un campo...
Lo step “Get Data From XML” di Kettle è decisamente versatile: ci permette, infatti, non solo di leggere e trasformare un file XML, ma ci consente anche di effettuare le medesime operazioni sfruttando un campo di una tabella, che usiamo come input. Come fare? Innanzitutto, dovremo necessariamente alimentare il “Get Data From XML” con un “Table Input”: Questa...
Feb 11th
March 2010
4 posts
3 tags
Grails portlets : eager fetching in service class
Developing portlets with Grails is great but there are still some issue to solve. Today I would talk about two problems related to GORM and Hibernate. First: some GORM stuff works, while some others don’t and cause exceptions about the Hibernate session not being found. For example, if we have a domain class like this: class Car { Manufacturer manufacturer Engine engine Tyre...
Mar 16th
3 notes
2 tags
Clojure first steps
This post is the first (I hope) of a series about my adventure in Clojure land. Being Clojure hosted on the JVM, it’s a natural choice for a Java developer wanting to study and learn functional languages. A simple exercise I started with a simple exercise: add all the natural numbers between 1 and 100 which are multiple of 5 or 7 ; Add all the natural numbers below 100 that are multiples...
Mar 12th
3 tags
Custom property editor for Grails
Problem: Create a custom property editor between Model and View to show it as we need. (example: we wanted to change how shows the java Date.class in a view, from default format ‘yyyy-MM-dd HH:mm:ss.S’ to ‘dd-MM-yyyy’). Solution: There are 2 solutions which I can see now. The first one is, when every time we show a Date object, format it using a java DateFormat implement and show it. But the...
Mar 11th
1 note
2 tags
Groovy tip for simpler test case
When writing a groovy test case you almost want to be concise and expressive… next time you’ll see the test you must undestand it quickly. Here’s a small tip to enhance test writing. Having  : def car = new Car() def jack = new People() def tom = new Cat(); Instead of writing somethings like : car.addPeople ( people ) car.addCat ( tom ) it’s really simpler...
Mar 11th