Friday, 12 December 2008

Change the battery of your Z22 Palm Pilot


Ever wanted to change the battery on your Z22 Palm Pilot? It's just very strange that one can buy a new battery, but no-where in the manual one can find how to do so. I finally took the chance and the palm-pilot in my family did a dive into the washing-machine ;-)

Here are two photo's of the interior of the Z22... One will need: sharp nails, a torx T5 and a small philips/cross-screwdriver. For the rest you will end up as show in the pictures.

At the red-'circles' one will find the torx screws to remove before being able to open the rest with your nails. The screws are behind the black cover over the USB-mini-b-connector and the IR-sender.

Please have fun with it.

Tuesday, 18 November 2008

Adding Opsview to hardy

This is how I added Opsview to my Ubuntu Hardy servers:
Run these as route:
gpg --keyserver subkeys.pgp.net --recv-key 77CB2CF6
gpg --export --armor 77CB2CF6 | apt-key add -
 Add this to /etc/apt/sources.list:
#
# OpsView
#
deb http://apt.opsview.org/ubuntu hardy main 
And then run:
apt-get update
apt-get install opsview-agent
And of you go! Have fun.

Friday, 6 June 2008

Fiddler helps with SOAP

When you want to inspect your SOAP traffic, you can use the http-debugging-proxy Fiddler to inspect your traffic. But right out of the box you cannot see the method called for each session. For this you can add a rule to the Rules.

Within the class declare the options you need:


// Show SOAP requests

public static RulesOption("Show SOAP Request", "SOAP")

var m_ShowSoapRequest: boolean = false;

Add this to the call OnBeforeResponse:


if (m_ShowSoapRequest) {

//oSession.utilDecodeRequest();

var strRequestStart : String = "><";

var iPos = oSession.utilFindInRequest(strRequestStart, false);

if (iPos != -1) {

var oBodyString : String = System.Text.Encoding.UTF8.GetString(oSession.requestBodyBytes);

iPos = iPos + strRequestStart.Length;

var iEndPos = oBodyString.IndexOf(">", iPos);

var soapRequest : String = oBodyString.Substring(iPos, iEndPos - iPos);

if (soapRequest.IndexOf("/") != -1) {
soapRequest = soapRequest.Substring(0, soapRequest.IndexOf("/"));

}

if (soapRequest.IndexOf(" ") != -1) {

soapRequest = soapRequest.Substring(0, soapRequest.IndexOf(" "));

}

oSession["ui-customcolumn"] = soapRequest;

}

}