<< March 2005 May 2005 >>

Thursday 28 April, 2005
#[linkfarm] From footnotes to sidenotes
[Add a comment]
#[linkfarm] another ACCU Conference report
[Add a comment]
#[linkfarm] ACCU Conference Report
[Add a comment]
#[linkfarm] Naked programming on naked street
[Add a comment]
Wednesday 27 April, 2005
#[linkfarm] ScrapBook is a Firefox extension, which helps you to save Web pages and easily manage collections.
[Add a comment]
#

YouGov and Mercer Delta Consultancy are currently running a survey amongst UK business leaders and would be very interested in your views.

How do you think the outcome of the General Election will affect you in your professional capacity? How do you feel about your professional relationships with your key audiences and how do you think these will change over the next five years?

Your views, along with those of other UK business leaders, will be used by Mercer Delta to inform an article published in the national press. We will also send you a full report of the results from this survey once they have been published.

If you would like to take part in the poll, please click ...

YouGov think I am a business leader. No wonder their poll results are so out of line with all the others.


[Add a comment]
#[linkfarm] Mentat: Wiki on becoming a better thinker
[Add a comment]
Tuesday 26 April, 2005
#

Zope External Editor + zpt-mode. It more than rocks.

That is all.


[Add a comment]
#[linkfarm] Twisted ToyFare Theatre
[Add a comment]
#Bjarne Stroustrup's Fiver

Back in the mists, when I first started programming it quickly became apparent that the bulk of the tools I used everyday were invented or written about by Brian Kernighan. I was doing my job on the back of the work of many, many people, but Brian's contribution to my take-home pay seemed the most significant. I developed the idea of Brian Kernighan's Fiver. If I ever met Brian Kernighan, I'd give him five pounds as a symbol of the living he'd given me.

As time went by Brian's everyday significance declined, and his place in my little pantheon of thanks was taken by Bjarne Stroustrup. I decided that should I ever meet him, I'd give him a fiver too.

Last Thursday, that opportunity finally arose. There I was in the bar. There he was. I had a fiver in my wallet. A normal fiver, not a special one I'd been keeping or anything like that. Just an everyday five pound note.

Bjarne was talking to Jim Coplien, among others, and frankly Cope rather frightens me so I was loathe to interrupt. After 20 minutes or so, he got up to leave. He was going to walk right past me. Fate was lifting her skirts and taunting me. I *had* to do it.

"Dr Stroupstrup? ..." Quickly, I explained about the fiver and offered it to him. He declined. "I'm going to have dinner with my wife," he continued, "perhaps we could use this to buy a drink later on."

A drink with Bjarne Stroustrup? Blimey. But, hang on. We're in the bar of the Randolph Hotel in Oxford, seemingly one of the most expensive bars on the planet. A fiver here doesn't go far. Then it hit me - a fiver wasn't enough. He was trying to tap me for a tenner!

The disappointing end of the story is that I didn't get to buy that drink, because our bar trajectories didn't cross again. I used the fiver to pay for car parking. Bjarne no doubt thinks I'm a nutter.

A stingy nutter at that.

