<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Clowns In My Coffee &#187; Uncategorized</title>
	<atom:link href="http://clownsinmycoffee.net/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://clownsinmycoffee.net</link>
	<description>Inanity of the most cogent sort you can find.</description>
	<lastBuildDate>Tue, 11 May 2010 23:16:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>w3c.recommend(xproc)</title>
		<link>http://clownsinmycoffee.net/2010/05/11/83/</link>
		<comments>http://clownsinmycoffee.net/2010/05/11/83/#comments</comments>
		<pubDate>Tue, 11 May 2010 23:13:33 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[nerdination]]></category>
		<category><![CDATA[nerdination XML]]></category>

		<guid isPermaLink="false">http://clownsinmycoffee.net/?p=83</guid>
		<description><![CDATA[As an unabashed fan of the angle brackety type things, I&#8217;m chuffed to learn, via Norman Walsh,  that XProc is now a W3C recommendation. Congratulations to all the people who put in all the work to get it there.  Take &#8230; <a href="http://clownsinmycoffee.net/2010/05/11/83/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As an unabashed fan of the angle brackety type things, I&#8217;m chuffed to learn, <a title="Norm Walsh on XProc becoming a Recommendation" href="http://norman.walsh.name/2010/05/11/xproc">via Norman Walsh</a>,  that <a href="http://www.w3.org/TR/2010/REC-xproc-20100511/">XProc is now a W3C recommendation</a>.  Congratulations to all the people who put in all the work to get it there.  Take a look at if if you need to run your XML documents through a bunch of steps and produce a bunch of results (and do other things along the way).</p>
<p>I&#8217;ve used XProc in a limited way to run a sort of enhanced XSLT process, and it was slow to get started, but once I wrapped my head around the central concepts, the rest went like butter.  Given that the specification provides for making HTTP requests, I&#8217;d think it could serve as an especially useful component in a RESTful document publishing architecture.  But then, I would say that.</p>
]]></content:encoded>
			<wfw:commentRss>http://clownsinmycoffee.net/2010/05/11/83/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>On Bankers</title>
		<link>http://clownsinmycoffee.net/2010/02/06/on-bankers/</link>
		<comments>http://clownsinmycoffee.net/2010/02/06/on-bankers/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 03:28:48 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Nonsense]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://clownsinmycoffee.net/?p=79</guid>
		<description><![CDATA[Here&#8217;s some unsolicited advice for performing long-distance one-off transactions with financial institutions: if your transaction is at all unusual and requires that documentation of some sort or another be passed around and notarized and suchlike &#8212; get the procedure documented.  &#8230; <a href="http://clownsinmycoffee.net/2010/02/06/on-bankers/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s some unsolicited advice for performing long-distance one-off transactions with financial institutions: if your transaction is at all unusual and requires that documentation of some sort or another be passed around and notarized and suchlike &#8212; <em>get the procedure documented</em>.  That person  you&#8217;re talking to on the phone, unless you&#8217;re really lucky, doesn&#8217;t know that the dark, cold hands of Institutional Policy are poised to strangle any vestiges of trust you have in corporate behavior if you follow the seemingly simple procedure.  The bureaucracy <em>always </em>wants a Very Serious Document prepared, and it&#8217;s quite easy to blow you off, because what are you but some disembodied, highly compressed voice coming out over a Very Small Speaker?</p>
<p>Of course, if banks weren&#8217;t somewhat risk averse, we wouldn&#8217;t put our money into them.  Know, however, that the risk aversion is about you (the customer) not so much or not at all, and almost entirely about the Organization.  And the rules and regulations governing this stuff are Very Complex indeed, and typically aren&#8217;t the sorts of things that are known by the type of employee who has to (<em>eurk!</em>) take phone calls from the public. If they knew <em>that</em>, they&#8217;d be too busy in meetings deciding what the next set of rules are to take the time to deal with your piddly little problems.</p>
<p>The beauty of this whole setup is that it takes no active or deliberate malice on any individual&#8217;s part, and you, dear friend, will have to seek and pay for the advice of a lawyer.  Ain&#8217;t modern life grand?  Philly Joe Remarkable is not the only one looking on in disbelief.</p>
]]></content:encoded>
			<wfw:commentRss>http://clownsinmycoffee.net/2010/02/06/on-bankers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>In Which I Become a Food Blogger</title>
		<link>http://clownsinmycoffee.net/2009/09/24/in-which-i-become-a-food-blogger/</link>
		<comments>http://clownsinmycoffee.net/2009/09/24/in-which-i-become-a-food-blogger/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 00:28:51 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[food]]></category>
		<category><![CDATA[nerdination]]></category>
		<category><![CDATA[gastronomonomy molecular]]></category>

		<guid isPermaLink="false">http://clownsinmycoffee.net/?p=73</guid>
		<description><![CDATA[Some time ago, a friend pointed me to this magical stuff that turns fats into powders. T&#8217;other day, I finally got my hands on some of this tapioca maltodextrin, as it&#8217;s called; it&#8217;s a starch, and there&#8217;s really not much &#8230; <a href="http://clownsinmycoffee.net/2009/09/24/in-which-i-become-a-food-blogger/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Some time ago, a friend pointed me to this magical stuff that turns fats into powders.  T&#8217;other day, I finally got my hands on some of this <em>tapioca maltodextrin</em>, as it&#8217;s called; it&#8217;s a starch, and there&#8217;s really not much more to turning a really fatty thing into a powder than mixing the two things together.</p>
<p>The starch is close enough to flavourless, but any statements you may have encountered to the effect that you put the powdered (olive oil/peanut butter/hazelnut-and-chocolate-spread) into your mouth and voilà! it&#8217;s the original stuff again! are not really operative.  There&#8217;s a noticeable effect on the texture, and you&#8217;ve got a bunch of starch that wasn&#8217;t there before.</p>
<p>Still, it&#8217;s amazing to work with and it&#8217;s truly a surprise for your taste buds.</p>
]]></content:encoded>
			<wfw:commentRss>http://clownsinmycoffee.net/2009/09/24/in-which-i-become-a-food-blogger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding Shift-select with jQuery</title>
		<link>http://clownsinmycoffee.net/2008/04/18/add-shift-select-with-jquery/</link>
		<comments>http://clownsinmycoffee.net/2008/04/18/add-shift-select-with-jquery/#comments</comments>
		<pubDate>Fri, 18 Apr 2008 17:48:07 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[nerdination]]></category>
		<category><![CDATA[closure]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://clownsinmycoffee.net/?p=45</guid>
		<description><![CDATA[I&#8217;ve been using jQuery a bit here and there to add some (I hope) usability enhancements and for light AJAJ work. Today I encountered a situation where I thought adding the &#8220;shift-select&#8221; feature on a longish list of checkboxes would &#8230; <a href="http://clownsinmycoffee.net/2008/04/18/add-shift-select-with-jquery/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>
 I&#8217;ve been using <a href="http://jquery.com">jQuery</a> a bit here and there to add some (I hope) usability enhancements and for light AJAJ work.  Today I encountered a situation where I thought adding the &#8220;shift-select&#8221; feature on a longish list of checkboxes would be a good thing. This sort of feature pops up in webmail interfaces, where you tick off one box, scroll down through 750 spam messages, and then, while holding down shift on the 751st piece of spam in a row, click its checkbox to select all of the rows in between.  It turns out that adding this with jQuery is pretty elegant, so here&#8217;s the code.  I don&#8217;t for a moment think this is the best implementation of this idea, but I was struck by how concise the result was, while supporting &#8212; via a straightforward use of a <a href="http://en.wikipedia.org/wiki/Closure_(computer_science)">closure</a>, multiple instances on the same page.  For giggles, I added a feature that allows you to de-select a range, although I&#8217;m not convinced it works in an intuitive way.
</p>
<p>To use this, you&#8217;ll need jQuery (tested against 1.2.3) in your page, and a CSS selector that matches the checkboxes you want to enable shift-select on. Then call <code>$(selector).shiftSelect();</code> and you&#8217;re done.
</p>
<pre>
 jQuery.fn.shiftSelect = function() {
    var checkboxes = this;
    var lastSelected;
    jQuery(this).click( function(event) {

        if ( !lastSelected ) {
            lastSelected = this;
            return;
        }

        if ( event.shiftKey ) {
            var selIndex = checkboxes.index(this);
            var lastIndex = checkboxes.index(lastSelected);
            /*
             * if you find the "select/unselect" behavior unseemly,
             * remove this assignment and replace 'checkValue'
             * with 'true' below.
             */
            var checkValue = lastSelected.checked;
            if ( selIndex == lastIndex ) {
                return true;
            }

            var end = Math.max(selIndex,lastIndex);
            var start = Math.min(selIndex,lastIndex);
            for(i=start;i&lt;=end;i++) {
                checkboxes[i].checked = checkValue;
            }
        }
        lastSelected = this;
    });
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://clownsinmycoffee.net/2008/04/18/add-shift-select-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
