WTF Sandwich
Quote of the Moment Edit this quote!
Posted by Klondike :: Apr 02 2006 at 01:26

What are persistants?

--Eric Mill in "Eric Mill"

You are viewing a specific, possibly very old post. Most likely, you got here from a search engine, or maybe from the RSS feed — which, quite lazily, always lists the ten most recent posts no matter how old they actually are.

For some reason, I'm more interested in the passing of Millvina Dean than Arturo Gatti, neither of whom I had heard of before today. Of course, it seems like The Washington Post had never heard of Gatti either, because their reporting of the story is a tasteless 'double feature' with a picture of Steve McNair's mother attending the football star's funeral.

The reason I bring this up is to point out the ridiculousness of public grief over celebrity deaths. Now of course I understand that Ms. Dean's passing, though notable, was pedestrian (she was 97) while that of Gatti, McNair and Michael Jackson were tragic. No, I don't share the view that 'all death is a tragedy', nor even the stronger 'all human death is a tragedy'. Personally, I believe that death is intrinsic to the very existence of life, exactly as winter is to summer. I don't fear death, for I believe that an infinite time of human consciousness would be worse than any Hell human religions provide. This belief forms part of my rejection of Christianity, since in this view Heaven is only the lesser of two eternal hardships. The fact that humans couldn't possibly enjoy eternal existence of their consciousness in any reasonable manner that would also preserve it, for me, exposes the foolish belief in anthropomorphic gods and goddesses. Although, technically speaking, death is a privilege reserved for those who have lived, it seems clear to me that we will be no more dead after we are buried than we were before we were born. And it didn't seem to bother anybody then!

