<?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>almostFlan</title>
	<atom:link href="http://almostflan.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://almostflan.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Fri, 18 May 2012 20:34:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>How to change color scheme in iPython 0.12</title>
		<link>http://almostflan.com/2012/05/18/how-to-change-color-scheme-in-ipython-0-12/</link>
		<comments>http://almostflan.com/2012/05/18/how-to-change-color-scheme-in-ipython-0-12/#comments</comments>
		<pubDate>Fri, 18 May 2012 20:34:19 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[ipython]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://almostflan.com/?p=270</guid>
		<description><![CDATA[Took me awhile to find this in their documentation so I&#8217;m adding to search engine indecies. I wanted to change the color in iPython since it was a bit dark for me. The doc that shows you how to do this is here. The moral is, run ipython profile create and it&#8217;ll tell you where [...]]]></description>
			<content:encoded><![CDATA[<p>Took me awhile to find this in their documentation so I&#8217;m adding to search engine indecies.  I wanted to change the color in iPython since it was a bit dark for me.  The doc that shows you how to do this is <a href="http://ipython.org/ipython-doc/dev/config/overview.html#profiles">here</a>.  The moral is, run </p>
<p>ipython profile create</p>
<p>and it&#8217;ll tell you where it created ipython_config.py.  Go in there, search for color and you get 3 options.  That&#8217;s pretty much it.</p>
]]></content:encoded>
			<wfw:commentRss>http://almostflan.com/2012/05/18/how-to-change-color-scheme-in-ipython-0-12/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Printout Kifu</title>
		<link>http://almostflan.com/2012/05/06/printout-kifu/</link>
		<comments>http://almostflan.com/2012/05/06/printout-kifu/#comments</comments>
		<pubDate>Mon, 07 May 2012 07:21:24 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[Go]]></category>
		<category><![CDATA[game record]]></category>
		<category><![CDATA[kifu]]></category>

		<guid isPermaLink="false">http://almostflan.com/?p=260</guid>
		<description><![CDATA[I run an after school go program at Evergreen School. I needed some blank kifu to record games and the ones available at the Seattle Go Center tended to be the ones where you write in the boxes instead of on the intersections, so I made my own. Feel free to use them as well. [...]]]></description>
			<content:encoded><![CDATA[<p>I run an after school go program at <a href="http://www.evergreenschool.org/" title="Evergreen School">Evergreen School</a>.  I needed some blank kifu to record games and the ones available at the <a href="http://www.seattlegocenter.org/">Seattle Go Center</a> tended to be the ones where you write in the boxes instead of on the intersections, so I made my own.  Feel free to use them as well.</p>
<p>
<a href='http://almostflan.com/wp-content/uploads/2012/05/goboard9x9.pdf'>9&#215;9</a><br />
<a href='http://almostflan.com/wp-content/uploads/2012/05/goboard13x13.pdf'>13&#215;13</a><br />
<a href='http://almostflan.com/wp-content/uploads/2012/05/goboard19x19.pdf'>19&#215;19</a></p>
]]></content:encoded>
			<wfw:commentRss>http://almostflan.com/2012/05/06/printout-kifu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Konami Code Plugin for JQuery</title>
		<link>http://almostflan.com/2012/04/16/konami-code-plugin-for-jquery/</link>
		<comments>http://almostflan.com/2012/04/16/konami-code-plugin-for-jquery/#comments</comments>
		<pubDate>Mon, 16 Apr 2012 22:39:08 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[konami]]></category>

		<guid isPermaLink="false">http://almostflan.com/?p=254</guid>
		<description><![CDATA[So the Konami Code is implemented on many websites. The latest I&#8217;ve seen is this French presidential candidate (I don&#8217;t know his politics but I&#8217;d vote for him). Anyway, I was sure that there already existed a JQuery plugin that did this, but I wrote my own anyway (it probably didn&#8217;t have to be a [...]]]></description>
			<content:encoded><![CDATA[<p>So the <a href="https://en.wikipedia.org/wiki/Konami_Code">Konami Code</a> is implemented on many websites.  The latest I&#8217;ve seen is <a href="http://www.bayrou.fr/">this French presidential candidate</a> (I don&#8217;t know his politics but I&#8217;d vote for him).  Anyway, I was sure that there already existed a JQuery plugin that did this, but I <a href="https://github.com/fathwad/konami">wrote my own anyway</a> (it probably didn&#8217;t have to be a jquery plugin).</p>
<p>For reference, this is how JQuery does it.  A bit cleaner than my version, I guess.</p>
<div id="gist-2402064" class="gist">

        <div class="gist-file">
          <div class="gist-data gist-syntax">
              <div class="highlight"><pre><div class='line' id='LC1'><span class="c1">// Hehe.</span></div><div class='line' id='LC2'><span class="k">if</span> <span class="p">(</span> <span class="nb">window</span><span class="p">.</span><span class="nx">addEventListener</span> <span class="p">)</span> <span class="p">{</span></div><div class='line' id='LC3'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="kd">var</span> <span class="nx">kkeys</span> <span class="o">=</span> <span class="p">[],</span> <span class="nx">konami</span> <span class="o">=</span> <span class="s2">&quot;38,38,40,40,37,39,37,39,66,65&quot;</span><span class="p">;</span></div><div class='line' id='LC4'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="nb">window</span><span class="p">.</span><span class="nx">addEventListener</span><span class="p">(</span><span class="s2">&quot;keydown&quot;</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">e</span><span class="p">){</span></div><div class='line' id='LC5'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="nx">kkeys</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span> <span class="nx">e</span><span class="p">.</span><span class="nx">keyCode</span> <span class="p">);</span></div><div class='line' id='LC6'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="k">if</span> <span class="p">(</span> <span class="nx">kkeys</span><span class="p">.</span><span class="nx">toString</span><span class="p">().</span><span class="nx">indexOf</span><span class="p">(</span> <span class="nx">konami</span> <span class="p">)</span> <span class="o">&gt;=</span> <span class="mi">0</span> <span class="p">)</span></div><div class='line' id='LC7'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="nb">window</span><span class="p">.</span><span class="nx">location</span> <span class="o">=</span> <span class="s2">&quot;http://ejohn.org/apps/hero/&quot;</span><span class="p">;</span></div><div class='line' id='LC8'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="p">},</span> <span class="kc">true</span><span class="p">);</span></div><div class='line' id='LC9'><span class="p">}</span></div></pre></div>
          </div>

          <div class="gist-meta">
            <a href="https://gist.github.com/raw/2402064/4bc66ea4904b588144b9e311e3bb8023155b9add/custom.js" style="float:right;">view raw</a>
            <a href="https://gist.github.com/2402064#file_custom.js" style="float:right;margin-right:10px;color:#666">custom.js</a>
            <a href="https://gist.github.com/2402064">This Gist</a> brought to you by <a href="http://github.com">GitHub</a>.
          </div>
        </div>
</div>

<p>And their <a href="http://static.jquery.com/files/rocker/scripts/custom.js">include</a>.</p>
<p>I&#8217;ll implement something here once I can come up with something creative (so give it half a decade).</p>
]]></content:encoded>
			<wfw:commentRss>http://almostflan.com/2012/04/16/konami-code-plugin-for-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Uberman is Hard &#8211; How About Everyman?</title>
		<link>http://almostflan.com/2012/03/19/uberman-is-hard-how-about-everyman/</link>
		<comments>http://almostflan.com/2012/03/19/uberman-is-hard-how-about-everyman/#comments</comments>
		<pubDate>Tue, 20 Mar 2012 04:41:11 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[Polyphasic Sleep]]></category>
		<category><![CDATA[everyman]]></category>
		<category><![CDATA[uberman]]></category>

		<guid isPermaLink="false">http://almostflan.com/?p=245</guid>
		<description><![CDATA[So I missed my last nap by a fair enough margin to throw myself off pretty bad. I&#8217;m now several hours off schedule. In truth, I don&#8217;t think I was even at the hardest part. I&#8217;m going to shift to what&#8217;s called the &#8220;Everyman&#8221; cycle. This will be a modified version which is hopefully easier [...]]]></description>
			<content:encoded><![CDATA[<p>So I missed my last nap by a fair enough margin to throw myself off pretty bad.  I&#8217;m now several hours off schedule.  In truth, I don&#8217;t think I was even at the hardest part.  I&#8217;m going to shift to what&#8217;s called the &#8220;Everyman&#8221; cycle.  This will be a modified version which is hopefully easier to get into.  The schedule goes something like this:</p>
<ul>
<li>4 hours of sleep (probably around 4am &#8211; 8am)</li>
<li>20 minute naps every 5 hours or so resulting in 1 hour of naps throughout the day (once just before lunch, again in the afternoon, once more before midnight)</li>
<li>5 hours total sleep for a 24 hour period</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://almostflan.com/2012/03/19/uberman-is-hard-how-about-everyman/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Uberman #1-6</title>
		<link>http://almostflan.com/2012/03/19/uberman-1-6/</link>
		<comments>http://almostflan.com/2012/03/19/uberman-1-6/#comments</comments>
		<pubDate>Tue, 20 Mar 2012 04:31:35 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[Polyphasic Sleep]]></category>
		<category><![CDATA[uberman]]></category>

		<guid isPermaLink="false">http://almostflan.com/?p=235</guid>
		<description><![CDATA[#1 (2pm-6pm): Getting any sleep at all was difficult. I feel like I almost fell asleep when the alarm went off. Had water and quesadilla. #2 (6pm-10pm): Getting to sleep was difficult again. Had spring roll and orange slice. #3 (10pm-2am): Felt pretty tired, I think I missed the mark Ended up waking at around [...]]]></description>
			<content:encoded><![CDATA[<p>#1 (2pm-6pm): Getting any sleep at all was difficult.  I feel like I almost fell asleep when the alarm went off.  Had water and quesadilla.</p>
<p>#2 (6pm-10pm): Getting to sleep was difficult again.  Had spring roll and orange slice.</p>
<p>#3 (10pm-2am): Felt pretty tired, I think I missed the mark <img src='http://almostflan.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />   Ended up waking at around midnight instead of 10:30pm.</p>
<p>#4 (2am-6am): Pretty tough so far.  One observation is that overcoming the &#8220;NYEH 5 MORE MINUTES&#8221; feeling to get out of bed is one of the harder parts.  The transitions tend to be pretty tough.  It will probably help if the heater is on so that the temperature outside the sheets is similar to under the sheets.  Then, it&#8217;s the matter of actually getting sleep.  I haven&#8217;t yet had a nap where I&#8217;ve actually woken up feeling a bit better except for the one where I overslept.  Often I find myself struggling to clear my mind so I can sleep, but when I finally do, the alarm goes off.  I suspect this will get easier as I get more tired.  The hard part will probably be waking from it.</p>
<p>#5 (6am-10am): Finally got sleep.  Getting up was really hard.  I expect it to get harder.  Showers seem to work well for filling time.  I look forward to the next one&#8230;</p>
<p>#6 (10am-2pm): Missed another by a few hours.  Tired.</p>
]]></content:encoded>
			<wfw:commentRss>http://almostflan.com/2012/03/19/uberman-1-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Uberman Begins</title>
		<link>http://almostflan.com/2012/03/18/uberman-begins/</link>
		<comments>http://almostflan.com/2012/03/18/uberman-begins/#comments</comments>
		<pubDate>Sun, 18 Mar 2012 21:02:20 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[Polyphasic Sleep]]></category>
		<category><![CDATA[polyphasic sleep]]></category>
		<category><![CDATA[uberman]]></category>

		<guid isPermaLink="false">http://almostflan.com/?p=231</guid>
		<description><![CDATA[So I started Uberman today at 10am. It&#8217;s 1:50pm (almost time for my first 25 minute nap) and really there&#8217;s nothing to write about how I feel since it&#8217;s really just normal so far (obviously). I did, however, want to get some things down in writing before starting as my goals for this first phase. [...]]]></description>
			<content:encoded><![CDATA[<p>So I started <a href="http://almostflan.com/2012/02/22/polyphasic-sleep-experiment/" title="Polyphasic Sleep Experiment">Uberman</a> today at 10am.  It&#8217;s 1:50pm (almost time for my first 25 minute nap) and really there&#8217;s nothing to write about how I feel since it&#8217;s really just normal so far (obviously).  I did, however, want to get some things down in writing before starting as my goals for this first phase.</p>
<ul>
<li>Be punctual</li>
<li>Eat something right after waking up</li>
<li>Drink a cup of water right after waking up</li>
<li>Nothing strenuous for the first 60 hours at least</li>
<li>Write an entry (short or long) after waking (this current phase will be #0)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://almostflan.com/2012/03/18/uberman-begins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Crimp Chimp Squirrel Equation</title>
		<link>http://almostflan.com/2012/03/12/crimp-chimp-squirrel-equation/</link>
		<comments>http://almostflan.com/2012/03/12/crimp-chimp-squirrel-equation/#comments</comments>
		<pubDate>Tue, 13 Mar 2012 00:27:23 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[Rock Climbing]]></category>
		<category><![CDATA[awesome]]></category>
		<category><![CDATA[chalk bag]]></category>
		<category><![CDATA[crimp chimps]]></category>
		<category><![CDATA[squirrel]]></category>

		<guid isPermaLink="false">http://almostflan.com/?p=186</guid>
		<description><![CDATA[So a squirrel came in the mail today. Combined with the awesome powers of Crimp Chimps, it became a squirrel bag. + = And now the obligatory introductory gallery. (action/location shots to come)]]></description>
			<content:encoded><![CDATA[<p>So a squirrel came in the mail today.  Combined with the awesome powers of <a href="http://crimpchimps.com/">Crimp Chimps</a>, it became a squirrel bag.</p>
<p class="ctr" style="display: table; margin: auto"><a href="http://almostflan.com/wp-content/uploads/2012/03/IMG_1251.jpg" class="fancybox"><img src="http://almostflan.com/wp-content/uploads/2012/03/IMG_1251-150x150.jpg" alt="" title="IMG_1251" width="150" height="150" class="alignnone size-thumbnail wp-image-189" /></a> <span style="display: table-cell; vertical-align: middle; padding: 5px"><strong>+</strong></span> <a href="http://almostflan.com/wp-content/uploads/2012/03/IMG_1258.jpg" class="fancybox"><img src="http://almostflan.com/wp-content/uploads/2012/03/IMG_1258-150x150.jpg" alt="" title="IMG_1258" width="150" height="150" class="alignnone size-thumbnail wp-image-191" /></a> <span style="display: table-cell; vertical-align: middle; padding: 5px"><strong>=</strong></span> <a href="http://almostflan.com/wp-content/uploads/2012/03/IMG_1257.jpg" class="fancybox"><img src="http://almostflan.com/wp-content/uploads/2012/03/IMG_1257-150x150.jpg" alt="" title="IMG_1257" width="150" height="150" class="alignnone size-thumbnail wp-image-190" /></a></p>
<p><br/></p>
<p>And now the obligatory introductory gallery.  (action/location shots to come)</p>

<a href='http://almostflan.com/2012/03/12/crimp-chimp-squirrel-equation/img_1268/' title='IMG_1268'><img width="150" height="150" src="http://almostflan.com/wp-content/uploads/2012/03/IMG_1268-150x150.jpg" class="attachment-thumbnail" alt="IMG_1268" title="IMG_1268" /></a>
<a href='http://almostflan.com/2012/03/12/crimp-chimp-squirrel-equation/img_1262/' title='IMG_1262'><img width="150" height="150" src="http://almostflan.com/wp-content/uploads/2012/03/IMG_1262-150x150.jpg" class="attachment-thumbnail" alt="IMG_1262" title="IMG_1262" /></a>
<a href='http://almostflan.com/2012/03/12/crimp-chimp-squirrel-equation/img_1260/' title='IMG_1260'><img width="150" height="150" src="http://almostflan.com/wp-content/uploads/2012/03/IMG_1260-150x150.jpg" class="attachment-thumbnail" alt="IMG_1260" title="IMG_1260" /></a>
<a href='http://almostflan.com/2012/03/12/crimp-chimp-squirrel-equation/img_1259/' title='IMG_1259'><img width="150" height="150" src="http://almostflan.com/wp-content/uploads/2012/03/IMG_1259-150x150.jpg" class="attachment-thumbnail" alt="IMG_1259" title="IMG_1259" /></a>
<a href='http://almostflan.com/2012/03/12/crimp-chimp-squirrel-equation/img_1249/' title='IMG_1249'><img width="150" height="150" src="http://almostflan.com/wp-content/uploads/2012/03/IMG_1249-150x150.jpg" class="attachment-thumbnail" alt="IMG_1249" title="IMG_1249" /></a>
<a href='http://almostflan.com/2012/03/12/crimp-chimp-squirrel-equation/img_1248/' title='IMG_1248'><img width="150" height="150" src="http://almostflan.com/wp-content/uploads/2012/03/IMG_1248-150x150.jpg" class="attachment-thumbnail" alt="IMG_1248" title="IMG_1248" /></a>
<a href='http://almostflan.com/2012/03/12/crimp-chimp-squirrel-equation/img_1263/' title='IMG_1263'><img width="150" height="150" src="http://almostflan.com/wp-content/uploads/2012/03/IMG_1263-150x150.jpg" class="attachment-thumbnail" alt="IMG_1263" title="IMG_1263" /></a>
<a href='http://almostflan.com/2012/03/12/crimp-chimp-squirrel-equation/img_1265/' title='IMG_1265'><img width="150" height="150" src="http://almostflan.com/wp-content/uploads/2012/03/IMG_1265-150x150.jpg" class="attachment-thumbnail" alt="IMG_1265" title="IMG_1265" /></a>
<a href='http://almostflan.com/2012/03/12/crimp-chimp-squirrel-equation/img_1266/' title='IMG_1266'><img width="150" height="150" src="http://almostflan.com/wp-content/uploads/2012/03/IMG_1266-150x150.jpg" class="attachment-thumbnail" alt="IMG_1266" title="IMG_1266" /></a>

]]></content:encoded>
			<wfw:commentRss>http://almostflan.com/2012/03/12/crimp-chimp-squirrel-equation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Turning off autocommit in jaydebeapi</title>
		<link>http://almostflan.com/2012/03/01/turning-off-autocommit-in-jaydebeapi/</link>
		<comments>http://almostflan.com/2012/03/01/turning-off-autocommit-in-jaydebeapi/#comments</comments>
		<pubDate>Thu, 01 Mar 2012 23:12:15 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[autocommit]]></category>
		<category><![CDATA[derby]]></category>
		<category><![CDATA[embedclob]]></category>
		<category><![CDATA[jaydebeapi]]></category>
		<category><![CDATA[jdbc]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://almostflan.com/?p=181</guid>
		<description><![CDATA[I was doing some work in python, connecting to a derby database using the JDBC connector. My dataset had some Clobs which spit out the error: java.sql.SQLException: You cannot invoke other java.sql.Clob/java.sql.Blob methods after calling the free() method or after the Blob/Clob's transaction has been committed or rolled back. After some research, it turns out [...]]]></description>
			<content:encoded><![CDATA[<p>I was doing some work in python, connecting to a <a href="http://db.apache.org/derby/">derby</a> database using the JDBC connector.  My dataset had some Clobs which spit out the error: </p>
<p><code>java.sql.SQLException: You cannot invoke other java.sql.Clob/java.sql.Blob methods after calling the free() method or after the Blob/Clob's transaction has been committed or rolled back.</code></p>
<p>After some research, it turns out JDBC specifies that autocommit should be defaulted to on.  This was causing the transaction to be committed immediately after execution so that my clob was freed and I couldn&#8217;t inspect it.  <a href="http://pypi.python.org/pypi/JayDeBeApi/">JayDeBeApi</a> follows the <a href="http://www.python.org/dev/peps/pep-0249/">DBAPI2</a> specification which doesn&#8217;t have a native way to turn off autocommit.  So I had to turn it off through the java connection object like this:</p>
<div id="gist-1953804" class="gist">

        <div class="gist-file">
          <div class="gist-data gist-syntax">
              <div class="highlight"><pre><div class='line' id='LC1'><span class="n">conn</span> <span class="o">=</span> <span class="n">jaydebeapi</span><span class="o">.</span><span class="n">connect</span><span class="p">(</span><span class="s">&#39;org.apache.derby.jdbc.EmbeddedDriver&#39;</span><span class="p">,</span><span class="n">derbydb</span><span class="p">)</span></div><div class='line' id='LC2'><span class="n">conn</span><span class="o">.</span><span class="n">jconn</span><span class="o">.</span><span class="n">setAutoCommit</span><span class="p">(</span><span class="bp">False</span><span class="p">)</span></div><div class='line' id='LC3'><br/></div></pre></div>
          </div>

          <div class="gist-meta">
            <a href="https://gist.github.com/raw/1953804/daf6198e66d7f4bbb81622a91d36c7b96da3749f/autocommit.py" style="float:right;">view raw</a>
            <a href="https://gist.github.com/1953804#file_autocommit.py" style="float:right;margin-right:10px;color:#666">autocommit.py</a>
            <a href="https://gist.github.com/1953804">This Gist</a> brought to you by <a href="http://github.com">GitHub</a>.
          </div>
        </div>
</div>

<p>After that, I was able to access my clobs through the <a href="http://db.apache.org/derby/javadoc/engine/org/apache/derby/impl/jdbc/EmbedClob.html">clob api</a>.</p>
<div id="gist-1953866" class="gist">

        <div class="gist-file">
          <div class="gist-data gist-syntax">
              <div class="highlight"><pre><div class='line' id='LC1'><span class="kn">import</span> <span class="nn">jpype</span><span class="o">,</span> <span class="nn">jaydebeapi</span></div><div class='line' id='LC2'><br/></div><div class='line' id='LC3'><span class="n">jar</span> <span class="o">=</span> <span class="s">&#39;derby-10.7.1.1.jar&#39;</span></div><div class='line' id='LC4'><span class="n">derbydb</span> <span class="o">=</span> <span class="s">&#39;jdbc:derby:my/derby/db&#39;</span></div><div class='line' id='LC5'><br/></div><div class='line' id='LC6'><span class="n">args</span> <span class="o">=</span> <span class="s">&#39;-Djava.class.path=</span><span class="si">%s</span><span class="s">&#39;</span> <span class="o">%</span> <span class="n">jar</span></div><div class='line' id='LC7'><span class="n">jpype</span><span class="o">.</span><span class="n">startJVM</span><span class="p">(</span><span class="n">jpype</span><span class="o">.</span><span class="n">getDefaultJVMPath</span><span class="p">(),</span><span class="n">args</span><span class="p">)</span></div><div class='line' id='LC8'><br/></div><div class='line' id='LC9'><span class="n">conn</span> <span class="o">=</span> <span class="n">jaydebeapi</span><span class="o">.</span><span class="n">connect</span><span class="p">(</span><span class="s">&#39;org.apache.derby.jdbc.EmbeddedDriver&#39;</span><span class="p">,</span><span class="n">derbydb</span><span class="p">)</span></div><div class='line' id='LC10'><span class="n">conn</span><span class="o">.</span><span class="n">jconn</span><span class="o">.</span><span class="n">setAutoCommit</span><span class="p">(</span><span class="bp">False</span><span class="p">)</span></div><div class='line' id='LC11'><br/></div><div class='line' id='LC12'><span class="n">curs</span> <span class="o">=</span> <span class="n">conn</span><span class="o">.</span><span class="n">cursor</span><span class="p">()</span></div><div class='line' id='LC13'><span class="n">curs</span><span class="o">.</span><span class="n">execute</span><span class="p">(</span><span class="s">&#39;SELECT someclobs FROM table&#39;</span><span class="p">)</span></div><div class='line' id='LC14'><br/></div><div class='line' id='LC15'><span class="k">for</span> <span class="n">q</span> <span class="ow">in</span> <span class="n">curs</span><span class="o">.</span><span class="n">fetchall</span><span class="p">():</span></div><div class='line' id='LC16'>	<span class="k">print</span> <span class="n">q</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">getSubString</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="n">q</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">length</span><span class="p">())</span></div><div class='line' id='LC17'><br/></div><div class='line' id='LC18'><span class="n">curs</span><span class="o">.</span><span class="n">close</span><span class="p">()</span></div><div class='line' id='LC19'><span class="n">conn</span><span class="o">.</span><span class="n">close</span><span class="p">()</span></div></pre></div>
          </div>

          <div class="gist-meta">
            <a href="https://gist.github.com/raw/1953866/878a4a5e8d4fbd7968ef4fffa1fc36186a185bd8/clobstring.py" style="float:right;">view raw</a>
            <a href="https://gist.github.com/1953866#file_clobstring.py" style="float:right;margin-right:10px;color:#666">clobstring.py</a>
            <a href="https://gist.github.com/1953866">This Gist</a> brought to you by <a href="http://github.com">GitHub</a>.
          </div>
        </div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://almostflan.com/2012/03/01/turning-off-autocommit-in-jaydebeapi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Polyphasic Sleep Experiment</title>
		<link>http://almostflan.com/2012/02/22/polyphasic-sleep-experiment/</link>
		<comments>http://almostflan.com/2012/02/22/polyphasic-sleep-experiment/#comments</comments>
		<pubDate>Thu, 23 Feb 2012 00:34:02 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[Polyphasic Sleep]]></category>
		<category><![CDATA[everyman]]></category>
		<category><![CDATA[uberman]]></category>

		<guid isPermaLink="false">http://almostflan.com/?p=177</guid>
		<description><![CDATA[I&#8217;m going to have some pretty significant downtime over the next months (starting in March or so) so I&#8217;m going to give polyphasic sleep a shot. The theory is that we, as humans, rely on REM sleep for our bodies to recover. In our normal (monophasic &#8211; 6-8 hours of sleep time per night) cycle, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m going to have some pretty significant downtime over the next months (starting in March or so) so I&#8217;m going to give <a href="http://en.wikipedia.org/wiki/Polyphasic_sleep">polyphasic sleep</a> a shot.  The theory is that we, as humans, rely on <a href="http://en.wikipedia.org/wiki/Rapid_eye_movement_sleep">REM sleep</a> for our bodies to recover.  In our normal (monophasic &#8211; 6-8 hours of sleep time per night) cycle, we get about 90-120 minutes of REM which doesn&#8217;t kick in until several hours of sleep.  I&#8217;m going to be trying an uberman cycle which calls for 6 naps throughout the day at 4 hour intervals lasting around 20-30 minutes each.  The idea is to force the body into REM immediately for the duration of these naps, yielding 2.5-3 hours of total REM sleep.</p>
<p>Anyway, this idea is <a href="http://www.insomnia-connection.com/polyphasic-sleep.html">not new</a> at all as it was apparently used by Thomas Jefferson and Ben Franklin, among others.  The idea isn&#8217;t new on the internet either with a <a href="http://www.stevepavlina.com/blog/2005/10/polyphasic-sleep-log-day-1/">bunch</a> of <a href="http://officialuberman.blogspot.com/">bloggers</a> documenting their experiences.  I&#8217;m doing this really just to see how it&#8217;s like (since I&#8217;ve got a pretty good window of opportunity).  I&#8217;ll document as much of it as I document.</p>
]]></content:encoded>
			<wfw:commentRss>http://almostflan.com/2012/02/22/polyphasic-sleep-experiment/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>My Rogue UI</title>
		<link>http://almostflan.com/2012/01/23/my-rogue-ui/</link>
		<comments>http://almostflan.com/2012/01/23/my-rogue-ui/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 10:26:54 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[WoW]]></category>
		<category><![CDATA[razer naga epic]]></category>
		<category><![CDATA[rogue]]></category>
		<category><![CDATA[ui]]></category>

		<guid isPermaLink="false">http://almostflan.com/?p=161</guid>
		<description><![CDATA[As promised, here is my UI using the Naga Razer Epic. The idea I had incorporating the Naga is pretty simple. Since I&#8217;m new with the mouse, I felt like I needed a guide to what buttons are available to me. Those are the &#8220;N&#8221; buttons on the right side of my action bars. I [...]]]></description>
			<content:encoded><![CDATA[<p>As <a href="http://almostflan.com/2011/12/07/razer-stuff/">promised</a>, here is my UI using the <a href="http://www.amazon.com/gp/product/B004AM5RAM/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&#038;tag=almostflancom-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=B004AM5RAM">Naga Razer Epic</a>.</p>
<p class="ctr"><a href="http://almostflan.com/wp-content/uploads/2012/01/WoWScrnShot_123111_022142.jpg" class="fancybox"><img src="http://almostflan.com/wp-content/uploads/2012/01/WoWScrnShot_123111_022142-300x187.jpg" alt="" title="rogue_ui" width="300" height="187" class="alignnone size-medium wp-image-165" /></a></p>
<p>The idea I had incorporating the Naga is pretty simple.  Since I&#8217;m new with the mouse, I felt like I needed a guide to what buttons are available to me.  Those are the &#8220;N&#8221; buttons on the right side of my action bars.  I configured the keybinds using <a href="http://www.curse.com/addons/wow/bartender4">Bartender4</a> and the main framing is <a href="http://www.wowinterface.com/downloads/info17749-ElvUI.html">ElvUI</a>.  Those are the main ones.  I&#8217;m using mouseover macros with the Naga buttons so I find it pretty convenient in both arenas and battlegrounds.  Here&#8217;s an example of a macro I use:</p>
<div id="gist-1662343" class="gist">

        <div class="gist-file">
          <div class="gist-data gist-syntax">
              <div class="highlight"><pre><div class='line' id='LC1'>/cast [@mouseover,exists] Shadowstep</div><div class='line' id='LC2'>/cast Shadowstep</div></pre></div>
          </div>

          <div class="gist-meta">
            <a href="https://gist.github.com/raw/1662343/652e96fa5e1561b54050e5defdf54f482d7d8eb0/gistfile1.txt" style="float:right;">view raw</a>
            <a href="https://gist.github.com/1662343#file_gistfile1.txt" style="float:right;margin-right:10px;color:#666">gistfile1.txt</a>
            <a href="https://gist.github.com/1662343">This Gist</a> brought to you by <a href="http://github.com">GitHub</a>.
          </div>
        </div>
</div>

<p>In English, you shadowstep the mouseover if it exists, otherwise just shadowstep your current target.</p>
<p>As far as reviewing the Naga is concerned, I&#8217;d say it&#8217;s an excellent mouse for MMOs.  My reaction times are improved significantly after the expected learning curve period.  I&#8217;m still getting faster with it, though I do have trouble using the bottom 6 buttons (7-12) effectively.</p>
]]></content:encoded>
			<wfw:commentRss>http://almostflan.com/2012/01/23/my-rogue-ui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

