Showing posts with label java. Show all posts
Showing posts with label java. Show all posts

Tuesday, November 23, 2010

Codemotion 2011, the most important Italian conference about programming



Save this date: March 5th 2011! In Rome, Italy there will be the most important conference about programming. The event is totally FREE. About 1,500 attendees. Sessions in English and Italian languages.

For information: http://www.codemotion.it


Tuesday, January 27, 2009

JavaDay III edition

The 3rd edition of the JavaDay is gone. 1.400 visitors: 1225 workers, 363 student, 74 unemployeed.

The AssetData's stand has received more than 300 curricula. For this reason I've take the decision to build from stratch an application to collect all them using Roma Meta Framework. After 1 hour it worked, but the GUI is not yet very intuitive...

During the event I encounter Paolo, a very old collegue of about 12 years ago in my second project for the IRI group. I have seen again a lot of other past collegues and friends...

I love the JavaDay also for this reason :-)

(photo by Valerio Casale)

Monday, December 22, 2008

Roma JavaDay III edition in Rome


Today, 3 years after its inception, the JavaDay in Rome is the technical reference event for Java technology in Italy. It boasts a terrific turnout and the participation of the most eminent speakers of the community.

The Rome JavaDay takes place at Università Roma TRE with the purpose of establishing a privileged channel with university students. It has a highly technical connotation and is a joint-effort of three Italian Java communities, namely Java User Group Roma, Java Italian Portal e Java Italian Association.

Attendance is free of charge.

IMHO the most interesting talk is: ROMULUS. Java Web Development made productive

Friday, December 05, 2008

Java Pretty code II

Another piece of pretty code:

public class MyClass{
 public MyClass() {
 }

 public MyClass(String iClass, String projectPath) {
  /* Instantiates MyClass */
  MyClass obj = new MyClass();
  obj.create(iClass, projectPath);
 }
}

Why to create an object of the same class to call the method on it?

To the next piece of pretty code!

Java Pretty code

Today, between a debug and another one I found this nice thing:

private VectorString> extractFields(Class classObj) {
 String className = classObj.toString();
 className = className.substring(6, className.length());

 Class obj = null;
 try {
  obj = Class.forName(className);
 } catch (ClassNotFoundException e1) {
  e1.printStackTrace();
 }

 ...
}

1) Please note the toString() call and then the extraction of the result cutting from the 6th character... But why don't simply to use the getName() method?
2) And at the end... Why to extract the name of the class and then reload the class by the extracted name to obtain...always the Class taken as parameter!

These are pearls folks!

Monday, November 10, 2008

Finally the official release 1.0 of Roma Framework is up

I'm tired out but happy! :-)

After about
one year I've released the official release 1.0 of Roma Meta Framework in Source Forge.

So many news from the last 1.0rc4 version: several new plug-ins, thirdy parties contributions, the free PDF manual, better module management and performance improvements.

Download the last release of Roma Meta Framework

Below the main changes:

-------------------------------------------------------------------------------
VERSION 1.0.0 (November, 10th 2008)
-------------------------------------------------------------------------------
Main addictions and improvements:

CORE module:
- New modules management. Now you can check for new modules, new releases of them and install it over the air. Dependencies are well considered
- New Logging aspect to abstract logging and to use logging facilities such as @LoggingAction() to log any POJO action
- Support for new View Aspect that works with XHTML 1.0, CSS2 and JSP
- Support for new Semantic Aspect available via Romulus project using Open Source Jena framework

CHART-JFREECHART module:
- New module to create graphs using the popular JGraph library

ETL-XPATH module:
- Strong refactoring of the engine
- New JDBC Extractor and Importer modules
- New Wizard to let to the user the importing phase

PERSISTENCE-DATANUCLEUS module:
- New Persistence Aspect implementation using the new DataNucleus technology. Supports JDO 2.1 and JPA 1.0

