<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" xml:lang="en">
  <title type="text">About Vinod Kurup</title>
  <subtitle type="text">Thoughts on medicine, software and life</subtitle>

  <updated>2010-08-25T20:17:46Z</updated>
  <generator uri="http://blogofile.com/">Blogofile</generator>

  <link rel="alternate" type="text/html" href="http://www.kurup.org/blog" />
  <id>http://www.kurup.org/blog/feed/atom/</id>
  
  <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/vkurup" /><feedburner:info uri="vkurup" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry>
    <author>
      <name />
      <uri>http://www.kurup.org/blog</uri>
    </author>
    <title type="html"><![CDATA[HTML5 Up and Running]]></title>
    <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vkurup/~3/LFD5KhwabBQ/html5-up-and-running" />
    <id>http://www.kurup.org/blog/2010/08/25/html5-up-and-running</id>
    <updated>2010-08-25T14:53:00Z</updated>
    <published>2010-08-25T14:53:00Z</published>
    <category scheme="http://www.kurup.org/blog" term="web" />
    <category scheme="http://www.kurup.org/blog" term="review" />
    <category scheme="http://www.kurup.org/blog" term="HTML" />
    <category scheme="http://www.kurup.org/blog" term="programming" />
    <category scheme="http://www.kurup.org/blog" term="book" />
    <summary type="html"><![CDATA[HTML5 Up and Running]]></summary>
    <content type="html" xml:base="http://www.kurup.org/blog/2010/08/25/html5-up-and-running">&lt;p&gt;I preordered Mark Pilgrim's &lt;a href="http://www.amazon.com/HTML5-Up-Running-Mark-Pilgrim/dp/0596806027?ie=UTF8&amp;amp;tag=diveintomark-20&amp;amp;creativeASIN=0596806027"&gt;HTML5, Up and Running&lt;/a&gt; from Amazon back in
   March. It's available for free as &lt;a href="http://diveintohtml5.org/"&gt;Dive into
HTML5&lt;/a&gt;. I've been a fan of Mark's &lt;a href="http://diveintomark.org"&gt;writing&lt;/a&gt;
   for a while, so buying the book was a way to thank him "with a
   buck". Interestingly, the online book and paper book are not
   identical. For starters, the titles are different. In addition, the
   beautiful fonts and cutesy images of the online version are gone. The
   paper book is your run-of-the-mill O'Reilly book. I'm not sure if
   it'll make much of a difference in my enjoyment, but we'll see.
&lt;/p&gt;
&lt;p&gt;As I said, I preordered the book in March, so I had no idea when it
   would be finished and delivered. It showed up on my doorstep this
   morning, on my birthday! We're on our way to NYC tomorrow for our
   first trip back there since we moved to North Carolina in 2007, so I
   know have some light pleasure reading. Perfect Timing!
&lt;/p&gt;
&lt;p&gt;I've only read the first chapter so far, but I think I'm going to love
   it. I've done a lot of web programming in my life, but only maintain
   my own sites now. I'm reading this book like a programmer might read a
   book on astronomy... purely for the love of it. The first chapter goes
   into the details of how the &lt;code&gt;IMG&lt;/code&gt; tag was invented. Marc Andreessen
   mentioned it on a mailing list back in 1993, and after some back and
   forth, shipped it in Mosaic, an early browser. Because it shipped and
   because it was popular, it got included in the HTML standards. 
&lt;/p&gt;
&lt;p&gt;I still remember when Mosaic came out. I got my first email address in
   1992 (vkurup@macc.wisc.edu) and somehow was on a mailing list
   announcing the impending release of Mosaic. I remember the text of the
   email basically saying that "This will change the world." Once I saw
   it, I thought it was cool, but way over-hyped. Who is going to want to
   wait for pictures to download over a 14.4K modem? Ridiculous. This is
   why you should not take my advice about new trends.
&lt;/p&gt;
&lt;p&gt;Anyway, the point of the &lt;code&gt;IMG&lt;/code&gt; example is to show that HTML standards
   have never been "pure", but have always been influenced by the
   implementers and the users of the web. The way it should be. HTML5 is
   an acknowledgment of that fact.
&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/vkurup?a=LFD5KhwabBQ:GVk2LSxBRhw:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/vkurup?i=LFD5KhwabBQ:GVk2LSxBRhw:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/vkurup?a=LFD5KhwabBQ:GVk2LSxBRhw:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/vkurup?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/vkurup?a=LFD5KhwabBQ:GVk2LSxBRhw:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/vkurup?i=LFD5KhwabBQ:GVk2LSxBRhw:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/vkurup/~4/LFD5KhwabBQ" height="1" width="1"/&gt;</content>
  <feedburner:origLink>http://www.kurup.org/blog/2010/08/25/html5-up-and-running</feedburner:origLink></entry>
  <entry>
    <author>
      <name />
      <uri>http://www.kurup.org/blog</uri>
    </author>
    <title type="html"><![CDATA[Primary Care Doctors]]></title>
    <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vkurup/~3/2WOaJ15e6jk/primary-care-doctors" />
    <id>http://www.kurup.org/blog/2010/08/06/primary-care-doctors</id>
    <updated>2010-08-06T11:59:00Z</updated>
    <published>2010-08-06T11:59:00Z</published>
    <category scheme="http://www.kurup.org/blog" term="medicine" />
    <category scheme="http://www.kurup.org/blog" term="hospitalist" />
    <summary type="html"><![CDATA[Primary Care Doctors]]></summary>
    <content type="html" xml:base="http://www.kurup.org/blog/2010/08/06/primary-care-doctors">&lt;p&gt;I used to be a primary care physician, but switched to being a hospitalist
   in 2007. I loved parts about being a PCP, namely the relationship that I
   developed with the patient over many years. I miss that. I think PCPs offer
   huge value in providing low cost, quality care, especially if they can stay
   engaged throughout the hospitalization process. Atul Gawande recently wrote
   &lt;a href="http://www.newyorker.com/reporting/2010/08/02/100802fa_fact_gawande?currentPage=all"&gt;a powerful article on the Hospice system&lt;/a&gt;. It's
   worth reading to being to understand the complex issues involved in
   end-of-life care, not to mention for the emotional storytelling that is his
   strength. But, to me, the unsung hero in that story was Chuck Morris, the
   primary care physician, who came in at the proper moment and provided
   perspective to the patient that he knew so well, allowing them to make the
   sane, yet horribly difficult decision to pursue a palliative path. Reading
   that made me miss primary care medicine a little. I perform much more
   actual "medical" work as a hospitalist than I ever did as a PCP. But, when
   I think of the concept of a &lt;em&gt;doctor&lt;/em&gt;, in my head, I'm thinking of a primary
   care doc.
