Minimising hard-disk power consumption

Aug 19, 2007

Me: You know that new laptop I was talking about? The Dell XPS M1330? The one where you can get it with a 32Gb solid-state drive?

Him (wary): Yeeesss…

Me: Well listen to this: “a 64 GB solid-state drive can read 64 MB/S, write 45 MB/s, and consumes just half a Watt when operating (one tenth of a Watt when idle). In comparison, an 80 GB 1.8-inch hard drive reads at 15 MB/s, writes at 7 MB/s, and eats 1.5 Watts either operating or when idle.”

Him: So what you’re saying is, if you get this laptop you’ll be saving the planet.

Me: Precisely!

Book recommendation for parents

Aug 17, 2007

Some of my fellow presenters at the XML Summer School were swapping tales of warring children as we chatted, and I mentioned the book “Siblings Without Rivalry” and promised to blog about it.

But first, you should get (and I really mean get, because you will re-read it again and again) “How To Talk So Kids Will Listen and How To Listen So Kids Will Talk”, which is also by Adele Faber and Elaine Mazlish. (Actually, get two copies because you’ll need one to lend to the other adults in your children’s lives.) “How To Talk…” provides the basic parenting skills that “Siblings Without Rivalry” then builds on.

Things that make me scream: RDF "QNames"

Aug 15, 2007

Having avoided RDF like the veritable plague for years, I have been forced to look at it properly for my latest “put RDFa on our web pages” project. So the other day I came across this weirdness surrounding “QNames” in Turtle, SPARQL and RDFa (and so on)…

As we all know, RDF is about making statements about resources, and resources are identified by URI. And the predicates/properties that you use to make statements about resources are also identified by URI. So I can say things like (in Turtle syntax):

<http://www.lmnl.org/wiki/Creole>
  <http://purl.org/dc/elements/1.1/creator>
    [<http://xmlns.com/foaf/0.1/weblog>
     <http://www.jenitennison.com/blog>] .

and it means that the creator (as defined by Dublin Core) of the page <http://www.lmnl.org/wiki/Creole> is someone whose weblog (as defined by FOAF) is <http://www.jenitennison.com/blog/>.

URL design for searches and queries

Aug 12, 2007

Another fascinating post from Bill de hÓra, this time on URL design for resources:

Let’s take editing some resource, like a document, and let’s look at browsers and HTML forms in particular, which don’t a do a good job of allowing you to cleanly affect resource state. What you would like to do in this suboptimal environment is provide an “edit-uri” of some kind. There are basically 5 options for this; here they are going from most to least desirable

  1. Uniform method. Alter the state by sending a PUT to the document’s URL. The edit-uri is the resource URL. URL format: http://example.org/document/xyz
  2. Function passing. Allow the document resource to accept a function as an argument. URL format: http://example.org/document/xyz?f=edit
  3. Surrogate. Create another resource that will accept edits on behalf of the document. URL format: http://example.org/document/xyz/edit
  4. CGI/RPC explicit: send a POST to an “edit-document” script passing the id of the document as a argument. URL format: http://example.org/edit-document?id=xyz
  5. CGI/RPC stateful: send a POST to an “edit-document” script and fetch the id of the document from server state, or a cookie. URL format: http://example.org/edit-document

And she's back

Aug 11, 2007

So first there was the XML Summer School. This year was my sixth, and it was really great to hang out with chums old and new. I love that

  • you get to meet people from all corners of the XML community, even ones you haven’t got the slightest interest in, and learn that they’re human too (even the web services guys)
  • there’s always something to learn; I’ve seen some talks for six years on the trot, others were completely new this year, but they’re all worth attending because the audience, war stories and discussion are always different. Also, because each talk is aimed at newcomers, you get a great overview of topics that you’re not so familiar with, and you can always chat to the speaker later to find out more
  • there are social events laid on every evening that you’re expected to attend, so you’re practically forced to socialise, which is useful for an insecure introvert like me who’d otherwise be sitting in her hotel room getting miserable imagining everyone else having a good time
  • there’s a creche, so despite being inseparable from two small children over the last four years, I’ve still been able to attend without dragging an entourage with me (not that I object to the entourage, just the expense and the dependency)

I left feeling not only invigorated and inspired, but also a part of a fun and friendly community.