PERSISTENCE-JPOX module:
- Default like operator works like before, but it considers the presence of the special character "*". If found treats it as the "%" of SQL like syntax. This allow to execute searches with wildcards
- New "optimistic" transaction mode

SCHEDULER-QUARTZ module:
- New UI
- New wizard to build simple expression without the knowledge of CRON syntax

USERS module:
- Deep changes to the USERS module: new realm entity to group accounts, profiles, infocategory and other entities in a common "realm". New "Anonymous" profile to allow to profile for the non-authenticated user
- BaseAccount and BaseProfile now extends the common AbstractAccount abstract class in order to reference accounts or profile in the same manner just declaring as reference type the AbstractAccount

SCHEDULER-QUARTZ module:
- Calendar view

SCRIPTING-JAVA6 module:
- New module implementing the Scripting facilities of Java6. By separating all scripting features in Roma in only this module we have gained the Java5 compliance for all but this module, obviously

SERVICE-CXF module:
- New module to expose a POJO as a Web Service using Apache CXF framework

VIEW-ECHO2 module:
- Strong refactoring of components. Now ComponentFactory is obsolete and now anything is responsability of the Rendering implementation
- Management of multiple Echo2 stylesheets
- Sensible faster execution

WORKFLOW-TEVERE module:
- New Workflow module with transactional engine and Web GUI. It covers most common workflow patterns

WIZARDS:
- New 'check' wizard to check for new modules or new version of installed modules
- New 'install' wizard to install new modules or new version of installed modules
- New 'update' wizard to update Roma user projects with new version of modules installed
- CRUD now generates the Repository classes for each entity.
- Support for environment variables like "author". You can set/get variables in Roma. Set the "author" variable to have all generated sources with you as author

TEST-PRESENTATION app:
- Changed layout of Test Presentation application

OTHERS:
- Resolved a lot of issues (see SourceForge tracker)
- Tons of minor improvements.

Wednesday, February 27, 2008

Java IDE Day: gli IDE Java più utilizzati si confrontano









Cos’è?
Arriva per la prima volta in Italia l'evento internazionale che mette a confronto gli IDE Java più utilizzati e le loro community. JDeveloper (Oracle), NetBeans (Sun Microsystems), IntelliJ IDEA (JetBrains), invieranno un evangelist del loro core di sviluppo internazionale per confrontarsi a vicenda.

Speaker presenti:

  • Roman Strobl (Sun Microsystems)
  • Paolo Ramasso (Oracle)
  • Vaclav Pech (JetBrains)

Purtroppo nonostante l’impegno da entrambe le parti, non è stato possibile avere la presenza di Eclipse.

Come?
Uno slot di tempo a disposizione per ogni IDE per mostrare le potenzialità del proprio ambiente rispetto agli altri. Ruolo fondamentale sarà giocato dal pubblico in quanto sono previsti appostiti spazi per porre domande direttamente agli evangelist internazionali. La parte finale dell’ evento sarà dedicata ad un dibattito ragionato sul futuro degli ambienti di sviluppo. L’evento sarà in lingua inglese.

Costo:
L’evento è gratuito, ma è gradita la registrazione.

Organizzazione:
L’IDE Day è organizzato dal Jug Genova e Jug Roma

Quando e dove:
Sono previste due date: Genova, 10 marzo e Roma, 12 marzo. L’evento si svolgerà nel pomeriggio, all'interno delle Università. Per gli orari, agenda e informazioni logistiche si rimanda al sito dell’ evento.

Sito di riferimento: http://www.ideday.org/



Thursday, December 13, 2007

Blessed and damned @Override annotation in JDK6!

When I've started to play with Java5 new features I'm surprised there no was a way to static check (at compile time) that a method is implementing a method of an interface. There is the @Override annotation but it's only useful to tell to the Java compiler I'm overriding a super class method, nor an abstract one neither an interface method.

Now I discovered Sun staff covered the gap in Java6 just extending the behavior of @Override annotation also to extend abstract methods or to implement interface methods. Great, apart there is no mention on public JDK 6 JavaDocs!!!