&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/vkurup?a=2WOaJ15e6jk:OLVxPcKDXZA:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/vkurup?i=2WOaJ15e6jk:OLVxPcKDXZA:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/vkurup?a=2WOaJ15e6jk:OLVxPcKDXZA:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/vkurup?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/vkurup?a=2WOaJ15e6jk:OLVxPcKDXZA:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/vkurup?i=2WOaJ15e6jk:OLVxPcKDXZA:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/vkurup/~4/2WOaJ15e6jk" height="1" width="1"/&gt;</content>
  <feedburner:origLink>http://www.kurup.org/blog/2010/08/06/primary-care-doctors</feedburner:origLink></entry>
  <entry>
    <author>
      <name />
      <uri>http://www.kurup.org/blog</uri>
    </author>
    <title type="html"><![CDATA[Maps are functions, too]]></title>
    <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vkurup/~3/FsHADlQJZxE/maps-are-functions,-too" />
    <id>http://www.kurup.org/blog/2010/08/05/maps-are-functions,-too</id>
    <updated>2010-08-05T15:16:00Z</updated>
    <published>2010-08-05T15:16:00Z</published>
    <category scheme="http://www.kurup.org/blog" term="clojure" />
    <category scheme="http://www.kurup.org/blog" term="programming" />
    <summary type="html"><![CDATA[Maps are functions, too]]></summary>
    <content type="html" xml:base="http://www.kurup.org/blog/2010/08/05/maps-are-functions,-too">&lt;p&gt;Braindump time. Here's what I've read about clojure in the past few days. I don't understand what this means yet, but maybe someday I will:
&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Clojure provides easy access to the Java frameworks, with optional type hints and type inference, to ensure
   that calls to Java can avoid reflection.
&lt;/p&gt;
&lt;/blockquote&gt;&lt;p&gt;There are multiple languages that target the JVM (besides Java, of
   course). It seems that there are 2 classes of languages. Ported languages
   such as JRuby and Jython aim to be identical to their base languages
   (Ruby &amp;amp; Python). Native languages such as Clojure and Groovy are meant to
   target the JVM natively without satisfying any desire to be identical to
   another language. Native languages have the advantage that they only have 1
   set of libraries to use, so you don't get stuck between two languages.
&lt;/p&gt;
&lt;p&gt;I installed clojure 1.0 from the ubuntu repositories, but promptly
   uninstalled it once I found
   &lt;a href="http://github.com/technomancy/leiningen"&gt;leiningen&lt;/a&gt;. Leiningen is a build
   tool for clojure. You can easily create a new project and specify its
   dependencies and leiningen will download those dependencies, including a
   full version of clojure for each project. You can have 1 project using
   leiningen 1.0 and another using version 1.2 sitting right next to it. That
   seems smart!
&lt;/p&gt;
&lt;p&gt;I installed &lt;a href="http://www.assembla.com/wiki/show/clojure/Getting_Started_with_Emacs"&gt;clojure-mode on
emacs&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;Right now, I'm working my way through the
   &lt;a href="http://github.com/relevance/labrepl"&gt;labrepl&lt;/a&gt; project. It's an interactive
   tutorial and REPL (read-eval-print-loop) where you can run the examples in
   the tutotial.
&lt;/p&gt;
&lt;p&gt;It's always important to know how to find help:
&lt;/p&gt;
&lt;ul&gt;
 &lt;li&gt;
     &lt;code&gt;(doc blah)&lt;/code&gt; gives documentation about blah.
 &lt;/li&gt;

 &lt;li&gt;
     &lt;code&gt;(find-doc "blah")&lt;/code&gt; searches for documentation.
 &lt;/li&gt;

 &lt;li&gt;
     &lt;code&gt;(javadoc blah)&lt;/code&gt; opens Java docs in your browser
 &lt;/li&gt;

 &lt;li&gt;
     &lt;code&gt;(show java.util.Date)&lt;/code&gt; shows method signatures
 &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Here's something cool: Maps are associative arrays. Here's a simple one:
