<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Key-Value Map-Reduce SEO</title>
	<atom:link href="http://conby.com/blog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://conby.com/blog</link>
	<description>a key-value and map-reduce open source technical blog</description>
	<lastBuildDate>Thu, 22 Apr 2010 03:41:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on C3 Web Form Session API: c3_http_form_session now open by mikel</title>
		<link>http://conby.com/blog/0415/c3-web-form-session-api-c3_http_form_session-now-open/comment-page-1/#comment-464</link>
		<dc:creator>mikel</dc:creator>
		<pubDate>Thu, 22 Apr 2010 03:41:33 +0000</pubDate>
		<guid isPermaLink="false">http://conby.com/blog/?p=206#comment-464</guid>
		<description># C3 Web Form Session API token example 2:

[action]
@url=http://www.website.com/gateway.cgi

# 主要部分，从 目标 form中copy所有字段和值
[data]
@uid=username
@pwd=12345678

# 一般可以不填此部分
# [header]
# @f1=asdfasf
# @f2=asdfasf

# 一般可以不填此部分
# [cookie]
# @f1=asdfasf
# @f2=asdfasf</description>
		<content:encoded><![CDATA[<p># C3 Web Form Session API token example 2:</p>
<p>[action]<br />
@url=http://www.website.com/gateway.cgi</p>
<p># 主要部分，从 目标 form中copy所有字段和值<br />
[data]<br />
@uid=username<br />
@pwd=12345678</p>
<p># 一般可以不填此部分<br />
# [header]<br />
# @f1=asdfasf<br />
# @f2=asdfasf</p>
<p># 一般可以不填此部分<br />
# [cookie]<br />
# @f1=asdfasf<br />
# @f2=asdfasf</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C3 Web Form API: c3_http_form now open by mikel</title>
		<link>http://conby.com/blog/0415/c3-web-form-api-c3_http_form-now-open/comment-page-1/#comment-463</link>
		<dc:creator>mikel</dc:creator>
		<pubDate>Thu, 22 Apr 2010 03:39:45 +0000</pubDate>
		<guid isPermaLink="false">http://conby.com/blog/?p=208#comment-463</guid>
		<description># C3 Web Form API token example 2:

[action]
@url=http://www.website.com/gateway.cgi
@method=1

# 主要部分，从 目标 form中copy所有字段和值
[data]
@uid=username
@pwd=12345678

# 一般可以不填此部分
# [header]
# @f1=asdfasf
# @f2=asdfasf

[cookie]
# 一般使用 c3_http_form_session 返回的结果，例如
{@c1}
# @f1=asdfasf
# @f2=asdfasf</description>
		<content:encoded><![CDATA[<p># C3 Web Form API token example 2:</p>
<p>[action]<br />
@url=http://www.website.com/gateway.cgi<br />
@method=1</p>
<p># 主要部分，从 目标 form中copy所有字段和值<br />
[data]<br />
@uid=username<br />
@pwd=12345678</p>
<p># 一般可以不填此部分<br />
# [header]<br />
# @f1=asdfasf<br />
# @f2=asdfasf</p>
<p>[cookie]<br />
# 一般使用 c3_http_form_session 返回的结果，例如<br />
{@c1}<br />
# @f1=asdfasf<br />
# @f2=asdfasf</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C3 smart page object API c3_http_page example, map any HTTP page to an array by mikel</title>
		<link>http://conby.com/blog/0418/c3-smart-page-object-api-c3_http_page-example-map-any-http-page-to-an-array/comment-page-1/#comment-461</link>
		<dc:creator>mikel</dc:creator>
		<pubDate>Mon, 19 Apr 2010 02:15:54 +0000</pubDate>
		<guid isPermaLink="false">http://conby.com/blog/?p=216#comment-461</guid>
		<description>c3_http_page payload, page=[@token]
token example:

[default-match]
@m1=/tools/

[default-pattern]
@aa=/(?P\w+): (?P\d+)/

[page]
@index=http://conby.com/tools/c3/module.php?m=debug_preg_sample
@attr1=http://conby.com/tools/c3/module.php?m=debug_preg_sample
@attr2=http://conby.com/tools/c3/module.php?m=debug_preg_sample
......</description>
		<content:encoded><![CDATA[<p>c3_http_page payload, page=[@token]<br />
token example:</p>
<p>[default-match]<br />
@m1=/tools/</p>
<p>[default-pattern]<br />
@aa=/(?P\w+): (?P\d+)/</p>
<p>[page]<br />
@index=http://conby.com/tools/c3/module.php?m=debug_preg_sample<br />
@attr1=http://conby.com/tools/c3/module.php?m=debug_preg_sample<br />
@attr2=http://conby.com/tools/c3/module.php?m=debug_preg_sample<br />
&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Free BPA Service 简单说明 by mikel</title>
		<link>http://conby.com/blog/0411/free-bpa-service-%e7%ae%80%e5%8d%95%e8%af%b4%e6%98%8e/comment-page-1/#comment-460</link>
		<dc:creator>mikel</dc:creator>
		<pubDate>Fri, 16 Apr 2010 06:54:06 +0000</pubDate>
		<guid isPermaLink="false">http://conby.com/blog/?p=193#comment-460</guid>
		<description>C3 cloud computing platform concepts:

C3 API
C3 Event
C3 Token
C3 Task
C3 Task Condition
C3 Task Action
C3 Task Hook
C3 Task Payload
C3 Task Spec
C3 Task Eval
C3 Map-Reduce API
C3 Rules (Drupal)
......</description>
		<content:encoded><![CDATA[<p>C3 cloud computing platform concepts:</p>
<p>C3 API<br />
C3 Event<br />
C3 Token<br />
C3 Task<br />
C3 Task Condition<br />
C3 Task Action<br />
C3 Task Hook<br />
C3 Task Payload<br />
C3 Task Spec<br />
C3 Task Eval<br />
C3 Map-Reduce API<br />
C3 Rules (Drupal)<br />
&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C3 token open for payload. format, [@token]. for example: [@4v5o] by mikel</title>
		<link>http://conby.com/blog/0414/c3-token-open-for-payload-format-token-for-example-4v5o/comment-page-1/#comment-459</link>
		<dc:creator>mikel</dc:creator>
		<pubDate>Fri, 16 Apr 2010 06:51:08 +0000</pubDate>
		<guid isPermaLink="false">http://conby.com/blog/?p=202#comment-459</guid>
		<description>[action]
@url=http://www.website.com/gateway.cgi
@method=1

[data]
@articleid=123
@catalog=book

[header]
@f1=asdfasf
@f2=asdfasf

[cookie]
{@c1}</description>
		<content:encoded><![CDATA[<p>[action]<br />
@url=http://www.website.com/gateway.cgi<br />
@method=1</p>
<p>[data]<br />
@articleid=123<br />
@catalog=book</p>
<p>[header]<br />
@f1=asdfasf<br />
@f2=asdfasf</p>
<p>[cookie]<br />
{@c1}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C3 Map-Reduce RSS API now open source (example) by mikel</title>
		<link>http://conby.com/blog/0414/c3-map-reduce-rss-api-now-open-source-example/comment-page-1/#comment-458</link>
		<dc:creator>mikel</dc:creator>
		<pubDate>Fri, 16 Apr 2010 06:49:09 +0000</pubDate>
		<guid isPermaLink="false">http://conby.com/blog/?p=204#comment-458</guid>
		<description>/**
 * c3_rss_mapper
 *
 * Basic map API for C3 RSS Map-Reduce services, offer RSS push event source service
 * Here is a simple example as C3 action:
 * &lt;code&gt;
 * 
 * Spec: c3_rss_mapper-c3_rss_reducer
 * Payload: http://news.google.com/news?cf=all&amp;ned=us&amp;hl=en&amp;output=rss,http://news.163.com/special/00011K6L/rss_discovery.xml
 *
 * &lt;/code&gt;
 * @link http://conby.com/services/post
 * @see C3 API library
 * @param array $post include $post[&#039;key&#039;] as map item key
 * @return string as JSON format, this string will be passed to reduce API
 *
 */
function c3_rss_mapper($post) {

	$rss =  simplexml_load_file($post[&#039;key&#039;]);

	$items_array = array();
	$i = 10;
	foreach ($rss-&gt;channel-&gt;item as $item) {
		$item_array = array();
		$item_array[]= $item-&gt;title . &#039;&#039;;
		$item_array[]= $item-&gt;link . &#039;&#039;;
		$item_array[]= $item-&gt;pubDate . &#039;&#039;;
		$items_array[] = $item_array;

		$i--;
		if($i==0)
			break;
	}

	return c3_json_encode($items_array);
}

/**
 * c3_rss_reducer
 *
 * Basic reduce API for C3 RSS Map-Reduce services, offer RSS push event source service
 * Here is a simple example as C3 action:
 * &lt;code&gt;
 * 
 * Spec: c3_rss_mapper-c3_rss_reducer
 * Payload: http://news.google.com/news?cf=all&amp;ned=us&amp;hl=en&amp;output=rss,http://news.163.com/special/00011K6L/rss_discovery.xml
 *
 * &lt;/code&gt;
 * @link http://conby.com/services/post
 * @see C3 API library
 * @param array $post include $post[&#039;reduce&#039;] as reduce data
 * @return string as plain text format, this string will be passed to C3 callback hook
 *
 */
function c3_rss_reducer($post) { // task_key task_callback action_spec reduce

	$reducer_string = $post[&#039;reduce&#039;];

	$rss_items_object = c3_json_decode($reducer_string);
	foreach($rss_items_object as $item) {
	    $hook_string = c3_json_encode($item);
		c3_update_hook_2($post, array(&#039;action_result&#039;=&gt;$hook_string,&#039;mode&#039;=&gt;&#039;a&#039;));
	}

	return $reducer_string;
}</description>
		<content:encoded><![CDATA[<p>/**<br />
 * c3_rss_mapper<br />
 *<br />
 * Basic map API for C3 RSS Map-Reduce services, offer RSS push event source service<br />
 * Here is a simple example as C3 action:<br />
 *</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;* <br />
&nbsp;* Spec: c3_rss_mapper-c3_rss_reducer<br />
&nbsp;* Payload: http://news.google.com/news?cf=all&amp;amp;ned=us&amp;amp;hl=en&amp;amp;output=rss,http://news.163.com/special/00011K6L/rss_discovery.xml<br />
&nbsp;*<br />
&nbsp;*</div></div>
<p>* @link <a href="http://conby.com/services/post" rel="nofollow">http://conby.com/services/post</a><br />
 * @see C3 API library<br />
 * @param array $post include $post['key'] as map item key<br />
 * @return string as JSON format, this string will be passed to reduce API<br />
 *<br />
 */<br />
function c3_rss_mapper($post) {</p>
<p>	$rss =  simplexml_load_file($post['key']);</p>
<p>	$items_array = array();<br />
	$i = 10;<br />
	foreach ($rss-&gt;channel-&gt;item as $item) {<br />
		$item_array = array();<br />
		$item_array[]= $item-&gt;title . &#8221;;<br />
		$item_array[]= $item-&gt;link . &#8221;;<br />
		$item_array[]= $item-&gt;pubDate . &#8221;;<br />
		$items_array[] = $item_array;</p>
<p>		$i&#8211;;<br />
		if($i==0)<br />
			break;<br />
	}</p>
<p>	return c3_json_encode($items_array);<br />
}</p>
<p>/**<br />
 * c3_rss_reducer<br />
 *<br />
 * Basic reduce API for C3 RSS Map-Reduce services, offer RSS push event source service<br />
 * Here is a simple example as C3 action:<br />
 *</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;* <br />
&nbsp;* Spec: c3_rss_mapper-c3_rss_reducer<br />
&nbsp;* Payload: http://news.google.com/news?cf=all&amp;amp;ned=us&amp;amp;hl=en&amp;amp;output=rss,http://news.163.com/special/00011K6L/rss_discovery.xml<br />
&nbsp;*<br />
&nbsp;*</div></div>
<p>* @link <a href="http://conby.com/services/post" rel="nofollow">http://conby.com/services/post</a><br />
 * @see C3 API library<br />
 * @param array $post include $post['reduce'] as reduce data<br />
 * @return string as plain text format, this string will be passed to C3 callback hook<br />
 *<br />
 */<br />
function c3_rss_reducer($post) { // task_key task_callback action_spec reduce</p>
<p>	$reducer_string = $post['reduce'];</p>
<p>	$rss_items_object = c3_json_decode($reducer_string);<br />
	foreach($rss_items_object as $item) {<br />
	    $hook_string = c3_json_encode($item);<br />
		c3_update_hook_2($post, array(&#8216;action_result&#8217;=&gt;$hook_string,&#8217;mode&#8217;=&gt;&#8217;a'));<br />
	}</p>
<p>	return $reducer_string;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C3 Web Form API: c3_http_form now open by mikel</title>
		<link>http://conby.com/blog/0415/c3-web-form-api-c3_http_form-now-open/comment-page-1/#comment-457</link>
		<dc:creator>mikel</dc:creator>
		<pubDate>Fri, 16 Apr 2010 06:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://conby.com/blog/?p=208#comment-457</guid>
		<description>C3 Web Form API token example:

[action]
@url=http://www.website.com/gateway.cgi
@method=1

[data]
@uid=username
@pwd=12345678

[header]
@f1=asdfasf
@f2=asdfasf

[cookie]
@f1=asdfasf
@f2=asdfasf</description>
		<content:encoded><![CDATA[<p>C3 Web Form API token example:</p>
<p>[action]<br />
@url=http://www.website.com/gateway.cgi<br />
@method=1</p>
<p>[data]<br />
@uid=username<br />
@pwd=12345678</p>
<p>[header]<br />
@f1=asdfasf<br />
@f2=asdfasf</p>
<p>[cookie]<br />
@f1=asdfasf<br />
@f2=asdfasf</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C3 Web Form Session API: c3_http_form_session now open by mikel</title>
		<link>http://conby.com/blog/0415/c3-web-form-session-api-c3_http_form_session-now-open/comment-page-1/#comment-456</link>
		<dc:creator>mikel</dc:creator>
		<pubDate>Fri, 16 Apr 2010 06:47:10 +0000</pubDate>
		<guid isPermaLink="false">http://conby.com/blog/?p=206#comment-456</guid>
		<description>C3 Web Form Session API token example:

[action]
@url=http://www.website.com/gateway.cgi

[data]
@uid=username
@pwd=12345678

[header]
@f1=asdfasf
@f2=asdfasf

[cookie]
@f1=asdfasf
@f2=asdfasf</description>
		<content:encoded><![CDATA[<p>C3 Web Form Session API token example:</p>
<p>[action]<br />
@url=http://www.website.com/gateway.cgi</p>
<p>[data]<br />
@uid=username<br />
@pwd=12345678</p>
<p>[header]<br />
@f1=asdfasf<br />
@f2=asdfasf</p>
<p>[cookie]<br />
@f1=asdfasf<br />
@f2=asdfasf</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Free BPA Service 简单说明 by Tweets that mention http://conby.com/blog/0411/free-bpa-service-简单说明/ -- Topsy.com</title>
		<link>http://conby.com/blog/0411/free-bpa-service-%e7%ae%80%e5%8d%95%e8%af%b4%e6%98%8e/comment-page-1/#comment-455</link>
		<dc:creator>Tweets that mention http://conby.com/blog/0411/free-bpa-service-简单说明/ -- Topsy.com</dc:creator>
		<pubDate>Tue, 13 Apr 2010 17:32:23 +0000</pubDate>
		<guid isPermaLink="false">http://conby.com/blog/?p=193#comment-455</guid>
		<description>[...] This post was mentioned on Twitter by conby.com. conby.com said: http://conby.com/blog/0411/free-bpa-service-%E7%AE%80%E5%8D%95%E8%AF%B4%E6%98%8E/ [...]</description>
		<content:encoded><![CDATA[<p>[...] This post was mentioned on Twitter by conby.com. conby.com said: <a href="http://conby.com/blog/0411/free-bpa-service-%E7%AE%80%E5%8D%95%E8%AF%B4%E6%98%8E/" rel="nofollow">http://conby.com/blog/0411/free-bpa-service-%E7%AE%80%E5%8D%95%E8%AF%B4%E6%98%8E/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Free BPA Service 简单说明 by mikel</title>
		<link>http://conby.com/blog/0411/free-bpa-service-%e7%ae%80%e5%8d%95%e8%af%b4%e6%98%8e/comment-page-1/#comment-454</link>
		<dc:creator>mikel</dc:creator>
		<pubDate>Mon, 12 Apr 2010 04:07:11 +0000</pubDate>
		<guid isPermaLink="false">http://conby.com/blog/?p=193#comment-454</guid>
		<description>常用的API，有

c3_echo  不需要payload参数，或者指定 hello参数, hello=demo

c3_debug_mail 不需要payload参数，或者指定 subject参数和to参数 subject=hello&amp;to=someone@conby.com

c3_demo_mapper
c3_demo_reducer</description>
		<content:encoded><![CDATA[<p>常用的API，有</p>
<p>c3_echo  不需要payload参数，或者指定 hello参数, hello=demo</p>
<p>c3_debug_mail 不需要payload参数，或者指定 subject参数和to参数 subject=hello&amp;to=someone@conby.com</p>
<p>c3_demo_mapper<br />
c3_demo_reducer</p>
]]></content:encoded>
	</item>
</channel>
</rss>
