Posts

Showing posts from July, 2014

Photos from 2014 International Ice Hockey Australia

Image
For the record  Team USA prevailed 5-4 over Team Canada in OT after coming back from being 0-2 down in the first period. Just like last year it was a really good night, complete with the sort of over-the-top production that you'd expect.











Word of the Day

ul·ti·mo /ˈəltəˌmō/ adjective dated adjective: ultimo; symbol: ult.; symbol: ulto of last month. "the 3rd ultimo" Origin: from Latin ultimo mense ‘in the last month.’


Doesn't it just add so much to a sentence? Replacing, for example, "The 27th of last month" with "The 27th Ultimo" lends a touch of class. Or something close to class, at any rate...

Notable quotable

"It is the mark of an educated mind to be able to entertain a thought without accepting it."

- Aristotle


Amen, brother...

Retrieving values from XML with PowerShell

Image
This PowerShell script looks up  and returns results from a mini-database that uses XML as its back-end. For the actual program that edits and returns results graphically, I used Java - this was an exercise in learning PowerShell's XML functions. As can be seen below, the in-built XML handling makes working with XML files very straightforward indeed.

The structure of the XML file I'm using to test is:

<?xml version="1.0" encoding="UTF-8"?>
<recordList>
    <record id="0">
        <title>Some Title</title>
        <category>Some Cat</category>
        <notes>Some Notes</notes>
    </record>
    <record id="1">
        <title>Great Expectations</title>
        <category>Categorical</category>
        <notes>Egghead likes his bookie-wook</notes>
    </record>
</recordList>

Each record element has an associated ID attribute and contains the el…