“If I had eight hours to chop down a tree, I’d spend six hours sharpening my ax” Abraham Lincoln
Author Archives: admin.ian
New javascript document
A small javascript code fragment for creating a new document containing part of an existing documentvar newDoc = document.implementation.createDocument(“”, “”, null);var sd = newDoc.importNode(content, true);newDoc.appendChild(sd);
Sorting out CAS and Drupal installation problems
How to install self signed certificates for use with the CAS single sign on system: http://blogs.sun.com/andreas/entry/no_more_unable_to_find (Note that you will need to use the hostname as installed) Drupal:Menu items not showing up when clean urls are switched on.It’s probably a problem with apache mod_rewrite. How to switch off clean urls using the databaseIn the variables […]
dojo filtering select
A couple of things that weren’t immediately obvious with dojo filtering select.The attribute order matters – I had value as the last attribute and it didn’t work – moved it and it did.When putting together the query attribute the format is query=”{value1:data1,value2:data2}
Geocoding with PHP and Google Maps
After changing hosting companies I was having problems with the message:URL file-access is disabled in the server configuration In the end the simple solution is to replace: $xml = simplexml_load_file($request_url) or die(“url not loading”); with $ch = curl_init($request_url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); $xml = simplexml_load_string($response);
I’m not in Ireland…
I’ve been having problems with various web sites thinking that I’m in Ireland not in the UK – google and the BBC among others which is something of a nuisance especially when try to use the BBC iPlayer.I tried renewing my DHCP binding to get a new IP address but that didn’t work.It turns out […]
JAXB
I’ve been having problems with a JAXB based program which I’m making changes to – when marshalling the bean into the XML doc some of the elements were empty even though they were populated in the bean. I thought I found the solution in this article http://java.sun.com/developer/technicalArticles/WebServices/jaxb/ which pointed me to use the javax.xml.bind.Validator class […]
Axis SOAP Client problems
I’ve recently been attempting to connect to a Axis webservice using a PHP client and I’ve had problems where the Body has been returning empty – no fault just an empty body.This can be solved by removing any line feeds from the request
GWT and I18n, authorization on the server/in a service
I’ve read various posts on how to internationalize text in a gwt service – these usually recommend adding the locale as a string in a constants file and passing this as an extra parameter to each service call. The approach I’ve adopted is to override the service method from HttpServlet and use this to make […]