&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;(def me {:first-name "Vinod", :last-name "Kurup"})
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To get the data, you use the &lt;code&gt;get&lt;/code&gt; function, like you would in other languages:
&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;(get me :first-name) -&amp;gt; "Vinod"
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;But, maps and keywords are functions as well, so you can do:
&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;(me :first-name) -&amp;gt; "Vinod"
(:last-name me) -&amp;gt; "Kurup"
&lt;/code&gt;&lt;/pre&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/vkurup?a=FsHADlQJZxE:sJq5KVvIMAQ:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/vkurup?i=FsHADlQJZxE:sJq5KVvIMAQ:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/vkurup?a=FsHADlQJZxE:sJq5KVvIMAQ:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/vkurup?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/vkurup?a=FsHADlQJZxE:sJq5KVvIMAQ:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/vkurup?i=FsHADlQJZxE:sJq5KVvIMAQ:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/vkurup/~4/FsHADlQJZxE" height="1" width="1"/&gt;</content>
  <feedburner:origLink>http://www.kurup.org/blog/2010/08/05/maps-are-functions,-too</feedburner:origLink></entry>
  <entry>
    <author>
      <name />
      <uri>http://www.kurup.org/blog</uri>
    </author>
    <title type="html"><![CDATA[Ubuntu Bluetooth Workaround]]></title>
    <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vkurup/~3/BNU6lxnUrf0/ubuntu-bluetooth-workaround" />
    <id>http://www.kurup.org/blog/2010/08/02/ubuntu-bluetooth-workaround</id>
    <updated>2010-08-02T21:40:00Z</updated>
    <published>2010-08-02T21:40:00Z</published>
    <category scheme="http://www.kurup.org/blog" term="linux" />
    <category scheme="http://www.kurup.org/blog" term="bluetooth" />
    <category scheme="http://www.kurup.org/blog" term="ubuntu" />
    <summary type="html"><![CDATA[Ubuntu Bluetooth Workaround]]></summary>
    <content type="html" xml:base="http://www.kurup.org/blog/2010/08/02/ubuntu-bluetooth-workaround">&lt;p&gt;I use bluetooth to transfer podcasts from my laptop to my Palm Centro. A
   Palm Centro is like an iPhone or a Droid, except less &lt;strong&gt;smart&lt;/strong&gt;-like and
   more &lt;strong&gt;phone&lt;/strong&gt;-like. This worked beautifully but broke when I upgraded to
   &lt;a href="http://www.ubuntu.com/desktop/get-ubuntu/download"&gt;Ubuntu&lt;/a&gt; 10.04 (Lucid
   Lynx). There are 2 bugs involved. First, the bluetooth daemon
   (&lt;code&gt;/usr/sbin/bluetoothd&lt;/code&gt;) never gets started. Second, there's no easy way to
   start the file transfer daemon automatically (&lt;code&gt;/usr/bin/dund&lt;/code&gt;). This used
   to work automatically, but now it doesn't. I've tried to fiddle with &lt;code&gt;udev&lt;/code&gt;
   rules, but have been unsuccessful. I've reported the 2 bugs, but haven't
   had any response
   yet. &lt;a href="https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/589464"&gt;(bluetoothd bug)&lt;/a&gt;
   &lt;a href="https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/559538"&gt;(dund bug)&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;My workaround is a shell script which starts those those daemons if they
   are not running:
&lt;/p&gt;

&lt;h4&gt;vk-bluetooth-start.sh&lt;/h4&gt;
&lt;pre&gt;&lt;code&gt;#!/bin/bash

BLUETOOTH='bluetoothd'
DUN='dund'

# first start bluetoothd
if ps ax | grep -v grep | grep $BLUETOOTH &amp;gt; /dev/null
then
    echo "$BLUETOOTH is running."
else
    echo -n "Starting $BLUETOOTH..."
    /usr/bin/sudo /usr/sbin/bluetoothd -u &amp;amp;&amp;gt; /dev/null
    echo "done."
fi

# then start dund
if ps ax | grep -v grep | grep $DUN &amp;gt; /dev/null
then
    echo "$DUN is running."
else
    echo -n "Starting $DUN..."
    /usr/bin/sudo /usr/bin/dund --listen --persist --msdun call centro
    echo "done."
fi
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;And here's my script which transfers the files to my phone. It uses
   &lt;a href="http://packages.ubuntu.com/lucid/pilot-link"&gt;pilot-link&lt;/a&gt;, which I had to
   compile from source due to a
   &lt;a href="https://bugs.launchpad.net/ubuntu/+source/pilot-link/+bug/592916"&gt;bug in the way that the Ubuntu version addresses large SD cards&lt;/a&gt;. This
   should be fixed in the next version of Ubuntu.
&lt;/p&gt;

&lt;h4&gt;vk-transfer-podcasts.sh&lt;/h4&gt;
&lt;pre&gt;&lt;code&gt;#!/bin/bash

output=$(pilot-xfer -p net:any -D /Kingston/AUDIO -i *.mp3 2&amp;gt;&amp;amp;1)
errors=$(echo $output | grep -c "ERROR:")

if [ $errors -gt 0 ] ; then
    echo "failure (count: $errors)"
    echo $output