Someone raised a bug on Sun's tracker to correct it: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6399361

My Eclipse IDE 3.3.1.1 recognizes the new feature and add the @Override annotation every time I override a method or implement an interface method. Cool.

But now I've the big problem that Roma Framework's sources are full of them and many users reported me they won't compile under Java5! Yes, because Roma needs JDK 5 to compile (but some additional modules that require Java6 in order to use Scripting facilities. The modules now are just Workflow Tevere and ETL).

The fastest solution is to set JDK 5 as compliance level in every single projects don't use Scripting. It works. Blessed and damned @Override...

Tuesday, December 11, 2007

Interviewee by JavaStaff (in Italian)

Today was published the interview about me on JavaStaff portal. The interview is in Italian language:

http://www.javastaff.com/article.php?story=20071211103706919

Finally released Roma Meta Framework 1.0 rc4

This should be the last one before the official 1.0, but I repeat to myself this period from a long. Not that Roma is not mature yet, but I'd like to have a release where the Roma committers don't put so many improvements and news in general.

First of all I've changed the way to release it on SourceForge. Now there are:
  • The Web Wizard distribution containing all startup modules and the most used (as form of sources and binaries)
  • Plug-ins as individual packages such as Workflow, Monitoring, ETL, Scheduler, etc.
The main news of 1.0 rc4 are:
  • New Designer module to customize your application using the Drag&Drop GUI. It allows to change any configured annotations plus to layout screen and form areas
  • Deep refactoring of ETL-XPath module. Now allows to use scripting to define record and field transformers. Plus a new GUI in form of wizard to configure the ETL process. ETL supports extraction from CSV and SQL sources and import on POJO and CSV.
  • New Reporting JR module to generate dynamically reports using Jasper Reports. Report can be in form of PDF, CSV and MS Excel. Now you can display the report of any GUI at the fly
  • New "Web Ready" project type to start from a ready-for-the-web application
  • Enhanced all CRUD inserting "report" button
  • Resolved a lot of issues (see SourceForge tracker)
  • Minor improvements

Monday, November 19, 2007

Does Eclipse Europa crash over and over again?

If even the changes described in my previous post you have problems with Eclipse 3.3 (Europa), then probably you're using the same workspace from a long. Create a brand new workspace and re-import anything.

Remember you had to re-set all code formatting rules (if they are different by Eclipse built-in) as long as Run/Debug configurations.

Thursday, November 15, 2007

Why Eclipse Europa 3.3 crashes

If you're using the latest release of famous IDE you've surely experienced a lot of problems: every 10 minutes it crashes! Time depends by the projects opened and plug-ins installed.

Today my Eclipse crashed at least 15 times. So it was come the time to fix the problem. After some research I discovered the problem. For a well known bug you had to change the way you launch the IDE.

Change your eclipse.ini in the Eclipse's installation directory to:

-showsplash org.eclipse.platform
-vmargs

-XX:MaxPermSize=128m

-Xms40m
-Xmx256m

If you've a lot of memory try my configuration:

-showsplash org.eclipse.platform
-vmargs

-XX:MaxPermSize=128m

-Xms256m
-Xmx1024m

Your productivity will thanks ;-)

Friday, November 09, 2007

1 Dicembre 2007: JavaDay a Roma

Anche quest'anno la macchina del JavaDay si è messa in moto: sabato 1° dicembre 2007 ci sarà la seconda edizione del JavaDay a Roma. Molti i talk interessanti di cui uno su Roma Meta Framework. Questa volta ho intenzione di partire quasi da subito con una demo, mostrare il designer e il funzionamento "interno" del framework aiutandomi con qualche slide.

Sito ufficiale Javaday di Roma: http://roma.javaday.it/roma/index.vm.

Ci vediamo li no? ;-)

Programma completo:


Next generation Web

Java Open Source

Core Java, what's hot

Java enterprise

09.00

-

9.40

Second Life e Java: prospettive di comunicazione

