- mozilla: 1.7.8-1sarge9
- mozilla-thunderbird: 1.0.2-2.sarge1.0.8e.1
<xsl:value-of select="concat(substring($string,8,4),'-',substring($string,13,2),'-',substring($string,16,2),'T',substring($string,19,8),substring($string,28,5))" />Did I mention I hate XSLT? It's lacking so many standard functions, like date-time processing, regular expressions, exceptions, ... - granted, a lot of stuff was added for XSLT2, but it still sucks badly. Especially the syntax. Here's how to format the date according to RFC 2616, as used in the last-modified meta tag and HTTP/NNTP/SMTP headers:
<xsl:variable name="day" select="concat(substring($string,8,4),'-',substring($string,13,2),'-',substring($string,16,2))" /> <xsl:variable name="time" select="substring($string,19,8)" /> <xsl:variable name="timezone" select="substring($string,28,5)" /> <xsl:value-of select="date:day-abbreviation($day)" /> <xsl:text>, </xsl:text> <xsl:value-of select="date:day-in-month($day)" /> <xsl:text> </xsl:text> <xsl:value-of select="date:month-abbreviation($day)" /> <xsl:text> </xsl:text> <xsl:value-of select="date:year($day)" /> <xsl:text> </xsl:text> <xsl:value-of select="date:time($time)" /> <xsl:text> </xsl:text> <xsl:value-of select="$timezone" />Note that this does not include any error handling and is not very robust. You also need an XSLT processor with some of the ">">">http://exslt.org/dates-and-times extensions such as xsltproc. (Which unfortunately doesn't do XSLT2 yet and doesn't have a regexp extension). [Update: Joel Wreed pointed me to his libxslt plugins, a regexp and a exsl.org/dates-and-times plugin. These would help a lot, though IIRC the date-parse exsl.org spec doesn't support the date format I'd need. (So I can't just say date-format(date-parse(...),...)). Also he said that they basically are unmaintained right now. It would be nice if they could be merged into libxslt, though...]
#!/bin/sh # disable network manager: dbus-send --system \ --dest=org.freedesktop.NetworkManager \ /org/freedesktop/NetworkManager \ org.freedesktop.NetworkManager.sleep sudo ifup eth1=eth1-lrzMy /etc/network/interfaces contains a working setup for my wireless named "eth1-lrz"; since this differs from the real device name, this works fine. Running this script will tell NetworkManager to disconnect and instead setup the wireless for my university network. When connecting to a different network, I only have to do "ifdown eth1" and then click on the NetworkManager applet to enable it again. (would be "org.freedesktop.NetworkManager.wake")
My Cage (Silence for Cellphone) dispenses with performer, piano and auditorium, instead utilizing a continuous stream of silence produced on a computer, and compressed to ringtone format. While noting that Mr. Keats doesn’t have a cellphone of his own, and may be less-than-qualified to make global pronouncements about them, the CEO of the company that distributes the ringtone believes that “My Cage” may be a platinum hit. “People want a respite,” he says, “and not everybody has the time or money to go to a spa. The virtues of silence are unsung.” Nevertheless, Mr. Keats is careful not to take credit for silence in general, and hopes that people will bootleg his creation, just as he was inspired by John Cage. Mr. Cage, who died in 1992, could not be reached for comment.I hope the IP professors in the crowd are preparing a hypothetical for the next round of exams.




Grandpa was great with the harmonica. And the song I best remember him playing at is Nun Ist Sie Erschienen. I remember sitting on his lap many times listening to him play it. And I'm pretty sure it was a year-round song for him. Terah and I even had it sung at our October wedding -- if it was year-round for Grandpa, that was good enough for us. It's always special to sing the song in church.
I was going to have a picture of Grandpa with his harmonica here, but I didn't get it ready in time. So I'll have to describe it. Imagine a black and white picture of a gentle man, dressed conservatively, holding a harmonica in his hands. He's looking towards it tenderly -- it seems to be something important, and maybe it represented fond memories for him, too. I'll post the photo as soon as I get a copy of it.
Next.