else
    echo -n "success, removing files from laptop..."
    /bin/rm -I $HOME/*.mp3
    echo "done."
fi
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If you're wondering why I use a slow protocol like bluetooth to transfer
   large files to an SD card, rather than just ejecting the SD card and
   inserting it into the laptop, well... you haven't tried to access the SD
   card on a Palm Centro. #paininthe*&amp;amp;^@!
&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/vkurup?a=BNU6lxnUrf0:qeFH52jvcKk:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/vkurup?i=BNU6lxnUrf0:qeFH52jvcKk:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/vkurup?a=BNU6lxnUrf0:qeFH52jvcKk:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/vkurup?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/vkurup?a=BNU6lxnUrf0:qeFH52jvcKk:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/vkurup?i=BNU6lxnUrf0:qeFH52jvcKk:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/vkurup/~4/BNU6lxnUrf0" height="1" width="1"/&gt;</content>
  <feedburner:origLink>http://www.kurup.org/blog/2010/08/02/ubuntu-bluetooth-workaround</feedburner:origLink></entry>
  <entry>
    <author>
      <name />
      <uri>http://www.kurup.org/blog</uri>
    </author>
    <title type="html"><![CDATA[Hospitalist Notes 1]]></title>
    <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vkurup/~3/keLpcFnpxuw/hospitalist-notes-1" />
    <id>http://www.kurup.org/blog/2010/07/29/hospitalist-notes-1</id>
    <updated>2010-07-29T13:50:00Z</updated>
    <published>2010-07-29T13:50:00Z</published>
    <category scheme="http://www.kurup.org/blog" term="medicine" />
    <category scheme="http://www.kurup.org/blog" term="hospitalist" />
    <summary type="html"><![CDATA[Hospitalist Notes 1]]></summary>
    <content type="html" xml:base="http://www.kurup.org/blog/2010/07/29/hospitalist-notes-1">&lt;p&gt;My last night shift was a little less busy than most, so I forced myself to pick something about each patient I admitted and look it up. I tend to do this anyway, but I never keep notes or write about it. Here's what I wrote about that night:
&lt;/p&gt;

&lt;h3&gt;Does Buspar (buspirone) need to be tapered?&lt;/h3&gt;
&lt;p&gt;Answer: No. The full report on Micromedex was a little conflicting, because it stated that there may be some withdrawal symptoms from Buspar, but this quote in the same profile suggests otherwise:
&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Data suggest that buspirone does not cause physical dependence and as such, no withdrawal effects have been noted (Rickels et al, 1988a; Tyrer et al, 1985; Cole et al, 1982).
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3&gt;Staging COPD&lt;/h3&gt;
&lt;p&gt;I always forget the cutoffs for the stages of COPD. There are 2 different guidleines - GOLD and ATS/ARS, but fortunately they are almost identical:
&lt;/p&gt;
&lt;p&gt;Patients need to have an FEV1/FVC ratio &amp;lt; 0.70. Staging is then based on the FEV1.
&lt;/p&gt;
&lt;ul&gt;
 &lt;li&gt;
     Stage I (Mild): FEV1 &amp;gt; 80% predicted
 &lt;/li&gt;

 &lt;li&gt;
     Stage II (Moderate): FEV1 50-80% predicted
 &lt;/li&gt;

 &lt;li&gt;
     Stage III (Severe): FEV1 30-50% predicted
 &lt;/li&gt;

 &lt;li&gt;
     Stage IV: (Very Severe): FEV1 &amp;lt; 30% predicted, or &amp;lt; 50% with signs of chronic respiratory failure
 &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Reference: &lt;a href="http://www.annals.org/content/147/9/633/T2.expansion.html"&gt;Annals&lt;/a&gt;
&lt;/p&gt;

&lt;h3&gt;How to determine calorie level of ADA diet?&lt;/h3&gt;
&lt;p&gt;We always put diabetic patients on an ADA diet and I choose the calorie level by gestalt. I figured there must be some formula to calculate the calorie level based on the patient's weight. Looking it up, I found a different answer altogether. The ADA no longer recommends an ADA diet in the hospital. Instead, they recommend a consistent-carbohydrate diet. In long-term care facilities (i.e. nursing homes), they go a step further and recommend a 'Regular' diet with consistency in the amount and timing of carbohydrate. They specifically state that there is no evidence to support the classic 'No concentrated sweets' diet. These guidelines are from 2007, but they obviously have not been widely disseminated yet.
&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;It is recommended that the term “ADA diet” no longer be used, since the ADA no longer endorses a single nutrition prescription or percentages of macronutrients. 
&lt;/p&gt;
&lt;/blockquote&gt;&lt;p&gt;Reference: &lt;a href="http://care.diabetesjournals.org/content/30/suppl_1/S48.full"&gt;Diabetes Care&lt;/a&gt;
&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/vkurup?a=keLpcFnpxuw:VFUR2UgVt9w:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/vkurup?i=keLpcFnpxuw:VFUR2UgVt9w:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/vkurup?a=keLpcFnpxuw:VFUR2UgVt9w:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/vkurup?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/vkurup?a=keLpcFnpxuw:VFUR2UgVt9w:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/vkurup?i=keLpcFnpxuw:VFUR2UgVt9w:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/vkurup/~4/keLpcFnpxuw" height="1" width="1"/&gt;</content>
  <feedburner:origLink>http://www.kurup.org/blog/2010/07/29/hospitalist-notes-1</feedburner:origLink></entry>
  <entry>
    <author>
      <name />
      <uri>http://www.kurup.org/blog</uri>
    </author>
    <title type="html"><![CDATA[My Anti-Writing Cycle]]></title>
    <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vkurup/~3/-9P8T-uSKLw/my-anti-writing-cycle" />
    <id>http://www.kurup.org/blog/2010/07/27/my-anti-writing-cycle</id>
    <updated>2010-07-27T21:30:00Z</updated>
    <published>2010-07-27T21:30:00Z</published>
    <category scheme="http://www.kurup.org/blog" term="clojure" />
    <category scheme="http://www.kurup.org/blog" term="blogging" />
    <category scheme="http://www.kurup.org/blog" term="writing" />
    <summary type="html"><![CDATA[My Anti-Writing Cycle]]></summary>
    <content type="html" xml:base="http://www.kurup.org/blog/2010/07/27/my-anti-writing-cycle">&lt;p&gt;I blogged daily for a 6 day stretch a couple weeks ago, which is the
   longest continuous stretch I've ever done. It was stimulating and stressful
   at the same time. I haven't heard from the Pulitzer committee about any of
   the posts yet, but it's not the quality that matters. Writing is more about
   the process than the product, and I know from experience that writing helps
   me think. And while most of the posts were written for my own benefit, I
   really enjoyed the response that I got from family and friends about
   &lt;a href="/blog/2010/07/15/playdoh"&gt;Playdoh&lt;/a&gt;. I think I've read that post 100 times
   and I still laugh out loud at the end of it. That's the post that started
   the stretch off. As soon as I had put Kavi to bed, I knew that I wanted to
   share that story. I wrote it down quickly, so I wouldn't forget it. That
   writing process stimulated me to want to write more, so I made it an
   internal goal to write a post daily.
&lt;/p&gt;
&lt;p&gt;Then I had two night shifts and the streak was broken. I've had a few days
   off, but I still haven't written anything. I'm still learning clojure, but
   I fear writing about something that I know nothing about. Even though I've
   heard others say that this is the best time to write about a topic. I've
   also constructed a vicious cycle in my head. I want to learn clojure. I
   want to write about what I learn. I start doing so, but then I skip a day
   or so. Now, when I have free time, I think about learning clojure, but then
   I also think about the fact that I should write about it. And since I'm
   already behind, I don't want to get further behind, so maybe I shouldn't
   read that interesting tutorial until I've caught up on writing about what
   I've learned. Next thing I know, I'm monitoring Twitter streams
   second-by-second for &lt;a href="http://imgur.com"&gt;imgur&lt;/a&gt; links.
&lt;/p&gt;
&lt;p&gt;I'm hoping that writing about my mental blocks will help me overcome
   them. I plan to write more frequently, mostly for my own benefit, but I'm
   not going to let it get in the way of learning cool, interesting stuff. If
   my writing is disjointed, so be it. I can fill in the gaps later if anyone
   cares.
&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/vkurup?a=-9P8T-uSKLw:jtW1hHLHvTc:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/vkurup?i=-9P8T-uSKLw:jtW1hHLHvTc:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/vkurup?a=-9P8T-uSKLw:jtW1hHLHvTc:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/vkurup?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/vkurup?a=-9P8T-uSKLw:jtW1hHLHvTc:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/vkurup?i=-9P8T-uSKLw:jtW1hHLHvTc:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/vkurup/~4/-9P8T-uSKLw" height="1" width="1"/&gt;</content>
  <feedburner:origLink>http://www.kurup.org/blog/2010/07/27/my-anti-writing-cycle</feedburner:origLink></entry>
  <entry>
    <author>
      <name />
      <uri>http://www.kurup.org/blog</uri>
    </author>
    <title type="html"><![CDATA[My video editing process]]></title>
    <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vkurup/~3/-rLC1xBMb44/my-video-editing-process" />
    <id>http://www.kurup.org/blog/2010/07/20/my-video-editing-process</id>
    <updated>2010-07-20T20:51:00Z</updated>
    <published>2010-07-20T20:51:00Z</published>
    <category scheme="http://www.kurup.org/blog" term="kino" />
    <category scheme="http://www.kurup.org/blog" term="video" />
    <category scheme="http://www.kurup.org/blog" term="linux" />
    <summary type="html"><![CDATA[My video editing process]]></summary>
    <content type="html" xml:base="http://www.kurup.org/blog/2010/07/20/my-video-editing-process">&lt;p&gt;I use &lt;a href="http://www.kinodv.org/"&gt;kino&lt;/a&gt; to edit the
   &lt;a href="http://youtube.com/vkurup1"&gt;videos that we take of the kids&lt;/a&gt;. I haven't
   found a Linux program which was as nice as iMovie was on the Mac, but kino
   is pretty good. It's easy to splice and reconnect video clips together. It
   has nice special effects, though my needs are pretty simple. It's able to
   export in plenty of formats, possibly too many, for my simple mind. But,
   I've figured it out and have a stable process for getting video from camera
   to youtube.
&lt;/p&gt;
&lt;p&gt;I have 3 camcorders - a &lt;a href="http://www.theflip.com/"&gt;Flip&lt;/a&gt;, my Canon digital
   camera, and a Panasonic DVD camcorder. I can just copy the AVI files
   directly off the Flip and the Canon's SD card. The Panasonic records all of
   the video clips into a single file with a .VRO extension. I found a great
   utility called &lt;a href="http://www.pixelbeat.org/programs/dvd-vr/"&gt;dvd-vr&lt;/a&gt;, which
   reads that file and splits it into individual AVI files. Once I have a
   directory full of AVI files from the various camcorders, I use
   &lt;a href="http://www.gnu.org/software/emacs/"&gt;emacs&lt;/a&gt; to rename them consistently. I
   open up 2 buffers: an editable dired buffer (&lt;code&gt;wdired-change-to-wdired-mode&lt;/code&gt;)
   of the movies directory, and a shell buffer in that same directory. I run a
   macro which takes the first file in the directory, plays it via an mplayer
   command in the shell buffer and then renames the file using the
   date/timestamp of the file. The macro leaves the cursor in a spot where I
   can enter a brief description of the video and then run the macro again to
   do the next video. It works pretty well. I then batch convert them to DV
   format, which is what Kino accepts. Finally, I launch Kino and edit the
   files, add titles, export them to AVI again, and then upload them to
   youtube.
&lt;/p&gt;
&lt;p&gt;I did this today and ran into a problem with kino. The video played at
   breakneck speed and there was no audio. Google helped me figure out that
   this was a problem between PulseAudio and kino. Kino is no longer actively
   developed. The lead developer considers it stable and finished and he's
   moved on to other endeavors, which is perfectly understandable. He's
   however, taken the time to describe
   &lt;a href="http://www.kinodv.org/article/view/173/1/13/"&gt;a workaround&lt;/a&gt;. He recommends
   running &lt;code&gt;padsp kino&lt;/code&gt; which routes all audio requests from kino to
   pulseaudio. This worked, but the audio had a lot of feedback. I found an
   even better
   &lt;a href="http://ubuntuforums.org/showpost.php?p=8367831&amp;amp;postcount=7"&gt;workaround on the ubuntu forums&lt;/a&gt;. Use
   &lt;code&gt;pasuspender kino&lt;/code&gt;, which suspends all PulseAudio activity, gives kino
   direct access to audio devices, and then resumes PulseAudio once kino has
   quit. This worked with perfect audio quality, though of course, audio from
   any other program gets muted completely.
&lt;/p&gt;
&lt;p&gt;I am still on the lookout for a better video editing solution on
   Linux. Eventually, I'd like to make DVDs of the hundreds of little clips
   that I have. They don't need to be fancy, but I would like to have some
   basic menus and they need to work on standard DVD players. I've started
   doing a little research on this, so will post once I've tried some things
   out.
&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/vkurup?a=-rLC1xBMb44:j-V_QjHlvmY:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/vkurup?i=-rLC1xBMb44:j-V_QjHlvmY:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/vkurup?a=-rLC1xBMb44:j-V_QjHlvmY:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/vkurup?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/vkurup?a=-rLC1xBMb44:j-V_QjHlvmY:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/vkurup?i=-rLC1xBMb44:j-V_QjHlvmY:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/vkurup/~4/-rLC1xBMb44" height="1" width="1"/&gt;</content>
  <feedburner:origLink>http://www.kurup.org/blog/2010/07/20/my-video-editing-process</feedburner:origLink></entry>
  <entry>
    <author>
      <name />
      <uri>http://www.kurup.org/blog</uri>
    </author>
    <title type="html"><![CDATA[Stock Market Timing]]></title>
    <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vkurup/~3/zFmyN122q04/stock-market-timing" />
    <id>http://www.kurup.org/blog/2010/07/19/stock-market-timing</id>
    <updated>2010-07-19T16:08:00Z</updated>
    <published>2010-07-19T16:08:00Z</published>
    <category scheme="http://www.kurup.org/blog" term="investing" />
    <category scheme="http://www.kurup.org/blog" term="python" />
    <category scheme="http://www.kurup.org/blog" term="programming" />
    <summary type="html"><![CDATA[Stock Market Timing]]></summary>
    <content type="html" xml:base="http://www.kurup.org/blog/2010/07/19/stock-market-timing">&lt;p&gt;If you asked me a few years ago, I would have said you absolutely can't
   time the stock market. The 2008 crash hurt enough to make me review my
   convictions a little. I still believe that accurate market timing is
   somewhere between difficult and impossible. Trying to analyze stock charts
   to figure out what will happen in the short term is mostly a crap
   shoot. The way to win in the stock market is to buy value stocks,
   especially when everyone else is selling.
&lt;/p&gt;
&lt;p&gt;I do, however, now believe that there is a place for market timing in
   deciding when to be in the stock market, in the first place. I think there
   are some trends that have repeatedly predicted poor stock
   performance. There are some super smart people that have analyzed these
   trends over at the &lt;a href="http://boards.fool.com"&gt;Motley Fool message
boards&lt;/a&gt;. They've come up with many indicators that
   supposedly tell you when to get in and out of the stock market, but my
   favorite is the &lt;a href="http://boards.fool.com/Message.asp?mid=27442724"&gt;99 day
rule&lt;/a&gt; &lt;sup id="fnr1-289510101"&gt;&lt;a href="#fn1-289510101"&gt;1&lt;/a&gt;&lt;/sup&gt;.
&lt;/p&gt;
&lt;p&gt;The basic premise of the 99 day rule is that when the
   &lt;a href="http://finance.yahoo.com/q?s=^GSPC"&gt;S&amp;amp;P 500 Index&lt;/a&gt; stops making new highs,
   investors get pessimistic and stocks fall. When it starts making new highs
   again, optimism takes over and bull markets start. The 99 day rule has 2
   parts and coincidentally uses 99 days as the cut-off for both parts. It
   looks at whether a new high has been made recently. It defines "high" as a
   99-day high. It defines "recently" as 99 days. So, it looks for a new
   99-day high within the last 99 days. The number is arbitrary. Hop over the
   the
   &lt;a href="http://boards.fool.com/mechanical-investing-100093.aspx"&gt;Motley Fool boards&lt;/a&gt;
   to see how the dates have been tuned and pick different ones, if you like.
&lt;/p&gt;
&lt;p&gt;I like this rule, because it's simple, easy to calculate and doesn't have
   many "signals", so you're not constantly buying and selling. Of course,
   it's not perfect, but it would have gotten you out of most of the major
   bear markets.
&lt;/p&gt;
&lt;p&gt;Here is how the rule has done over time:
&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Period        S&amp;amp;P 500   Switching   Improvement 
---------     -------   ---------   -----------
1930-1935     -12.2%       4.3%       16.4% 
1935-1940      10.3%      16.2%        6.0% 
1940-1945       7.4%       5.6%       -1.8% 
1945-1950      10.2%       7.4%       -2.8% 
1950-1955      23.6%      22.5%       -1.1% 
1955-1960      15.2%      13.8%       -1.4% 
1960-1965      10.7%      11.7%        1.0% 
1965-1970       5.0%       7.1%        2.2% 
1970-1975      -2.4%       6.8%        9.2% 
1975-1980      14.8%      12.0%       -2.8% 
1980-1985      14.8%      20.1%        5.2% 
1985-1990      20.4%      18.8%       -1.7% 
1990-1995       8.7%       6.7%       -2.0% 
1995-2000      28.6%      27.9%       -0.7% 
2000-2005      -2.3%       4.3%        6.6% 
2005-early2008  2.0%       4.5%        2.5%
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;You may have gotten to this point and are now wondering why it's worth
   following this rule. In at least 3 of the past 5 periods, this signal would
   have lost money versus staying in the market. That is true. The key is to
   understand that there is no free lunch. Any rule that tries to get you out
   of major bear markets will be imperfect and will often leave you with less
   money than if you had chosen to act on a different date (or not act at
   all). The overall goal is not to increase your returns, but to decrease
   your risk without sacrificing your returns. This signal does that. Overall,
   it does actually increase your returns by about 2% annually since 1930.
&lt;/p&gt;
&lt;p&gt;The other nice feature is that it doesn't have a "slam-dunk" feel to it. My
   experience is that things that work in the stock market have to have a
   little of a "gut wrenching" feel to them. If it sounds too good to be true,
   it is. This rule feels correct, improves returns over the long run, is
   backtested well, but does so at the risk of some lower performing
   years. That feels a little gut-wrenching to me.
&lt;/p&gt;
&lt;p&gt;Here is the author's (&lt;a href="http://www.stonewellfunds.com/"&gt;mungofitch&lt;/a&gt;) description:
&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;By using the rule that I described above, you would have had
   a total return of 11.80%, with a total risk of 6.71%. So, you
   would have had 2.3% per year higher returns on average,
   while experiencing only about 56.9% of the risk. 
   Higher returns, lower risk. That sounds good, right?
&lt;/p&gt;
&lt;p&gt;But, is this one of those iffy timing systems that really only works
   because it managed to avoid the crash of 1987 of something?
   No, actually it has you in the market in the 1987 crash: it's
   not perfect. But does it really add value on average through the years?
   Not always, but pretty darned well. Sometimes you do a little worse,
   but never a lot worse. And when you do better, you do a LOT better.
   So, overall, it's worth it. 
&lt;/p&gt;
&lt;/blockquote&gt;&lt;p&gt;In order to keep track of the signal, I wrote a &lt;a href="http://github.com/vkurup/ninety-nine"&gt;little python
program&lt;/a&gt; to calculate whether we are
   in buy mode or sell mode. It uses the excellent &lt;a href="http://www.goldb.org/ystockquote.html"&gt;ystockquote
module&lt;/a&gt; written by Corey Goldberg.
&lt;/p&gt;

&lt;div class="footnote"&gt;&lt;hr/&gt;&lt;ol&gt;
 &lt;li id="fn1-289510101"&gt;&lt;p&gt;A much more &lt;a href="http://boards.fool.com/Message.asp?mid=27035352"&gt;detailed description of the rule and its background&lt;/a&gt;.&lt;a href="#fnr1-289510101" class="footnoteBackLink" title="Jump back to footnote 1 in the text"&gt;&amp;#8617;&lt;/a&gt;
&lt;/p&gt;

 &lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/vkurup?a=zFmyN122q04:aOBDmmzfgxw:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/vkurup?i=zFmyN122q04:aOBDmmzfgxw:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/vkurup?a=zFmyN122q04:aOBDmmzfgxw:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/vkurup?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/vkurup?a=zFmyN122q04:aOBDmmzfgxw:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/vkurup?i=zFmyN122q04:aOBDmmzfgxw:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/vkurup/~4/zFmyN122q04" height="1" width="1"/&gt;</content>
  <feedburner:origLink>http://www.kurup.org/blog/2010/07/19/stock-market-timing</feedburner:origLink></entry>
  <entry>
    <author>
      <name />
      <uri>http://www.kurup.org/blog</uri>
    </author>
    <title type="html"><![CDATA[First Steps with Clojure]]></title>
    <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vkurup/~3/pMc3FfMwT6M/first-steps-with-clojure" />
    <id>http://www.kurup.org/blog/2010/07/18/first-steps-with-clojure</id>
    <updated>2010-07-18T16:29:00Z</updated>
    <published>2010-07-18T16:29:00Z</published>
    <category scheme="http://www.kurup.org/blog" term="clojure" />
    <category scheme="http://www.kurup.org/blog" term="programming" />
    <summary type="html"><![CDATA[First Steps with Clojure]]></summary>
    <content type="html" xml:base="http://www.kurup.org/blog/2010/07/18/first-steps-with-clojure">&lt;p&gt;As mentioned yesterday, I'm teaching myself clojure. I started by trying to
   install it. 
&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;vinod@ike$ aptitude install clojure
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Ubuntu has packaged version 1.0.0 of clojure. I always default to the
   OS-installed version of programs, just for ease of maintenance. The current
   stable version of clojure is 1.1 and it appears that 1.2 is in beta. I have
   no idea what has been changed in 1.1 or 1.2, but I'm going to try to get
   along using 1.0.0 and update only if I need to for a specific reason.
&lt;/p&gt;
&lt;p&gt;I then read through the
   &lt;a href="http://www.moxleystratton.com/article/clojure/for-non-lisp-programmers"&gt;tutorial for non-lisp programmers&lt;/a&gt;,
   which succinctly describes the basics of the language.&lt;sup id="fnr1-555916670"&gt;&lt;a href="#fn1-555916670"&gt;1&lt;/a&gt;&lt;/sup&gt; Everything in
   lisp is either an atom or a list. Atoms include numbers, booleans, strings,
   symbols, keywords and the nil value. Lists (delimited by parentheses &lt;code&gt;()&lt;/code&gt;)
   are the basic data structure, but include representations such as vectors
   (delimited by square brackets &lt;code&gt;[]&lt;/code&gt;) and maps (delimited by curly brackets
   &lt;code&gt;{}&lt;/code&gt;). Clojure programs are themselves simply lists, which leads to the
   power of lisp-like languages because code and data are interchangeable.
&lt;/p&gt;
&lt;p&gt;You use &lt;code&gt;def&lt;/code&gt; to create variables and &lt;code&gt;defn&lt;/code&gt; to create functions. The
   language includes loops and conditional statements, just like any other
   useful language. Only &lt;code&gt;false&lt;/code&gt; and &lt;code&gt;nil&lt;/code&gt; are &lt;em&gt;false&lt;/em&gt; in clojure; zero (0),
   and the empty string ("") are &lt;em&gt;true&lt;/em&gt;, unlike a lot of languages. 
&lt;/p&gt;
&lt;p&gt;The interesting part is the integration with Java. To instantiate a java
   object, simply call &lt;code&gt;new&lt;/code&gt;:
&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;user=&amp;gt; (new java.util.Date)
#&amp;lt;Date Sun Jul 18 16:20:54 EDT 2010&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To call object methods or get instance/class variables, use the dot "."
   method.
&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;user=&amp;gt; (. (new java.util.Date) (toString))
"Sun Jul 18 16:24:09 EDT 2010"

user=&amp;gt; (. Integer MAX_VALUE)
2147483647
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The article contains this interesting quote:
&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Sequences are in a sense, the core of idiomatic Clojure
   programming. Understand sequences and the forms that work with them, and
   you will have cleared one of the biggest hurdles in writing significant
   Clojure programs.
&lt;/p&gt;
&lt;/blockquote&gt;&lt;p&gt;So, add that to my to-do list. Where to go next? A
   &lt;a href="http://stackoverflow.com/questions/599519/which-tutorial-on-clojure-is-best"&gt;StackOverflow thread&lt;/a&gt;
   has pointed to me to a few options. I'll probably read one of these next:
&lt;/p&gt;
&lt;ul&gt;
 &lt;li&gt;
     &lt;a href="http://en.wikibooks.org/wiki/Learning_Clojure"&gt;http://en.wikibooks.org/wiki/Learning_Clojure&lt;/a&gt;
 &lt;/li&gt;

 &lt;li&gt;
     &lt;a href="http://github.com/relevance/labrepl"&gt;http://github.com/relevance/labrepl&lt;/a&gt;
 &lt;/li&gt;

 &lt;li&gt;
     &lt;a href="http://java.ociweb.com/mark/clojure/article.html"&gt;http://java.ociweb.com/mark/clojure/article.html&lt;/a&gt;
 &lt;/li&gt;
&lt;/ul&gt;

&lt;div class="footnote"&gt;&lt;hr/&gt;&lt;ol&gt;
 &lt;li id="fn1-555916670"&gt;&lt;p&gt;I later read that this tutorial is out of date, so I may have to "unlearn" things later. It still comes up as the first hit on &lt;a href="http://www.google.com/search?q=clojure+tutorial"&gt;Google for "clojure tutorial"&lt;/a&gt;&lt;a href="#fnr1-555916670" class="footnoteBackLink" title="Jump back to footnote 1 in the text"&gt;&amp;#8617;&lt;/a&gt;
&lt;/p&gt;

 &lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/vkurup?a=pMc3FfMwT6M:oyru1Zxji3Q:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/vkurup?i=pMc3FfMwT6M:oyru1Zxji3Q:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/vkurup?a=pMc3FfMwT6M:oyru1Zxji3Q:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/vkurup?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/vkurup?a=pMc3FfMwT6M:oyru1Zxji3Q:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/vkurup?i=pMc3FfMwT6M:oyru1Zxji3Q:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/vkurup/~4/pMc3FfMwT6M" height="1" width="1"/&gt;</content>
  <feedburner:origLink>http://www.kurup.org/blog/2010/07/18/first-steps-with-clojure</feedburner:origLink></entry>
  <entry>
    <author>
      <name />
      <uri>http://www.kurup.org/blog</uri>
    </author>
    <title type="html"><![CDATA[Getting some clojure]]></title>
    <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/vkurup/~3/X43JAsrZVo0/getting-some-clojure" />
    <id>http://www.kurup.org/blog/2010/07/17/getting-some-clojure</id>
    <updated>2010-07-17T19:55:00Z</updated>
    <published>2010-07-17T19:55:00Z</published>
    <category scheme="http://www.kurup.org/blog" term="clojure" />
    <category scheme="http://www.kurup.org/blog" term="programming" />
    <summary type="html"><![CDATA[Getting some clojure]]></summary>
    <content type="html" xml:base="http://www.kurup.org/blog/2010/07/17/getting-some-clojure">&lt;p&gt;Steve Yegge is one of my favorite bloggers. I read &lt;a href="http://sites.google.com/site/steveyegge2/you-should-write-blogs"&gt;"You Should Write
Blogs"&lt;/a&gt; a
   long time ago and it is one of the main reasons that I still try to keep
   this blog going at all. He recently took a blogging hiatus and in his
   &lt;a href="http://steve-yegge.blogspot.com/2010/07/blogger-finger.html"&gt;return post&lt;/a&gt;,
   he left a little hint that he was interested in a programming language
   called &lt;a href="http://clojure.org"&gt;clojure&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;My programming skills have been rusting away (Darn those patients, always
   getting sick and stuff!), so I've been looking for a little
   inspiration. I'm hoping that clojure is it. I've always wanted to learn
   lisp. I know a little elisp and scheme, but I've never gotten comfortable
   with them. Clojure compiles code that runs on a JVM (java virtual
   machine). This gives you a lot of the "power" of java, namely the extensive
   libraries and the widespread platforms on which it will run. But instead of
   having to write java, you get to write in a dynamic, lisp-like language. At
   least that's how I understand it.
&lt;/p&gt;
&lt;p&gt;Specifically, I hope that I'll eventually be able to create applications
   that run on android phones, which is a java environment. Smartphones are
   clearly going to be a huge part of the future, if not &lt;strong&gt;the way&lt;/strong&gt; of the
   future. I don't see myself ever buying an iPhone and Mala already has a
   Droid Eris that I'd be able to play with if I needed. (Didn't tell you
   that, did I Mala?) So... Android it is.
&lt;/p&gt;
&lt;p&gt;Starting today, I'm going to start reading about clojure and taking notes
   (and maybe even posting them!). I've never been very good about taking
   notes, ever in my life. But, I clearly &lt;a href="http://sachachua.com/blog/2010/03/how-to-brain-dump-what-you-know/"&gt;need to learn&lt;/a&gt;.
&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/vkurup?a=X43JAsrZVo0:qCu8KYLjMHM:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/vkurup?i=X43JAsrZVo0:qCu8KYLjMHM:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/vkurup?a=X43JAsrZVo0:qCu8KYLjMHM:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/vkurup?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/vkurup?a=X43JAsrZVo0:qCu8KYLjMHM:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/vkurup?i=X43JAsrZVo0:qCu8KYLjMHM:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/vkurup/~4/X43JAsrZVo0" height="1" width="1"/&gt;</content>
  <feedburner:origLink>http://www.kurup.org/blog/2010/07/17/getting-some-clojure</feedburner:origLink></entry>
</feed>
