Posted by Paolo
Mon, 03 Dec 2007 16:50:00 GMT

You guys just cannot Imagine how cool this JavaDay has been.
On my four hours trip to Rome I was revising my speech and felt a bit skeptical about this event.
I know a bunch of the staff people and I know they are great guys, but you know, we’re towards a 2008 drenched in a very mature web-two-oh environment. Java just doesn’t seem that cool anymore.
At least this was my feeling. I’m working a lot with Ruby and Rails and in the Ruby community everything containing the word Java smells old, if doesn’t even stink.
I didn’t expect to find great enthusiasm around this meeting, I thought It would have been just a little JUG meeting on steroids.
Only god knows how I was wrong…
Socialize it:
Read more...
Posted in Java | Tags javaday, speech | no comments | no trackbacks
Posted by Paolo
Fri, 20 Jul 2007 14:35:00 GMT
Last weekend I had the opportunity to give a speech at the Spring Framework meeting in Cagliari.

My speech was about new features I and Michele added to the Java Parancoe framework, fixtures and plugins (the Parancoe website hasn’t been migrated from the old java.net one yet so be patient).
I think Parancoe is now the only Java framework that supports Yaml fixtures as RubyOnRails does, and that’s pretty cool because we can now have solid functional tests and we can share test data between the test and development environment.
The pluggability of Parancoe it’s a cool feature too, we can now extend the framework without cluttering the core… You just define a fragment of a web application and you can put its jar file in the classpath, thus enabling the plugin.
Plugins can autocreate tables, populate them with yaml fixtures, expose DAOs, business services, controllers and can interact with the application lifecycle (filters/interceptors or context listeners).
An example? the Italy Plugin. If you drop the parancoe-plugin-italy.jar in your classpath your application will be blessed with 4 new auto-created tables: Comuni, Provincie, Regioni, Procure. Those tables get auto-populated with real data when your app starts, and you’ll automatically have the spring managed DAOs you need to interact with these tables exposed in your spring context. Having these kind of modules simplify and quickens the development of your Java applications.
Many other plugins are on the way, World Plugin and Security Plugin on top of them.
PS: If you’re interested in the Parancoe framework, drop me a line or put a comment here.
Getting back to the SpringMeeting. I’ll point you to a few resources:
That’s it for now…
Socialize it:
Posted in Web, Java, Tips & Tricks | Tags cagliari, development, jugpadova, paolodona, parancoe, springframework, web | no comments | no trackbacks
Posted by Paolo
Thu, 21 Jun 2007 18:15:00 GMT

Hi guys, this is just to let you know on July 14 I’ll be giving a speech at the Spring Framework Meeting 07 in beautiful Cagliari, Sardinia. Sardinia is one of the most beautiful places in Italy with its seas and awesome sightseeings so I’m really excited to get there and spend a couple of days with great people.
The event is organized by the Spring Framework Italian User Group crew in collaboration with Java User Group Sardegna and DIEE.
The cool thing is they have managed to have foreign speakers and it seems this meeting is gaining a great momentum.
My speech will be about “Fixtures and Plugins” in the Parancoe framework, in which we tried to introduce some of the nice features of RubyOnRails, but using Java and obviously enough the Spring Framework.
Hope some of you can attend the event. If you plan to get there drop me an email (paolo.dona@seesaw.it) and we can meet or travel alltogether.
Socialize it:
Posted in Java | Tags dona, jugpadova, jugsardegna, paolo, parancoe, speech, spring, talk | no comments | no trackbacks
Posted by Paolo
Mon, 18 Sep 2006 05:54:00 GMT
The JavaJournal blog has just published an article on how I sold a funny T-Shirt to James Gosling at the last Italian JavaConference. We had a lot of fun there with the JUG Padova guys… nice to see someone remember the great gig I did :D
JavaJournal is a brand new magazine about Java and Software development. It’s very hard to set up magazines like this in Italy but it seems those guys are motivated and the whole story looks really promising!
I wish you the best JavaJournalers!!! ...and who knows, I could find myself writing for them sooner or later…
Socialize it:
Posted in The outer world, Java | Tags gosling, james, java, javajournal, jugpadova, tshirt | no comments | no trackbacks
Posted by Michele
Sun, 10 Sep 2006 03:56:00 GMT
It’s pretty simple: just grab activation framework from the web and type:
import javax.activation.MimetypesFileTypeMap;
import java.io.File;
...
File file = new File("WhoAmI.jpg");
System.out.println("MIME type of " +
file.getName() + " is " +
new MimetypesFileTypeMap().getContentType(file)
);
The expected output is:
MIME type of WhoAmI.jpg is image/jpeg
simple and effective, isn’t it?
UPDATE: If you want to detect types other than simple images you should integrate the activation framework default list as stated in the javadoc .
For example detection of a zip archive can be done by adding this:
MimetypesFileTypeMap mt = new MimetypesFileTypeMap();
mt.addMimeTypes("application/x-zip zip ZIP");
Socialize it:
Posted in Java, Tips & Tricks | Tags file, java, mime, type | no comments | no trackbacks
Posted by Jacopo Murador
Sat, 24 Jun 2006 20:48:00 GMT
During the last few months I read a lot about Java, Ruby on Rails and enterprise applications.
I realized with surprise that these topics were always covered from the technological point of view: scalability, performance, integration and other issues were well addressed and discussed. But something in my mind kept telling me they were somehow heading to the wrong direction. I spent some time thinking and gathering past experiences and came up with a strong belief.
Socialize it:
Read more...
Posted in Java, Ruby + Rails | Tags enterprise, java, Ruby On Rails, ruby | no comments | no trackbacks