<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0"><channel><title>ckunte.net log</title><link>http://ckunte.net/log/rss.xml</link><description>ckunte.net log</description><lastBuildDate>Sat, 18 May 2013 20:41:11 GMT</lastBuildDate><generator>PyRSS2Gen-1.0.0</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Static
</title><link>http://ckunte.net/log/2013/static</link><description>&lt;p&gt;It has been a year since I started using a simple &lt;a href="https://github.com/ckunte/chisel"&gt;python script&lt;/a&gt;, to produce this log, instead of a content management system. From code brevity to clear separation of content (markdown) from presentation (HTML), simplicity does indeed look like it&amp;rsquo;s an ultimate sophistication, all without the hassles of security or data fidelity. Plus, with backup being part of the workflow of content generation, it no longer feels like a chore, since everything is generated locally first before being pushed to github &amp;mdash; to serve as a website.&lt;/p&gt;
&lt;p&gt;Around this time last year, when this log was still powered by Tumblr, Tumblr offered a backup tool. That it&amp;rsquo;s now no longer available (or the one in wild no longer functional) because of a switched API is sobering to realize, and that &lt;a href="/log/2012/chisel"&gt;my switch&lt;/a&gt; was timely.&lt;/p&gt;
&lt;p&gt;With prominent tools, notably WordPress, turning from being unicellular organisms of yore into multi-headed hydras today, it isn&amp;rsquo;t surprising to see many people switching to simpler static generators, notably &lt;a href="http://jekyllrb.com"&gt;Jekyll&lt;/a&gt;, &lt;a href="http://octopress.org"&gt;Octopress&lt;/a&gt;, and &lt;a href="http://getpelican.com"&gt;Pelican&lt;/a&gt;, just as I have switched to &lt;a href="https://github.com/ckunte/chisel"&gt;chisel&lt;/a&gt;.&lt;/p&gt;</description><author>Chyetanya Kunte</author><guid isPermaLink="true">http://ckunte.net/log/2013/static</guid><pubDate>Tue, 14 May 2013 00:00:00 GMT</pubDate></item><item><title>CH4
</title><link>http://ckunte.net/log/2013/ch4</link><description>&lt;p&gt;I read Charles Mann&amp;rsquo;s &lt;a href="http://www.theatlantic.com/magazine/archive/2013/05/what-if-we-never-run-out-of-oil/309294/?single_page=true" title="What If We Never Run Out of Oil?"&gt;article&lt;/a&gt; in &lt;em&gt;The Atlantic&lt;/em&gt; a couple of days ago. It&amp;rsquo;s an interesting take, and one of the balanced I&amp;rsquo;ve read to-date I think. The &amp;ldquo;little-known energy source&amp;rdquo; he discusses is Methane [&lt;a href="http://www.netl.doe.gov/technologies/oil-gas/publications/Hydrates/2011Reports/MH_Primer2011.pdf"&gt;pdf&lt;/a&gt;], which while is highly attractive as fuel, it is quite a pain to transport. As Marianne Lavelle illustrates in her &lt;em&gt;National Geographic&lt;/em&gt; article, &lt;a href="http://ngm.nationalgeographic.com/2012/12/methane/lavelle-text" title="Methane: Good Gas, Bad Gas."&gt;Good Gas, Bad Gas&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Worldwide, hydrates may contain more energy than all other fossil fuels combined. They&amp;rsquo;re usually snow-white and look like ice, but they&amp;rsquo;re strange stuff, and extracting the methane is tricky. Each molecule is trapped in a cage of water molecules that&amp;rsquo;s stable only at high pressure and low temperatures; change either just a bit, and the cage crumbles. The escaping methane balloons in volume by a factor of 164.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;One does not have to look beyond its phase diagram to see the extent of its instability, which is why historically it has been harder to get, aside from the other big problem: its &lt;a href="http://epa.gov/climatechange/ghgemissions/gases/ch4.html" title="Methane emissions."&gt;high global warming potential&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;In Mann&amp;rsquo;s article, the perception of reserves from a finite entity to an economic entity is addressed reasonably, and this is how I understand the industry works as well:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;To McKelveyan social scientists, such stories demonstrate that oil reserves should not be thought of as physical entities. Rather, they are economic judgments: how much petroleum experts believe can be harvested from given areas at an affordable price. Even as companies drain off the easy oil, innovation keeps pushing down the cost of getting the rest. From this vantage, the race between declining oil and advancing technology determines the size of a reserve &amp;mdash; not the number of hydrocarbon molecules in the ground.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;There will still be a physical threshold, of course. It&amp;rsquo;s just that we do not know which comes first: the physical or the technological. With unclear understanding of the former, the latter has the tendency to show that it is a matter of time.&lt;sup id="fnref:1"&gt;&lt;a class="footnote-ref" href="#fn:1" rel="footnote"&gt;1&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;p&gt;But harnessing a vast, unstable energy source without hurting the planet requires frontier technology. That&amp;rsquo;s the burden of responsibility for everyone in the energy business, as well as an opportunity to feed the ever growing world energy demand. Driven by its domestic demand, Japan has already &lt;a href="http://www.jogmec.go.jp/english/news/release/release0110.html" title="Gas Production from Methane Hydrate Layers Confirmed."&gt;made the move&lt;/a&gt;. I would assume that it&amp;rsquo;s only a matter of technology and time before others will follow.&lt;/p&gt;
&lt;div class="footnote"&gt;
&lt;hr /&gt;
&lt;ol&gt;
&lt;li id="fn:1"&gt;
&lt;p&gt;I also think energy sources should never be from potable water, vegetables, or other human consumables, because then the need to produce energy from such would directly conflict with food production. Such a prospect would be a nightmare.&amp;nbsp;&lt;a class="footnote-backref" href="#fnref:1" rev="footnote" 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;</description><author>Chyetanya Kunte</author><guid isPermaLink="true">http://ckunte.net/log/2013/ch4</guid><pubDate>Sun, 28 Apr 2013 00:00:00 GMT</pubDate></item><item><title>Automatic image link
</title><link>http://ckunte.net/log/2013/autoimagelink</link><description>&lt;p&gt;Typically, all images I (plan to) embed are stored in a folder called &lt;code&gt;images&lt;/code&gt;, and I use &lt;a href="http://daringfireball.net/projects/markdown/"&gt;Markdown syntax&lt;/a&gt; to add a relative URL into the post I write or edit. &lt;/p&gt;
&lt;p&gt;In the past, I&amp;rsquo;d look up an image to embed, say, &lt;code&gt;filename.jpg&lt;/code&gt; in the Finder, and then type the following in TextMate &amp;mdash; my text editor. While this was fairly straightforward, typing a filename at times felt like a chore, i.e., a good case for automation.&lt;/p&gt;
&lt;p&gt;&lt;img alt="" src="/log/images/imgfile.png" /&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;rsquo;s the workflow:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;I open &lt;code&gt;images&lt;/code&gt; folder in Finder, and select an image of choice. (Left window.)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Then in TextMate, I type &lt;code&gt;;img&lt;/code&gt; at line I am looking to embed an image in the post, and Markdown-formatted image link for the selected image appears. (Right window.)&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Obviously, I am using a couple of &lt;a href="http://smilesoftware.com/TextExpander/"&gt;TextExpander&lt;/a&gt; snippets to get the desired outcome. Here&amp;rsquo;s how it works:&lt;/p&gt;
&lt;p&gt;First snippet (named &lt;code&gt;imgfn&lt;/code&gt;), an &lt;a href="http://en.wikipedia.org/wiki/AppleScript"&gt;Applescript&lt;/a&gt; variety, gets the filename of the selected file from Finder, which is as follows:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;-- Get filename of the file selected in Finder
-- by ckunte
tell application "Finder"
    set theItems to selection
    set fileName to name of item 1 of theItems
end tell
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The second snippet (a plain text variety, named &lt;code&gt;;img&lt;/code&gt;) pulls the filename of the selected image file in Finder, formats it in Markdown and prints it in the text editor. The second snippet looks like below:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;![](/log/images/%snippet:imgfn%)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;While doing this, positioning windows side by side for better visibility, as seen above, works for me.&lt;/p&gt;</description><author>Chyetanya Kunte</author><guid isPermaLink="true">http://ckunte.net/log/2013/autoimagelink</guid><pubDate>Thu, 25 Apr 2013 00:00:00 GMT</pubDate></item></channel></rss>