<?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>dicianno.org/blog &#187; erlang</title>
	<atom:link href="http://dicianno.org/blog/category/erlang/feed/" rel="self" type="application/rss+xml" />
	<link>http://dicianno.org/blog</link>
	<description>notes about computers and lifestyle</description>
	<lastBuildDate>Thu, 04 Feb 2010 21:09:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>erlang</title>
		<link>http://dicianno.org/blog/2007/11/27/erlang-2/</link>
		<comments>http://dicianno.org/blog/2007/11/27/erlang-2/#comments</comments>
		<pubDate>Tue, 27 Nov 2007 23:32:03 +0000</pubDate>
		<dc:creator>armando</dc:creator>
				<category><![CDATA[cli]]></category>
		<category><![CDATA[erlang]]></category>
		<category><![CDATA[gentoo]]></category>

		<guid isPermaLink="false">http://www.dicianno.org/blog/2007/11/27/erlang-2/</guid>
		<description><![CDATA[For some reason, the Gentoo install of erlang put the man pages into man sections that ended in &#8220;erl&#8221;.  For example, instead a directory named man3 for the 3rd man page section, it&#8217;s man3erl.
I wrote a quick alias erlman that only searches these erlang man page sections.
~/.bashrc



&#160;


alias erlman=&#34;man -S 1erl:3erl:4erl:6erl&#34;


&#160;



]]></description>
			<content:encoded><![CDATA[<p>For some reason, the Gentoo install of erlang put the man pages into man sections that ended in &#8220;erl&#8221;.  For example, instead a directory named <tt>man3</tt> for the 3rd man page section, it&#8217;s <tt>man3erl</tt>.</p>
<p>I wrote a quick alias <tt>erlman</tt> that only searches these erlang man page sections.</p>
<p><tt>~/.bashrc</tt></p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">alias</span> <span class="re2">erlman=</span><span class="st0">&quot;man -S 1erl:3erl:4erl:6erl&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://dicianno.org/blog/2007/11/27/erlang-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Functional Programming Frenzy</title>
		<link>http://dicianno.org/blog/2007/08/17/functional-programming-frenzy/</link>
		<comments>http://dicianno.org/blog/2007/08/17/functional-programming-frenzy/#comments</comments>
		<pubDate>Sat, 18 Aug 2007 01:39:19 +0000</pubDate>
		<dc:creator>armando</dc:creator>
				<category><![CDATA[erlang]]></category>

		<guid isPermaLink="false">http://www.dicianno.org/blog/2007/08/17/functional-programming-frenzy/</guid>
		<description><![CDATA[My journey into the world of Erlang is progressing nicely.  I&#8217;m really excited by the possibilities the language offers.

I wanted to get more perspective on functional programming by learning another functional language as well.  Since my forays into LISP over the years never amounted to much, I decided to try out Haskell.  [...]]]></description>
			<content:encoded><![CDATA[<p>My journey into the world of Erlang is progressing nicely.  I&#8217;m really excited by the possibilities the language offers.</p>
<p><a href="http://www.dicianno.org/blog/wp-content/uploads/2007/08/craft-of-functional-programming-haskell.jpg" border="0"><img src="http://www.dicianno.org/blog/wp-content/uploads/2007/08/craft-of-functional-programming-haskell.jpg" alt="Haskell: the Craft of Functional Programming" align="right" width="136" height="178" style="padding: 10px 2px 2px 0" border="0"></a></p>
<p>I wanted to get more perspective on functional programming by learning another functional language as well.  Since my forays into LISP over the years never amounted to much, I decided to try out Haskell.  I&#8217;ve been concerned about the buzz surrounding Erlang &#8212; buzz always seems to mask why something really is good or useful, because some are clamoring that it&#8217;s good and useful for everything.</p>
<p>So, I ordered a copy of &#8220;Haskell: the Craft of Functional Programming&#8221; &#8212; I mean heck, how do you spend <strong>your</strong> Fridays?</p>
]]></content:encoded>
			<wfw:commentRss>http://dicianno.org/blog/2007/08/17/functional-programming-frenzy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Terminal.app v. erlang and Latin-1 characters</title>
		<link>http://dicianno.org/blog/2007/08/04/terminalapp-v-erlang-and-latin-1-characters/</link>
		<comments>http://dicianno.org/blog/2007/08/04/terminalapp-v-erlang-and-latin-1-characters/#comments</comments>
		<pubDate>Sun, 05 Aug 2007 00:13:30 +0000</pubDate>
		<dc:creator>armando</dc:creator>
				<category><![CDATA[erlang]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://www.dicianno.org/blog/2007/08/04/terminalapp-v-erlang-and-latin-1-characters/</guid>
		<description><![CDATA[On pages 29-30 of &#8220;Programming Erlang&#8221; by Joe Armstrong, the author goes over character strings.  Erlang uses Latin-1 as it&#8217;s character set.  At first, Terminal.app wasn&#8217;t showing the non-US / ASCII characters.
There&#8217;s a two-step process to solve this:

Terminal->Window Settings&#8230;->Display->&#8221;Character Set Encoding&#8221; set to &#8220;Western (ISO Latin 1)&#8221;
Set the environment variable LC_ALL to &#8220;en_US&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>On pages 29-30 of &#8220;Programming Erlang&#8221; by Joe Armstrong, the author goes over character strings.  Erlang uses Latin-1 as it&#8217;s character set.  At first, Terminal.app wasn&#8217;t showing the non-US / ASCII characters.</p>
<p>There&#8217;s a two-step process to solve this:</p>
<ol>
<li>Terminal->Window Settings&#8230;->Display->&#8221;Character Set Encoding&#8221; set to &#8220;Western (ISO Latin 1)&#8221;</li>
<li>Set the environment variable LC_ALL to &#8220;en_US&#8221; before you run <code>erl</code>.  Also, see the next paragraph for explanations.</li>
</ol>
<p><a href="http://www.dicianno.org/blog/wp-content/uploads/2007/08/terminalapp-erlang-latin-1.png" border="0"><img src="http://www.dicianno.org/blog/wp-content/uploads/2007/08/terminalapp-erlang-latin-1.png" alt="Terminal.app Erlang Latin 1" align="right" height="132" width="124" style="padding: 20px 12px 10px 0" border="0"></a><a href="http://www.dicianno.org/blog/wp-content/uploads/2007/08/terminalapp-latin-1-settings.png" border="0"><img src="http://www.dicianno.org/blog/wp-content/uploads/2007/08/terminalapp-latin-1-settings.png" alt="Terminal.app Latin 1 Settings" align="left" height="108" width="72" style="padding: 20px 12px 10px 0" border="0"></a></p>
<p>The above steps are for U.S. English &#8212; something similar is available for most locales, but I don&#8217;t know the specifics.  Of note, is the 2nd step; firstly, LC_CTYPE is the specific value to set, but LC_ALL sets LC_* to the assigned value, so one usually wants LC_ALL, unless you have a very unique locale configuration.  Secondly, I&#8217;m using Gentoo Prefix Portage environment on OSX, so while I feel that these directions are applicable to most OSX installs, my setup is slightly different, so your mileage may vary.  Thirdly, for those that <strong>need</strong> UTF-8, they can set LC_ALL to &#8220;en_US.UTF-8&#8243;, and then they only have to toggle Terminal.app&#8217;s character set encoding.  Why en_US.UTF-8 works, I do not know &#8212; Latin 1 is not a subset of UTF-8, so I&#8217;ll leave that to more inquiring minds.</p>
<p>After you find settings that you are happy with, consider adding <code>export LC_ALL="en_US.UTF-8"</code> to your ~/.bash_profile if you&#8217;d like it to load with every terminal window that opens.  My ~/.bash_profile sources my ~/.bashrc, because ~/.bashrc is supposed to be <em>safe</em> for scripts that run as your user, but non-interactively; so, ~/.bash_profile tends to get a lot of my environment <em>look and feel</em> code.</p>
]]></content:encoded>
			<wfw:commentRss>http://dicianno.org/blog/2007/08/04/terminalapp-v-erlang-and-latin-1-characters/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Wha-wha-what?! You can make your own control structures?</title>
		<link>http://dicianno.org/blog/2007/08/02/wha-wha-what-you-can-make-your-own-control-structures/</link>
		<comments>http://dicianno.org/blog/2007/08/02/wha-wha-what-you-can-make-your-own-control-structures/#comments</comments>
		<pubDate>Fri, 03 Aug 2007 05:56:44 +0000</pubDate>
		<dc:creator>armando</dc:creator>
				<category><![CDATA[erlang]]></category>

		<guid isPermaLink="false">http://www.dicianno.org/blog/2007/08/02/wha-wha-what-you-can-make-your-own-control-structures/</guid>
		<description><![CDATA[I&#8217;m working through the Programming Erlang book that my friend zuzu recommended to me.  Forty-six pages in, and so far, so good.
I did, however, just have my mind blown.  I was going through an example for creating a for-loop-like function, because erlang doesn&#8217;t have a for-loop.  &#8220;Well,&#8221; I thought, &#8220;that&#8217;s interesting that [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.dicianno.org/blog/wp-content/uploads/2007/08/programaticprogammer-programmingerlangjpg.jpg" alt="programaticprogammer-programmingerlang.jpg" height="170" width="115" align="right" style="padding: 20px 12px 10px 0"><br />I&#8217;m working through the <a href="http://www.pragmaticprogrammer.com/titles/jaerlang/index.html">Programming Erlang</a> book that my friend zuzu recommended to me.  Forty-six pages in, and so far, so good.</p>
<p>I did, however, just have my mind blown.  I was going through an example for creating a for-loop-like function, because erlang doesn&#8217;t have a for-loop.  &#8220;Well,&#8221; I thought, &#8220;that&#8217;s interesting that you <em>have to</em> create your own control structures.&#8221;  But then the book spelled it out straightly: <strong>you can create any control structure you want &#8212; you are not limited by the control structures that the language offers.</strong></p>
<p>Result?  Mind is blown.</p>
]]></content:encoded>
			<wfw:commentRss>http://dicianno.org/blog/2007/08/02/wha-wha-what-you-can-make-your-own-control-structures/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>erlang TextMate Bundle</title>
		<link>http://dicianno.org/blog/2007/07/31/erlang-textmate-bundle/</link>
		<comments>http://dicianno.org/blog/2007/07/31/erlang-textmate-bundle/#comments</comments>
		<pubDate>Wed, 01 Aug 2007 06:20:52 +0000</pubDate>
		<dc:creator>armando</dc:creator>
				<category><![CDATA[erlang]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://www.dicianno.org/blog/2007/07/31/erlang-textmate-bundle/</guid>
		<description><![CDATA[I found this post containing a script that svn checkouts a fairly functional erlang TextMate bundle.  Neat-o!
I edited the bundle to allow it to update itself, using a slightly modified form of the original script.

Bundles->Bundle Editor->Show Bundle Editor
Click on the menu entry text &#8220;erlang&#8221;
Drag a new separator to the bottom of the erlang bundle [...]]]></description>
			<content:encoded><![CDATA[<p>I found <a href="http://oneless.blogspot.com/2007/04/howto-erlang-textmate-bundle.html">this</a> post containing a script that svn checkouts a fairly functional erlang TextMate bundle.  Neat-o!</p>
<p>I edited the bundle to allow it to update itself, using a slightly modified form of the original script.</p>
<ul>
<li>Bundles->Bundle Editor->Show Bundle Editor</li>
<li>Click on the menu entry <strong>text</strong> &#8220;erlang&#8221;</li>
<li>Drag a new separator to the bottom of the erlang bundle menu structure</li>
<li>Expand the erlang bundle menu</li>
<li>Use the drop-down + to create a new command</li>
<li>
<ul>
<li>Save: Nothing</li>
<li>
				<span>Command(s):</span></p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="re3">#!/bin/bash</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">if</span> <span class="br0">&#91;</span> -z <span class="st0">&quot;${TM_SVN}&quot;</span> <span class="br0">&#93;</span>; <span class="kw1">then</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="kw3">echo</span> <span class="st0">&quot;You must define the location of your svn client in the variable TM_SVN.&quot;</span></div>
</li>
<li class="li2">
<div class="de2">&nbsp; <span class="kw3">exit</span> <span class="nu0">1</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">fi</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">echo</span> <span class="st0">&quot;Changing to Bundles directory&#8230;&quot;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">mkdir</span> -p /Library/Application\ Support/TextMate/Bundles</div>
</li>
<li class="li2">
<div class="de2"><span class="kw3">cd</span> /Library/Application\ Support/TextMate/Bundles</div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">if</span> <span class="br0">&#91;</span> -d /Library/Application\ Support/TextMate/Bundles/Erlang.tmbundle <span class="br0">&#93;</span>; <span class="kw1">then</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="kw3">echo</span> Erlang bundle already exists &#8211; updating&#8230;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re1">$TM_SVN</span> up Erlang.tmbundle</div>
</li>
<li class="li2">
<div class="de2"><span class="kw1">else</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="kw3">echo</span> Checking out Erlang bundle&#8230;</div>
</li>
<li class="li1">
<div class="de1">&nbsp; <span class="re1">$TM_SVN</span> &#8211;username anon &#8211;password anon <span class="kw2">co</span> http://macromates.com/svn/Bundles/trunk/Bundles/Erlang.tmbundle/</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">fi</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li2">
<div class="de2"><span class="kw3">echo</span> <span class="st0">&quot;Reloading bundles in TextMate&#8230;&quot;</span></div>
</li>
<li class="li1">
<div class="de1">osascript -e <span class="st0">&#8216;tell app &quot;TextMate&quot; to reload bundles&#8217;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw3">exit</span> <span class="nu0">0</span></div>
</li>
</ol>
</div>
<p>			<span><a href="http://www.dicianno.org/files/textmate/textmate-erlang-bundle-update-command.txt">as downloadble file</a>
			</li>
<li>Input: None</li>
<li>Output: Show as Tool Tip</li>
</ul>
</li>
</ul>
<p>Now you can update the bundle from it&#8217;s own menu option!</p>
]]></content:encoded>
			<wfw:commentRss>http://dicianno.org/blog/2007/07/31/erlang-textmate-bundle/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>erlang</title>
		<link>http://dicianno.org/blog/2007/07/31/erlang/</link>
		<comments>http://dicianno.org/blog/2007/07/31/erlang/#comments</comments>
		<pubDate>Tue, 31 Jul 2007 09:46:10 +0000</pubDate>
		<dc:creator>armando</dc:creator>
				<category><![CDATA[erlang]]></category>
		<category><![CDATA[general]]></category>

		<guid isPermaLink="false">http://www.dicianno.org/blog/2007/07/31/erlang/</guid>
		<description><![CDATA[I believe erlang is quickly becoming that &#8220;language I always should&#8217;ve learned&#8221; language &#8212; and all this time, I thought that language was LISP.
]]></description>
			<content:encoded><![CDATA[<p>I believe <a href="http://www.erlang.org">erlang</a> is quickly becoming that &#8220;language I always should&#8217;ve learned&#8221; language &#8212; and all this time, I thought that language was LISP.</p>
]]></content:encoded>
			<wfw:commentRss>http://dicianno.org/blog/2007/07/31/erlang/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
