<?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>Flavio Ishii &#187; Erlang</title>
	<atom:link href="http://www.flavioishii.com/tag/erlang/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flavioishii.com</link>
	<description>&#34;Live as if you were to die tomorrow. Learn as if you were to live forever.” Mahatma Gandhi</description>
	<lastBuildDate>Tue, 29 Mar 2011 03:37:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Erlang &amp; Webmachine on Rackspace CentOS Cloud Server</title>
		<link>http://www.flavioishii.com/2010/04/erlang-webmachine-on-rackspace-centos-cloud-server/</link>
		<comments>http://www.flavioishii.com/2010/04/erlang-webmachine-on-rackspace-centos-cloud-server/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 17:22:07 +0000</pubDate>
		<dc:creator>flavio</dc:creator>
				<category><![CDATA[About]]></category>
		<category><![CDATA[basho]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[Erlang]]></category>
		<category><![CDATA[rackspace]]></category>
		<category><![CDATA[Webmachine]]></category>

		<guid isPermaLink="false">http://www.flavioishii.com/?p=180</guid>
		<description><![CDATA[This is a quick step-by-step process for getting Erlang (R13B04)  and Webmachine running on a clean CentOS 5.4 Rackspace cloud server. Once you create your cloud server on Rackspace, open the Web console. Secure your server Follow the instructions for Securing your cloud server. Also do the following: $ visudo /sudoers # Allow sudo cmd [...]]]></description>
			<content:encoded><![CDATA[<p>This is a quick step-by-step process for getting Erlang (R13B04)  and Webmachine running on a clean CentOS 5.4 Rackspace cloud server.<span id="more-180"></span></p>
<p>Once you create your cloud server on Rackspace, open the Web console. </p>
<h3>Secure your server</h3>
<p>Follow the <a title="Rackspace Server Security" href="http://cloudservers.rackspacecloud.com/index.php/Basic_Cloud_Server_Security" target="_blank">instructions</a> for Securing your cloud server. Also do the following:<br />
<span style="font-family: 'lucida console';">$ visudo<br />
/sudoers<br />
# Allow sudo cmd access to new user<br />
[new_user] ALL=(ALL) ALL</span></p>
<h3>Setup your Firewall</h3>
<h4>Check your iptables current configurations</h4>
<p><span style="font-family: 'lucida console';">$ iptables -L</span></p>
<h4>Open ports</h4>
<p><span style="font-family: 'lucida console';">$ sudo /sbin/iptables -I RH-Firewall-1-INPUT 1 -p tcp &#8211;dport http -j ACCEPT<br />
$ sudo /sbin/iptables -I RH-Firewall-1-INPUT 1 -p tcp &#8211;dport https -j ACCEPT<br />
$ sudo /sbin/iptables -I RH-Firewall-1-INPUT 1 -p tcp &#8211;dport ssh -j ACCEPT<br />
$ sudo /sbin/iptables -I RH-Firewall-1-INPUT 1 -p tcp &#8211;dport 8000 -j ACCEPT<br />
$ sudo /sbin/services iptables save</span></p>
<h4>Check your changes</h4>
<p><span style="font-family: 'lucida console';">$ iptables -L</span></p>
<p>Logout and close Web console.</p>
<h3>Install Erlang</h3>
<p>Open a terminal (or Putty on Windows) and SSH as [new_user]<br />
<span style="font-family: 'lucida console';">$ ssh [new_user]@[your cloud server ip]<br />
$ sudo yum install gcc glibc-devel make ncurses-devel openssl-devel<br />
$ wget http://erlang.org/download/otp_src_R13B04.tar.gz<br />
$ tar zxvf otp_src_R13B04.tar.gz<br />
$ cd otp_src_R13B04<br />
$ ./configure &amp;&amp; make &amp;&amp; sudo make install</span></p>
<h3>Install Mercurial via RPM</h3>
<p><span style="font-family: 'lucida console';">$ yum install python-devel rpm-buildtp://mercurial.selenic.com/release/mercurial-1.4.1.tar.gz<br />
$ wget http://mercurial.selenic.com/release/mercurial-1.4.1.tar.gz<br />
$ cp mercurial-1.4.1.tar.gz mercurial-1.4.1.tar.gz.orig<br />
$ tar zxvf mercurial-1.4.1.tar.gz<br />
$ cd mercurial-1.4.1/<br />
$ cp contrib/mercurial.spec contrib/mercurial.spec.orig<br />
$ sed -i -e&#8217;s/snapshot/1\.4\.1/&#8217; contrib/mercurial.spec<br />
$ sed -i -e&#8217;s/, docutils &gt;= 0.5//&#8217; contrib/mercurial.spec<br />
$ cd ../</span><br />
<span style="font-family: 'lucida console';"> $ tar cvf &#8211; mercurial-1.4.1 | gzip &gt; mercurial-1.4.1.tar.gz$ rpmbuild -tb mercurial-1.4.1.tar.gz<br />
$ rpm -Uvh /usr/src/redhat/RPMS/i386/mercurial-1.4.1-0.x86_64.rpm<br />
$ hg &#8211;version</span></p>
<h3>Install Webmachine</h3>
<p><span style="font-family: 'lucida console';">$ hg clone http://bitbucket.org/basho/webmachine/<br />
$ cp -r webmachine /home/projects<br />
$ cd /home/projects/webmachine<br />
$ make<br />
$ /scripts/new_webmachine.sh ediaryAPI ..<br />
$ cd ../e*<br />
$ make</span></p>
<h3>Run Webmachine</h3>
<p><span style="font-family: 'lucida console';">$ ./start.sh<br id="zw-128220403d22Jh8c11be65" /></span><br />
<span style="font-family: 'lucida console';"><strong id="zw-1282b86c3eaI6c1u11be65">Visit</strong> http://[ip]:[port]<br />
</span></p>
<h3>References</h3>
<p><a id="zw-1282b8d76f37zBXjJ11be65" title="Installing Erlang" href="https://wiki.basho.com/display/RIAK/Installing+Erlang" target="_blank">https://wiki.basho.com/display/RIAK/Installing+Erlang</a><br />
<a title="Rackspace Firewall" href="http://cloudservers.rackspacecloud.com/index.php/Firewalls" target="_blank">http://cloudservers.rackspacecloud.com/index.php/Firewalls</a><br />
<a title="Rackspace Server Security" href="http://cloudservers.rackspacecloud.com/index.php/Basic_Cloud_Server_Security" target="_blank">http://cloudservers.rackspacecloud.com/index.php/Basic_Cloud_Server_Security</a><br />
<a title="Rackspace iptables rules" href="http://cloudservers.rackspacecloud.com/index.php/Common_iptables_rules_for_CentOS_5.3" target="_blank">http://cloudservers.rackspacecloud.com/index.php/Common_iptables_rules_for_CentOS_5.3</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.flavioishii.com/2010/04/erlang-webmachine-on-rackspace-centos-cloud-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Erlang Workshop Slides</title>
		<link>http://www.flavioishii.com/2009/10/erlang-workshop-slides/</link>
		<comments>http://www.flavioishii.com/2009/10/erlang-workshop-slides/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 20:35:41 +0000</pubDate>
		<dc:creator>flavio</dc:creator>
				<category><![CDATA[About]]></category>
		<category><![CDATA[DETS]]></category>
		<category><![CDATA[Erlang]]></category>
		<category><![CDATA[ETS]]></category>
		<category><![CDATA[Mnesia]]></category>
		<category><![CDATA[Mochiweb]]></category>
		<category><![CDATA[Webmachine]]></category>

		<guid isPermaLink="false">http://www.flavioishii.com/?p=115</guid>
		<description><![CDATA[Two sets of slides were presented at the Erlang Workshop in Saskatoon on September 17, 2009. One on Erlang data storage modules and the other on Erlang-based Mochiweb and Webmachine.]]></description>
			<content:encoded><![CDATA[<p>These two sets of slides were presented at the Erlang Workshop in Saskatoon on September 17, 2009. <a title="Erlang Workshop Brochure" href="http://www.flavioishii.com/wp-content/uploads/2009/10/erlang_workshop.pdf">See brochure</a>.</p>
<p>The first set goes over the Erlang data storage modules ETS, DETS, and Mnesia. These modules are part of the Erlang library and are extremely powerful and flexible for storing data. The second set briefly outlines Mochiweb and Webmachine. Mochiweb can be used on its own as a lightweight HTTP server. Webmachine is built on top of Mochiweb providing a Web service gateway interface, ideal for building an API server.<span id="more-115"></span></p>
<p><a style="margin: 12px auto 6px auto; font-family: Helvetica,Arial,Sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none; display: block;" title="View Erlang Data Storage Modules on Scribd" href="http://www.scribd.com/doc/20492533/Erlang-Data-Storage-Modules">Erlang Data Storage Modules</a> <object id="doc_417737148111366" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="100%" height="500" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="name" value="doc_417737148111366" /><param name="align" value="middle" /><param name="quality" value="high" /><param name="play" value="true" /><param name="loop" value="true" /><param name="scale" value="showall" /><param name="wmode" value="opaque" /><param name="devicefont" value="false" /><param name="bgcolor" value="#ffffff" /><param name="menu" value="true" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://d1.scribdassets.com/ScribdViewer.swf?document_id=20492533&amp;access_key=key-1luoz4e3c43athy9zeps&amp;page=1&amp;version=1&amp;viewMode=" /><param name="allowfullscreen" value="true" /><embed id="doc_417737148111366" type="application/x-shockwave-flash" width="100%" height="500" src="http://d1.scribdassets.com/ScribdViewer.swf?document_id=20492533&amp;access_key=key-1luoz4e3c43athy9zeps&amp;page=1&amp;version=1&amp;viewMode=" allowscriptaccess="always" allowfullscreen="true" menu="true" bgcolor="#ffffff" devicefont="false" wmode="opaque" scale="showall" loop="true" play="true" quality="high" align="middle" name="doc_417737148111366"></embed></object></p>
<p><a style="margin: 12px auto 6px auto; font-family: Helvetica,Arial,Sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none; display: block;" title="View Webmachine on Scribd" href="http://www.scribd.com/doc/20492861/Webmachine">Webmachine</a> <object id="doc_866509925998333" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="100%" height="500" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="name" value="doc_866509925998333" /><param name="align" value="middle" /><param name="quality" value="high" /><param name="play" value="true" /><param name="loop" value="true" /><param name="scale" value="showall" /><param name="wmode" value="opaque" /><param name="devicefont" value="false" /><param name="bgcolor" value="#ffffff" /><param name="menu" value="true" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://d1.scribdassets.com/ScribdViewer.swf?document_id=20492861&amp;access_key=key-1lkwipjqhsw1ou4kju3a&amp;page=1&amp;version=1&amp;viewMode=" /><param name="allowfullscreen" value="true" /><embed id="doc_866509925998333" type="application/x-shockwave-flash" width="100%" height="500" src="http://d1.scribdassets.com/ScribdViewer.swf?document_id=20492861&amp;access_key=key-1lkwipjqhsw1ou4kju3a&amp;page=1&amp;version=1&amp;viewMode=" allowscriptaccess="always" allowfullscreen="true" menu="true" bgcolor="#ffffff" devicefont="false" wmode="opaque" scale="showall" loop="true" play="true" quality="high" align="middle" name="doc_866509925998333"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.flavioishii.com/2009/10/erlang-workshop-slides/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blog Abstract</title>
		<link>http://www.flavioishii.com/2009/08/blog-abstract/</link>
		<comments>http://www.flavioishii.com/2009/08/blog-abstract/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 18:11:00 +0000</pubDate>
		<dc:creator>flavio</dc:creator>
				<category><![CDATA[About]]></category>
		<category><![CDATA[Erlang]]></category>

		<guid isPermaLink="false">http://www.flavioishii.com/?p=5</guid>
		<description><![CDATA[In the posts to follow I plan to cover various Web and Mobile development topics including: Erlang-based tools like Webmachine and Riak Rhomobile&#8217;s Rhodes Framework, Rhosync Server, and Rhohub BlackBerry RIM development Location-based Social Applications or Community Applications Sustainable Computing Platform as a Service Providers The Future of JavaScript and more Technical topics will be [...]]]></description>
			<content:encoded><![CDATA[<p>In the posts to follow I plan to cover various Web and Mobile development topics including:</p>
<ul>
<li>Erlang-based tools like Webmachine and Riak</li>
<li>Rhomobile&#8217;s Rhodes Framework, Rhosync Server, and Rhohub</li>
<li>BlackBerry RIM development</li>
<li>Location-based Social Applications or Community Applications</li>
<li>Sustainable Computing</li>
<li>Platform as a Service Providers</li>
<li>The Future of JavaScript</li>
<li>and more</li>
</ul>
<p>Technical topics will be kept short and sweet in order to provide quick guides/tutorials. I am not going to claim any technology reviewed here as being the only solution but I will attempt to show when and how to use them.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.flavioishii.com/2009/08/blog-abstract/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