Tapestry In Action , nuovi modi di sviluppare applicazioni web

Introduzione alla tecnologia Sun SPOT

Magic Box project: Effective K .I .S .S . with SpringFramework

09.50

-

10.30

JSF Integration in JViews - intervento in lingua inglese

Sviluppo rapido di applicazioni utilizzando DDD e Roma Meta Framework

Sessioni Multimediali Voce Video, IM e Presence con i nuovi standard IMS/SIP [SipWork]

SpagoBI: la piattaforma open source di Business Intelligence

10.40

-

11.20

Il Web del Futuro: Enterprise e Web Semantico

Sviluppare applicazioni basate su BPEL utilizzando NetBeans e JBI

NASA World Wind for Java: come integrare mappe geografiche tridimensionali nelle applicazioni Java per il desktop

Java e i linguaggi dinamici: come incrementare le potenzialità espressive di Java

Domain Driven Design, agilità e patterns, architettura e test first

11.40

-

12.20

Rich Internet Application con Java e Flex

Skype4Java

Programmazione Orientata agli Aspetti: cos’è, quando e come applicarla

Terracotta DSO, una soluzione innovativa per software enterprise

12.30

-

13.10

Usare Google Web Toolkit per costruire potenti applicazioni AJAX in Java con tanto di gestione offline dei dati

Parancoe: usare i DAO senza implementarli

JRuby e DSL

Clustering a Real World Enterprise Application with Terracotta :Atlassian Jira

13.20

-

14.00

Grails, sviluppo rapido di applicazioni web in Groovy + Java

Testing di sistemi enterprise utilizzando strumenti FLOSS

Ruby On Rails

Progettazione di un sistema di Single SignOn che permette l'accesso tramite tipi diversi di credenziali

Wednesday, September 26, 2007

Sun Tech Days Italy - Rome

Today I attended the Sun Tech Days Italy event in Rome. By a fast look at the agenda speeches seem to be pretty interesting but in general in this kind of events IMHO the quality is very poor, maybe also for the very short time available for every single talk.

I was wrong. The afternoon was flighted since all talks was very interesting! In the morning, instead, I was in the JUG stand along with Mara Marzocchi. JUG Roma staff is working for the next upcoming Java Day 2007 event in Rome as well.

Below the agenda I attended today:










Java Scripting: JavaFX Script and JRuby - Sridhar Reddy

Much more deeper than the talk listened at Jazoon '07. Today Sridhar talked about the JavaFX syntax language. JavaFX contains very interesting features. One for all the bind keyword that allow to listen changes in chain.
Java Persistence API: Simplifying Persistence - Sang Shin

Sang is a veteran speaker, nice and never predictable. What a shame for no one words about JDO specification!
Ajax and Web 2.0 Related Frameworks and Toolkits - Sang Shin

Sang explained in detail all kinds of Ajax frameworks (Dojo, DRW, GWT, etc.) with some slides and a working demo for every single one!

Building Rich Web Applications using jMaki and Phobos - Doris Chen

Doris fired me the interest for jMaki, what Jazoon's talk didn't! Very cool tool. I'd like to spend a little more time on investigating about the integration with Roma Meta Framework.


Here the full agenda: http://it.sun.com/sunnews/events/2007/sept/jc07

And in conclusion:
- I note down some improvements in Roma based on frameworks seen today.
- I forced me to give a chance to the NetBeans IDE. When? After the release of final 1.0 of Roma Framework, of course :-)

Friday, July 06, 2007

Eclipse 3.3 Europa sucks!

Three days ago I installed Eclipse 3.3, called also as "Europa". Today I'm back to use the previous one since it's much more stable and fast! Moreover the new Eclipse Update Manager works bad since it alerts me about new updates but I can't download and install its from the IDE cause unknown error!

Eclipse 3.3 Europa sucks (for now)!

Wednesday, July 04, 2007

Luca discovered the holy drink for Java Developers




