<?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>Communities, open web and technologies by Bogomil Shopov &#187; Open Technologies</title>
	<atom:link href="http://talkweb.eu/c/open-technologies/feed" rel="self" type="application/rss+xml" />
	<link>http://talkweb.eu</link>
	<description></description>
	<lastBuildDate>Sun, 05 Feb 2012 13:10:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to control HTML5 slides with your hands via webcam</title>
		<link>http://talkweb.eu/openweb/1105</link>
		<comments>http://talkweb.eu/openweb/1105#comments</comments>
		<pubDate>Tue, 31 Jan 2012 13:23:48 +0000</pubDate>
		<dc:creator>Bogo</dc:creator>
				<category><![CDATA[Kindle]]></category>
		<category><![CDATA[Mashup]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Open Technologies]]></category>
		<category><![CDATA[HCI]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[motion]]></category>

		<guid isPermaLink="false">http://talkweb.eu/?p=1105</guid>
		<description><![CDATA[I had an idea to show kind of human computer interaction during my Fosdem talk. I may not use that, because I will not have time to polish it, but it works quite well if you want to use it. The Idea The idea is to control slides only by moving my hand, without any [...]]]></description>
			<content:encoded><![CDATA[<p>I had an idea to show kind of human computer interaction during my Fosdem talk. I may not use that, because I will not have time to polish it, but it works quite well if you want to use it.</p>
<p><strong>The Idea</strong><br />
The idea is to control slides only by moving my hand, without any devices in it. </p>
<p>The plan:<br />
0. My web-cam should detect my move<br />
1. After detection an event should be triggered<br />
2. As a final action the slide should move to the next one <img src='http://talkweb.eu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>Motion detect</h2>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ git clone https:<span style="color: #000000; font-weight: bold;">//</span>github.com<span style="color: #000000; font-weight: bold;">/</span>sackmotion<span style="color: #000000; font-weight: bold;">/</span>motion.git
$ <span style="color: #7a0874; font-weight: bold;">cd</span> motion
$ .<span style="color: #000000; font-weight: bold;">/</span>configure
$ <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p><strong>Configure it</strong></p>
<p>Motion comes with a great almost working config file, so just copy it to make it &#8220;official&#8221;:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">cp</span>  <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>motion-dist.conf <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>motion-dist.conf</pre></div></div>

<p>Open it, search for those values, edit them and read what are they for:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">;on_event_start value
event_gap <span style="color: #000000;">60</span></pre></div></div>

<p>to become:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">on_event_start xdotool key Right <span style="color: #000000; font-weight: bold;">/</span>OR xdotool search <span style="color: #ff0000;">&quot;Mozilla Firefox&quot;</span> windowactivate <span style="color: #660033;">--sync</span> key <span style="color: #660033;">--clearmodifiers</span> Right<span style="color: #000000; font-weight: bold;">/</span>
event_gap <span style="color: #000000;">1</span></pre></div></div>

<h2>Event triggering</h2>
<p>You may need to install <em>xdotool</em> using your package manager. This tool allows you to emulate keyboard action in different combinations, but I will need to emulate pressing the right arrow key.</p>
<p>How it works:</p>
<blockquote><p>When web-cam detects movement an event emulating &#8216;right arrow&#8217; key is pressed. Since I am using HTML5  <a href="http://paulrouget.com/e/dzslides2beta/">DZslides from here</a>, this allows me to move to next slide only with moving my hand in front of my webcam.</p></blockquote>
<h2>Run</h2>
<p>Run it and move your hand in front of your camera. You may want to turn on the logging to see the motion detection and the event detection if it&#8217;s not working at first.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ motion</pre></div></div>

<p>If you have any questions, please let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://talkweb.eu/openweb/1105/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Rust Language &#8211; Hello World</title>
		<link>http://talkweb.eu/openweb/1087</link>
		<comments>http://talkweb.eu/openweb/1087#comments</comments>
		<pubDate>Wed, 25 Jan 2012 09:05:55 +0000</pubDate>
		<dc:creator>Bogo</dc:creator>
				<category><![CDATA[Kindle]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Open Technologies]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://talkweb.eu/?p=1087</guid>
		<description><![CDATA[What is RUST? Rust is an experimental, concurrent, multi-paradigm, compiled programming language developed by Mozilla Labs. It is designed to be practical, supporting pure-functional, concurrent-actor, imperative-procedural, and object-oriented styles. /wikipedia/ How to install it on your Gnu/Linux box? Pre-requirements: g++ 4.4 or clang++ 3.x python 2.6 or later perl 5.0 or later gnu make 3.81 [...]]]></description>
			<content:encoded><![CDATA[<p>What is RUST?</p>
<p>Rust is an experimental, concurrent, multi-paradigm, compiled programming language developed by Mozilla Labs. It is designed to be practical, supporting pure-functional, concurrent-actor, imperative-procedural, and object-oriented styles. /wikipedia/ </p>
<p><strong>How to install it on your Gnu/Linux box?</strong><br />
Pre-requirements:</p>
<ul>
<li>g++ 4.4 or clang++ 3.x</li>
<li>python 2.6 or later</li>
<li>perl 5.0 or later</li>
<li>gnu make 3.81 or later</li>
<li>curl</li>
</ul>
<p><span id="more-1087"></span><br />
<strong>Download latest version</strong> (0.2 pre at the moment)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">git clone https:<span style="color: #000000; font-weight: bold;">//</span>github.com<span style="color: #000000; font-weight: bold;">/</span>mozilla<span style="color: #000000; font-weight: bold;">/</span>rust.git</pre></div></div>

<p><strong>Make it</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">$cd</span> rust
$.<span style="color: #000000; font-weight: bold;">/</span>configure
$ <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>Note:</p>
<blockquote><p>It takes a lot of time and you do need an active internet connection during the compiling process.</p></blockquote>
<p><strong>Hack</strong><br />
Open your Geany or your favourite IDE and write this:</p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;">use std<span style="color: #339933;">;</span>
&nbsp;
fn hello_world<span style="color: #009900;">&#40;</span>name<span style="color: #339933;">:</span> str<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>  
	let greetings<span style="color: #339933;">:</span> str <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;Hello World, &quot;</span><span style="color: #339933;">+</span> name <span style="color: #339933;">+</span><span style="color: #ff0000;">&quot;! and Здравей свят! and 您好，世界！&quot;</span><span style="color: #339933;">;</span>
	std<span style="color: #339933;">::</span><span style="color: #202020;">io</span><span style="color: #339933;">::</span><span style="color: #202020;">println</span><span style="color: #009900;">&#40;</span>greetings<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
fn main<span style="color: #009900;">&#40;</span>args<span style="color: #339933;">:</span> <span style="color: #009900;">&#91;</span>str<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	hello_world<span style="color: #009900;">&#40;</span>args<span style="color: #009900;">&#91;</span><span style="color: #0000dd;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<blockquote><p>Save it as helloworld.rs</p></blockquote>
<p><strong>Compile it</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">$rustc</span> helloworld.rs</pre></div></div>

<p><strong>Execute</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$.<span style="color: #000000; font-weight: bold;">/</span>helloworld.rs Bogo <span style="color: #000000; font-weight: bold;">//</span>put here your name</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://talkweb.eu/openweb/1087/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fosdem protocol for Mozilla Firefox (fosdem:about)</title>
		<link>http://talkweb.eu/openweb/1069</link>
		<comments>http://talkweb.eu/openweb/1069#comments</comments>
		<pubDate>Fri, 20 Jan 2012 13:40:50 +0000</pubDate>
		<dc:creator>Bogo</dc:creator>
				<category><![CDATA[FLOSS Events]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Open Technologies]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[add-on]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[fosdem]]></category>

		<guid isPermaLink="false">http://talkweb.eu/?p=1069</guid>
		<description><![CDATA[I just uploaded for approval an Add-on that defines FOSDEM protocol. What is FOSDEM? FOSDEM is a two-day event organized by volunteers to promote the widespread use of Free and Open Source software. Protocol? This Add-on: defines FOSDEM protocol  (see bellow) it&#8217;s showcase how to create your own protocol for Mozilla Firefox Supported commands: fosdem:about [...]]]></description>
			<content:encoded><![CDATA[<p>I just uploaded for approval an <a href="https://addons.mozilla.org/en-US/firefox/addon/fosdem-basic-protocol-handl/">Add-on that defines FOSDEM protocol</a>.</p>
<h1>What is FOSDEM?</h1>
<p>FOSDEM is a two-day event organized by volunteers to promote the widespread use of Free and Open Source software.</p>
<h1>Protocol?</h1>
<p>This Add-on:</p>
<ul>
<li>defines FOSDEM protocol  (see bellow)</li>
<li>it&#8217;s showcase how to <strong>create your own protocol</strong> for Mozilla Firefox</li>
</ul>
<h2>Supported commands:</h2>
<p><strong>fosdem:about</strong> &#8211; learn more about the event<br />
<strong>fosdem:venue</strong> &#8211; learn more about the venue and transportation<br />
<strong>fosdem:schedule</strong> &#8211; see the latest schedule<br />
<strong>fosdem:2003</strong> to <strong>fosdem:2011</strong> &#8211; see the archive<br />
<strong>fosdem:2012</strong> &#8211; see the info about the 2012 event</p>
<h2>Notice</h2>
<p>If you are fan of Fosdem and Firefox &#8211; <a href="https://addons.mozilla.org/en-US/firefox/addon/fosdem-basic-protocol-handl/">please install it </a>(click on the link) to have fun and to help me develop it more.</p>
<p>A special &#8220;Thank you&#8221; goes to <a href="http://mike.kaply.com/">Mike Kaply</a> and <a href="http://adblockplus.org/blog/">Wladimir Palant </a></p>
<p>See you at Fosdem in 2 weeks.</p>
]]></content:encoded>
			<wfw:commentRss>http://talkweb.eu/openweb/1069/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Open Source GeoServer now coding Java at light-speed using JRebel for free.</title>
		<link>http://talkweb.eu/openweb/1065</link>
		<comments>http://talkweb.eu/openweb/1065#comments</comments>
		<pubDate>Thu, 19 Jan 2012 10:29:05 +0000</pubDate>
		<dc:creator>Bogo</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[Open Technologies]]></category>

		<guid isPermaLink="false">http://talkweb.eu/?p=1065</guid>
		<description><![CDATA[Quite a while ago we decided to give free JRebel licenses to valuable F(L)OSS projects. GeoServer is one of them: &#160; GeoServer is an open source software server written in Java that allows users to share and edit geospatial data. Designed for interoperability, it publishes data from any major spatial data source using open standards. [...]]]></description>
			<content:encoded><![CDATA[<p>Quite a while ago<a title="We make Java Better" href="http://zeroturnaround.com"> we</a> decided to give free JRebel licenses to valuable F(L)OSS projects.</p>
<p>GeoServer is one of them:</p>
<p>&nbsp;</p>
<blockquote><p><a href="http://geoserver.org/display/GEOS/Welcome"><strong>GeoServer</strong></a> is an open source software server written in Java that allows <span style="text-decoration: underline;">users to share and edit geospatial data</span>. Designed for interoperability, it publishes data from any major spatial data source using open standards.</p>
<p>Being a <span style="text-decoration: underline;">community-driven project</span>, GeoServer is developed, tested, and supported by a diverse group of individuals and organizations from around the world.</p>
<p>GeoServer is the reference implementation of the Open Geospatial Consortium (OGC) Web Feature Service (WFS) and Web Coverage Service (WCS) standards, as well as a high performance certified compliant Web Map Service (WMS). GeoServer forms a core component of the Geospatial Web.</p></blockquote>
<p>If you&#8217;re working in Java and you have redeploys, here&#8217;s a solution for you &#8211; Click <a href="http://j.mp/zeDjtg">here to download 1 month</a> trial or see the features <a href="http://zeroturnaround.com/jrebel/features/">from here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://talkweb.eu/openweb/1065/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Testing Zemanta addon for Firefox, while using it :)</title>
		<link>http://talkweb.eu/openweb/1047</link>
		<comments>http://talkweb.eu/openweb/1047#comments</comments>
		<pubDate>Tue, 17 Jan 2012 14:06:01 +0000</pubDate>
		<dc:creator>Bogo</dc:creator>
				<category><![CDATA[Open Technologies]]></category>

		<guid isPermaLink="false">http://talkweb.eu/?p=1047</guid>
		<description><![CDATA[I just discovered a great plugin, called Zemanta. The miracle it does is helping you a lot with your content creation while creating a blog post. What to do? 0. Install the Zemanta plugin from Firefox repo. 1. Open your wordpress blog and start writing something. Let&#8217;s say about SOPA and how dangerous it is [...]]]></description>
			<content:encoded><![CDATA[<p>I just discovered a great plugin, called Zemanta. The miracle it does is helping you a lot with your content creation while creating a blog post.</p>
<p><strong>What to do?</strong><br />
0. Install the <a href="https://addons.mozilla.org/en-US/firefox/addon/zemanta/">Zemanta</a> plugin from <a class="zem_slink" title="Mozilla Firefox" rel="wikipedia" href="http://en.wikipedia.org/wiki/Mozilla_Firefox">Firefox</a> repo.<br />
1. Open your wordpress blog and start writing something. Let&#8217;s say about SOPA and how dangerous it is for the freedom in general.<br />
2. You will see some cool link suggestions to include into your post, what I did.</p>
<p><img class="alignnone size-full wp-image-1056" title="nexmo-7" src="http://talkweb.eu/wp-content/uploads/2012/01/nexmo-7.png" alt="" width="403" height="104" /></p>
<p>&nbsp;</p>
<p>3 Also you will notice the new Zemanta block next to your writing area containing images and news similar to the topic you are writing for.</p>
<p><img class="alignnone size-full wp-image-1055" title="nexmo-8" src="http://talkweb.eu/wp-content/uploads/2012/01/nexmo-8.png" alt="" width="288" height="432" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>4. You can add your own Blog to Zemanta via &#8216;My sources&#8217; menu and to use it as an source and you can link it with easy. You can add other sources as well.</p>
<p><strong>Cons:</strong><br />
- You must using your &#8216;Visual&#8217; (a.k.a <a class="zem_slink" title="WYSIWYG" rel="wikipedia" href="http://en.wikipedia.org/wiki/WYSIWYG">WYSIWYG</a>) mode to compose message. Otherwise Zemanta will not work at all. This is a problem for me, but I may switch back.</p>
<p>- It&#8217;s not working well if you have couple of topics, like the current one. I am talking about Zemanta and SOPA. The content for SOPA is missing<br />
- it actually sends parts of my content somewhere via Internet to be analysed and this may be a security issue for business bloggers.</p>
]]></content:encoded>
			<wfw:commentRss>http://talkweb.eu/openweb/1047/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JRebel and OSGi: Use the right tool for the right job</title>
		<link>http://talkweb.eu/openweb/1026</link>
		<comments>http://talkweb.eu/openweb/1026#comments</comments>
		<pubDate>Mon, 12 Dec 2011 16:50:18 +0000</pubDate>
		<dc:creator>Bogo</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Open Technologies]]></category>

		<guid isPermaLink="false">http://talkweb.eu/?p=1026</guid>
		<description><![CDATA[Often when discussing OSGi at events, conferences or forums, we hear things like, “Yeah, I like JRebel but now we are using OSGi”, or “Does JRebel support OSGi”, or “Isn’t OSGi the same as JRebel?”. Sometimes it happens that people start comparing OSGi to JRebel, which is kind of like comparing a Ferrari to a [...]]]></description>
			<content:encoded><![CDATA[<p>Often when discussing OSGi at events, conferences or forums, we hear  things like, “Yeah, I like JRebel but now we are using OSGi”, or “Does  JRebel support OSGi”, or “Isn’t OSGi the same as JRebel?”. Sometimes it  happens that people start <a href="http://www.infoq.com/news/2011/11/bndtools-11">comparing OSGi to JRebel</a>,  which is kind of like comparing a Ferrari to a Skyscaper; thus, this  article is designed to a) explain the differences on a technical level  what JRebel and OSGi do, b) outline some ideal use cases for OSGi and  JRebel c) clear up any grey areas or misconceptions between the two  technologies. So, let’s go!</p>
<h2 dir="ltr">What is JRebel and what is OSGi?</h2>
<div><a href="http://www.jrebel.com/">JRebel</a> is an anything-Java  plugin that speeds up JVM-based development (Java, Scala, Groovy) by  reloading changes made in your workspace into a running JVM, without  restarts or redeploys, maintaining the state of the application while  you’re coding.</div>
<div>In plain speech:  When developers use JRebel, they see their code changes instantly  without restarting anything, keeping their flow and maintaining state; <a href="http://www.zeroturnaround.com/jrebel/features">JRebel supports various IDEs, app servers and over 40 Java frameworks</a>.</div>
<div><a href="http://www.osgi.org/Main/HomePage">OSGi</a> is a module  system and a dynamic runtime where modules (also called bundles) can  come and go, but your code has to conform to the requirements of the  module system — it is perhaps the only widely used framework for the JVM  that enforces real modularity.</div>
<div>In plain speech: OSGi  projects are inherently more modular than plain Java projects, as long  as you follow the rules — for example, to use classes from another  module, that module needs to declare that it exports the packages  containing those classes.</div>
<div>Bottom line: JRebel is a productivity enhancer for anything Java, while OSGi is at its core a rather strict module system.</div>
<h2 dir="ltr">Read more&#8230;</h2>
<div>Read more here: <a href="http://zeroturnaround.com/blog/jrebel-vs-osgi-use-the-right-tool-for-the-right-job/">http://zeroturnaround.com/blog/jrebel-vs-osgi-use-the-right-tool-for-the-right-job/</a></div>
]]></content:encoded>
			<wfw:commentRss>http://talkweb.eu/openweb/1026/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nobody puts a pirate in the corner</title>
		<link>http://talkweb.eu/openweb/1023</link>
		<comments>http://talkweb.eu/openweb/1023#comments</comments>
		<pubDate>Tue, 06 Dec 2011 09:05:10 +0000</pubDate>
		<dc:creator>Bogo</dc:creator>
				<category><![CDATA[Open Technologies]]></category>

		<guid isPermaLink="false">http://talkweb.eu/?p=1023</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://mafiaafire.com/"><img src="https://static-cdn.addons.mozilla.net/img/uploads/previews/full/65/65325.png?modified=1322666475"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://talkweb.eu/openweb/1023/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Put some Agile into your community</title>
		<link>http://talkweb.eu/openweb/1012</link>
		<comments>http://talkweb.eu/openweb/1012#comments</comments>
		<pubDate>Fri, 02 Dec 2011 10:06:35 +0000</pubDate>
		<dc:creator>Bogo</dc:creator>
				<category><![CDATA[Community Management]]></category>
		<category><![CDATA[Kindle]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[nodejs]]></category>
		<category><![CDATA[Open Technologies]]></category>

		<guid isPermaLink="false">http://talkweb.eu/?p=1012</guid>
		<description><![CDATA[Finding a way to stimulate/encourage your community to do stuff can be a very difficult task.  I will show you an Agile-like approach to do that and actually it works pretty well, but remember: Don&#8217;t try to control your community, try to manage it. Create the infrastructure Get an account in Trello. Define your basic [...]]]></description>
			<content:encoded><![CDATA[<p>Finding a way to stimulate/encourage your community to do stuff can be a very difficult task.  I will show you an Agile-like approach to do that and actually it works pretty well, but remember:</p>
<blockquote><p>Don&#8217;t try to control your community, try to manage it.</p></blockquote>
<h1></h1>
<h1>Create the infrastructure</h1>
<ul>
<li>Get an account in <a href="https://trello.com">Trello.</a></li>
<li>Define your basic iteration period. Let say 2 weeks.</li>
<li>Define tasks.</li>
</ul>
<p><img class="alignnone size-full wp-image-1014" title="tasks" src="http://talkweb.eu/wp-content/uploads/2011/12/tasks.png" alt="" width="299" height="208" /></p>
<h1>Don&#8217;t try to find people who want to contribute.</h1>
<p>&#8220;What? Are you serious?&#8221;</p>
<p>Hell yeah. Try to create tasks first. Put anything you think can be <strong>doable in the next 2 weeks</strong> (This is your main task).</p>
<p>You can start from &#8220;we need someone to tweet using our account&#8221; , &#8220;we need a new wiki&#8221; or something more interesting like &#8220;we need someone to be responsible for beer giveaways&#8221;</p>
<p>Ready?</p>
<h1>Invite</h1>
<p>Ok, now invite ALL community members to create an account and to look at the task.</p>
<p>Let them:</p>
<ol>
<li>Vote for the tasks.  <em>See how community see the importance of the tasks.</em></li>
<li>Add themselves to a task. <em>It&#8217;s a common mistake project manager/leader/the big boss to assign someone to a task.</em> Don&#8217;t do that!</li>
</ol>
<h1>Teams</h1>
<p>Now you can see which people are willing to work together on a certain task and you can create a new board for them.</p>
<p>Let say you have a task website on the main board:</p>
<p><img title="tasks" src="../wp-content/uploads/2011/12/tasks.png" alt="" width="299" height="208" /></p>
<p>And there are 10 people that want to contribute to it. Move them to another board and let them create tasks, with a simple workflow:</p>
<p>Todos &gt; Working on &gt; Done:</p>
<p><a href="http://talkweb.eu/wp-content/uploads/2011/12/chromeless7.png"><img class="alignnone size-medium wp-image-1015" title="chromeless7" src="http://talkweb.eu/wp-content/uploads/2011/12/chromeless7-300x64.png" alt="" width="300" height="64" /></a></p>
<h1><strong>Meetings</strong></h1>
<p>If you have well working community or some kind of core contributors, you can start every iteration with a meeting and to define all the tasks together.<strong> </strong></p>
<h1>Why?</h1>
<ul>
<li><strong> This approach will help you a lot to do things faster. Remember define only tasks that can be done in 2 weeks (or 3 weeks). </strong>It&#8217;s much easier to create a simple skeleton of your website with most, most important functionalities (like who we are and join us) than to plan and create whole website in 2 months<strong>.<br />
</strong></li>
<li>Step by step</li>
<li>Build a community and respect your community member&#8217;s skills.</li>
<li><strong>Invite anyone to join and to help.</strong> It&#8217;s kind of easy to find someone to write a post in a forum or to contact a media representative, because this takes 3-4 minutes.</li>
<li><strong>Get things done!</strong></li>
</ul>
<p><strong><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://talkweb.eu/openweb/1012/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Velocity Conference @Berlin.</title>
		<link>http://talkweb.eu/openweb/992</link>
		<comments>http://talkweb.eu/openweb/992#comments</comments>
		<pubDate>Tue, 25 Oct 2011 10:41:25 +0000</pubDate>
		<dc:creator>Bogo</dc:creator>
				<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Open Technologies]]></category>

		<guid isPermaLink="false">http://talkweb.eu/?p=992</guid>
		<description><![CDATA[Velocity Conference is an that is in my check list since &#8230;forever. This year the event comes to Europe and unfortunately I will not be able to attend, because I have another event scheduled at the almost same time. If you&#8217;re web person this event is a must attend event Velocity Europe is the convergence [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://velocityconf.com/velocityeu/">Velocity Conference</a> is an that is in my check list since &#8230;forever.<br />
This year the event comes to Europe and unfortunately I will not be able to attend, because I have another event scheduled at the almost same time.</p>
<p>If you&#8217;re web person this event is a must attend event <img src='http://talkweb.eu/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<blockquote><p>
Velocity Europe is the convergence of performance and site reliability experts and rock stars who share the unique experience that can only be gained by operating at scale. Velocity gives you two days of critical training, best practices, and case studies from the web ops and performance ecosystem, about how you can make your site scalable, reliable, and fast.
</p></blockquote>
<p><strong>Discount</strong><br />
I&#8217;ve got 19.99% discount code and can share it with you if you write me to shopov.bogomil@gmail.com</p>
]]></content:encoded>
			<wfw:commentRss>http://talkweb.eu/openweb/992/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordCamp Prague 2012</title>
		<link>http://talkweb.eu/openweb/953</link>
		<comments>http://talkweb.eu/openweb/953#comments</comments>
		<pubDate>Tue, 20 Sep 2011 06:07:35 +0000</pubDate>
		<dc:creator>Bogo</dc:creator>
				<category><![CDATA[Open Technologies]]></category>

		<guid isPermaLink="false">http://talkweb.eu/?p=953</guid>
		<description><![CDATA[I am planning to organize a conference focused, but not limited to blogging, hacking and freedom of speech and WordPress in Praha /Prague in February or March 2012. If you are interested in helping, speaking nor sponsoring the event, please drop me a line via my contact page. The conference will be on English and [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://talkweb.eu/wp-content/uploads/2011/09/wclogo.png" alt="" title="wclogo" width="419" height="114" class="alignnone size-full wp-image-954" /></p>
<p>I am planning to organize a conference focused, but not limited to blogging, hacking and freedom of speech  and  WordPress in Praha /Prague in February or March 2012.</p>
<p>If you are interested in helping, speaking nor sponsoring the event, please drop me a line <a href="http://talkweb.eu/contact-me">via my contact page</a>. The conference will be on English and Czech. </p>
<p>&#8211;<br />
Mám v úmyslu uspořádat konferenci zaměřené mimo jiné na blogování, hacking a svobodu projevu a WordPress v Praze  v únoru nebo březnu 2012.</p>
<p>Pokud máte zájem pomoci, mluvit ani sponzorování akce, prosím, napište mi linku <a href="http://talkweb.eu/contact-me"> přes kontaktní stránku </a>. Konference bude v anglickém a českém jazyce.</p>
<p><strong>What is a WordCamp?</strong><br />
/click on the image to see it big/<br />
<a href="http://cdn.wpbeginner.com/infographs/whatisawordcamp.jpg"><img src="http://cdn.wpbeginner.com/infographs/whatisawordcamp.jpg" alt="What is a Wordcamp" width="500" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://talkweb.eu/openweb/953/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MongoDB, Node.js and admin auth</title>
		<link>http://talkweb.eu/openweb/914</link>
		<comments>http://talkweb.eu/openweb/914#comments</comments>
		<pubDate>Wed, 20 Jul 2011 09:22:17 +0000</pubDate>
		<dc:creator>Bogo</dc:creator>
				<category><![CDATA[nodejs]]></category>
		<category><![CDATA[Open Technologies]]></category>
		<category><![CDATA[Auth]]></category>
		<category><![CDATA[mongoDB]]></category>
		<category><![CDATA[node.js]]></category>

		<guid isPermaLink="false">http://talkweb.eu/?p=914</guid>
		<description><![CDATA[There is a big challenge to make MongoDB driver to work with Node.js, but here is an cool and working example to do that: Require: var mongodb = require&#40;&#34;mongodb&#34;&#41;; //require node-mongodb-native var settings = require&#40;'./mconfig'&#41;; //for &#60;a href=&#34;http://talkweb.eu/openweb/901&#34;&#62;settings&#60;/a&#62; Connect to the admin database: var mongoserver = new mongodb.Server&#40;settings.mongo_host, settings.mongo_port, &#123;&#125;&#41;; admindb = new mongodb.Db&#40;'admin', mongoserver&#41;; [...]]]></description>
			<content:encoded><![CDATA[<p>There is a big challenge to make MongoDB driver to work with Node.js, but here is an cool and working example to do that:</p>
<p><strong>Require:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> mongodb <span style="color: #339933;">=</span> require<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;mongodb&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//require node-mongodb-native</span>
<span style="color: #003366; font-weight: bold;">var</span> settings <span style="color: #339933;">=</span> require<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'./mconfig'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//for &lt;a href=&quot;http://talkweb.eu/openweb/901&quot;&gt;settings&lt;/a&gt;</span></pre></div></div>

<p><strong>Connect to the admin database:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> mongoserver <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> mongodb.<span style="color: #660066;">Server</span><span style="color: #009900;">&#40;</span>settings.<span style="color: #660066;">mongo_host</span><span style="color: #339933;">,</span> settings.<span style="color: #660066;">mongo_port</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
admindb <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> mongodb.<span style="color: #660066;">Db</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'admin'</span><span style="color: #339933;">,</span> mongoserver<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Try to auth with admin cretentials:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">&nbsp;
exports.<span style="color: #660066;">adminlogin</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>callback<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
		admindb.<span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span>error<span style="color: #339933;">,</span> client<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
			admindb.<span style="color: #660066;">authenticate</span><span style="color: #009900;">&#40;</span>settings.<span style="color: #660066;">mongo_user</span><span style="color: #339933;">,</span> settings.<span style="color: #660066;">mongo_pass</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span>err<span style="color: #339933;">,</span> val<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		        <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>err<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		             callback<span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		        <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
		            	callback<span style="color: #009900;">&#40;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		        <span style="color: #009900;">&#125;</span>
   		 <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
 	 <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span></pre></div></div>

<p>It returns 1 on success and 0 on failure.</p>
]]></content:encoded>
			<wfw:commentRss>http://talkweb.eu/openweb/914/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Full HTTPS REST server in Node.js</title>
		<link>http://talkweb.eu/openweb/901</link>
		<comments>http://talkweb.eu/openweb/901#comments</comments>
		<pubDate>Wed, 20 Jul 2011 08:11:06 +0000</pubDate>
		<dc:creator>Bogo</dc:creator>
				<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[nodejs]]></category>
		<category><![CDATA[Open Technologies]]></category>
		<category><![CDATA[HTTPS]]></category>
		<category><![CDATA[node.js]]></category>
		<category><![CDATA[REST]]></category>
		<category><![CDATA[settings]]></category>

		<guid isPermaLink="false">http://talkweb.eu/?p=901</guid>
		<description><![CDATA[I will show you now, how to write a simple HTTPS JSON REST server using node.js components. Grab a beer, open your IDE and let&#8217;s start hacking. 0. Create certificates. If you don&#8217;t have valid https certificates, you can generate one for testing purposes. If you need one cool certificate, you can join cacert community. [...]]]></description>
			<content:encoded><![CDATA[<p>I will show you now, how to write a simple HTTPS JSON REST server using node.js components. Grab a beer, open your IDE and let&#8217;s start hacking.</p>
<h1>0. Create certificates.</h1>
<p>If you don&#8217;t have valid https certificates, you can generate one for testing purposes. If you need one cool certificate, you can join <a href="http://www.cacert.org/">cacert</a> community. Anyway, let&#8217;s openssl for a while:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">openssl genrsa <span style="color: #660033;">-out</span> privatekey.pem <span style="color: #000000;">1024</span> 
openssl req <span style="color: #660033;">-new</span> <span style="color: #660033;">-key</span> privatekey.pem <span style="color: #660033;">-out</span> certrequest.csr 
openssl x509 <span style="color: #660033;">-req</span> <span style="color: #660033;">-in</span> certrequest.csr <span style="color: #660033;">-signkey</span> privatekey.pem <span style="color: #660033;">-out</span> certificate.pem</pre></div></div>

<h1>1. Install additional modules.</h1>
<p>We will need just one aditional module, called <a href="http://github.com/cloudhead/journey">journey</a>. </p>
<p>It&#8217;s working only in JSON mode, but anyway I don&#8217;t like XML REST at all. <em>JSON is the future, baby.</em></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">npm <span style="color: #c20cb9; font-weight: bold;">install</span> journey</pre></div></div>

<h1>2. Writing the router.js file.</h1>
<p><strong>- Define the modules required:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> journey <span style="color: #339933;">=</span> require<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'journey'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> https <span style="color: #339933;">=</span> require<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'https'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> fs <span style="color: #339933;">=</span> require<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'fs'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p><strong>- Define the certificates part:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> privateKey <span style="color: #339933;">=</span> fs.<span style="color: #660066;">readFileSync</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'../certs/privatekey.pem'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> certificate <span style="color: #339933;">=</span> fs.<span style="color: #660066;">readFileSync</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'../certs/certificate.pem'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> options <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>
  key<span style="color: #339933;">:</span> privateKey<span style="color: #339933;">,</span>
  cert<span style="color: #339933;">:</span> certificate
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span></pre></div></div>

<p><strong>- Define the router that will handle all REST requests (GET, POST, PUT, DELETE):</strong></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> mrouter <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> <span style="color: #009900;">&#40;</span>journey.<span style="color: #660066;">Router</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p><strong>- Define the map of all requests. In other words what to do when the router receive a request:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">mrouter.<span style="color: #660066;">map</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #006600; font-style: italic;">// Default URL</span>
<span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">root</span>.<span style="color: #660066;">bind</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span>req<span style="color: #339933;">,</span> res<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> res.<span style="color: #660066;">send</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Welcome to my application&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">//GET request on /databases</span>
<span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">get</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'/databases'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">bind</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span>req<span style="color: #339933;">,</span> res<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000066; font-weight: bold;">do</span> something
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">//GET request on a specific database - /database/users21</span>
<span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">get</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/^databases\/([A-Za-z0-9_]+)$/</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">bind</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span>req<span style="color: #339933;">,</span> res<span style="color: #339933;">,</span> id<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	 <span style="color: #006600; font-style: italic;">//id contains 'users21' part       </span>
 <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">/**PUT request example. 
* You can deal with as many parameters as you need, just write the regexp for it and assign a parameter. 
* Here is an example to update a document on a collection on MongoDB database. 
* We have 3 user parameters - 6 parameters in URL:
**/</span>
<span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">put</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/^databases\/([A-Za-z0-9_]+)\/collections+\/([A-Za-z0-9_]+)\/documents+\/([A-Za-z0-9_]+)$/</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">bind</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span>req<span style="color: #339933;">,</span> res<span style="color: #339933;">,</span> dbid<span style="color: #339933;">,</span> collid<span style="color: #339933;">,</span> docid<span style="color: #339933;">,</span> data<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	        res.<span style="color: #660066;">send</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'update '</span><span style="color: #339933;">+</span>docid<span style="color: #339933;">+</span> <span style="color: #3366CC;">'in '</span><span style="color: #339933;">+</span>collid <span style="color: #339933;">+</span> <span style="color: #3366CC;">'on: '</span><span style="color: #339933;">+</span> dbid<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//end mapping</span></pre></div></div>

<h1>3. And the last thing we should do is to turn on the HTTPS server and the router</h1>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">https.<span style="color: #660066;">createServer</span><span style="color: #009900;">&#40;</span>options<span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span>request<span style="color: #339933;">,</span> response<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> body <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">;</span>
&nbsp;
    request.<span style="color: #660066;">addListener</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'data'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span>chunk<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> body <span style="color: #339933;">+=</span> chunk <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    request.<span style="color: #660066;">addListener</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'end'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
        mrouter.<span style="color: #660066;">handle</span><span style="color: #009900;">&#40;</span>request<span style="color: #339933;">,</span> body<span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span>result<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
            response.<span style="color: #660066;">writeHead</span><span style="color: #009900;">&#40;</span>result.<span style="color: #000066;">status</span><span style="color: #339933;">,</span> result.<span style="color: #660066;">headers</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            response.<span style="color: #660066;">end</span><span style="color: #009900;">&#40;</span>result.<span style="color: #660066;">body</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">listen</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">8081</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<h1>4. Run and connect your JSON client on httpS://127.0.0.1:8081 to test it.</h1>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">node router.<span style="color: #660066;">js</span></pre></div></div>

<p><img src="http://talkweb.eu/wp-content/uploads/2011/07/rest.png" alt="" title="rest" width="600" height="606" class="alignnone size-full wp-image-909" /></p>
<h1>One file to rule them all</h1>
<p><a href="https://github.com/bogomil/Node.JS-examples/tree/master/httpsrestserver">Here you can see the whole WORKING simple app</a> including nice tricks like adding settings and whole bunch of regexp examples for handling the URL parameters.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://talkweb.eu/openweb/901/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

