<?xml version="1.0" encoding="utf-8"?>
<!-- generator="Kukkaisvoima version 9" -->
<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/"
>
<channel>
<title>brian hefele's untidy space: code</title>
<link>http://brhefele.brainaxle.com/index.cgi</link>
<description>art &amp; musings of brian hefele</description>
<pubDate>Fri, 17 Sep 2010 00:14:19 +0200</pubDate>
<lastBuildDate>Fri, 17 Sep 2010 00:14:19 +0200</lastBuildDate>
<generator>http://23.fi/kukkaisvoima/</generator>
<language>en</language>
<item>
<title>Send contents of file to clipboard (.app)
</title>
<link>http://brhefele.brainaxle.com/index.cgi/clipboard%3B2010-09-17</link>
<comments>http://brhefele.brainaxle.com/index.cgi/clipboard%3B2010-09-17#disqus_thread</comments>
<pubDate>Fri, 17 Sep 2010 00:14:19 +0200</pubDate>
<dc:creator>brian hefele</dc:creator>
<category>software</category>
<category>code</category>
<guid isPermaLink="false">http://brhefele.brainaxle.com/index.cgi/clipboard%3B2010-09-17/</guid>
<description><![CDATA[ 
 [...]]]></description>
<content:encoded><![CDATA[

<p>This is nothing really exciting, but I've been meaning to whip this up for a while now. Since I maintain a handful of different resumes, and I paste a plaintext version in with any given cover letter I email out (providing a link to the PDF), my typical workflow is opening the file in Vim and copying and pasting the contents into mail. Occasionally, I also just go to the command line, using cat to stuff the file right into pbcopy. But when I'm writing a cover letter in Mail, there's a good chance my brain is already in GUI mode and I'd be better off just lazily ambling to the Finder. So with that in mind, I have wrapped up the line <br /><br />cat $1 | pbcopy<br /><br /> into an application package using DuckBill, to make a tiny little application which can be placed in the Finder toolbar, waiting for plaintext to be dropped on it and copied to the pasteboard. Right now there's just a generic icon in place, and it doesn't check to make sure $1 is null (that is, clicking it rather than dropping a file on it clears out the pasteboard entirely). But it will save me some energy, and maybe others as well. I'll continue to work on it (to address the above two issues, for example) but right now, it does what it does, and it can be downloaded <a href="http://brhefele.brainaxle.com/scripts/clipboard.app.zip" target="_blank" title="Send contents of file to clipboard.app (zipped download)">here</a>.</p>
<p><i>Update!</i> Of course, that should have been <br /><br />cat "$@" | pbcopy<br /><br />…yikes! Well, I was tipsy when I threw it together last night. I'm tipsy again tonight, but I think I fixed that major oversight, at least. New version is up (still <a href="http://brhefele.brainaxle.com/scripts/clipboard.app.zip" target="_blank" title="Send contents of file to clipboard.app (zipped download)">here</a>).</p>
]]></content:encoded>
<wfw:commentRss>http://brhefele.brainaxle.com/index.cgi/clipboard%3B2010-09-17/feed/</wfw:commentRss>
</item>
<item>
<title>SCorCh - Simple Correspondence Chess
</title>
<link>http://brhefele.brainaxle.com/index.cgi/scorch%3B2010-07-20</link>
<comments>http://brhefele.brainaxle.com/index.cgi/scorch%3B2010-07-20#disqus_thread</comments>
<pubDate>Tue, 20 Jul 2010 18:03:32 +0200</pubDate>
<dc:creator>brian hefele</dc:creator>
<category>code</category>
<category>gaming</category>
<category>software</category>
<category>chess</category>
<guid isPermaLink="false">http://brhefele.brainaxle.com/index.cgi/scorch%3B2010-07-20/</guid>
<description><![CDATA[ 
 [...]]]></description>
<content:encoded><![CDATA[

<p>I've thought a lot in the past about correspondence chess, and the current state of such. There are a number of online solutions, most of them not so great. Twitter-based <a href="http://chesstweets.com/" target="_blank" title="">ChessTweets</a> is my current favorite solution (anyone who wants a fight, <a href="http://chesstweets.com/games/new_game/opponent:brhfl" target="_blank" title="Challenge me on ChessTweets">@brhfl</a>) although the constant barrage of DMs from the system does get somewhat irritating. I use the somewhat clumsy <a href="http://www.gnu.org/software/xboard/" target="_blank" title="">XBoard</a> with a variety of engines for the sake of analysis, but using it for correspondence is far from ideal. This task seems the perfect opportunity to demonstrate that less is more, and create a CLI interface which acts as a somewhat dumb client for displaying a board and interpreting moves. While I will probably never actually code this, I hope that perhaps I will some day, and I will call it scorch for Simple Correspondence Chess.</p>

<p><a href="http://brhefele.brainaxle.com/index.cgi/scorch%3B2010-07-20#break">Continue reading&#133;</a></p>
]]></content:encoded>
<wfw:commentRss>http://brhefele.brainaxle.com/index.cgi/scorch%3B2010-07-20/feed/</wfw:commentRss>
</item>
<item>
<title>Happy Belated Birthday, Alan Turing
</title>
<link>http://brhefele.brainaxle.com/index.cgi/turing%3B2010-06-24</link>
<comments>http://brhefele.brainaxle.com/index.cgi/turing%3B2010-06-24#disqus_thread</comments>
<pubDate>Thu, 24 Jun 2010 17:04:29 +0200</pubDate>
<dc:creator>brian hefele</dc:creator>
<category>computing</category>
<category>code</category>
<category>software</category>
<guid isPermaLink="false">http://brhefele.brainaxle.com/index.cgi/turing%3B2010-06-24/</guid>
<description><![CDATA[ 
 [...]]]></description>
<content:encoded><![CDATA[

<p>(The late) Alan Turing's birthday was yesterday, and I meant to write this post yesterday, but I didn't, so here it is now. Anyone with an interest in computing (note: not <i>computers</i>) already knows everything there is to know about Turing, but for everyone else, here's a little background. Turing was a mathematician (among other things). At the time (let's say late 1920s through 1954), there weren't computer scientists, because there weren't computers, not as we know them. There was a lot of math, though, and one way to help formulate a proof, help work through an algorithm or a complex mathematical function is by having some sort of device to help you.</p>

<p><a href="http://brhefele.brainaxle.com/index.cgi/turing%3B2010-06-24#break">Continue reading&#133;</a></p>
]]></content:encoded>
<wfw:commentRss>http://brhefele.brainaxle.com/index.cgi/turing%3B2010-06-24/feed/</wfw:commentRss>
</item>
</channel>
</rss>