I discovered the holy drink for Java Developers: The Java Green Tea. Today at 5:00 pm o'clock I'll try it and for the rest of the week. In the next days I will be able to write if the Java Green Tea improves the performances of a Java Developer.

Tuesday, July 03, 2007

Resoconto Jazoon 2007 - Zurich Switzerland

Eccoci qua,
a pochi giorni dalla fine della conferenza Jazoon 2007 posso fare un resoconto della manifestazione. Sarò sintetico come al solito :-)

Cominciamo con le impressioni iniziali. All'inizio ammetto che non mi aspettavo gran che dall'evento. Sarà perchè era alla sua prima "release", sarà che pochi nel giro avevano interesse a parteciparvi. Comunque per me era un'opportunità per dare un'occhiata a quella che sarebbe potuta diventare una conference di riferimento per l'europa, cosi come oggi è il Javapolis.

Organizzo il viaggio, trovo l'albergo non proprio a buon prezzo ma si sa che a Zurigo la vita è cara. Per il volo non riesco a sfruttare la convenzione del Jazoon perchè il codice convenzione non viene accettato dalla prenotazione online della Swiss Air. Per fortuna il biglietto è stato omaggiato dal JUG Roma anche perchè ho appreso solo dopo che sarebbe costato oltre € 1.200,00!

Sapevo che della capitale saremo stati solamente in 2: Davide Cerbo e io. Di certo non avrei mai immaginato quanto forte sarebbe stata la partecipazione italiana all'evento. Eggià, perchè tra JUG Padova (ne ho contati 3), JUG Milano (2), JUG Sardegna (credo 3) e il JUG Torino (2) in tutto i suonatori di mandolino ammontavano almeno a una dozzina, quella sporca dozzina...

Zurigo è bella. Tutto ordinato e funzionante come gli ingranaggi di un orologio (Svizzero appunto...). La gente è cordiale ma forse sorride poco per i miei gusti. Dappertutto ci sono ristoranti e caffè italiani, anche se la lingua ufficiale è il tedesco. Qualche stranezza l'ho trovata come gente in giacca e cravatta che gira in Monopattino (si, hai letto bene!) e altre cosette che ho pubblicato in quest'altro post. Toccherebbe scendere più a sud per trovare il cantone Italiano.

Il tempo non è stato gran che clemente, e gli unici 2 giorni di sole me li sono goduti tutti. Sopratutto il giovedì pomeriggio con Davide ci siamo girati 1/2 Zurich (Il centro, il giardino cinese, ecc.). Qualche foto l'ho pubblicata su Flickr.

Passiamo alla conferenza vera e propria.

La location devo dire che mi è piaciuta molto. Tutta l'organizzazione, i notebook disponibili per navigare, la registrazione nonchè il guardaroba erano in un locale davvero fashion, il Platins. Nel Platins sono stati organizzati anche tutti i pranzi, l'after hour del lunedì e il party di mercoledi notte. Invece le sessioni e gli sponsor erano tutti nel'edificio adiacente, un vero e proprio cinema multisala. Tutto fa parte del nuovo centro commerciale Silhcity inaugurato qualche mese fa.

L'organizzazione è stata davvero impeccabile. Sono o non sono svizzeri? :-) Proiezioni animate, Jingle a chiusura degli interventi, messaggi in broadcast a tutte le sale, fotografi, ecc.

Prima ho parlato di pranzi. Ebbene la scelta non era molto vasta, ma complessivamente non è stato malaccio e c'erano sempre drink gratis a volontà.

La maggior parte degli sponsor erano società di consulenza o man power svizzere che cercavano come segugi consulenti da arruolare nelle proprie file promettendo cifre da capogiro. Ebbene si, in Svizzera ci sono moltissime banche e i lavori sono ben pagati. A occhio e croce potrei dire che i compensi lordi sono il doppio di quelli italiani e anche di più. Poi calcolando che il regime fiscale è meno "pressante" che nel Bel Paese. Ok, lo ammetto, un pensierino c'è stato ;-)

