New Theme. Working out

Its clear that I’m using a new theme.
its “Connections”: I _really_ like it. Although I don’t love the picture up top.

Also, I started working out again. I walked around the lake with Ellie, it was nice.
Ex time was 32.17,
HR (average) 136

It took me like 2 hours to get down to < 80BPM.. not good

On my mind

here are the things on my mind
1) Greasemonkey… This firefox extension is the most amazing thing evar! I really dig it – here are my scripts I’ve written
2) Peak Oil. I’m reading “The Long Emergency”. Its really scary stuff :/

XSL to transform iTunes play lists to html

It outputs tables, but it *is* tabular data :)

if I was stronger with xsl, it would be a bit cleaner, and allow you to supply the colors easily, but you get what you pay for.
To use it, File > Export Song List > Save as XML.
Then navigate to it on the form, and hit “upload”

Here is the form if you want to play with it (please be kind):
iTunes Playlist Transformer
Source Code

Here is just the XSL:

<?xml version="1.0" ?>
    xmlns:xsl="" version='1.0'>
  <xsl:output method="html" />
  <xsl:template match="/">
        <table style='border-collpase:collapse; ' border='1'>
            <tr style='background-color:#ddd;'>
                <th colspan='4'>Playlist Name: <xsl:value-of select="plist/dict/key[text()='Playlists']/following-sibling::array/dict/string" /></th>
            <tr style='background-color:#ddd;'>
                <th>Track Name</th>
        <xsl:for-each select="plist/dict/key[text()='Playlists']/following-sibling::array/dict/array/dict">
            <xsl:call-template name="track">
                <xsl:with-param name="trackid" select='integer' />
    <xsl:template name="track">
        <xsl:param name="trackid" />
        <xsl:variable name="thistrack" select="/plist/dict/key[text()='Tracks']/following-sibling::dict/key/following-sibling::dict/integer[text()=\$trackid]" />
                <xsl:when test="position() mod 2 = 1">
                    <xsl:attribute name="style">background-color: #bbb</xsl:attribute>
                    <xsl:attribute name="style">background-color: #999</xsl:attribute>
            <td><xsl:value-of select="\$thistrack/following-sibling::key[text()='Artist']/following-sibling::string" /></td>
            <td><xsl:value-of select="\$thistrack/following-sibling::key[text()='Name']/following-sibling::string" /></td>
            <td><xsl:value-of select="\$thistrack/following-sibling::key[text()='Album']/following-sibling::string" /></td>
            <td><xsl:value-of select="\$thistrack/following-sibling::key[text()='Play Count']/following-sibling::integer" /></td>


Lazy Web Request

I think we need a tagging system for our files… I want to be able to find all files tagged with “tpsreport”…

Javascript test

Refresh for new letters:

it had to be done.

a walletYellow L
ysquared circle - from edward ruschar
BA undergroundSE

BEON, Vancouver


I updated my Spell with Flickr app. There is still a nasty IE bug where if you click to change a letter, it won’t change the copy-paste code more then once :(
but here is a cool new feature:

Pee!W3tile nD

MUCH easier posting of images, plus “always square” version option

My computer was held hostage

I might as well post while I’m still interested. I know I don’t be doing it for long.

I came home from work last night after a really tough day and I wanted to play with adding some JS to the spell with flickr thing. But everytime I rebooted my comptuer, it would start seizing up after about 5 minutes.

I realized that java wanted me to upgrade – really badly.
This is why I hate runing xp. I only have it on here to make my girlfriend’s life easier. In linux, you just kill anything misbehaving, os X doesn’t generally have such ugliness… but its par for the course for windows.



Originally uploaded by kastner.

So I wrote this app – Spell with Flickr around 2/22. Then I emailed it to waxy on the 13th. It took off from there… first the “mavens” found it, then the “connectors” :)

All better now

Its all fixed now. For those who care here is what happened:
I was using caching by saving the xml output from flickr’s api. Then what SHOULD have happend is this, if there was a cache-hit, it was supposed to read from that file. WELL, as you may know – php’s file_get_contents allows you to read from a url as well as a local file… I didn’t notice that I was calling the API EVERY time. If the flickr staff wasn’t at etech and SXSW, they would have shut me down much sooner!

its a mirror… get it? Erik Kastner’s blog.