<?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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>absolute regularity</title>
	<atom:link href="http://llaisdy.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://llaisdy.wordpress.com</link>
	<description>The dairy diary</description>
	<lastBuildDate>Thu, 12 Jan 2012 12:18:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='llaisdy.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>absolute regularity</title>
		<link>http://llaisdy.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://llaisdy.wordpress.com/osd.xml" title="absolute regularity" />
	<atom:link rel='hub' href='http://llaisdy.wordpress.com/?pushpress=hub'/>
		<item>
		<title>From iPhone to Android</title>
		<link>http://llaisdy.wordpress.com/2011/09/28/from-iphone-to-android/</link>
		<comments>http://llaisdy.wordpress.com/2011/09/28/from-iphone-to-android/#comments</comments>
		<pubDate>Wed, 28 Sep 2011 09:38:31 +0000</pubDate>
		<dc:creator>llaisdy</dc:creator>
				<category><![CDATA[Android]]></category>

		<guid isPermaLink="false">http://llaisdy.wordpress.com/?p=329</guid>
		<description><![CDATA[No doubt I&#8217;ll get used to it but, after a week of living with a HTC Sensation running Google&#8217;s Android operating system, I&#8217;m starting to think the unthinkable: surely even Windows Phone can&#8217;t be as bad as this!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=llaisdy.wordpress.com&amp;blog=5425747&amp;post=329&amp;subd=llaisdy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://llaisdy.files.wordpress.com/2011/09/2001_space_odyssey_fg2b.jpg"><img src="http://llaisdy.files.wordpress.com/2011/09/2001_space_odyssey_fg2b.jpg?w=300&#038;h=240" alt="" title="2001_space_odyssey_fg2b" width="300" height="240" class="aligncenter size-medium wp-image-330" /></a></p>
<p><a href="http://llaisdy.files.wordpress.com/2011/09/ted-rogers-with-the-younguns-dusty-bin-patch.jpg"><img src="http://llaisdy.files.wordpress.com/2011/09/ted-rogers-with-the-younguns-dusty-bin-patch.jpg?w=293&#038;h=300" alt="" title="ted-rogers-with-the-younguns-dusty-bin-patch" width="293" height="300" class="aligncenter size-medium wp-image-331" /></a></p>
<p>No doubt I&#8217;ll get used to it but, after a week of living with a HTC Sensation running Google&#8217;s Android operating system, I&#8217;m starting to think the unthinkable: surely even Windows Phone can&#8217;t be as bad as this!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/llaisdy.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/llaisdy.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/llaisdy.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/llaisdy.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/llaisdy.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/llaisdy.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/llaisdy.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/llaisdy.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/llaisdy.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/llaisdy.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/llaisdy.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/llaisdy.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/llaisdy.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/llaisdy.wordpress.com/329/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=llaisdy.wordpress.com&amp;blog=5425747&amp;post=329&amp;subd=llaisdy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://llaisdy.wordpress.com/2011/09/28/from-iphone-to-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">llaisdy</media:title>
		</media:content>

		<media:content url="http://llaisdy.files.wordpress.com/2011/09/2001_space_odyssey_fg2b.jpg?w=300" medium="image">
			<media:title type="html">2001_space_odyssey_fg2b</media:title>
		</media:content>

		<media:content url="http://llaisdy.files.wordpress.com/2011/09/ted-rogers-with-the-younguns-dusty-bin-patch.jpg?w=293" medium="image">
			<media:title type="html">ted-rogers-with-the-younguns-dusty-bin-patch</media:title>
		</media:content>
	</item>
		<item>
		<title>百度易 :  Baidu Yi &#8212; Android or not Android?</title>
		<link>http://llaisdy.wordpress.com/2011/09/08/%e7%99%be%e5%ba%a6%e6%98%93-baidu-easy-android-or-not-android/</link>
		<comments>http://llaisdy.wordpress.com/2011/09/08/%e7%99%be%e5%ba%a6%e6%98%93-baidu-easy-android-or-not-android/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 15:20:55 +0000</pubDate>
		<dc:creator>llaisdy</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[中文]]></category>

		<guid isPermaLink="false">http://llaisdy.wordpress.com/?p=323</guid>
		<description><![CDATA[There&#8217;s been various gossip around the web this past week about Baidu&#8217;s forthcoming mobile operating system, 易 (yì, easy). Reuters wrote that Baidu Yi is &#8220;modelled&#8221; on Android. 山寨机 (Shānzhài Jī, cottage machine or kind of home made) wrote about its compatibility with Android. The English-language rumour mill says Yi is built on / based [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=llaisdy.wordpress.com&amp;blog=5425747&amp;post=323&amp;subd=llaisdy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s been various gossip around the web this past week about Baidu&#8217;s forthcoming mobile operating system, <a href="http://yi.baidu.com/">易</a> (yì, easy).</p>
<ul>
<li>Reuters <a href="http://www.reuters.com/article/2011/09/02/baidu-idUSL4E7K207Z20110902">wrote</a> that Baidu Yi is &#8220;modelled&#8221; on Android.</li>
<li>山寨机 (Shānzhài Jī, cottage machine or kind of <a href="http://baike.baidu.com/view/1162818.htm">home made</a>) <a href="http://www.shanzhaiji.cn/labs/20110903/25014.html">wrote</a> about its compatibility with Android.</li>
<li>The <a href="http://www.google.co.uk/search?q=baidu+yi">English-language rumour mill</a> says Yi is built on / based on / a fork of Android.</li>
</ul>
<p>Without a decent grasp of Chinese, it&#8217;s quite difficult to get beyond the chatter.  搜狐IT (Sōuhú IT) has a couple of articles from the 6th September:</p>
<ul>
<li><a href="http://it.sohu.com/20110906/n318466341.shtml">百度易手机11月上市 戴尔负责硬件制造</a> (Baidu Yi mobile phone, devices from Dell, coming in November): quotes Baidu CEO on the importance of compatibility with Android (百度CEO李彦宏在接受搜狐IT采访时 &#8230; 百度•易“刚开始做，需要兼容现有流行的操作系统——Android系统”。).</li>
<li><a href="http://it.sohu.com/20110906/n318504300.shtml">外媒解读百度易：剥离安卓应用 封装自己的服务</a> (Foreign media interpretation of Baidu Yi: Android with Baidu applications): has a passage mentioning Yi as a fork of Android, but the paragraph does start with &#8220;allegedly&#8221; (据称，实际上在中国销售的部分安卓手机上，百度的网络服务开始取代谷歌的服务，不过百度此次将更加深入，将在安卓操作系统基础之上推出一个独立的分支。).</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/llaisdy.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/llaisdy.wordpress.com/323/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/llaisdy.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/llaisdy.wordpress.com/323/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/llaisdy.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/llaisdy.wordpress.com/323/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/llaisdy.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/llaisdy.wordpress.com/323/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/llaisdy.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/llaisdy.wordpress.com/323/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/llaisdy.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/llaisdy.wordpress.com/323/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/llaisdy.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/llaisdy.wordpress.com/323/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=llaisdy.wordpress.com&amp;blog=5425747&amp;post=323&amp;subd=llaisdy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://llaisdy.wordpress.com/2011/09/08/%e7%99%be%e5%ba%a6%e6%98%93-baidu-easy-android-or-not-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">llaisdy</media:title>
		</media:content>
	</item>
		<item>
		<title>Baby steps with a nif</title>
		<link>http://llaisdy.wordpress.com/2011/08/14/baby-steps-with-a-nif/</link>
		<comments>http://llaisdy.wordpress.com/2011/08/14/baby-steps-with-a-nif/#comments</comments>
		<pubDate>Sun, 14 Aug 2011 20:42:29 +0000</pubDate>
		<dc:creator>llaisdy</dc:creator>
				<category><![CDATA[Erlang]]></category>

		<guid isPermaLink="false">http://llaisdy.wordpress.com/?p=312</guid>
		<description><![CDATA[simple_nif is an erlang NIF which takes a list of integers and returns a record, called params, containing the sum, the mean, and the quartiles of the input list: The main point of the exercise was the C interface between erlang and the C functions. The file simple_nif.c shows how to parse the input list [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=llaisdy.wordpress.com&amp;blog=5425747&amp;post=312&amp;subd=llaisdy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="https://github.com/llaisdy/simple_nif">simple_nif</a> is an erlang NIF which takes a list of integers and returns a record, called params, containing the sum, the mean, and the quartiles of the input list:</p>
<p><pre class="brush: erlang;">
1&gt; simple:get_params([1,2,3,4,5,6,7]).
{params,28,4.0,{2.0,4.0,6.0}}
</pre></p>
<p>The main point of the exercise was the C interface between erlang and the C functions.  The file <a href="https://github.com/llaisdy/simple_nif/blob/master/passing_list/simple_nif.c">simple_nif.c</a> shows how to parse the input list from erlang into a C array, and how to assemble the results into an erlang tuple to return.</p>
<p>More details in the <a href="https://github.com/llaisdy/simple_nif/blob/master/README.rst">README</a>.</p>
<p>I am releasing the code under the <a href="http://en.wikipedia.org/wiki/ISC_license">ISC license</a>.</p>
<p><strong>References</strong></p>
<ul>
<li><a href="http://www.erlang.org/doc/man/erl_nif.html">Erlang NIF documentation</a></li>
<li><a href="http://www.erlang.org/doc/tutorial/nif.html">Erlang NIF tutorial</a></li>
<li><a href="https://bitbucket.org/michalptaszek/pytherl/src/6fdc65b1d3f2/c_src/pytherl_utils.c">pytherl_utils.c</a>: usage of enif_get_list_cell</li>
<li><a href="http://www.manning.com/logan/">Erlang and OTP in Action</a>: Chapter 12 has a section on NIFs</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/llaisdy.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/llaisdy.wordpress.com/312/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/llaisdy.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/llaisdy.wordpress.com/312/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/llaisdy.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/llaisdy.wordpress.com/312/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/llaisdy.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/llaisdy.wordpress.com/312/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/llaisdy.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/llaisdy.wordpress.com/312/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/llaisdy.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/llaisdy.wordpress.com/312/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/llaisdy.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/llaisdy.wordpress.com/312/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=llaisdy.wordpress.com&amp;blog=5425747&amp;post=312&amp;subd=llaisdy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://llaisdy.wordpress.com/2011/08/14/baby-steps-with-a-nif/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">llaisdy</media:title>
		</media:content>
	</item>
		<item>
		<title>Open an Eclipse project in Eclipse</title>
		<link>http://llaisdy.wordpress.com/2011/07/06/open-an-eclipse-project-in-eclipse/</link>
		<comments>http://llaisdy.wordpress.com/2011/07/06/open-an-eclipse-project-in-eclipse/#comments</comments>
		<pubDate>Wed, 06 Jul 2011 08:55:12 +0000</pubDate>
		<dc:creator>llaisdy</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://llaisdy.wordpress.com/?p=308</guid>
		<description><![CDATA[What could be simpler? Not. I am developing an Android project using Eclipse. I&#8217;m working on several machines, with the project source kept in version control. Eclipse seems to generate a ton of metadata files. So far I haven&#8217;t been keeping these under version control, but it looks like I might have to. Often when [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=llaisdy.wordpress.com&amp;blog=5425747&amp;post=308&amp;subd=llaisdy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>What could be simpler? Not.</p>
<p>I am developing an <a href="http://www.android.com/">Android</a> project using <a href="http://www.eclipse.org/">Eclipse</a>.  I&#8217;m working on several machines, with the project source kept in version control.  Eclipse seems to generate a ton of metadata files.  So far I haven&#8217;t been keeping these under version control, but it looks like I might have to.</p>
<p>Often when I launch Eclipse it doesn&#8217;t find the project.  To gently remind Eclipse where your project is:</p>
<ol>
<li>Choose File | Import</li>
<li>Select General | Existing Projects into Workspace</li>
<li>Click next and then browse to the directory contain the project directory.</li>
</ol>
<p>(<a href="http://androidforums.com/application-development/32654-how-open-project-eclipse.html">source</a>)</p>
<p>Eclipse mitigates the pain of having to write Java, but Eclipse brings pains of its own.  Today I&#8217;m looking into developing for Android using my usual IDE, <a href="http://www.gnu.org/software/emacs/">emacs</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/llaisdy.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/llaisdy.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/llaisdy.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/llaisdy.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/llaisdy.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/llaisdy.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/llaisdy.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/llaisdy.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/llaisdy.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/llaisdy.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/llaisdy.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/llaisdy.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/llaisdy.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/llaisdy.wordpress.com/308/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=llaisdy.wordpress.com&amp;blog=5425747&amp;post=308&amp;subd=llaisdy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://llaisdy.wordpress.com/2011/07/06/open-an-eclipse-project-in-eclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">llaisdy</media:title>
		</media:content>
	</item>
		<item>
		<title>tsung, django, and cross-site request forgery protection</title>
		<link>http://llaisdy.wordpress.com/2011/06/22/tsung-django-and-cross-site-request-forgery-protection/</link>
		<comments>http://llaisdy.wordpress.com/2011/06/22/tsung-django-and-cross-site-request-forgery-protection/#comments</comments>
		<pubDate>Wed, 22 Jun 2011 09:13:55 +0000</pubDate>
		<dc:creator>llaisdy</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://llaisdy.wordpress.com/?p=303</guid>
		<description><![CDATA[Tsung is an excellent tool for stress-testing websites. With tsung-recorder you can record different visits (called sessions) to the target website, and later run many randomised versions of the visits. One complication with testing a Django website, is that forms are generally protected against cross-site request forgery attacks by a hidden field in the form [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=llaisdy.wordpress.com&amp;blog=5425747&amp;post=303&amp;subd=llaisdy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://tsung.erlang-projects.org/">Tsung</a> is an excellent tool for stress-testing websites.  With tsung-recorder you can record different visits (called sessions) to the target website, and later run many randomised versions of the visits.  </p>
<p>One complication with testing a <a href="https://www.djangoproject.com/">Django</a> website, is that forms are generally protected against cross-site request forgery attacks by a hidden field in the form (see <a href="https://docs.djangoproject.com/en/1.3/ref/contrib/csrf/">Cross Site Request Forgery protection</a>).</p>
<p>Thanks to help from a respondent on <a href="https://groups.google.com/group/django-users/browse_thread/thread/268b83315b7eb79f">django-users</a>, we can overcome this complication:  using <a href="http://tsung.erlang-projects.org/user_manual.html#htoc65">dyn_variable</a>, tsung can find values in a requested webpage and store them for use in later requests.  The simplified session config below shows this in action.</p>
<p><pre class="brush: xml;">
&lt;session name='login_with_csrf' probability='100'  type='ts_http'&gt; 

&lt;request&gt; 
  &lt;dyn_variable name=&quot;csrfmiddlewaretoken&quot; &gt;&lt;/dyn_variable&gt; 
  &lt;http url='http://mysite.com/' method='GET'&gt;&lt;/http&gt; 
&lt;/request&gt; 

&lt;request subst=&quot;true&quot;&gt; 
  &lt;http url='/home/' contents='csrfmiddlewaretoken=%%_csrfmiddlewaretoken%%&amp;amp;csrfmiddlewaretoken=%%_csrfmiddlewaretoken%%&amp;amp;username=xxxxxx&amp;amp;password=xxxxxx&amp;amp;next=%2F' content_type='application/x-www-form-urlencoded' method='POST'&gt;&lt;/http&gt; 
&lt;/request&gt; 

&lt;/session&gt;
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/llaisdy.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/llaisdy.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/llaisdy.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/llaisdy.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/llaisdy.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/llaisdy.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/llaisdy.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/llaisdy.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/llaisdy.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/llaisdy.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/llaisdy.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/llaisdy.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/llaisdy.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/llaisdy.wordpress.com/303/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=llaisdy.wordpress.com&amp;blog=5425747&amp;post=303&amp;subd=llaisdy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://llaisdy.wordpress.com/2011/06/22/tsung-django-and-cross-site-request-forgery-protection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">llaisdy</media:title>
		</media:content>
	</item>
		<item>
		<title>BeatBullying&#8217;s campaign The Big March collects awards</title>
		<link>http://llaisdy.wordpress.com/2011/06/17/beatbullying-big-march-awards/</link>
		<comments>http://llaisdy.wordpress.com/2011/06/17/beatbullying-big-march-awards/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 07:57:52 +0000</pubDate>
		<dc:creator>llaisdy</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://llaisdy.wordpress.com/?p=294</guid>
		<description><![CDATA[[updated 061111: added another award] [updated 290911: added another award] Congratulations to BeatBullying! Six awards &#8212; so far. MAAW Globe Awards MAAW = Marketing Agencies Association Worldwide Silver: Best Use of the Internet in a Promotion Marketing Campaign Third Sector Excellence Awards Use of Digital Media: Beatbullying, for The Big March Institute of Promotional Marketing [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=llaisdy.wordpress.com&amp;blog=5425747&amp;post=294&amp;subd=llaisdy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>[updated 061111: added another award]<br />
[updated 290911: added another award]</p>
<p>Congratulations to BeatBullying!  Six awards &#8212; so far.</p>
<p><strong>MAAW Globe Awards</strong></p>
<p>MAAW = Marketing Agencies Association Worldwide</p>
<ul>
<li><a href="http://www.maaw.org/globesAwards/winners.aspx?id=1622&amp;catid=103">Silver: Best Use of the Internet in a Promotion Marketing Campaign</a></li>
</ul>
<p><strong>Third Sector Excellence Awards</strong></p>
<ul>
<li><a href="http://www.thirdsectorexcellenceawards.com/node/126">Use of Digital Media: Beatbullying, for The Big March</a></li>
</ul>
<p><strong>Institute of Promotional Marketing</strong></p>
<ul>
<li>Digital Promotions (Gold)</li>
<li>Not for Profit (Silver)</li>
</ul>
<p><a href="http://www.theipm.org.uk/The_Institute_of_Promotional_Marketing_Awards/list_of_IPM_Awards_2011_winners.aspx">List of 2011 Winners</a></p>
<p><strong>UTalk Marketing</strong></p>
<ul>
<li><a href="http://www.utalkmarketing.com/pages/Article.aspx?ArticleID=20829&amp;title=Beatbullying_campaign_scoops_Innovation_Champion_award">Innovation Champion</a></li>
<li><a href="http://training.utalkmarketing.com/events/mi-expo-2011/mi-awards/">Innovative Brand Campaign</a></li>
</ul>
<p>For more on the Big March:</p>
<ul>
<li>The <a href="http://www.beatbullying.org/bigmarch/">Big March</a> itself</li>
<li><a href="http://www.beatbullying.org/dox/what-we-do/the-big-march.html">BeatBullying&#8217;s page</a> about the campaign</li>
</ul>
<p>I was the main server-side developer for the campaign, weaving together technologies including Google&#8217;s <a href="http://code.google.com/appengine/">App Engine</a>, <a href="https://www.djangoproject.com/">Django</a> (<a href="http://www.allbuttonspressed.com/projects/django-nonrel">non-rel</a>), <a href="http://www.silassewell.com/blog/2009/12/29/google-app-engine-middleware-gaem/">gaem</a>, <a href="http://wiki.nginx.org/">nginx</a>, and <a href="http://www.crispthinking.com">Crisp</a>&#8216;s community management platform.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/llaisdy.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/llaisdy.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/llaisdy.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/llaisdy.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/llaisdy.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/llaisdy.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/llaisdy.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/llaisdy.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/llaisdy.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/llaisdy.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/llaisdy.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/llaisdy.wordpress.com/294/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/llaisdy.wordpress.com/294/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/llaisdy.wordpress.com/294/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=llaisdy.wordpress.com&amp;blog=5425747&amp;post=294&amp;subd=llaisdy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://llaisdy.wordpress.com/2011/06/17/beatbullying-big-march-awards/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">llaisdy</media:title>
		</media:content>
	</item>
		<item>
		<title>iScheme, with little iPhone, something beginning with (</title>
		<link>http://llaisdy.wordpress.com/2011/05/27/ischeme-with-little-iphone-something-beginning-with/</link>
		<comments>http://llaisdy.wordpress.com/2011/05/27/ischeme-with-little-iphone-something-beginning-with/#comments</comments>
		<pubDate>Fri, 27 May 2011 08:37:58 +0000</pubDate>
		<dc:creator>llaisdy</dc:creator>
				<category><![CDATA[Lisp]]></category>
		<category><![CDATA[Mobile]]></category>

		<guid isPermaLink="false">http://llaisdy.wordpress.com/?p=282</guid>
		<description><![CDATA[I bought iScheme a while ago, purely for the novelty value, and thought little more of it. The other day I was browsing through The Little Schemer with my son, and we came across an exercise to write a function that adds two numbers, using only operations for add 1, subtract 1, and a test [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=llaisdy.wordpress.com&amp;blog=5425747&amp;post=282&amp;subd=llaisdy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I bought <a href="http://itunes.apple.com/us/app/ischeme/id395305584">iScheme</a> a while ago, purely for the novelty value, and thought little more of it.  The other day I was browsing through <a href="http://www.ccs.neu.edu/home/matthias/BTLS/">The Little Schemer</a> with my son, and we came across an exercise to write a function that adds two numbers, using only operations for add 1, subtract 1, and a test for zero (p. 60).</p>
<p>After taking some time to express our mind-bogglement, we decided that the problem would become more accessible if we thought of the two numbers to be added as two piles of coins, and the operations as &#8220;take a coin&#8221;, &#8220;put a coin&#8221;, and &#8220;is this pile empty?&#8221;</p>
<p>Later that night I couldn&#8217;t resist trying it out on my phone:</p>
<p><a href="http://llaisdy.files.wordpress.com/2011/05/ischeme.png"><img src="http://llaisdy.files.wordpress.com/2011/05/ischeme.png?w=480" alt="iScheme iPhone screenshot" title="ischeme"   class="aligncenter size-full wp-image-283" /></a></p>
<p><a href="http://itunes.apple.com/us/app/ischeme/id395305584">iScheme</a>: this little schemer is a perfect companion to <a href="http://www.ccs.neu.edu/home/matthias/BTLS/">The Little Schemer</a>!</p>
<p>I scheme, you scheme, we all scheme on <a href="http://itunes.apple.com/us/app/ischeme/id395305584">iScheme</a>!</p>
<p>etc.</p>
<p>Immodest as it sounds, I have to say I prefer my implementation to the one in the book (reformatted for exposition):</p>
<p><pre class="brush: plain;">
; my version
; (define pls (lambda (x y)
; (cond ((z0 x) y)
; (else (pls (s1 x)(a1 y))
; ))))

; book version
(define pls (lamdba (x y)
(cond ((z0 y) x)
(else (a1 (pls x (s1 y)))
))))
</pre></p>
<p>Why is the book&#8217;s version better?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/llaisdy.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/llaisdy.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/llaisdy.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/llaisdy.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/llaisdy.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/llaisdy.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/llaisdy.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/llaisdy.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/llaisdy.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/llaisdy.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/llaisdy.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/llaisdy.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/llaisdy.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/llaisdy.wordpress.com/282/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=llaisdy.wordpress.com&amp;blog=5425747&amp;post=282&amp;subd=llaisdy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://llaisdy.wordpress.com/2011/05/27/ischeme-with-little-iphone-something-beginning-with/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">llaisdy</media:title>
		</media:content>

		<media:content url="http://llaisdy.files.wordpress.com/2011/05/ischeme.png" medium="image">
			<media:title type="html">ischeme</media:title>
		</media:content>
	</item>
		<item>
		<title>Browsing error logs on a remote node</title>
		<link>http://llaisdy.wordpress.com/2011/05/18/browsing-error-logs-on-a-remote-node/</link>
		<comments>http://llaisdy.wordpress.com/2011/05/18/browsing-error-logs-on-a-remote-node/#comments</comments>
		<pubDate>Wed, 18 May 2011 10:52:27 +0000</pubDate>
		<dc:creator>llaisdy</dc:creator>
				<category><![CDATA[Erlang]]></category>

		<guid isPermaLink="false">http://llaisdy.wordpress.com/?p=277</guid>
		<description><![CDATA[First, set up your sasl This config sets up a directory for rolling logs (max ten files, each max 10 megabytes). More configs on the man page. And when you run erlang, tell it where your config file is: n.b.: erlang expects the config file to have the extension .config, which you don&#8217;t give in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=llaisdy.wordpress.com&amp;blog=5425747&amp;post=277&amp;subd=llaisdy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>First, set up your sasl</strong></p>
<p>This config sets up a directory for rolling logs (max ten files, each max 10 megabytes).  More configs on the <a href="http://www.erlang.org/doc/man/sasl_app.html">man page</a>.</p>
<p><pre class="brush: erlang; light: true;">
% erl_config.config
[
 {sasl, [
         {sasl_error_logger, false},
         {error_logger_mf_dir, &quot;/path/to/a/dir/for/erl/logs/&quot;},
         {error_logger_mf_maxbytes, 10485760},  % 10 MB
         {error_logger_mf_maxfiles, 10}
         ]
  }
].
</pre></p>
<p>And when you run erlang, tell it where your config file is:</p>
<p><pre class="brush: erlang; light: true;">
erl -config /path/to/erl_config -boot start_sasl  ... more args ...
</pre></p>
<p>n.b.:</p>
<ul>
<li>erlang expects the config file to have the extension .config, which you <em>don&#8217;t</em> give in the command line.</li>
<li>the above config is cribbed from <a href="http://pragprog.com/titles/jaerlang/programming-erlang">Programming Erlang</a>.  I was surprised to find that <a href="http://www.manning.com/logan/">Erlang and OTP in Action</a> does <em>not</em> describe how to configure the sasl error logger.</li>
</ul>
<p><strong>Connect and browse</strong></p>
<p>Once you&#8217;re connected to the above node (see <a href="http://llaisdy.wordpress.com/2011/05/17/connecting-erlang-nodes/">Connecting erlang nodes</a>), you can run <a href="http://www.erlang.org/doc/man/rb.html">rb</a>, the report browser.  A little bit of set up is required.  See this <a href="http://stackoverflow.com/questions/2355744/running-the-report-browser-rb-for-sasl-error-reports-whilst-in-a-remote-shell">discussion on stackoverflow</a>, which encapsulates the setup in a function:</p>
<p><pre class="brush: erlang; light: true;">
%% @doc Start the report browser and reset its group-leader. 
%% For use in a remote shell
start_remote_rb() -&gt;
    {ok, Pid} = rb:start(),
    true = erlang:group_leader(erlang:group_leader(), Pid),
    ok.
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/llaisdy.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/llaisdy.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/llaisdy.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/llaisdy.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/llaisdy.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/llaisdy.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/llaisdy.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/llaisdy.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/llaisdy.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/llaisdy.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/llaisdy.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/llaisdy.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/llaisdy.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/llaisdy.wordpress.com/277/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=llaisdy.wordpress.com&amp;blog=5425747&amp;post=277&amp;subd=llaisdy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://llaisdy.wordpress.com/2011/05/18/browsing-error-logs-on-a-remote-node/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">llaisdy</media:title>
		</media:content>
	</item>
		<item>
		<title>Connecting erlang nodes</title>
		<link>http://llaisdy.wordpress.com/2011/05/17/connecting-erlang-nodes/</link>
		<comments>http://llaisdy.wordpress.com/2011/05/17/connecting-erlang-nodes/#comments</comments>
		<pubDate>Tue, 17 May 2011 13:27:00 +0000</pubDate>
		<dc:creator>llaisdy</dc:creator>
				<category><![CDATA[Erlang]]></category>

		<guid isPermaLink="false">http://llaisdy.wordpress.com/?p=272</guid>
		<description><![CDATA[In order to connect to each other, erlang nodes each need a name, they need to share a secret cookie, and if they&#8217;re to communicate over the internet, they need access to ports. The secret cookie can be either set at runtime (as in the examples below), or in each user&#8217;s .erlang.cookie file. For local [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=llaisdy.wordpress.com&amp;blog=5425747&amp;post=272&amp;subd=llaisdy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In order to connect to each other, erlang nodes each need a name, they need to share a secret cookie, and if they&#8217;re to communicate over the internet, they need access to ports.</p>
<p>The secret cookie can be either set at runtime (as in the examples below), or in each user&#8217;s .erlang.cookie file.</p>
<p><strong>For local connection</strong></p>
<p>On the same machine or subnet, each node just needs a short name:</p>
<p><pre class="brush: erlang; light: true;">
$ erl -sname chico -setcookie marx
...
(chico@localhost)1&gt;
</pre></p>
<p><strong>For internet connection</strong></p>
<p>Each node must have the following ports available:</p>
<ul>
<li>port 4369, used by epmd (the Erlang Port Mapper Daemon, not <a href="http://www.youtube.com/watch?v=BaRyITQULV0">Erick and Parrish Making Dollars</a>), must be open for both TCP and UDP (n.b.: this is a default).</li>
<li>another port or range of ports for the erlang nodes themselves.  These nodes can be set at run time using the -kernel, inet_dist_listen_min and inet_dist_listen_max flags.</li>
</ul>
<p>Each node must also use a full name, with either a domain or an IP address:</p>
<p><pre class="brush: erlang; light: true;">
$ erl  -name chico@brothers.org  -setcookie longrandomstring  -kernel inet_dist_listen_min 9000  inet_dist_listen_max 9005
(chico@brothers.org)1&gt;
</pre></p>
<p><strong>Connecting</strong></p>
<p>Erlang nodes are gregarious: as soon as nodes find out about each other, they connect.  An easy way to say hello is &#8220;ping&#8221;:</p>
<p><pre class="brush: erlang; light: true;">
(chico@localhost)1&gt; nodes().
[]
(chico@localhost)2&gt; net_adm:ping(groucho@localhost).
pong
(chico@localhost)3&gt; nodes().                        
[groucho@localhost]
(chico@localhost)4&gt; ^g
User switch command
 --&gt; r groucho@localhost
 --&gt; c
Eshell V5.7.2  (abort with ^G)
(groucho@localhost)1&gt; 
</pre></p>
<p>You can skip the connection palaver by using the -remsh flag at startup:</p>
<p><pre class="brush: erlang; light: true;">
$ erl -sname chico -setcookie marx -remsh groucho@localhost
...
(groucho@localhost)1&gt;
</pre></p>
<p><strong>etc</strong></p>
<p>Introspection GUIs like AppMon and Pman can access any connected node (see the Nodes menu in the toolbar).</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/llaisdy.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/llaisdy.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/llaisdy.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/llaisdy.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/llaisdy.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/llaisdy.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/llaisdy.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/llaisdy.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/llaisdy.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/llaisdy.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/llaisdy.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/llaisdy.wordpress.com/272/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/llaisdy.wordpress.com/272/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/llaisdy.wordpress.com/272/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=llaisdy.wordpress.com&amp;blog=5425747&amp;post=272&amp;subd=llaisdy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://llaisdy.wordpress.com/2011/05/17/connecting-erlang-nodes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">llaisdy</media:title>
		</media:content>
	</item>
		<item>
		<title>DragonFly BSD: copying the image onto a USB stick under MacOS X</title>
		<link>http://llaisdy.wordpress.com/2011/05/06/dragonfly-bsd-copying-the-image-onto-a-usb-stick-under-macos-x/</link>
		<comments>http://llaisdy.wordpress.com/2011/05/06/dragonfly-bsd-copying-the-image-onto-a-usb-stick-under-macos-x/#comments</comments>
		<pubDate>Fri, 06 May 2011 12:36:43 +0000</pubDate>
		<dc:creator>llaisdy</dc:creator>
				<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://llaisdy.wordpress.com/?p=266</guid>
		<description><![CDATA[On Unix-like systems low-level byte-to-byte copying is done with dd: dd if=[input file] of=[output location] n.b.: of is a location, not a filename, so you can&#8217;t use the file path to your USB stick, as in: dd if=dfly-i386-gui-2.10.1_REL.img of=/Volumes/MyUSBStick The path to the device location is required, as in: dd if=dfly-i386-gui-2.10.1_REL.img of=/dev/disk1 On MacOSX, how [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=llaisdy.wordpress.com&amp;blog=5425747&amp;post=266&amp;subd=llaisdy&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>On Unix-like systems low-level byte-to-byte copying is done with dd:</p>
<blockquote><p><code>dd if=[input file]  of=[output location]</code></p></blockquote>
<p>n.b.:  of is a location, not a filename, so you can&#8217;t use the file path to your USB stick, as in:</p>
<blockquote><p><code>dd if=dfly-i386-gui-2.10.1_REL.img of=/Volumes/MyUSBStick</code></p></blockquote>
<p>The path to the device location is required, as in:</p>
<blockquote><p><code>dd if=dfly-i386-gui-2.10.1_REL.img of=/dev/disk1</code></p></blockquote>
<p>On MacOSX, how to find out the dev name of your USB port is described in this <a href="https://help.ubuntu.com/community/Installation/FromImgFiles#Mac%20OS%20X">Ubuntu help page</a>.  The following will list the currently mounted devices, with their dev names:</p>
<blockquote><p><code>$ diskutil list</code></p></blockquote>
<p>This will unmount the device, ready for dd:</p>
<blockquote><p><code>$ diskutil unmountDisk /dev/[name]</code></p></blockquote>
<p>And this will do the deed:</p>
<blockquote><p><code>$ dd if=/path/to/input/image of=/dev/[name] bs=2048</code></p></blockquote>
<p>Finally, this will make your device safe for removal.</p>
<blockquote><p><code>$ diskutil eject /dev/</code></p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/llaisdy.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/llaisdy.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/llaisdy.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/llaisdy.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/llaisdy.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/llaisdy.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/llaisdy.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/llaisdy.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/llaisdy.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/llaisdy.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/llaisdy.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/llaisdy.wordpress.com/266/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/llaisdy.wordpress.com/266/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/llaisdy.wordpress.com/266/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=llaisdy.wordpress.com&amp;blog=5425747&amp;post=266&amp;subd=llaisdy&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://llaisdy.wordpress.com/2011/05/06/dragonfly-bsd-copying-the-image-onto-a-usb-stick-under-macos-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">llaisdy</media:title>
		</media:content>
	</item>
	</channel>
</rss>
