Sunday, April 12, 2009

Experts Exchange

No not Expert Sex Change, this is the IT site that you have to pay for to see answers.

It uses a form of cloaking that allows search engines, like Google, to see the answers so that they appear high in the search engine listings. However, when you visit the link you can see diddly squat until you pay. Since cloaking is a disingenuous way of getting high up in the search listings, a few people have taken exception to this and found a work-around that allows you to see the answers without registering (and paying).

Find a link from EE and type it into this website. Now you can see what Google sees.

Nice one folks.

Thursday, April 09, 2009

JSF on Google App Engine with Facelets

Having tried JSF on Google Java App Engine, how about Facelets and JSF?

Works OK with MyFaces 1.1, see here for a test.

Wednesday, April 08, 2009

Looking for Classes?

Looking for a particular Java class? Can't find it anywhere?

Try this site as a starting point.

JSF on Google App Engine

OK, so Java on GAE is straight forward. See the previous post for a quick demo using GWT.

How about JSF? Hmm, not as straight forward if you are trying to use JSF 1.2 and MyFaces. In fact, I can't get it to work. I get as far as this error:

java.lang.NoSuchMethodError: javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/ServletContext;)Ljavax/servlet/jsp/JspApplicationContext;
at
org.apache.myfaces.webapp.Jsp21FacesInitializer.initContainerIntegration(Jsp21FacesInitializer.java:60)

Which would suggest that there is something wrong with the version of JSP that is being used? GAE uses Jetty under the covers, but I'm not sure which version. I would have thought it was a version that supports JSP 2.1, but who knows. The SDK comes with Geronimo JSP 2.1 and Servlet 2.5 jars, so you would think it would work.

Anyhoo, JSF works with MyFaces 1.1 and you can see a quick demo here. It doesn't do much at the moment, but I'll play around with it and see if I can do something a little better.

I have a Java/Swing application that uploads old Polar HRM data to the new Polar web site. This is an ideal application to convert to JSF/Facelets/RichFaces and host on GAE. Watch this space (well, come back in a few months ;) )

Java on Google App Engine

Cool. Google now host Java applications for free.

Here's my first app.

For more information, see this post for running Java in Eclipse. Very easy, very cool, very Google ;)

Monday, April 06, 2009

Facebook's a Crock....

Why do you have to register to search for people on Facebook?

Why do you have to register to read user generated content on Facebook?

Why? Because they want to sell your details, make money off the content you write and inflate their user numbers. There can be no other reasons.

Wednesday, April 01, 2009

James Young - Internet Vigilante

There have been a number of notices issued by:

James Young
Internet Investigator
on behalf of Microsoft Corporation

Which request that websites or forums remove allegedly infringing material.

The emails come from Microsoft Anti Piracy Investigator #2 (internet2@microsoft-antipiracy.com) which doesn't appear to be a Microsoft owned site at all. Whilst a number of sites have fallen for the threats and removed content or completely closed, more and more of them are beginning to ignore these as they seem to have no legal backing at all.

Click here for further reading