<?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/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>Micah Elliott &#187; howto</title>
	<atom:link href="http://micahelliott.com/tag/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://micahelliott.com</link>
	<description>Stories from my Startup Journey</description>
	<lastBuildDate>Mon, 29 Nov 2010 07:46:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
<image>
  <link>http://micahelliott.com</link>
  <url>http://micahelliott.com/mde-gravatar7.png</url>
  <title>Micah Elliott</title>
</image>
	<!-- podcast_generator="podPress/8.8" - maintenance_release="8.8.6.3" -->
	<copyright>Copyright &#38;#xA9; Micah Elliott 2010 </copyright>
	<managingEditor>mde@micahelliott.com (Micah Elliott)</managingEditor>
	<webMaster>mde@micahelliott.com (Micah Elliott)</webMaster>
	<category>posts</category>
	<image>
		<url>http://micahelliott.com/wp-content/plugins/podpress/images/powered_by_podpress.jpg</url>
		<title>Micah Elliott &#187; howto</title>
		<link>http://micahelliott.com</link>
		<width>144</width>
		<height>144</height>
	</image>
	<itunes:subtitle></itunes:subtitle>
	<itunes:summary>Stories from my Startup Journey</itunes:summary>
	<itunes:keywords></itunes:keywords>
	<itunes:category text="Society &amp; Culture" />
	<itunes:author>Micah Elliott</itunes:author>
	<itunes:owner>
		<itunes:name>Micah Elliott</itunes:name>
		<itunes:email>mde@micahelliott.com</itunes:email>
	</itunes:owner>
	<itunes:block>no</itunes:block>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://micahelliott.com/wp-content/plugins/podpress/images/powered_by_podpress_large.jpg" />
		<item>
		<title>Getting Started with Graphviz</title>
		<link>http://micahelliott.com/2009/03/getting-started-with-graphviz/</link>
		<comments>http://micahelliott.com/2009/03/getting-started-with-graphviz/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 19:44:22 +0000</pubDate>
		<dc:creator>Micah</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[Hacking]]></category>
		<category><![CDATA[graphviz]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[visualization]]></category>
		<category><![CDATA[wiki]]></category>

		<guid isPermaLink="false">http://micahelliott.com/?p=304</guid>
		<description><![CDATA[I&#8217;m getting pretty excited for the first meeting of the PDX-visualization group (which I convinced Ed to expand his R Language Study group into).  One of the topics we&#8217;ll be going over is Graphviz.  It&#8217;s old as dirt (ChangeLog goes back to 2000 at v1.7, but I&#8217;m guessing it&#8217;s at least a decade older) and [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m getting pretty excited for the <a href="http://groups.google.com/group/pdx-visualization/browse_thread/thread/592f4563abbd2e95">first meeting</a> of the <a href="http://groups.google.com/group/pdx-visualization/">PDX-visualization</a> group (which I convinced Ed to expand his R Language Study group into).  One of the topics we&#8217;ll be going over is <a href="http://www.graphviz.org/">Graphviz</a>.  It&#8217;s old as dirt (ChangeLog goes back to 2000 at v1.7, but I&#8217;m guessing it&#8217;s at least a decade older) and has long been the de facto UNIX tool chain for creating graphics with code; i.e., without needing a graphics editor.  I believe it has only recently adopted a true FOSS <a href="http://www.graphviz.org/License.php">license</a>, which may really help its cause.  Graphviz use is pervasive in journals and books, and even shows up in wikis (<a href="http://c2.com/cgi/wiki?GraphViz">c2</a>, <a href="http://www.selenic.com/mercurial/wiki/index.cgi/UnderstandingMercurial">Mercurial</a>).  It&#8217;s such a simple graphics package to make use of, but a couple early steps might not be obvious to first-timers.  I&#8217;ve done a bit of exploring to get off the ground &#8212; here are some good resources I&#8217;ve found.<span id="more-304"></span></p>
<ul>
<li><code>$ apt-get install graphviz python-pydot python-pygraphviz  # Python/Ubuntu friendly</code></li>
<li><code>$ man graphviz</code> (will lead to many other pages)</li>
<li><a href="http://www.linuxdevcenter.com/pub/a/linux/2004/05/06/graphviz_dot.html">O&#8217;Reilly tutorial</a> by Michele Simionato (some other tutorials are not great)</li>
<li>Some flickr <a href="http://www.flickr.com/photos/kentbye/sets/72157601523153827/">example images</a>, some with sample code included<a href="http://cli.gs/4g8bPt" target="_blank"></a></li>
<li>Simplest first use: <code>$ dot hello.dot -Tpng -o hello.png &amp;&amp; firefox hello.png</code></li>
<li><a href="http://code.google.com/p/pydot/">Use from Python</a></li>
<li><a href="http://moinmo.in/GraphVizForMoin">Plug Graphvis into your wiki</a> (MoinMoin)</li>
</ul>
<p>I (with Tim) am also planning to show some of our progress on visualizations for uGraph, so be sure to <a href="http://calagator.org/events/1250456781">show up for the meeting</a>.  And what a fantastic group of folks: many entrepreneurs and data miners.  Should be a great after-party!</p>
]]></content:encoded>
			<wfw:commentRss>http://micahelliott.com/2009/03/getting-started-with-graphviz/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Send Email from a Webhost Script</title>
		<link>http://micahelliott.com/2009/02/send-email-from-a-webhost-script/</link>
		<comments>http://micahelliott.com/2009/02/send-email-from-a-webhost-script/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 08:35:53 +0000</pubDate>
		<dc:creator>Micah</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://micahelliott.com/?p=276</guid>
		<description><![CDATA[Some webhosts make it a bit tedious to send email from your shell, and even harder inside your scripts or web apps.  But setting up Django properly enables this to become a one-liner whenever you need it. After some hunting around I found a help article at Webfaction describing the process of sending mail from [...]]]></description>
			<content:encoded><![CDATA[<p>Some webhosts make it a bit tedious to send email from your shell, and even harder inside your scripts or web apps.  But setting up Django properly enables this to become a one-liner whenever you need it.<span id="more-276"></span></p>
<p>After some hunting around I found <a href="https://help.webfaction.com/index.php?_m=knowledgebase&amp;_a=viewarticle&amp;kbarticleid=49">a help article at Webfaction</a> describing the process of sending mail from a script (with Python, nice! give it a thumbs up; those guys are great).  I could easily enough put some code like that into a function in a utility module to be called from various places, but it&#8217;s kind of ugly and repeats some data multiple times and requires a couple more imports.  On a development box I got Django&#8217;s handy <a href="http://docs.djangoproject.com/en/dev/topics/email/#topics-email">send_mail</a> function to work, but even with the described <em>smtplib</em> setup work on the webhost, the Django convenience was not going to fly.  But shortly into that Django article you see some setting parameters that are not part of the default django-admin-generated skeleton.  I tried setting these like so:</p>
<pre name="code" class="python">if platform.uname()[1].lower() == 'myserver.webfaction.com':
    EMAIL_HOST = 'smtp.webfaction.com'
    EMAIL_HOST_USER = 'my_user_name'
    EMAIL_HOST_PASSWORD = get_my_password()</pre>
<p>And now I can simply send myself emails by making calls to <em>send_mail</em>, like this:</p>
<pre name="code" class="python">from django.core.mail import send_mail
...
send_mail("New beta user signed up!",
    "%s\n%s" % (email, text),
    "beta@mycompany.com", [ADMIN])</pre>
]]></content:encoded>
			<wfw:commentRss>http://micahelliott.com/2009/02/send-email-from-a-webhost-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

