How to sell fluff to James Gosling...

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: Add to del.icio.us Digg it! Technorati: How to sell fluff to James Gosling... Add to reddit.com

Posted in ,  | Tags , , , , ,  | no comments | no trackbacks

Getting MIME type from a file

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: Add to del.icio.us Digg it! Technorati: Getting MIME type from a file Add to reddit.com

Posted in ,  | Tags , , ,  | no comments | no trackbacks

seesaw Series: Java, Ruby and Enterprise

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: Add to del.icio.us Digg it! Technorati: seesaw Series: Java, Ruby and Enterprise Add to reddit.com

Read more...

Posted in ,  | Tags , , ,  | no comments | no trackbacks

Ruby@JUGPadova has been a big success!

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: Add to del.icio.us Digg it! Technorati: Ruby@JUGPadova has been a big success! Add to reddit.com

Posted in , ,  | Tags , , , , ,  | 1 comment | no trackbacks

Cannot change charset from 'UTF8' to 'UTF-8'

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: Add to del.icio.us Digg it! Technorati: Cannot change charset from 'UTF8' to 'UTF-8' Add to reddit.com

Read more...

Posted in  | Tags , , , , , , , ,  | 2 comments


SeeSaw srl - Via Monte Pasubio, 8 37126 Verona - tel +39 045 4857457 fax 045 4851151 P.Iva 03609790237