<?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>Pieces of Mind</title>
	<atom:link href="http://pieces.openpolitics.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://pieces.openpolitics.com</link>
	<description>Puzzlings on software development and other topics of interest</description>
	<lastBuildDate>Tue, 31 Jan 2012 04:17:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>A better git stash</title>
		<link>http://pieces.openpolitics.com/2012/01/a-better-git-stash/</link>
		<comments>http://pieces.openpolitics.com/2012/01/a-better-git-stash/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 04:17:51 +0000</pubDate>
		<dc:creator>daniel</dc:creator>
				<category><![CDATA[Software Development]]></category>

		<guid isPermaLink="false">http://pieces.openpolitics.com/?p=228</guid>
		<description><![CDATA[Jon of saintsjd recently wrote a piece on improving the git user interface. This got me thinking about one of my git peeves. git stash needs another sub-command. Often I want to stash ALL unstaged changes, including new (not yet added) files. This is almost possible with git stash -k, except it does not stash [...]]]></description>
			<content:encoded><![CDATA[<p>Jon of <a href="http://www.saintsjd.com">saintsjd</a> recently wrote a piece on <a href="http://www.saintsjd.com/2012/01/a-better-ui-for-git/">improving the git user interface</a>. This got me thinking about one of my git peeves.</p>
<p><code>git stash</code> needs another sub-command. Often I want to stash ALL unstaged changes, including new (not yet added) files. This is almost possible with <code>git stash -k</code>, except it does not stash new files, which is very important.</p>
<p>Enter <code>git stash unstaged</code>. So now I&#8217;ve stashed the unstaged changes. That is, I&#8217;ve stashed all the changes I do not want included in the next commit. I can now run my tests as I always do before I commit&#8230; That&#8217;s what you do too, right? Oops, the tests fail because I forgot to add a file, which now happens to be in the stash. At this point I do not know of a way to get my stashed changes back exactly as they were before I stashed them, that is, unstaged. It&#8217;s really bad if there are some files that are partially staged (i.e., only certain hunks were staged), because they will create conflicts if I attempt to apply the stash right now. This should be possible. There should be a way to get things back exactly as they were before I stashed them. The missing command is <code>git stash pop unstaged</code>, which applies all of the changes from the stash and puts them in the unstaged (off-stage? pre-stage?) area, without conflicts.</p>
<p>In summary:</p>
<ul>
<li><code>git stash unstaged</code> &#8211; stash all changes that are not currently staged, including new and removed files</li>
<li><code>git stash pop unstaged</code> &#8211; pop the top stash as unstaged changes</li>
</ul>
<p>This would greatly improve my workflow when I get over-zealous and start changing more than I want to commit at one time (happens all the time). It would make it much easier to isolate those changes into individual, logical commits.</p>
]]></content:encoded>
			<wfw:commentRss>http://pieces.openpolitics.com/2012/01/a-better-git-stash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Advocate for the victim. You w&#8230;</title>
		<link>http://pieces.openpolitics.com/2012/01/advocate-for-the-victim-you-w/</link>
		<comments>http://pieces.openpolitics.com/2012/01/advocate-for-the-victim-you-w/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 04:42:58 +0000</pubDate>
		<dc:creator>daniel</dc:creator>
				<category><![CDATA[Tweet]]></category>

		<guid isPermaLink="false">http://pieces.openpolitics.com/2012/01/advocate-for-the-victim-you-w/</guid>
		<description><![CDATA[Advocate for the victim. You will be hated by those who attempt to maintain order.]]></description>
			<content:encoded><![CDATA[<p>Advocate for the victim. You will be hated by those who attempt to maintain order.</p>
]]></content:encoded>
			<wfw:commentRss>http://pieces.openpolitics.com/2012/01/advocate-for-the-victim-you-w/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Why do Languages Die</title>
		<link>http://pieces.openpolitics.com/2012/01/why-do-languages-die/</link>
		<comments>http://pieces.openpolitics.com/2012/01/why-do-languages-die/#comments</comments>
		<pubDate>Fri, 06 Jan 2012 00:42:58 +0000</pubDate>
		<dc:creator>daniel</dc:creator>
				<category><![CDATA[Link]]></category>

		<guid isPermaLink="false">http://pieces.openpolitics.com/?p=223</guid>
		<description><![CDATA[Article: Why do Languages Die via Ian Bicking]]></description>
			<content:encoded><![CDATA[<p>Article: <a href="http://mises.org/daily/5846/Why-Do-Languages-Die">Why do Languages Die</a> via <a href="https://twitter.com/#!/ianbicking">Ian Bicking</a></p>
]]></content:encoded>
			<wfw:commentRss>http://pieces.openpolitics.com/2012/01/why-do-languages-die/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Over-parenting</title>
		<link>http://pieces.openpolitics.com/2012/01/over-parenting/</link>
		<comments>http://pieces.openpolitics.com/2012/01/over-parenting/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 02:39:46 +0000</pubDate>
		<dc:creator>daniel</dc:creator>
				<category><![CDATA[Link]]></category>

		<guid isPermaLink="false">http://pieces.openpolitics.com/2012/01/over-parenting/</guid>
		<description><![CDATA[Article: Over-parenting]]></description>
			<content:encoded><![CDATA[<p>Article: <a href="http://www.bostonmagazine.com/articles/the_age_of_overparenting/page1">Over-parenting</a></p>
]]></content:encoded>
			<wfw:commentRss>http://pieces.openpolitics.com/2012/01/over-parenting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sleep Deficit: The Performance Killer</title>
		<link>http://pieces.openpolitics.com/2011/12/sleep-deficit-the-performance-killer/</link>
		<comments>http://pieces.openpolitics.com/2011/12/sleep-deficit-the-performance-killer/#comments</comments>
		<pubDate>Sat, 24 Dec 2011 15:11:35 +0000</pubDate>
		<dc:creator>daniel</dc:creator>
				<category><![CDATA[Link]]></category>

		<guid isPermaLink="false">http://pieces.openpolitics.com/?p=220</guid>
		<description><![CDATA[Link: http://hbr.org/2006/10/sleep-deficit-the-performance-killer via HN]]></description>
			<content:encoded><![CDATA[<p>Link: <a href="http://hbr.org/2006/10/sleep-deficit-the-performance-killer">http://hbr.org/2006/10/sleep-deficit-the-performance-killer</a> via <a href="http://news.ycombinator.com/news">HN</a></p>
]]></content:encoded>
			<wfw:commentRss>http://pieces.openpolitics.com/2011/12/sleep-deficit-the-performance-killer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mike Mulligan and Marry Anne o&#8230;</title>
		<link>http://pieces.openpolitics.com/2011/12/mike-mulligan-and-marry-anne-o/</link>
		<comments>http://pieces.openpolitics.com/2011/12/mike-mulligan-and-marry-anne-o/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 01:26:19 +0000</pubDate>
		<dc:creator>daniel</dc:creator>
				<category><![CDATA[Tweet]]></category>

		<guid isPermaLink="false">http://pieces.openpolitics.com/2011/12/mike-mulligan-and-marry-anne-o/</guid>
		<description><![CDATA[Mike Mulligan and Marry Anne occupied the cellar in the new town hall of Popperville]]></description>
			<content:encoded><![CDATA[<p>Mike Mulligan and Marry Anne occupied the cellar in the new town hall of Popperville</p>
]]></content:encoded>
			<wfw:commentRss>http://pieces.openpolitics.com/2011/12/mike-mulligan-and-marry-anne-o/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install distribute, pip, virtualenv without sudo</title>
		<link>http://pieces.openpolitics.com/2011/12/install-distribute-pip-virtualenv-without-sudo/</link>
		<comments>http://pieces.openpolitics.com/2011/12/install-distribute-pip-virtualenv-without-sudo/#comments</comments>
		<pubDate>Fri, 09 Dec 2011 20:13:39 +0000</pubDate>
		<dc:creator>daniel</dc:creator>
				<category><![CDATA[Link]]></category>

		<guid isPermaLink="false">http://pieces.openpolitics.com/?p=216</guid>
		<description><![CDATA[I&#8217;ve been thinking of writing this up for a while. Nick did it first. Yay! Bootstrapping a Python Virtual Environment]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been thinking of writing this up for a while. Nick did it first. Yay!</p>
<p><a href="http://readthedocs.org/docs/ncoghlan_devs-python-notes/en/latest/venv_bootstrap.html">Bootstrapping a Python Virtual Environment</a></p>
]]></content:encoded>
			<wfw:commentRss>http://pieces.openpolitics.com/2011/12/install-distribute-pip-virtualenv-without-sudo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>You can&#8217;t keep secrets without telling lies</title>
		<link>http://pieces.openpolitics.com/2011/11/you-cant-keep-secrets-without-telling-lies/</link>
		<comments>http://pieces.openpolitics.com/2011/11/you-cant-keep-secrets-without-telling-lies/#comments</comments>
		<pubDate>Thu, 01 Dec 2011 02:25:11 +0000</pubDate>
		<dc:creator>daniel</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://pieces.openpolitics.com/?p=206</guid>
		<description><![CDATA[Via a comment on Daniel Ellsberg on the Limits of Knowledge. I&#8217;m fascinated with the concept of openness lately. What if we, as a community, society, nation, disposed of secrets in the interest of everyone being better informed and thus able to make better decisions? This response to the question regarding top secret intelligence (paraphrased) [...]]]></description>
			<content:encoded><![CDATA[<p>Via <a href="http://m.motherjones.com/kevin-drum/2010/02/daniel-ellsberg-limitations-knowledge#comment-66745277">a comment</a> on <a href="http://m.motherjones.com/kevin-drum/2010/02/daniel-ellsberg-limitations-knowledge">Daniel Ellsberg on the Limits of Knowledge</a>. I&#8217;m fascinated with the concept of openness lately. What if we, as a community, society, nation, disposed of secrets in the interest of everyone being better informed and thus able to make better decisions?</p>
<p>This <a href="http://m.motherjones.com/kevin-drum/2010/02/daniel-ellsberg-limitations-knowledge#comment-75103692">response</a> to the question regarding top secret intelligence (paraphrased) &#8220;we (the taxed) pay for it, why can&#8217;t we know?&#8221; also gave me pause for reflection:</p>
<blockquote><div class="q1">
<div class="q2">
<div class="q3">Some of the information comes from people who are secretly providing it, and who are the only people who could *possibly* provide it. If the information became widely known then they would be hurt by the people who they are betraying in favor of &#8220;our side&#8221;. It would be messed up to reveal the information and leave them to the wolves.</p>
<p>This is actually a problem with &#8220;intelligence&#8221; in general &#8212; that you can&#8217;t even *act* on the source without potentially compromising them because that would be another way to reveal that you knew something that came from the source.</p>
<p>The practical upshot is omniscience with almost no ability to act, except in cases where the value of the action exceeds the total future value of the uncompromised source.</p></div>
</div>
</div>
</blockquote>
<p>While interesting, I&#8217;m not sure I agree that it&#8217;s worth keeping secrets on behalf of the source. For one, I don&#8217;t believe our intelligence gatherers are anywhere near &#8220;omniscient&#8221;—that&#8217;s just hubris. And why should we seek to know that which is harmful to those who would divulge it? This strand of logic is grounded in deception. Would we not gain more by seeking to be less secretive, less fearful, more free?</p>
]]></content:encoded>
			<wfw:commentRss>http://pieces.openpolitics.com/2011/11/you-cant-keep-secrets-without-telling-lies/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Pub Rules http://t.co/LVZGg0RF</title>
		<link>http://pieces.openpolitics.com/2011/11/pub-rules-httpt-colvzgg0rf/</link>
		<comments>http://pieces.openpolitics.com/2011/11/pub-rules-httpt-colvzgg0rf/#comments</comments>
		<pubDate>Sat, 26 Nov 2011 04:15:14 +0000</pubDate>
		<dc:creator>daniel</dc:creator>
				<category><![CDATA[Tweet]]></category>

		<guid isPermaLink="false">http://pieces.openpolitics.com/2011/11/pub-rules-httpt-colvzgg0rf/</guid>
		<description><![CDATA[Pub Rules http://t.co/LVZGg0RF]]></description>
			<content:encoded><![CDATA[<p>Pub Rules <a href="http://t.co/LVZGg0RF" rel="nofollow">http://t.co/LVZGg0RF</a></p>
]]></content:encoded>
			<wfw:commentRss>http://pieces.openpolitics.com/2011/11/pub-rules-httpt-colvzgg0rf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The quest for security is a si&#8230;</title>
		<link>http://pieces.openpolitics.com/2011/11/the-quest-for-security-is-a-si/</link>
		<comments>http://pieces.openpolitics.com/2011/11/the-quest-for-security-is-a-si/#comments</comments>
		<pubDate>Fri, 18 Nov 2011 02:39:39 +0000</pubDate>
		<dc:creator>daniel</dc:creator>
				<category><![CDATA[Tweet]]></category>

		<guid isPermaLink="false">http://pieces.openpolitics.com/2011/11/the-quest-for-security-is-a-si/</guid>
		<description><![CDATA[The quest for security is a sign of enslavement to fear. – Lee Griffith]]></description>
			<content:encoded><![CDATA[<p>The quest for security is a sign of enslavement to fear. – Lee Griffith</p>
]]></content:encoded>
			<wfw:commentRss>http://pieces.openpolitics.com/2011/11/the-quest-for-security-is-a-si/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