Gevs said Great story. I showed it to a co-worker yesterday, his response was "so who is this Kernighan bloke" : (((((((( [added 27th Apr 2005]

[Add a comment]
Monday 25 April, 2005
#[linkfarm] Simon, of HMS Amethyst
[Add a comment]
#[linkfarm] Spoken Log
[Add a comment]
#[linkfarm] The (B)Leading Edge: Using IOStreams, Part I
[Add a comment]
Saturday 23 April, 2005
# And home again.
smellygit said Why don't ur posts have a time on? [added 24th Apr 2005]
Why does it matter?

[added 24th Apr 2005]

anonymous said It just does! [added 26th Apr 2005]

[Add a comment]
Friday 22 April, 2005
#[linkfarm] Developer Spotlight: Kent Beck
[Add a comment]
Wednesday 20 April, 2005
# Off to the ACCU Conference.
[Add a comment]
Sunday 17 April, 2005
#[linkfarm] Political Survey 2005
[Add a comment]
Friday 15 April, 2005
#[linkfarm] APOSTASY - Issue #1...
[Add a comment]
Thursday 14 April, 2005
#[linkfarm] Embedding images inside the source of a HTML page
[Add a comment]
Wednesday 13 April, 2005
#[linkfarm] Supporting XML Catalogs V1.1
[Add a comment]
#[linkfarm] XQuery 1.0, XPath 2.0, and XSLT 2.0 are in REALLY Last Call
[Add a comment]
# It's our 12th wedding anniversary today. We've celebrated by having a new stair carpet fitted.
anonymous said I briefly misread that as "We've celebrated by having a new stair lift fitted" :) [added 13th Apr 2005]
Marv said you old romantics you. congratulations. you are six times better than we are. [added 13th Apr 2005]

[Add a comment]
#[linkfarm] Continuations for Curmudgeons
[Add a comment]
#[Arabica]XPath: node set equality

For boolean, number and string types, the XPath recommedation has a simple and straightforward idea of what consititutes equality -

The = comparison will be true if and only if the objects are equal; the != comparison will be true if and only if the objects are not equal. Numbers are compared for equality according to IEEE 754 [IEEE 754]. Two booleans are equal if either both are true or both are false. Two strings are equal if and only if they consist of the same sequence of UCS characters.

For node-sets, things are a little different.

If both objects to be compared are node-sets, then the comparison will be true if and only if there is a node in the first node-set and a node in the second node-set such that the result of performing the comparison on the string-values of the two nodes is true.
Two node-sets are equal, then, if any node in one set has the same string-value as any other node in the second set. The nodes in question don't have to be the same node (ie having the same position in the same instance), just have the same value. The node-sets themselves could contain different numbers of nodes, and so on.

Comparisons of node-sets and string or number values are defined similarly

If one object to be compared is a node-set and the other is a number, then the comparison will be true if and only if there is a node in the node-set such that the result of performing the comparison on the number to be compared and on the result of converting the string-value of that node to a number using the number function is true. If one object to be compared is a node-set and the other is a string, then the comparison will be true if and only if there is a node in the node-set such that the result of performing the comparison on the string-value of the node and the other string is true.
If any single node in the set matches the comparision value, then the node-set and the value are equal.

Only the comparision of a node-set and a boolean value is what you might inituitively expect

If one object to be compared is a node-set and the other is a boolean, then the comparison will be true if and only if the result of performing the comparison on the boolean and on the result of converting the node-set to a boolean using the boolean function is true.

Despite these unusual looking definitions of equality, when you actually use them in an XPath, the "right" thing seems to happen. Consider

/root/child[@attr = 'theoneIwant']
Here @attr selects a node-set, which will be empty, or contain a single attribute named attr. If this attribute the value theoneIwant then the predicate is true.

Node consider

/root/child[grandchild = 'theoneIwant']
We read this as selecting those child which have a grandchild node contain the text theoneIwant. It's a straightforward XPath, and nothing unusual. The child nodes might have multiple grandchild nodes. Without the above definition for node-set and string equality, we couldn't construct the appropriate XPath so concisely. I haven't thought about this in great depth, but if equality were not defined as it is, it might not be possible at all withouth defining some other mechanism (like a function say). As it is, the odd sounded definition leads to "natural looking" XPaths.

The reason I've been thinking about this is, as you might have guessed, because I've been working on node-set equality this morning.


[Add a comment]
#[linkfarm] Radical Simplification
[Add a comment]
Tuesday 12 April, 2005
#[linkfarm] Kill Bill - Microsoft's army of lawyers was no match for a kid from Kent State.
[Add a comment]
Monday 11 April, 2005
#[linkfarm] Aid4Mail
[Add a comment]
#[linkfarm] The LGPL and Java
[Add a comment]
#[linkfarm] Media / Political Bias
[Add a comment]
#Does anyone understand train fare structures?

Next Monday and Tuesday I'm onsite with a client in London. I'll be travelling down on Monday morning, and returning on Tuesday evening. I can decide when to leave, but I'm not sure when I'll be finished on Tuesday. I am trying to buy a train ticket accordingly, and can make absolutely no sense of which ticket buys travel on which train. I have a choice of 23 different tickets, ranging for a £9.50 single, to £178 return.

I think the ticket I want is a Standard Open return. Right now, I'm looking at this, which offers a choice of two Standard Open returns, at widly different prices, apparently available for different trains. Both have identical terms and conditions, including Valid every day. No time restrictions.

Don't understand. Don't understand. Don't understand. Don't understand. Don't understand. Don't understand. Don't understand. Don't understand. Don't understand. Don't understand.

Update: I think I finally worked it out. Although it isn't apparent from the timetable, some of the trains start from Snow Hill and go to Marylebone, while the others go from New Street to Euston. The cheaper open return is only valid from Snow Hill, while the more expensive one can be used on any route from Birmingham to London. I think.

In the end, finished up buying two singles. [added 11th Apr 2005]

Gevs said Alternatively just buy the cheapest and chance it. I spent 5 months travelling on the 7.05am from coventry blisfully unaware that my daily £35 return to Bishop Stortford was only to be used after 11am and should have cost me 75 quid! [added 11th Apr 2005]

[Add a comment]
Friday 08 April, 2005
#[Arabica]XPath: union expressions
Committed union expressions, ie step[something|something-else]. It was actually very easy once I realised the union doesn't have to be sorted in document order. For an XPath engine embedded in an XSLT or XQuery processor the union would have to be sorted, but for straight XPath it doesn't.
[Add a comment]
Wednesday 06 April, 2005
#And don't lick the toads either ...
Don't drink.  Mind the amphibians
anonymous said Does it just mean that Toads can't drink? [added 7th Apr 2005]
mattb said "If you can see the frog, you have drunk too much." [added 7th Apr 2005]
Kando [e] said The "Frog"'s a Common Toad. [added 16th Apr 2005]
dale winton said sad [added 10th Aug 2005]
anonymous said If I was there and I found a toad, I would lick it. [added 30th May 2006]

[Add a comment]
#"Have a nice day at playscheme, Bean."
"Mummy, I wish it was two for Tuesday on Kerrang 105.2."
[Add a comment]
#[elsewhere] a synthetic blueberry taste isn't any more likely to make you put it in your mouth
[Add a comment]
Tuesday 05 April, 2005
#Enjoy the film
Another of Stephen's microfilms, on a similar theme and shot on the same day. It was finalist in the 2004 Nokia Shorts competition.
[Add a comment]
#We Know Where You Sit
A 10 second microfilm by my chum Stephen. That's him wearing ladies' undies. Watch then vote.
[Add a comment]
Monday 04 April, 2005
#[linkfarm] JUnit Primer
[Add a comment]
Saturday 02 April, 2005
#[Arabica]XPath : / and //
Now handles a naked / (to select the document node) and // (abbreviation for descedant-or-self::*). Things are looking good :) I've nearly finished. Yay!
[Add a comment]
Friday 01 April, 2005
#[elsewhere] hopped up on mechanically recovered meat products
[Add a comment]
#[linkfarm] XInclude, xml:base, and validation
[Add a comment]
#[Arabica]XPath : preceding
And that, my friends, is the sound of the preceding axis implementation being checked in ...
[Add a comment]
#[linkfarm] Customizing Emacs with Perl
[Add a comment]
<< March 2005 May 2005 >>