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
Posted by Paolo
Thu, 25 May 2006 00:34:08 GMT

Hey guys, Paolo and Jacopo held a speech at the last JUG Padova meeting. I can proudly say it has been a big big success!
You can find our photostream here.
We actually love to digg things in public and really seems attendants appreciated our effort. It’s not the first time we’re going public but this event has been somehow special. It gathered more people, more interest, more ideas.
I want to personally thank ChiaroScuro who had enough patience to not kill me during our crazy and tiring weekend.
Well, I guess we’ll repeat this meeting somewere else someday… so stay tuned!
Socialize it:
Posted in Java, Ruby + Rails, Trends and Technology | Tags enterprise, java, jug, meeting, Ruby On Rails, ruby | 1 comment | no trackbacks
Posted by Paolo
Fri, 14 Apr 2006 20:24:00 GMT
A few months ago I run into a problem using Tapestry over BEA Weblogic 8.1 SP2.
During the execution of a beginPageRender I issued a redirection and got a weird:
org.apache.hivemind.ApplicationRuntimeException:
Attempt to change ContentType after calling getWriter()
(cannot change charset from 'UTF8' to 'UTF-8')
Many people from the Tapestry mailing list continue to ask me a solution to this problem so I’m posting it here for future reference.
Socialize it:
Read more...
Posted in Web | Tags bea, encoding, exception, filter, java, servlet, tapestry, utf-8, web | 2 comments