<?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>“Nroe 的 PHPer 博客”的评论</title>
	<atom:link href="http://blog.nroed.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.nroed.com</link>
	<description>$lang = array(&#039;PHP&#039;, &#039;NODEJS&#039;), $os = array(&#039;FREEBSD&#039;, &#039;OSX&#039;), $ide = array(&#039;KEDITOR&#039;, &#039;ZendStudio&#039;), return;</description>
	<lastBuildDate>Tue, 27 Dec 2011 10:03:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>nroe 对《MONGO 的 Replica Set》的评论</title>
		<link>http://blog.nroed.com/2011/09/19/mongo-%e7%9a%84-replica-set/#comment-531</link>
		<dc:creator>nroe</dc:creator>
		<pubDate>Tue, 27 Dec 2011 10:03:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nroed.com/?p=1423#comment-531</guid>
		<description>也不一定需要通过参数 username \ passport 来链接的。你之前的写法也对的。
另外，也可以参考下官网的用户评论，里面有用信息很多。

&lt;blockquote&gt;After creating a user with, in this case, username &quot;testUser&quot; and password &quot;testPass&quot;, you can create an authenticated connection:
&lt;?php

$m = new Mongo(&quot;mongodb://testUser:testPass@localhost&quot;);
&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>也不一定需要通过参数 username \ passport 来链接的。你之前的写法也对的。<br />
另外，也可以参考下官网的用户评论，里面有用信息很多。</p>
<blockquote><p>After creating a user with, in this case, username “testUser” and password “testPass”, you can create an authenticated connection:<br />
&lt;?php</p>
<p>$m = new Mongo(&quot;mongodb://testUser:testPass@localhost&quot;);
</p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>addcn 对《MONGO 的 Replica Set》的评论</title>
		<link>http://blog.nroed.com/2011/09/19/mongo-%e7%9a%84-replica-set/#comment-530</link>
		<dc:creator>addcn</dc:creator>
		<pubDate>Tue, 27 Dec 2011 09:53:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nroed.com/?p=1423#comment-530</guid>
		<description>之前用戶密碼參數傳遞錯誤了，如下鏈接成功
&lt;code&gt;$mongo = new Mongo( &quot;mongodb://192.168.1.102:27017, 192.168.1.102:27018&quot;, array(&quot;replicaSet&quot;=&gt; true, &quot;username&quot;=&gt;&quot;username&quot;, &quot;password&quot;=&gt;&quot;password&quot;, &quot;connect&quot;=&gt;true ) );&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>之前用戶密碼參數傳遞錯誤了，如下鏈接成功</p>
<div class="codecolorer-container text geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$mongo = new Mongo( &quot;mongodb://192.168.1.102:27017, 192.168.1.102:27018&quot;, array(&quot;replicaSet&quot;=&gt; true, &quot;username&quot;=&gt;&quot;username&quot;, &quot;password&quot;=&gt;&quot;password&quot;, &quot;connect&quot;=&gt;true ) );</div></td></tr></tbody></table></div>
]]></content:encoded>
	</item>
	<item>
		<title>nroe 对《MONGO 的 Replica Set》的评论</title>
		<link>http://blog.nroed.com/2011/09/19/mongo-%e7%9a%84-replica-set/#comment-516</link>
		<dc:creator>nroe</dc:creator>
		<pubDate>Sun, 25 Dec 2011 08:54:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nroed.com/?p=1423#comment-516</guid>
		<description>你用认证的话，参考 &lt;a href=&quot;http://www.php.net/manual/en/mongo.construct.php&quot; rel=&quot;nofollow&quot;&gt;Mongo::__construct&lt;/a&gt; 里的username、password。如果有问题，尝试下关闭 replicaSet 模式。可以的话，贴下日志看看</description>
		<content:encoded><![CDATA[<p>你用认证的话，参考 <a href="http://www.php.net/manual/en/mongo.construct.php" rel="nofollow">Mongo::__construct</a> 里的username、password。如果有问题，尝试下关闭 replicaSet 模式。可以的话，贴下日志看看</p>
]]></content:encoded>
	</item>
	<item>
		<title>addcn 对《MONGO 的 Replica Set》的评论</title>
		<link>http://blog.nroed.com/2011/09/19/mongo-%e7%9a%84-replica-set/#comment-511</link>
		<dc:creator>addcn</dc:creator>
		<pubDate>Sat, 24 Dec 2011 09:40:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nroed.com/?p=1423#comment-511</guid>
		<description>請問mongodb需要auth的要怎麼寫嗎？
&lt;code&gt;
$mongo = new Mongo( &quot;mongodb://user:password@192.168.1.102:27017, user:password@192.168.1.102:27018&quot;, array(&quot;replicaSet&quot; =&gt; true) );&lt;/code&gt;
鏈接不上？</description>
		<content:encoded><![CDATA[<p>請問mongodb需要auth的要怎麼寫嗎？</p>
<div class="codecolorer-container text geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$mongo = new Mongo( &quot;mongodb://user:password@192.168.1.102:27017, user:password@192.168.1.102:27018&quot;, array(&quot;replicaSet&quot; =&gt; true) );</div></td></tr></tbody></table></div>
<p>鏈接不上？</p>
]]></content:encoded>
	</item>
	<item>
		<title>nroe 对《mongo replSet BADCONFIG》的评论</title>
		<link>http://blog.nroed.com/2011/12/15/mongo-replset-badconfig/#comment-490</link>
		<dc:creator>nroe</dc:creator>
		<pubDate>Fri, 16 Dec 2011 01:31:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nroed.com/?p=1504#comment-490</guid>
		<description>呵呵，我基本上也是大打杂的。没啥技术</description>
		<content:encoded><![CDATA[<p>呵呵，我基本上也是大打杂的。没啥技术</p>
]]></content:encoded>
	</item>
	<item>
		<title>若寒 对《mongo replSet BADCONFIG》的评论</title>
		<link>http://blog.nroed.com/2011/12/15/mongo-replset-badconfig/#comment-489</link>
		<dc:creator>若寒</dc:creator>
		<pubDate>Thu, 15 Dec 2011 19:52:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nroed.com/?p=1504#comment-489</guid>
		<description>好吧，不懂技术的我飘过！！！</description>
		<content:encoded><![CDATA[<p>好吧，不懂技术的我飘过！！！</p>
]]></content:encoded>
	</item>
	<item>
		<title>nroe 对《找出二进制中所有 1 的位置》的评论</title>
		<link>http://blog.nroed.com/2011/08/07/find-position-of-true-value1-from-a-bit-pattern/#comment-458</link>
		<dc:creator>nroe</dc:creator>
		<pubDate>Mon, 28 Nov 2011 04:46:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nroed.com/?p=1375#comment-458</guid>
		<description>查找二进制第一个高位也可以使用 gmp_scan1。
如果二进制是 1 后面跟 100W个0的话（100000....），那么 GMP_SCAN1 的效率将远远高于字符串扫描。
&lt;code&gt;
1. 
   gmp_scan1()    = &#039;1000001&#039;, time: 10.016msec
   strFindHBPos() = &#039;1000001&#039;, time: 838.166msec
2. 
   gmp_scan1()    = &#039;1000001&#039;, time: 9.812msec
   strFindHBPos() = &#039;1000001&#039;, time: 1008.343msec
3.
   gmp_scan1()    = &#039;1000001&#039;, time: 9.666msec
   strFindHBPos() = &#039;1000001&#039;, time: 887.993msec
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>查找二进制第一个高位也可以使用 gmp_scan1。<br />
如果二进制是 1 后面跟 100W个0的话（100000&#8230;.），那么 GMP_SCAN1 的效率将远远高于字符串扫描。</p>
<div class="codecolorer-container text geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">1. <br />
&nbsp; &nbsp;gmp_scan1() &nbsp; &nbsp;= '1000001', time: 10.016msec<br />
&nbsp; &nbsp;strFindHBPos() = '1000001', time: 838.166msec<br />
2. <br />
&nbsp; &nbsp;gmp_scan1() &nbsp; &nbsp;= '1000001', time: 9.812msec<br />
&nbsp; &nbsp;strFindHBPos() = '1000001', time: 1008.343msec<br />
3.<br />
&nbsp; &nbsp;gmp_scan1() &nbsp; &nbsp;= '1000001', time: 9.666msec<br />
&nbsp; &nbsp;strFindHBPos() = '1000001', time: 887.993msec</div></td></tr></tbody></table></div>
]]></content:encoded>
	</item>
	<item>
		<title>nroe 对《PHP 文件上传进度条处理 uploadprogress》的评论</title>
		<link>http://blog.nroed.com/2010/01/22/php-%e6%96%87%e4%bb%b6%e4%b8%8a%e4%bc%a0%e8%bf%9b%e5%ba%a6%e6%9d%a1%e5%a4%84%e7%90%86-uploadprogress/#comment-439</link>
		<dc:creator>nroe</dc:creator>
		<pubDate>Tue, 15 Nov 2011 05:13:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nroe.com/?p=199#comment-439</guid>
		<description>哈哈，最近发现PHP5.4在利用SESSION解决这个问题的。如果在稳定版中发布，应该能很好又简单地解决上传进度条问题了。

参考：http://www.laruence.com/2011/10/10/2217.html</description>
		<content:encoded><![CDATA[<p>哈哈，最近发现PHP5.4在利用SESSION解决这个问题的。如果在稳定版中发布，应该能很好又简单地解决上传进度条问题了。</p>
<p>参考：http://www.laruence.com/2011/10/10/2217.html</p>
]]></content:encoded>
	</item>
	<item>
		<title>latteye 对《MONGO 的 Replica Set》的评论</title>
		<link>http://blog.nroed.com/2011/09/19/mongo-%e7%9a%84-replica-set/#comment-411</link>
		<dc:creator>latteye</dc:creator>
		<pubDate>Sun, 09 Oct 2011 10:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nroed.com/?p=1423#comment-411</guid>
		<description>很受启发，谢谢博主的分享了。在学习Replica Set 中。</description>
		<content:encoded><![CDATA[<p>很受启发，谢谢博主的分享了。在学习Replica Set 中。</p>
]]></content:encoded>
	</item>
	<item>
		<title>nroe 对《MySQL 随即从表中获取一条记录 Order By Rand()效率》的评论</title>
		<link>http://blog.nroed.com/2009/08/22/mysql-%e9%9a%8f%e5%8d%b3%e4%bb%8e%e8%a1%a8%e4%b8%ad%e8%8e%b7%e5%8f%96%e4%b8%80%e6%9d%a1%e8%ae%b0%e5%bd%95-order-by-rand%e6%95%88%e7%8e%87/#comment-376</link>
		<dc:creator>nroe</dc:creator>
		<pubDate>Wed, 07 Sep 2011 10:07:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nroe.com/?p=127#comment-376</guid>
		<description>今天又要弄个随机记录，GOOGLE一把，各种转载。竟然都没发现是我自己写的。悲剧啊～</description>
		<content:encoded><![CDATA[<p>今天又要弄个随机记录，GOOGLE一把，各种转载。竟然都没发现是我自己写的。悲剧啊～</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- This Quick Cache file was built for (  blog.nroed.com/comments/feed/ ) in 0.29882 seconds, on Feb 23rd, 2012 at 3:33 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 23rd, 2012 at 4:33 am UTC -->
