<?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>Virtual Clouds &#187; tools</title>
	<atom:link href="http://www.virtual-clouds.com/category/tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.virtual-clouds.com</link>
	<description>Erlang and Other Animals</description>
	<lastBuildDate>Mon, 19 Jul 2010 17:42:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>register viewer</title>
		<link>http://www.virtual-clouds.com/2010/07/186/register-viewer/</link>
		<comments>http://www.virtual-clouds.com/2010/07/186/register-viewer/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 16:04:42 +0000</pubDate>
		<dc:creator>ofer affias</dc:creator>
				<category><![CDATA[tools]]></category>
		<category><![CDATA[vlsi]]></category>

		<guid isPermaLink="false">http://www.virtual-clouds.com/?p=186</guid>
		<description><![CDATA[inspired by Eran Galil&#8217;s tcl/tk application few years ago, i have created a simple tool to easily manipulate hardware registers: register viewer]]></description>
			<content:encoded><![CDATA[<p>inspired by Eran Galil&#8217;s tcl/tk application few years ago, i have created a simple tool to easily manipulate hardware registers: <a href="/register-viewer">register viewer</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.virtual-clouds.com/2010/07/186/register-viewer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>everymark</title>
		<link>http://www.virtual-clouds.com/2009/11/112/everymark/</link>
		<comments>http://www.virtual-clouds.com/2009/11/112/everymark/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 21:41:30 +0000</pubDate>
		<dc:creator>ofer affias</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.virtual-clouds.com/?p=112</guid>
		<description><![CDATA[i have just finished writing my first google chrome extension. took my half a day overall, few of hours here and there, but compared to firefox the red-tape stuff was much easier. actually it is very simple, you make a new direcotry, and create &#8216;manifest.json&#8217; description file, it includes all of the extension official stuff, <a href='http://www.virtual-clouds.com/2009/11/112/everymark/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.virtual-clouds.com/wp-content/uploads/2009/11/everymark.png" alt="everymark" title="everymark" width="300" height="94" class="alignleft size-full wp-image-136" /> i have just finished writing my first google chrome extension. took my half a day overall, few of hours here and there, but compared to firefox the red-tape stuff was much easier.</p>
<p>actually it is very simple, you make a new direcotry, and create &#8216;manifest.json&#8217; description file, it includes all of the extension official stuff, like name, version, description and permissions. it also include pointers to other files &#8211; html and javascripts.</p>
<p>that&#8217;s it, from here it is plain web: html/css and javascript.</p>
<p>one thing worth mentioning is that if you change the manifest file you need to explicitly reload your extension on your chrome://extensions/ page, otherwise things like permissions are not updated. other stuff like html/javascript files are reloaded each time you invoke your extension, so no need to do nothing on this case.</p>
<p>what i was working on? well, long time ago i have found out that the old school method of cataloging things and then searching them by their location is not very effective, you pay a lot of time on the WRITE side and you pay as well on the READ side, using metaphor from the database world.</p>
<p>the search capability of <a href="http://www.voidtools.com/">everything</a> and <a href="/2009/10/64/sublime-text-the-vi-modern-alternative/">sublime text projects</a> are far better, just see all the database as one flat list and start filtering it by your search term. so that what i did on my bookmarks, and here is the result:</p>
<p><a href="https://chrome.google.com/extensions/detail/ccgmhgakppaknnnnbgkmpdlnpjokhcpb">everymark &#8211; &#8216;everything&#8217; search on my bookmark</a>.</p>
<p>when clicking the icon, a nice popup will appear, populated with a list of all your bookmarks and their links, whenever you start typing search terms the list will shrink to contain only the relevant bookmarks &#8211; neat <img src='http://www.virtual-clouds.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  &#8211; any way enjoy.</p>
<p><a href="http://www.virtual-clouds.com/wp-content/uploads/2009/11/everymark-screenshot.png"><img src="http://www.virtual-clouds.com/wp-content/uploads/2009/11/everymark-screenshot1-300x208.png" alt="everymark-screenshot" title="everymark-screenshot" width="300" height="208" class="alignnone size-medium wp-image-113" /></a></p>
<p>btw, for references about writing the extension i have use the following pages:</p>
<p><a href="http://code.google.com/chrome/extensions/devguide.html">http://code.google.com/chrome/extensions/devguide.html</a><br />
<a href="http://code.google.com/chrome/extensions/api_index.html">http://code.google.com/chrome/extensions/api_index.html</a><br />
<a href="http://code.google.com/chrome/extensions/tut_debugging.html">http://code.google.com/chrome/extensions/tut_debugging.html</a></p>
<p>* * *</p>
<p><strong>revisions:</strong></p>
<table class="my-basic">
<tbody>
<tr>
<td><a href="https://chrome.google.com/extensions/detail/ccgmhgakppaknnnnbgkmpdlnpjokhcpb">v1.8.3</a></td>
<td>startup speed improvements on favicons</td>
</tr>
<tr>
<td><a href="/share/everymark-1.8.2.crx">v1.8.2</a></td>
<td>fixed selection bug on v1.8.1</td>
</tr>
<tr>
<td><a href="/share/everymark-1.8.1.crx">v1.8.1</a></td>
<td>un-obfuscated  </td>
</tr>
<tr>
<td><a href="/share/everymark-1.8.crx">v1.8</a></td>
<td>show full URL as tooltip on hover</td>
</tr>
<tr>
<td><a href="/share/everymark-1.7.1.crx">v1.7.1</a></td>
<td>show full URL as tooltip on hover</td>
</tr>
<tr>
<td><a href="/share/everymark-1.7.crx">v1.7</a></td>
<td>show sites&#8217; favicons</td>
</tr>
<tr>
<td><a href="/share/everymark-1.6.1.crx">v1.6.1</a></td>
<td>better visualization on deletion of bookmark</td>
</tr>
<tr>
<td><a href="/share/everymark-1.6.crx">v1.6</a></td>
<td>sort by date, double click to open, tooltip on extension icon</td>
</tr>
<tr>
<td><a href="/share/everymark-1.5.1.crx">v1.5.1</a></td>
<td>filter bookmarklets (thanks to Darío Macchi), better context menu</td>
</tr>
<tr>
<td><a href="/share/everymark-1.5.crx">v1.5</a></td>
<td>columns can be sorted, revised context menu</td>
</tr>
<tr>
<td><a href="/share/everymark-1.4.crx">v1.4</a></td>
<td>added context menu (right click) with option to delete bookmark</td>
</tr>
<tr>
<td><a href="/share/everymark-1.3.1.crx">v1.3.1</a></td>
<td>filter groups/folders from the list</td>
</tr>
<tr>
<td><a href="/share/everymark-1.3.crx">v1.3</a></td>
<td>wraps row selection on table edges</td>
</tr>
<tr>
<td><a href="/share/everymark-1.2.1.crx">v1.2.1</a></td>
<td>supports auto-update</td>
</tr>
<tr>
<td><a href="/share/everymark-1.2.crx">v1.2</a></td>
<td>supports multiple search terms (space separated)</td>
</tr>
<tr>
<td><a href="/share/everymark-1.1.crx">v1.1</a></td>
<td>supports manual selection with arrow keys and launching with enter key</td>
</tr>
<tr>
<td><a href="/share/everymark-1.0.2.crx">v1.0.2</a></td>
<td>few minor fixes</td>
</tr>
<tr>
<td><a href="/share/everymark-1.0.1.crx">v1.0.1</a></td>
<td>added extension icons</td>
</tr>
<tr>
<td><a href="/share/everymark-1.0.crx">v1.0</a></td>
<td>initial release</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.virtual-clouds.com/2009/11/112/everymark/feed/</wfw:commentRss>
		<slash:comments>35</slash:comments>
		</item>
		<item>
		<title>cleaner menus</title>
		<link>http://www.virtual-clouds.com/2009/10/100/cleaner-menus/</link>
		<comments>http://www.virtual-clouds.com/2009/10/100/cleaner-menus/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 19:41:32 +0000</pubDate>
		<dc:creator>ofer affias</dc:creator>
				<category><![CDATA[tools]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://www.virtual-clouds.com/?p=100</guid>
		<description><![CDATA[after installing so and so utilities, you must have found your self right-clicking on windows explorer, only to gaze at an endless list of options each of the &#8216;wise&#8217; apps has left&#8230; a useful little program to take under control the clutter on the right click menu. to be able to edit or remove entries <a href='http://www.virtual-clouds.com/2009/10/100/cleaner-menus/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>after installing so and so utilities, you must have found your self right-clicking on windows explorer, only to gaze at an endless list of options each of the &#8216;wise&#8217; apps has left&#8230;</p>
<p>a useful little program to take under control the clutter on the right click menu. to be able to edit or remove entries from the shell context menu on windows explorer, look at the <a href="http://www.nirsoft.net/utils/shell_menu_view.html">shell menu view</a> or use this <a href="http://www.nirsoft.net/utils/shmnview.zip">direct download link</a></p>
<div id="attachment_101" class="wp-caption aligncenter" style="width: 666px"><img src="http://www.virtual-clouds.com/wp-content/uploads/2009/10/smnview.png" alt="shell menu view" title="smnview" width="656" height="716" class="size-full wp-image-101" /><p class="wp-caption-text">shell menu view</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.virtual-clouds.com/2009/10/100/cleaner-menus/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>sublime text &#8211; the vi modern alternative</title>
		<link>http://www.virtual-clouds.com/2009/10/64/sublime-text-the-vi-modern-alternative/</link>
		<comments>http://www.virtual-clouds.com/2009/10/64/sublime-text-the-vi-modern-alternative/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 00:16:58 +0000</pubDate>
		<dc:creator>ofer affias</dc:creator>
				<category><![CDATA[tools]]></category>
		<category><![CDATA[sublime]]></category>

		<guid isPermaLink="false">http://www.virtual-clouds.com/?p=64</guid>
		<description><![CDATA[i was set for another quest &#8211; to find my vi (text editor) modern alternative. for years i have worked with vi, learned to use it as my other hand, it seems there is nothing i can&#8217;t do with this old editor. what makes it so special? in one word: customization. the ability to change <a href='http://www.virtual-clouds.com/2009/10/64/sublime-text-the-vi-modern-alternative/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">i was set for another quest &#8211; to find my vi (text editor) modern alternative. for years i have worked with vi, learned to use it as my other hand, it seems there is nothing i can&#8217;t do with this old editor. what makes it so special? in one word: customization. the ability to change everything, the ability to have plugins and any key binding you can think of. this lead to current big community which supply many many plugins, themes and extensions.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">so, you say&#8230; your quest is done. the problem with the vi text editor, and few can argue with it is pretty ugly. well, it has the kind of style of driving a 40 years old pontiac firebird. yes, it has it charisma, but&#8230; how do should i put it&#8230; time to think of a new toyota <img src='http://www.virtual-clouds.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">moreover have you seen vi on windows? if you didn&#8217;t then don&#8217;t, it will ruin your day. as i migrated to more dynamic workspace, working both on windows and linux i also wanted a good texteditor for windows.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">so, i began to search. i have tried many editors, the only one worth mentioning as a vi windows alternative is the notepad++ which is very fine free editor, with big community and support.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">but the quest didn&#8217;t end there, it wasn&#8217;t what i have looked for, i couldn&#8217;t believe that on the 21 century all the editors look like taken from the windows 95 era.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">looked some more and found many mention textmate. that&#8217;s it i said, but i don&#8217;t have mac, and i don&#8217;t plan on working with one for the near future, isn&#8217;t there something like textmate on windows? well, i googled it, and found three modern text editors which challenged my call.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">e-texteditor, intype and sublime text.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">first i have checked e. i was surprised &#8211; at last! &#8211; i said to my self. it had it all, good looking, customizable, and with active community. it also have nice unique features like personal version control. but most importantly it brings the power of textmate community into the windows world. after this optimistic start, the reality was a bit disappointing. it depends on cygwin, which always surprised my with unusual behavior compared to unix shell. it was buggy. unstable (lucky me, i&#8217;ve used the version control) and not so customizable on its own. as a details geek, i fought with its theme editor and tried to have a custom search marker to fit my theme, i was exhausted after few hours.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">i jumped to intype, it was nice, but seemed dead. the last update at that time (just one year ago) was few month old. next!</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">enter sublime text. a true wonder. my breath was taken, it was so beautiful, genuine ideas, like multiple selection (you can edit as many line you want in the same time, you must see it to understand), ingeniously wicked project management (no more endless tree-click to find a file, using it is like googling inside your project), and customizable to the bone (extendable with pyhton). i&#8217;m home.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">it was a true joy, i could customize everything, from the color of the selection to the key binding i was use to. from the theme and font to use and where, to the snippets of the languages i work with. sublime also support textmate snippets and themes.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">a year have passed, and i am still learning this magnificent artwork. the developer, jon skinnenr, fires up new versions rapidly. i sometimes feel like i have my own text editor under development in the way jon listen and implement user requests.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">the community is very active, great new plugins are coming out each week. there is also a starter site: http://sublime.akalias.net/gettingstarted/index.html</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">as for linux, i just use samba and edit files like i am on windows. sorry vi, i prefer to drive with the air condition on&#8230;</div>
<p>i was set for another quest &#8211; to find a vi (text editor) modern alternative. for years i have worked with vi, learned to use it as my other hand, till it seemed there is nothing i can&#8217;t do with this old editor. what makes it so special? in one word: customization. the ability to change everything, the ability to have plugins and any key binding to anything you can think of. this lead to the current big community which supply many many plugins, themes and extensions.</p>
<p>so, you say, your quest is done, what&#8217;s the problem? the problem with the vi text editor, and few can argue with it, is it&#8217;s pretty ugly. it has the kind of style you have when driving a 40 years old pontiac firebird. yes, it has it charisma, but&#8230; how should i put it&#8230; time to think of a new toyota <img src='http://www.virtual-clouds.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>moreover, have you seen the vi on windows? if you didn&#8217;t, then don&#8217;t, it will ruin your day. as i migrated to a more dynamic workspace, working both on windows and linux i also wanted a good texteditor for windows.</p>
<p>so, i began to search. i have tried many editors, the only one worth mentioning as a vi windows alternative is the notepad++ which is very fine free editor, with big community and support.</p>
<p>but the quest didn&#8217;t end there, it wasn&#8217;t what i have looked for, i couldn&#8217;t believe that on the 21 century all the editors look like are taken from the windows 95 era.</p>
<p>i&#8217;ve looked some more and found many people mention textmate. that&#8217;s it, i said. but i don&#8217;t have mac, and i don&#8217;t plan on working with one for the near future, isn&#8217;t there something like textmate on windows? well, i googled it, and found three modern text editors which challenged my call.</p>
<p>e-texteditor, intype and sublime text.</p>
<p>first i have checked <a href="http://www.e-texteditor.com/">e</a>. i was surprised &#8211; at last! &#8211; i said to my self. it had it all, good looking, customizable, and with active community. it also have nice unique features like personal version control. but most importantly it brings the power of textmate community into the windows world. after this optimistic start, the reality was a bit disappointing. it depends on cygwin, which always surprised my with unusual behavior compared to unix shell. it was buggy. unstable (lucky me, i&#8217;ve used the version control) and not so customizable on its own. as a details geek, i fought with its theme editor and tried to have a custom search marker to fit my theme, i was exhausted after few hours.</p>
<p>i jumped to <a href="http://intype.info/home/index.php">intype</a>, it was nice, but seemed dead. the last update at that time (just one year ago) was few month old (btw, still in alfa phase as i write this after a year). next!</p>
<p><a href="http://www.sublimetext.com/">enter sublime text</a>. i true wonder. my breath was taken, it was so beautiful, genuine ideas, like multiple selection (you can edit as many line you want in the same time, you must see it to understand), ingeniously wicked project management (no more endless tree-click to find a file, using it is like googling inside your project), the minimap (you can see a minimized version of your code, keeping your orientation all the time &#8211; even on big piles of code), and customizable to the bone (extendable with pyhton). i&#8217;m home.</p>
<div id="attachment_65" class="wp-caption aligncenter" style="width: 639px"><img class="size-full wp-image-65 " title="sublime-multiple-selection" src="http://www.virtual-clouds.com/wp-content/uploads/2009/10/sublime-multiple-selection.png" alt="sublime multiple selection" width="629" height="270" /><p class="wp-caption-text">sublime multiple selection</p></div>
<p>it was a true joy, i could customize everything, from the color of the selection to the key binding i was use to. from the theme and font to use and where, to the snippets of the languages i work with. sublime also support textmate snippets and themes.</p>
<p>a year have passed, and i am still learning this magnificent artwork. the developer, jon skinnenr, fires up new versions rapidly. i sometimes feel like i have my own text editor under development in the way jon listen and implement user requests.</p>
<p>the community is very active, great new plugins are coming out each week. <a href="http://sublime.akalias.net/gettingstarted/index.html">there is also a great starter site</a> and a place for <a href="http://www.sublimetextwiki.com/">community plugins and extensions</a>.</p>
<p>i can say now that i have found a decent replacement for the vi, a highly customizable, modern text editor, which actually looks cool.</p>
<p>as for linux, i just use samba and edit files like i am on windows. sorry vi, i prefer to drive with the air condition on&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.virtual-clouds.com/2009/10/64/sublime-text-the-vi-modern-alternative/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>adsweep</title>
		<link>http://www.virtual-clouds.com/2009/09/61/adsweep/</link>
		<comments>http://www.virtual-clouds.com/2009/09/61/adsweep/#comments</comments>
		<pubDate>Sat, 19 Sep 2009 00:04:42 +0000</pubDate>
		<dc:creator>ofer affias</dc:creator>
				<category><![CDATA[tools]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://www.virtual-clouds.com/?p=61</guid>
		<description><![CDATA[here is a new alternative to privoxy solution (which is great btw), which allows to have an adblock script which can be used on google chrome, opera or firefox. there is a nice how-to here. and you can find the official site here. it is called adsweep, and it uses javascript to filter ads on <a href='http://www.virtual-clouds.com/2009/09/61/adsweep/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>here is a new alternative to privoxy solution (which is great btw), which allows to have an adblock script which can be used on google chrome, opera or firefox. <a href="http://www.makeuseof.com/tag/how-to-block-display-ads-in-any-browser-without-adblock/">there is a nice how-to here</a>. and you can find <a href="http://www.adsweep.org/">the official site here</a>. it is called adsweep, and it uses javascript to filter ads on sites you visit.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.virtual-clouds.com/2009/09/61/adsweep/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>yet another colinux instructions</title>
		<link>http://www.virtual-clouds.com/2009/02/54/yet-another-colinux-instructions/</link>
		<comments>http://www.virtual-clouds.com/2009/02/54/yet-another-colinux-instructions/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 23:57:15 +0000</pubDate>
		<dc:creator>ofer affias</dc:creator>
				<category><![CDATA[tools]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.virtual-clouds.com/?p=54</guid>
		<description><![CDATA[i hope this is my last post on colinux and erlang, but although i had written several time about it, i will do it once more, to sum up a little guide to setup a new colinux with the correct way to set erlang on it. i also added few words on adding the nitrogen <a href='http://www.virtual-clouds.com/2009/02/54/yet-another-colinux-instructions/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.virtual-clouds.com/wp-content/uploads/2009/02/colinux-smalllogo1.png" alt="colinux" title="colinux" width="150" height="150" class="alignleft size-full wp-image-94" />i hope this is my last post on colinux and erlang, but although i had written several time about it, i will do it once more, to sum up a little guide to setup a new colinux with the correct way to set erlang on it. i also added few words on adding the <strong>nitrogen</strong> web framework.</p>
<p><em>&gt; is used for windows command prompt</em><br />
<em>$ is used for linux shell prompt</em></p>
<h3> ubuntu 8.04 server </h3>
<ul>
<li> direct download &#8211; <a href="http://ie.releases.ubuntu.com/hardy/ubuntu-8.04.2-server-i386.iso"> http://ie.releases.ubuntu.com/hardy/ubuntu-8.04.2-server-i386.iso</a></li>
<li> or using bittorrent &#8211; <a href="http://releases.ubuntu.com/8.04.2/ubuntu-8.04.2-server-	i386.iso.torrent">http://releases.ubuntu.com/8.04.2/ubuntu-8.04.2-server-i386.iso.torrent</a></li>
<li> put the final iso file on a new directory c:\linux\distro</li>
</ul>
<h3> qemu </h3>
<ul>
<li> direct download &#8211; <a href="http://www.h6.dion.ne.jp/~kazuw/qemu-win/qemu-0.9.0-windows.zip">http://www.h6.dion.ne.jp/~kazuw/qemu-win/qemu-0.9.0-windows.zip</a></li>
<li> extract qemu into a new directory c:\linux\qemu</li>
<li> start windows command prompt</li>
<li> make a 3gb image:

<div class="wp_syntax"><div class="code"><pre class="dos" style="font-family:monospace;"> &gt; fsutil file createnew c:\linux\distro\qemu_ubuntu_3gb <span style="color: #cc66cc;">3221257728</span></pre></div></div>

</li>
<li> make a image for a 512mb swap file:

<div class="wp_syntax"><div class="code"><pre class="dos" style="font-family:monospace;"> &gt; fsutil file createnew c:\linux\distro\qemu_swap_512mb <span style="color: #cc66cc;">536903168</span></pre></div></div>

</li>
<li> on c:\linux\qemu create the next batch file: install.bat, whith the following content:

<div class="wp_syntax"><div class="code"><pre class="dos" style="font-family:monospace;"><span style="color: #33cc33;">@</span><span style="color: #b1b100; font-weight: bold;">ECHO</span> OFF
<span style="color: #b1b100; font-weight: bold;">set</span> <span style="color: #448844;">qemu_dir</span>=C:\linux\distro
<span style="color: #b1b100; font-weight: bold;">set</span> <span style="color: #448844;">hd</span>=<span style="color: #33cc33;">%</span><span style="color: #448888;">qemu_dir</span><span style="color: #33cc33;">%</span>\qemu_ubuntu_3gb
<span style="color: #b1b100; font-weight: bold;">set</span> <span style="color: #448844;">swap</span>=<span style="color: #33cc33;">%</span><span style="color: #448888;">qemu_dir</span><span style="color: #33cc33;">%</span>\qemu_swap_512mb
<span style="color: #b1b100; font-weight: bold;">set</span> <span style="color: #448844;">cdrom</span>=<span style="color: #33cc33;">%</span><span style="color: #448888;">qemu_dir</span><span style="color: #33cc33;">%</span>\ubuntu-8.04.2-server-i386.iso
<span style="color: #b1b100; font-weight: bold;">set</span> <span style="color: #448844;">mem</span>=<span style="color: #cc66cc;">384</span>
qemu -hda <span style="color: #33cc33;">%</span><span style="color: #448888;">hd</span><span style="color: #33cc33;">%</span> -hdb <span style="color: #33cc33;">%</span><span style="color: #448888;">swap</span><span style="color: #33cc33;">%</span> -cdrom <span style="color: #33cc33;">%</span><span style="color: #448888;">cdrom</span><span style="color: #33cc33;">%</span> -m <span style="color: #33cc33;">%</span><span style="color: #448888;">mem</span><span style="color: #33cc33;">%</span> -boot d -L .
<span style="color: #b1b100; font-weight: bold;">pause</span></pre></div></div>

</li>
<li> run the batch file you have just created: install.bat</li>
<li> go through the linux installation, select manually partition when asked, and do the following:
<ul>
<li>create new partitionchoose /dev/sda</li>
<li>choose create as: primary partition</li>
<li>choose file system: ext3</li>
<li>create new partitionchoose /dev/sdb</li>
<li>choose create as: primary partition</li>
<li>choose file system: linux-swap</li>
</ul>
</li>
<li> install, and when you get to the point it asks for restart &#8211; you have finished. it takes some time, so be patient.</li>
</ul>
<h3> colinux </h3>
<ul>
<li> direct download &#8211; <a href="http://downloads.sourceforge.net/colinux/coLinux-0.7.3.exe">http://downloads.sourceforge.net/colinux/coLinux-0.7.3.exe</a></li>
<li> run and install on c:\colinux</li>
<li> don&#8217;t use or download any of the suggested distributions on the install process</li>
<li> download and install unxutils &#8211; <a href="http://gnuwin.epfl.ch/apps/unxutils/en/install/">http://gnuwin.epfl.ch/apps/unxutils/en/install/</a></li>
<li> convert qemu ubuntu image to colinux image

<div class="wp_syntax"><div class="code"><pre class="dos" style="font-family:monospace;"> &gt; <span style="color: #b1b100; font-weight: bold;">cd</span> c:\linux\distro
 &gt; dd <span style="color: #00b100; font-weight: bold;">if</span>=qemu_ubuntu_3gb of=ubuntu_3gb.img bs=<span style="color: #cc66cc;">512</span> skip=<span style="color: #cc66cc;">63</span></pre></div></div>

</li>
<li> you only need the file ubuntu_3gb.img the other 2 files (qemu_swap_512mb and qemu_ubuntu_3gb) can be removed</li>
<li> create new swap file:

<div class="wp_syntax"><div class="code"><pre class="dos" style="font-family:monospace;"> &gt; fsutil file createnew c:\linux\distro\swap_512mb <span style="color: #cc66cc;">536870912</span></pre></div></div>

</li>
<li> create a file on c:\linux\distro named ubuntu8.04.conf, and paste the following into it:

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">kernel=vmlinux
sda1=&quot;c:\linux\distro\ubuntu-8.04.2-server-i386.ext3.3gb.img&quot;
sdb1=&quot;c:\linux\distro\swap_512mb&quot;
root=/dev/sda1 fastboot 3
ro
mem=384
eth0=slirp
eth1=tuntap</pre></div></div>

</li>
<li> create a shortcut for colinux-daemon.exe, right click on it and edit its properties, to add the following parameters (on the shortcut target field):<br />
c:\colinux\colinux-daemon.exe -t nt @c:\linux\distro\ubuntu8.04.conf</li>
<li> start this new shortcut, running the colinux the first time</li>
<li> edit /etc/network/interfaces and the windows tap connection, see my previous post named colinux</li>
<li> install ssh and update:

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">ssh</span>
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> upgrade
$ <span style="color: #c20cb9; font-weight: bold;">chsh</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">bash</span> user_name</pre></div></div>

</li>
<li> connect using putty to 192.168.37.20:22</li>
</ul>
<h3> compress and backup the colinux image </h3>
<ul>
<li> to determine the free space in megabytes

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">df</span> <span style="color: #660033;">-m</span></pre></div></div>

</li>
<li> fill image with zeros

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;"><span style="color: #000000; font-weight: bold;">if</span></span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">of</span>=foobar <span style="color: #007800;">bs</span>=1M <span style="color: #007800;">count</span>=<span style="color: #ff0000;">'above result less 5'</span>
$ <span style="color: #c20cb9; font-weight: bold;">rm</span> foobar</pre></div></div>

</li>
<li> logout, and compress from windows using a compression app, should get around 100MB file</li>
</ul>
<h3> install erlang from source </h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> build-essential
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libncurses5-dev
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">m4</span>
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libssl-dev
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> openssl
&nbsp;
$ <span style="color: #7a0874; font-weight: bold;">cd</span>; <span style="color: #c20cb9; font-weight: bold;">mkdir</span> workspace; <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">!</span>
$ <span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.erlang.org<span style="color: #000000; font-weight: bold;">/</span>download<span style="color: #000000; font-weight: bold;">/</span>otp_src_R12B-5.tar.gz
$ <span style="color: #c20cb9; font-weight: bold;">tar</span> xvfz otp_src_R12B-5.tar.gz
$ <span style="color: #7a0874; font-weight: bold;">cd</span> otp_src_R12B-<span style="color: #000000;">5</span>
$ .<span style="color: #000000; font-weight: bold;">/</span>configure
$ <span style="color: #c20cb9; font-weight: bold;">make</span>
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<h3> install some basics </h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> git subversion ctags <span style="color: #c20cb9; font-weight: bold;">vim</span></pre></div></div>

<h3> setup environment</h3>
<p>edit .bash_profile, and add the following at the bottom</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">ERL_LIBS</span>=<span style="color: #800000;">${HOME}</span><span style="color: #000000; font-weight: bold;">/</span>erlang<span style="color: #000000; font-weight: bold;">/</span>lib</pre></div></div>

<h3> download and install nitrogen </h3>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span>; <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> erlang<span style="color: #000000; font-weight: bold;">/</span>lib; <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">!</span>$
$ git clone git:<span style="color: #000000; font-weight: bold;">//</span>github.com<span style="color: #000000; font-weight: bold;">/</span>rklophaus<span style="color: #000000; font-weight: bold;">/</span>nitrogen.git
$ <span style="color: #7a0874; font-weight: bold;">cd</span> nitrogen
$ <span style="color: #c20cb9; font-weight: bold;">make</span></pre></div></div>

<p></br>done</p>
]]></content:encoded>
			<wfw:commentRss>http://www.virtual-clouds.com/2009/02/54/yet-another-colinux-instructions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nitrogen</title>
		<link>http://www.virtual-clouds.com/2009/01/51/nitrogen/</link>
		<comments>http://www.virtual-clouds.com/2009/01/51/nitrogen/#comments</comments>
		<pubDate>Sun, 25 Jan 2009 23:32:30 +0000</pubDate>
		<dc:creator>ofer affias</dc:creator>
				<category><![CDATA[tools]]></category>
		<category><![CDATA[erlang]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.virtual-clouds.com/?p=51</guid>
		<description><![CDATA[i have stumbled upon a very promissing web framwork for erlang. nitrogen, altough very young (first release was around December 2008), it seems exactly what i have looking for. it actually bring the erlang into the web, allowing to develope a true erlang based web app. nitrogen have several appealing features. the framwork support ajax/comet, <a href='http://www.virtual-clouds.com/2009/01/51/nitrogen/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>i have stumbled upon a very promissing web framwork for erlang. <a href="http://nitrogenproject.com/">nitrogen</a>, altough very young (first release was around December 2008), it seems exactly what i have looking for. it actually bring the erlang into the web, allowing to develope a true erlang based web app.</p>
<p>nitrogen have several appealing features. the framwork support ajax/comet, which is absolutely a shame how easy it ease to use. it allows defining html templates, with &#8216;holes&#8217; in it to insert content from the erlang source. but the real benefit is the ability to write those &#8216;holes&#8217; in erlang modules. those &#8216;holes&#8217; are filled with elements which are parallel to html structures, and because you are using erlang sytax to describe them, you can use the erlang pattern matching and messaging system in it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.virtual-clouds.com/2009/01/51/nitrogen/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>colinux strikes back</title>
		<link>http://www.virtual-clouds.com/2009/01/49/colinux-strikes-back/</link>
		<comments>http://www.virtual-clouds.com/2009/01/49/colinux-strikes-back/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 23:30:38 +0000</pubDate>
		<dc:creator>ofer affias</dc:creator>
				<category><![CDATA[tools]]></category>
		<category><![CDATA[erlang]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.virtual-clouds.com/?p=49</guid>
		<description><![CDATA[because the colinux images are very old, i have decided to build one of my own, based on ubuntu 8.10. so, i followed this post, to create my colinux image. keep in mind installing ubuntu using qemu on windows takes ages (really, few hours, so schedule it to an hour before you go to sleep). <a href='http://www.virtual-clouds.com/2009/01/49/colinux-strikes-back/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>because the colinux images are very old, i have decided to build one of my own, based on ubuntu 8.10. so, i followed this <a href="http://colinux.wikia.com/wiki/Ubuntu61">post</a>, to create my colinux image. keep in mind installing ubuntu using qemu on windows takes ages (really, few hours, so schedule it to an hour before you go to sleep).</p>
<p>later, i just added another conf file to start this colinux, see more details on me previous post:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">kernel=vmlinux
sda1=&quot;c:\linux\distro\ubuntu_8.10.ext3.3gb.img&quot;
sda2=&quot;c:\linux\distro\ext3_disk_1gb.img&quot;
sdb1=&quot;c:\linux\distro\swap_512mb&quot;
root=/dev/sda1 fastboot 3
ro
mem=384
eth0=slirp
eth1=tuntap</pre></div></div>

<p>moreover, i edited the network and samba, again, as i posted before. afterward i have installed erlang and yaws. finally, few fixes and tweaks i have encountered.</p>
<p>because i want it as a server:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> linux-headers-server linux-image-server linux-server</pre></div></div>

<p>to solve and odd error message on startup (mmap: Bad address):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> remove dmidecode <span style="color: #660033;">--purge</span></pre></div></div>

<p>to prevent yaws, and few other services i don&#8217;t need to start after boot:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> update-rc.d <span style="color: #660033;">-f</span> bluetooth remove
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> update-rc.d <span style="color: #660033;">-f</span> gdm remove
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> update-rc.d <span style="color: #660033;">-f</span> yaws remove</pre></div></div>

<p>that&#8217;s it! if you got so far, you are now officialy an uber-geek <img src='http://www.virtual-clouds.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.virtual-clouds.com/2009/01/49/colinux-strikes-back/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[toread]</title>
		<link>http://www.virtual-clouds.com/2008/12/45/toread/</link>
		<comments>http://www.virtual-clouds.com/2008/12/45/toread/#comments</comments>
		<pubDate>Sun, 28 Dec 2008 23:23:01 +0000</pubDate>
		<dc:creator>ofer affias</dc:creator>
				<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://www.virtual-clouds.com/?p=45</guid>
		<description><![CDATA[handy web-clipping i found: toread. simply enter your email address, drag the little [toread] link they supply, and now, every time you stumble on a page you wish to save or read later, just press the [toread] link. the web page and link will be sent to your mail. useful. simple. brilliant.]]></description>
			<content:encoded><![CDATA[<p>handy web-clipping i found: <a href="http://toread.cc/">toread</a>.</p>
<p>simply enter your email address, drag the little [toread] link they supply, and now, every time you stumble on a page you wish to save or read later, just press the [toread] link. the web page and link will be sent to your mail. useful. simple. brilliant.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.virtual-clouds.com/2008/12/45/toread/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>more on chrome</title>
		<link>http://www.virtual-clouds.com/2008/12/41/more-on-chrome/</link>
		<comments>http://www.virtual-clouds.com/2008/12/41/more-on-chrome/#comments</comments>
		<pubDate>Sat, 13 Dec 2008 23:19:50 +0000</pubDate>
		<dc:creator>ofer affias</dc:creator>
				<category><![CDATA[tools]]></category>
		<category><![CDATA[chrome]]></category>

		<guid isPermaLink="false">http://www.virtual-clouds.com/?p=41</guid>
		<description><![CDATA[some random stuff i found about google chrome: javascript snippets which functions like an add-on, can be found here. you have there adblock, linkfy and more. i use linksys WRT54G and i couldn&#8217;t access it with chrome since on login the user name is left empty. i just managed to pass this after entering a <a href='http://www.virtual-clouds.com/2008/12/41/more-on-chrome/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>some random stuff i found about google chrome:</p>
<ol>
<li> javascript snippets which functions like an add-on, <a href="http://blogote.com/2008/resources/google-chrome-with-firefox-addon.html">can be found here</a>. you have there adblock, linkfy and more.</li>
<li> i use linksys WRT54G and i couldn&#8217;t access it with chrome since on login the user name is left empty. i just managed to pass this after entering a space as the user name, with the right password of course <img src='http://www.virtual-clouds.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
<li> last thing is about monospace font on chrome (and firefox as well) is that it look to me too small. i don&#8217;t know why i didn&#8217;t do it so far, but i just changed it&#8217;s size from 13 to 14.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.virtual-clouds.com/2008/12/41/more-on-chrome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