Per quanto riguarda i talk non c'è ne è stato nessuno che mi ha incuriosito particolarmente: nessuna tecnologia, framework o tool che puzzasse di nuovo.

Quello di cui sono davvero contento è l'aver conosciuto di persona gli altri ragazzi dei JUG italiani e in particolare: Fabrizio Gianneschi, Fabrizio Giudici, Emmanuele Sordini, Lucio Benfante, Enrico Giurin, Paolo Foletto, Luisa, Marcello Teodori, Giancarlo Pace

Filippo Diotalevi, Bruno Bossola e Davide Cerbo li conoscevo già (Filippo un mio ex-collega, Bruno al JavaDay e Davide è del JUG Roma).

Martedi pomeriggio ho partecipato al BOF (Birds of a feather) session JUG Leaders Panel dove abbiamo parlato di JUG, Java, Sun, cooperazione, strumenti per gli eventi e altro. Anche questa è stata una buona occasione per socializzare. A proposito... Devo ancora reperire la foto di gruppo. Vatti a ricordare chi l'ha scattata...

Consiglierei il Jazoon ad amici e colleghi? Direi di si, a parte il prezzo altissimo. € 1,245 (la early registration costava la metà) sono davvero tanti. Sicuramente troppi per una partecipazione individuale e comunque non trascurabile per la piccola-media azienda. Comunque c'è stato anche una breve dritta a fine conferenza su come non pagare per il prossimo Jazoon 2008: proporre uno speach o essere un JUG Leader. Non è forse un ottimo modo per spingere a fare sempre di più? ;-)

Comunque una cosa è sicura: il prossimo anno mi armerò con almeno uno speach su Roma Framework e una sessione dimostrativa "sul pezzo".

Come conclusione lancio anche un razzo segnaletico sperando che Sun Italia e qualche sponsor interessato colga quello che sto per dire:

E se facessimo una Java Conference non più in Italiano ma in Inglese?

Se fosse organizzata con uno spirito internazionale? Ultimamente l'interesse verso il Java Conference sembra scemato dato il successo nel 2006 dei JavaDay. Ditemi cosa ne pensate.

Ora è davvero tutto: ci vediamo al JavaPolis ;-)

Thursday, June 28, 2007

Live from Jazoon 2007

If you want to know about Jazoon conference details look at:

Jazoon 2007, 3rd and last day preview


Here we are,
yesterday afternoon Davide and me taked a look to Zurich city after the only "Social Event" we consumed, the 5D Cinema: Cool but the 4D Cinema in Las Vegas was more realistic IMHO. Anyway Zurich has very beautiful places, anything is in order, people continues to walk smootly: no one run! So much different by Rome...

I've so many photo in my Nikon, but I missed to take the cable with me, so I'll publish once home (It's time I open a Flickr or similar account).

After these three days in Zurich I can make a face-to-face between Zurich and Rome:
ZurichRome
Business men cross the city using the mono pattinoOnly children use it
Trams are always on time and never full, trains tooFew trams but bus and metro are often full and overdue
So few cars around, probably since public transportation works fine and other people use cycle (and mono pattino, see above)Too much cars and moto cycles!
Vey few people smile, in public they are very formal, maybe in private no? (I look very strange shops in the city...)You can hear laugh and see smiles in most faces
Everything is in its place and in orderUnordered impression, much more "lived"
Many Italian places such as restaurants and barsI don't know any swiss restaurant in Rome!


I also enjoyed the party in the night, where Bruno Bossola sang as a real singer!

Wednesday, June 27, 2007

Jazoon 2007 conference: 3rd day


Yesterday I was attendeed to JUG Leaders Panel BOF and we've talked about the JUG cooperation in tools and initiatives.

The third day of Jazoon 2007 Conference is not finished but the feedback on today is much positive. Surely the most interesting conference day until now. I selected the following sessions:

This afternoon there will not be technical session but "Social Events". We have not yet take a decision on what to do...

Note: Picture from Fabrizio Gianneschi