A rather dull worKLOG. This is just a scratchpad for solutions to IT problems that might be useful to someone else. Expect no opinions, no brilliant insights and definitely no pictures of pets or children. Expect stack traces, code snippets and other hints for the Google Indexer.

Tuesday, October 31, 2006

Weasl - Wfau Edinburgh Astro Service Locator

At the last IVOA meeting in Russia, David Schade argued that "position
is the least important attribute of an object". He was talking about
astronomical objects of course, but it's probably true of VO services
too. Nevertheless, I wrote this:

http://thor.roe.ac.uk/weasl/index.html

It's built from the Astro Server Runtime, a google map, a GeoEncoder
service and some sticky tape.

It's not particularly slick at the moment - the server just writes out a webpage with all the javascript required to place the points on the map. It would be far better to make it more AJAXy and have the webpage request the points. Could make it a lot more dynamic then.

Gotchas
=======
None really. The ASR made it very easy, and Google is, of course, wonderful.
Registry Access
---------------
All done through the ASR. The trick was to check the type of all the returned Resources to see if it's a Service. Only then do you get access to the attributes you need.
Goole Map
---------
The map javascript is pretty good, though it gets a bit unresponsive above a hundred or so points. One gotcha is that the <div> that contains the
map worked fine as
<div id="map" height="" width=""></div>
but if you compressed the tag into
<div id="map" height="" width=""/>
the browser nested any following divs inside it, with hilarious consequences.

Friday, October 27, 2006

Getting Java Server Pages up and running in Tomcat

Trying to get JSF up and running to use as a front end to WEASL (coming
soon). Huge problems with missing classes when running the latest JSF
(1.2) in Tomcat 5.0.28, so fallen back to 1.1. Apparently 1.2 requires
a version of JSP that Tomcat doesn't yet support. Trying out the
examples in Core JSF (http://www.horstmann.com/corejsf/)
but got an NPE;
27-Oct-2006 00:30:41 org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Allocate exception for servlet Faces Servlet
java.lang.NullPointerException
at javax.faces.webapp.FacesServlet.init(FacesServlet.java:165)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:130)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)

The solution to this is simply to remove the working directory from
under Tomcat and restart the webapp. All will then be well.

Wednesday, October 25, 2006

Two weekly summary

* ADASS
* 6DF database problem (see bugzilla
http://www.astrogrid.org/bugzilla/show_bug.cgi?id=1913)
* Upgraded Plastic library in AstroWeka, got the code into SVN and fixed
the Ant build script
--
------------------------------------------------------------------------
AstroGrid/VOTech
&
WFAU, Institute for Astronomy, Edinburgh
Skype:johndavidtaylor <skype:johndavidtaylor?chat>

------------------------------------------------------------------------
*Gratuitous advertising:*
Plastic - http://plastic.sourceforge.net | AstroRuntime -
http://www2.astrogrid.org/desktop
AstroGrid - http://www.astrogrid.org | WFAU -
http://www.roe.ac.uk/ifa/wfau/

Wednesday, October 11, 2006

(Two) Weekly Summary 11/10/06

* Started trying to collate all the apps we do in DS6 here:
http://wiki.eurovotech.org/twiki/bin/view/VOTech/DS6Software
and
chivvy people along into having a proper release process.
* Looked at Maven 2.1-SNAPSHOT in the hope that it has solved the many
bugs in Maven 2.0.4 that are stopping me getting _my_ software into shape
* Maven is still a disaster for site generation. Refactored the Plastic
site to remove as many subprojects as possible in the hope that this
will help.
* In depth look at Mirage
* Installed STILTS-1.3 and got authorityId changed to Starlink, which we
manage here at ROE.
* Checked all our dbs except usnob, conesearch and adql through workbench.
* Created bugzilla entries for all our components to keep on top of
issues. See
http://www.astrogrid.org/bugzilla/editproducts.cgi?action=edit&product=WFAU
* Released PAM - the Plastic Application Monitor plastic.sourceforge.net/tupperware/plastic-application-monitor/
* Continued drafting Plastic Note
* ADASS preparation.

Thursday, October 05, 2006

Maven site generation still buggered

I'd hoped that some of the issues with maven site generation
http://jontayler.wordpress.com/2006/07/26/porting-the-plastic-site-over-to-maven-2/
might be fixed by now. There seems to be no hurry to release the next
version of Maven
(see http://www.mail-archive.com/users@maven.apache.org/msg51783.html)
so I ventured into bleeding-edge territory and downloaded the latest
SNAPSHOT from
http://maven.zones.apache.org/~maven/builds/branches/maven-2.0.x/

Neither the site:staging bug nor the
windows-maven-site-ignores-settings.xml bug appear fixed. Admittedly,
these are bugs in plugins, rather than the core, so perhaps I just need
to force it to use the latest plugins. How hard can that be?

--


It's reassuring that I'm not the only one losing patience with the whole Maven endeavour:
http://www.ctoforaday.com/archives/000050.html

Tuesday, October 03, 2006

Recursive IFRAME IIb



Even trying to use two pages to do the recursion doesn't fool Firefox.

Recursive IFRAME II

IFrames

Inspired by this:
http://communitygrids.blogspot.com/2006_03_01_communitygrids_archive.html
which is an interesting blog in its own right. I was tempted to see if you can do a recursive IFrame.




Quite sensibly - Firefox spots the recursion and just presents a white box.

Animated GIFS for WFAU

Mark has been working on some rather neat animated GIFS for WFAU. Hope to embed these in our registry entries - that should blow CASU off the page in AstroScope.
http://eurovotech.org/wfau/logos/wfau_logos.htm

Will get similar done for Plastic....

Sunday, October 01, 2006

Evaluating Skype's security

http://www.skype.com/security/files/2005-031%20security%20evaluation.pdf