The real tragedy is the importance that people seem to place on death. Although funerals and memorials are important parts of the grieving process, and quite useful in preserving (and in most cases, shaping) recorded history, I can't help but feel some form of pity for those who would place a paid death notice. Meanwhile, I can't help but feel the same disdain for those who show excessive remorse for the death of celebrities as I feel for those who consume gossip news (though I imagine it's the same contingent). The lives of those who perform for us on the field and on the stage, while notable, are really no more important than those of the rest of us.

Add a comment!

As the title of this article says, I want you, oh humble reader to stop. Stop right now.

Because if you are an average American, then the odds are nearly 1 in 4 that you're currently watching television.

That's right. Somehow, some way, Americans manage to spend a quarter of their day watching TV. ON AVERAGE. So please just stop.

Listen, I'm not the most educated, insightful, creative guy out there. I'm not toiling away at inventions and ideas that benefit the whole of mankind. For someone who has a crumb of musical talent (a minor in music, to boot!), I don't spend much time practicing it, or even listening to it. When I read, it's largely articles on web blogs, wikipedia, and online equivalents of print publications.

But I certainly don't spend anywhere near-- checks website-- 353.1 minutes ON AVERAGE watching television. Here are a list of things you could do, Mr. or Ms. Joe Average, if you turned off the television for even a single day:

Not to mention all of the time you could spend keeping up with local and national news from your local newspaper or its equivalent website, keeping track of the actions of local politicians, checking in with friends and relatives, telling a story to your child, learning more about a cause that you care about, etc etc.

I'm sorry, but television is simply one of the greatest wastes of time there is. Which, I imagine, is probably the reason why so many Americans spend so much time with it. I have the impression that people largely don't like their jobs and when they get home they'd rather 'veg out' in front of the television because they can't motivate themselves to do anything that would be productive or enriching to their own lives or those of others. Please, please...I want to challenge myself and everyone out there to fight the urge to passively consume useless media like television, and instead take up an activity or two that actively engages your mind, talent, and personality.

We'll all be better people for it!

..
Posted by Eric Mill :: May 27 2009 at 13:04

Internet news and RSS readers are the new veg out medium...for me, anyway. I've never been much of a TV watcher, and I'm actually in the middle of a video game moratorium (it'll end next week, actually), but to some extent zombie-ing out on news and Google Reader has replaced them for me. :(

---------------------------------
..
Posted by Eric Mill :: May 27 2009 at 13:05

Also - the Yahoo Media Player you're using has all sorts of global shortcuts mapped to Shift+things. I can't highlight text with the keyboard, and typing capital letters in sentences sometimes makes the music start and stop. Any way to shut those shortcuts off...?

---------------------------------
..
Posted by T-$ :: Jun 09 2009 at 19:42

Probably because you're on Linux? The player isn't officially supported. I don't see any kind of shortcuts being used when I use the player on windows or mac firefox, and there's no documentation of any shortcuts for the player.

---------------------------------
..
Posted by T-$ :: Jun 18 2009 at 10:39

Also, to actually respond to your first comment, I mentioned in the post that when I read, it's usually blogs and wikipedia and google news. But at least we're reading! Not only does text contain a much higher information density, but the act of reading itself is not passive like watching television. It's much harder to day-dream and stop paying attention while you're reading something.

Oh, and to re-respond to your second post, you are absolutely right: shift-left is previous track, shift-right is next track, and shift-space playpauses. Damn. Think I can add JS to my header to grab and suppress the onkey events?

---------------------------------
Victory?
Posted by T-$ :: Jun 18 2009 at 13:15

Okay, I just want to emphasize that those shitty shortcuts not documented anywhere! GRRRR! Turns out they're using the yahoo UI lib event model, so I tried:

<body onload="YAHOO.ympyui.util.Event.removeListener(document, 'keydown');">

Which works for a while, but I guess the thing has a timeout to re-establish itself or something, because after like 10 seconds the shortcuts come back.

Hmmm....time for custom JW Player integration?

---------------------------------
Yeah, fuck em!
Posted by T-$ :: Jun 18 2009 at 13:46

Added a timeout to the onload and the shorcuts are disabled.

Repeat, here's what to do if you want to disable shortcuts in the Yahoo (Y!) media player:

In your head section:
  <script type="text/javascript">
    function fuckYahoo() {
      //disable stupid media player key shortcuts
      YAHOO.ympyui.util.Event.removeListener(document, 'keydown');
    }
  </script>
</head>

Then your body tag:
<body onload="setTimeout('fuckYahoo()', 100)">

---------------------------------
Well Said!
Posted by Andrew :: Jun 22 2009 at 03:45

Very well said man. Way too much time is spent on that crap.

Add a comment!

Funny thing, I'm a programmer but this is my first fully nerdy technical this-is-how-I-did-xyz-task post. Go figure.

Anyways, here is some detail about accessing Java classes from within an XSLT stylesheet, so long as you are processing it with Xalan. (For yummy syntax highlighting, here's the post as a Pastie)

The main gist is that any built-in Java class can be accessed by using the 'xalan://java.package.name.ClassName' syntax. It is easiest if you 'import' the classes you need into your stylesheet using a namespace declaration at the top of the file. For example:

<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:cal="xalan://java.util.GregorianCalendar"
  xmlns:tz="xalan://java.util.TimeZone"
  xmlns:fmt="xalan://java.text.SimpleDateFormat">

  <xsl:template match="/">
    <!-- Stylesheet goodness goes here -->
  </xsl:template>
</xsl:stylesheet>

Then later on in your stylesheet, you can call functions on the class using the defined namespace. In this context, static members (aka 'class functions', such as Calendar.getInstance()) are called simply using the namespace and a colon. Other member functions (such as Calendar.set(int field, int value), which operate on a specific instance), take the instance variable as the first parameter, and all other parameters are shifted (so the first parameter becomes the second, the second the third, etc).

Here's an example of this which parses a string that contains a GMT time and outputs it as a PST:

  <xsl:template name="FormatDate">
    <xsl:param name="date" />
    
    <!-- incoming format: YYYYMMDDTHHMMSSZ -->
    <!-- outbound format: MM/DD/YYYY HH:MM AM -->

    <xsl:variable name="tz_pt" select="tz:getTimeZone('America/Los_Angeles')" />
    <xsl:variable name="tz_utc" select="tz:getTimeZone('UTC')" />
    <xsl:variable name="fmt_in" select="fmt:new(&quot;yyyyMMdd'T'HHmmss&quot;)" />
    <xsl:variable name="fmt_out" select="fmt:new('MM/dd/yyyy HH:mm:ss a')" />

    <!--  Set the output time format to PST, and the input time format to GMT.
          These statements don't actually output anything. -->
    <xsl:value-of select="fmt:setTimeZone($fmt_out, $tz_pt)" />
    <xsl:value-of select="fmt:setTimeZone($fmt_in, $tz_utc)" />

    <xsl:if test="$date != ''">
      <xsl:variable name="src_date" select="fmt:parse($fmt_in, $date)" />
      <xsl:value-of select="fmt:format($fmt_out, $src_date)" />
    </xsl:if>
  </xsl:template>

Note the use of 'xsl:value-of' statements in order to call an instance method on our variables. In XSLT, you have to wrap your method call in a 'select=' type statement, either in a 'xsl:value-of' or as the evaluation of an 'xsl:variable' in order for them to be executed.

You could call this somewhere in your style sheet by selecting the date value you wish to convert.

  <xsl:template match="first_president">
    George Washington was born on <xsl:call-template name="FormatDate">
        <xsl:with-param name="date" select="birth_date"/>
      </xsl:call-template>
  </xsl:template match="first_president">
Add a comment!

Looking back, I probably thought that if I didn't blog about it, it would go away.

2009 has not, so far, been kind to Travis Briggs (Travis Briggs' blog, this is the blog of Travis Briggs).

My main problem is that on January 12th, I was laid off from my job. With a conciliatory tone, my boss explained that my work was exemplary, that he was thoroughly impressed with my contributions, but that there simply was no longer room for me at the company. Another developer got cut at the same time as me. It turns out that they let me go exactly on my 2 month 'anniversary'. The most crushing immediate impact of being laid off was that they cut off my health benefits immediately (not at the end of the month). I ended up having to pay over 200 dollars for prescription drugs later that week-- and that was only for a half month's supply! I read through my options, and COBRA would cost me like 415 dollars a month, so I should probably get that, seeing that my prescriptions would then only cost 45 dollars and I would be covered for other ailments (at about the same cost as a month of drugs now).

Notice that I introduced the above as being my 'main' problem. Additionally, I have recently turned twenty-four (on the 13th, the day after losing my job). I'll admit there was the passing joy of celebrating the occasion with my family (my mom baked an awesome double-layered peanut butter chocolate cake) and some friends. However it seems the main function of this date was to call into relief the fact that the past 2-3 years have been wasted. I've given up a great job (Brightcove) had multiple failed romantic relationships, failed at saving any money I've earned and barely made a dent in my student loan payments, and failed to accomplish anything significant or worthwhile outside of my professional life, which in itself has not lived up to its full potential. My social circle (friends and acquaintances) has shrunk rather than grown, besides the fact that I am a fat, unemployed computer programmer living in his parents' basement.

Mother. Fucker.

I'm a generally optimistic person, though, and I'm convinced things can get better. Not that they necessarily will-- I know it will take work and dedication and of all things luck on my part-- but that they can. Here's hoping.

..
Posted by Eric Mill :: Feb 05 2009 at 04:52

As someone who's been there for the great and the terrible, I can tell you that my faith in the vast potential of Travis Q. Briggs has not flagged. You remain one of the most creative, energetic, and passionate people I know. You've been given some pretty difficult personal circumstances these last few years -- circumstances that anybody would be bedeviled by.

But you're going to get out of it just fine, and in another 2-3 years, you're going to be looking back on a lot of good times and personal victories. This I believe! And this it shall be.

---------------------------------
..
Posted by Anna T. :: Feb 12 2009 at 00:16

Well said, Eric

---------------------------------
..
Posted by Big Baby Jesus :: Mar 03 2009 at 03:49

but seriously, travis, aren't we all fat, unemployed programmers living in our parents' basement deep down inside?

also, if the programming business starts to get you down, you can always fall back on a career as an improvisational unicycler. word.

Add a comment!

Friend of a Friend Creative Commons License

This blog and all of its original content is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike2.5 License. All other content is made available under the Fair Use laws of the United States of America.

Email Travis Briggs via whispr.