<?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>Jimey’s Life &#38;&#38; Jimey’s World &#187; Programming</title>
	<atom:link href="http://jimey.com/category/c/programming/feed" rel="self" type="application/rss+xml" />
	<link>http://jimey.com</link>
	<description>Learning something new everyday</description>
	<lastBuildDate>Thu, 05 Aug 2010 08:03:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>修复Lifestream时区设定</title>
		<link>http://jimey.com/2010/03/29/lifestream-repair-time-zone-settings.html</link>
		<comments>http://jimey.com/2010/03/29/lifestream-repair-time-zone-settings.html#comments</comments>
		<pubDate>Mon, 29 Mar 2010 11:53:09 +0000</pubDate>
		<dc:creator>jimey</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[GMT]]></category>
		<category><![CDATA[lifestream]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[timestamp]]></category>
		<category><![CDATA[timezone]]></category>
		<category><![CDATA[UTC]]></category>

		<guid isPermaLink="false">http://jimey.com/2010/03/29/%e4%bf%ae%e5%a4%8dlifestream%e6%97%b6%e5%8c%ba%e8%ae%be%e5%ae%9a.html</guid>
		<description><![CDATA[LifeStream作者为 David Cramer &#124; 访问插件主页  俺这是9时区设置,8时区的话,请自行修改   主要需要修改5个地方, today&#160; yesterday&#160; 以及下面3个timestam... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://jimey.com/tag/lifestream" class="st_tag internal_tag" rel="tag" title="Posts tagged with lifestream">LifeStream</a>作者为 <a href="http://www.davidcramer.net">David Cramer </a>| <a href="http://www.enthropia.com/labs/wp-lifestream/">访问插件主页</a></p>
<p>俺这是9时区设置,8时区的话,请自行修改</p>
<p>修改<a href="http://jimey.com/tag/lifestream" class="st_tag internal_tag" rel="tag" title="Posts tagged with lifestream">lifestream</a>\themes\default\main.inc.<a href="http://jimey.com/tag/php" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a></p>
<p>主要需要修改5个地方, today  yesterday  以及下面3个timestamp</p>
<p>[code lang="<a href="http://jimey.com/tag/php" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a>"]</p>
<p>&lt;?<a href="http://jimey.com/tag/php" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a><br />
$day = '';<br />
if (count($events))<br />
{<br />
 $today = date('m d Y', time() - 54000);<br />
 $yesterday = date('m d Y', time() -140400);<br />
 if ($has_paging)<br />
 {<br />
 if ($has_prev_page) {<br />
 echo '&lt;p&gt;&lt;a href=&quot;' . $<a href="http://jimey.com/tag/lifestream" class="st_tag internal_tag" rel="tag" title="Posts tagged with lifestream">lifestream</a>-&gt;get_previous_page_url($page) .</p>
<p>'&quot;&gt;Newer Entries&lt;/a&gt;&lt;/p&gt;';<br />
 }<br />
 }<br />
 ?&gt;<br />
 &lt;table&gt;<br />
 &lt;?<a href="http://jimey.com/tag/php" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a><br />
 foreach ($events as $event)<br />
 {<br />
 $timestamp = $event-&gt;get_date();<br />
 if ($today == date('m d Y', $timestamp -32400)) $this_day = $<a href="http://jimey.com/tag/lifestream" class="st_tag internal_tag" rel="tag" title="Posts tagged with lifestream">lifestream</a>-&gt;__('Today');<br />
 else if ($yesterday == date('m d Y', $timestamp-32400)) $this_day = $<a href="http://jimey.com/tag/lifestream" class="st_tag internal_tag" rel="tag" title="Posts tagged with lifestream">lifestream</a>-&gt;__('Yesterday');<br />
 else $this_day = $<a href="http://jimey.com/tag/lifestream" class="st_tag internal_tag" rel="tag" title="Posts tagged with lifestream">lifestream</a>-&gt;__(ucfirst(htmlentities(date($<a href="http://jimey.com/tag/lifestream" class="st_tag internal_tag" rel="tag" title="Posts tagged with lifestream">lifestream</a>-&gt;get_option('day_format'),</p>
<p>$timestamp-82400))));<br />
 if ($day != $this_day)<br />
 {<br />
 ?&gt;<br />
 &lt;tr&gt;<br />
 &lt;th colspan=&quot;2&quot;&gt;<br />
 &lt;h2&gt;&lt;?<a href="http://jimey.com/tag/php" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a> echo $this_day; ?&gt;&lt;/h2&gt;<br />
 &lt;/th&gt;<br />
 &lt;/tr&gt;<br />
 &lt;?<a href="http://jimey.com/tag/php" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">php</a><br />
 $day = $this_day;<br />
}<br />
..............<br />
[/code]</p>
<h3  class="related_post_title">相关博文</h3><ul class="related_post"><li>2009-11-04 -- <a href="http://jimey.com/2009/11/04/9-years-a-number-of-pp.html" title="9年间的一些pp">9年间的一些pp</a> (8)</li><li>2009-10-22 -- <a href="http://jimey.com/2009/10/22/to-edit-your-blog-code-changed-10-hours-naveru002639s-airview.html" title="修改博客代码改了10个小时+Naver的airview">修改博客代码改了10个小时+Naver的airview</a> (0)</li><li>2009-10-21 -- <a href="http://jimey.com/2009/10/21/wordpress-lifestream-plugin.html" title="WordPress Lifestream 插件">WordPress Lifestream 插件</a> (0)</li><li>2009-01-21 -- <a href="http://jimey.com/2009/01/21/weekend-project-host-your-own-web-services.html" title="Weekend Project: Host Your Own Web Services">Weekend Project: Host Your Own Web Services</a> (0)</li><li>2008-12-11 -- <a href="http://jimey.com/2008/12/11/u0026quot10-11u0026quot.html" title="&lt;10号11号&gt;">&lt;10号11号&gt;</a> (0)</li><li>2008-10-22 -- <a href="http://jimey.com/2008/10/22/schedule-hodgepodge-of-things-that-the-north-south.html" title="杂七杂八的日程计划东西南北">杂七杂八的日程计划东西南北</a> (4)</li><li>2008-09-20 -- <a href="http://jimey.com/2008/09/20/the-concept-of-a-new-lifestream.html" title="一个新的lifestream概念">一个新的lifestream概念</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://jimey.com/2010/03/29/lifestream-repair-time-zone-settings.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Karmasphere Studio for Hadoop</title>
		<link>http://jimey.com/2009/12/02/karmasphere-studio-for-hadoop.html</link>
		<comments>http://jimey.com/2009/12/02/karmasphere-studio-for-hadoop.html#comments</comments>
		<pubDate>Wed, 02 Dec 2009 06:21:42 +0000</pubDate>
		<dc:creator>jimey</dc:creator>
				<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Cluster]]></category>
		<category><![CDATA[graphical]]></category>
		<category><![CDATA[hadoop]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[Karmasphere]]></category>
		<category><![CDATA[MapReduce]]></category>
		<category><![CDATA[NetBeans]]></category>

		<guid isPermaLink="false">http://jimey.com/2009/12/02/karmasphere-studio-for-hadoop.html</guid>
		<description><![CDATA[Karmasphere Studio for Hadoop is a    MapReduce development environment (IDE) based on NetBeans. It enables you to rapidly prototype MapReduce jobs without the need for a cluster, and to deploy, monitor and debug jobs on Hadoop clusters or Amazon Elastic MapReduce clusters, all from within a graphic..... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.hadoopstudio.org/screenshots/composite-0.png"><img src="http://www.hadoopstudio.org/screenshots/composite-0-s.png" alt="Sample screenshot" width="350" height="241" /></a><a href="http://www.hadoopstudio.org/screenshots/composite-0.png"> </a></p>
<p>Karmasphere Studio for <a href="http://jimey.com/tag/hadoop" class="st_tag internal_tag" rel="tag" title="Posts tagged with hadoop">Hadoop</a> is a <a href="http://en.wikipedia.org/wiki/MapReduce">MapReduce</a> development environment (IDE) based on NetBeans. It enables you to rapidly prototype <a href="http://jimey.com/tag/mapreduce" class="st_tag internal_tag" rel="tag" title="Posts tagged with MapReduce">MapReduce</a> jobs without the need for a cluster, and to deploy, monitor and debug jobs on <a href="http://jimey.com/tag/hadoop" class="st_tag internal_tag" rel="tag" title="Posts tagged with hadoop">Hadoop</a> clusters or Amazon Elastic <a href="http://jimey.com/tag/mapreduce" class="st_tag internal_tag" rel="tag" title="Posts tagged with MapReduce">MapReduce</a> clusters, all from within a <a href="http://jimey.com/tag/graphical" class="st_tag internal_tag" rel="tag" title="Posts tagged with graphical">graphical</a> desktop IDE.</p>
<h3  class="related_post_title">相关博文</h3><ul class="related_post"><li>2008-11-10 -- <a href="http://jimey.com/2008/11/10/another-week-passed-and-concluded.html" title="又一周过去了，总结">又一周过去了，总结</a> (0)</li><li>2008-11-10 -- <a href="http://jimey.com/2008/11/10/cluster-configuration-with-hadoop-introduction.html" title="Hadoop用cluster配置简介">Hadoop用cluster配置简介</a> (1)</li><li>2008-11-18 -- <a href="http://jimey.com/2008/11/18/cloud-computing-on-the-next-week-to-discuss-the-curriculum-some-of-the-ideas.html" title="关于下下周cloud computing讨论课程的一些想法">关于下下周cloud computing讨论课程的一些想法</a> (0)</li><li>2008-11-12 -- <a href="http://jimey.com/2008/11/12/sunday-the-day-to-do-the-wordcount-screenshots-mapreduce.html" title="周日那天做的mapreduce中的wordcount测试截图">周日那天做的mapreduce中的wordcount测试截图</a> (0)</li><li>2008-11-10 -- <a href="http://jimey.com/2008/11/10/hadoop-cluster-to-do-with-the-composition-of-cluster-machines.html" title="用Hadoop做集群机器构成的cluster">用Hadoop做集群机器构成的cluster</a> (0)</li><li>2008-10-31 -- <a href="http://jimey.com/2008/10/31/hadoop-user-group-meeting-oct-meeting-continue-last-unfinished-blog.html" title="Hadoop User Group Meeting (Oct.Meeting) Continue last unfinished blog">Hadoop User Group Meeting (Oct.Meeting) Continue last unfinished blog</a> (0)</li><li>2008-10-31 -- <a href="http://jimey.com/2008/10/31/then-boil-for-one-night-the-outcome-is-still-a-significant-drop.html" title="又熬一晚，成果还是显著滴">又熬一晚，成果还是显著滴</a> (0)</li><li>2008-10-31 -- <a href="http://jimey.com/2008/10/31/staying-up-late-at-night-the-spirit-and-sleepy-is-not-ok.html" title="熬夜熬夜，精神来了，想睡也不行">熬夜熬夜，精神来了，想睡也不行</a> (0)</li><li>2008-10-17 -- <a href="http://jimey.com/2008/10/17/hadoop-user-group-meeting-oct-meeting.html" title="Hadoop User Group Meeting (Oct.Meeting)">Hadoop User Group Meeting (Oct.Meeting)</a> (0)</li><li>2010-05-06 -- <a href="http://jimey.com/2010/05/06/ubuntu10-04-compiled-hadoop-version-eclipse-plugin-jar-and-hadoop-0-20-3-dev-eclipse-plugin-jar-download.html" title="Ubuntu10.04 编译hadoop-${version}-eclipse- plugin.jar and hadoop-0.20.3-dev-eclipse-plugin.jar">Ubuntu10.04 编译hadoop-${version}-eclipse- plugin.jar and hadoop-0.20.3-dev-eclipse-plugin.jar</a> (0)</li><li>2010-05-05 -- <a href="http://jimey.com/2010/05/05/what-causes-errors-in-databases.html" title="what causes errors in databases.">what causes errors in databases.</a> (0)</li><li>2010-04-22 -- <a href="http://jimey.com/2010/04/22/several-articles-on-twitter-hadoop-cassandra-pig-flockdbu002639s-slide.html" title="几篇关于twitter,hadoop,Cassandra,Pig,FlockDB的slide">几篇关于twitter,hadoop,Cassandra,Pig,FlockDB的slide</a> (0)</li><li>2009-10-09 -- <a href="http://jimey.com/2009/10/09/eclipse-hadoop-full-linux-environment-for-development.html" title="Eclipse+Hadoop 全linux环境开发">Eclipse+Hadoop 全linux环境开发</a> (6)</li><li>2009-10-09 -- <a href="http://jimey.com/2009/10/09/compiled-hadoop-version-eclipse-plugin-jar-and-hadoop-0-20-1-eclipse-plugin-jar-download.html" title="编译hadoop-${version}-eclipse-plugin.jar and hadoop-0.20.1-eclipse-plugin.jar download">编译hadoop-${version}-eclipse-plugin.jar and hadoop-0.20.1-eclipse-plugin.jar download</a> (3)</li><li>2009-05-01 -- <a href="http://jimey.com/2009/05/01/hadoop-0-20-0.html" title="hadoop-0.20.0">hadoop-0.20.0</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://jimey.com/2009/12/02/karmasphere-studio-for-hadoop.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>散布twitter到其他微博客的python脚步及其他</title>
		<link>http://jimey.com/2009/04/06/twitter-micro-blog-to-spread-to-other-steps-of-the-python-and-other.html</link>
		<comments>http://jimey.com/2009/04/06/twitter-micro-blog-to-spread-to-other-steps-of-the-python-and-other.html#comments</comments>
		<pubDate>Mon, 06 Apr 2009 08:37:30 +0000</pubDate>
		<dc:creator>jimey</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[ANSCII]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[bot]]></category>
		<category><![CDATA[Ping.fm]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Python2.6]]></category>
		<category><![CDATA[simplejson]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Unicode]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[同步]]></category>
		<category><![CDATA[微博客]]></category>
		<category><![CDATA[饭否]]></category>

		<guid isPermaLink="false">http://jimey.com/2009/04/06/%e6%95%a3%e5%b8%83twitter%e5%88%b0%e5%85%b6%e4%bb%96%e5%be%ae%e5%8d%9a%e5%ae%a2%e7%9a%84python%e8%84%9a%e6%ad%a5%e5%8f%8a%e5%85%b6%e4%bb%96.html</guid>
		<description><![CDATA[学了一周的python 写了这些应用，得到了几位大牛的帮助，在此不提名感谢啦~   实现效果:    一.以twitter为中心散布出去     二.必须要有ssh     三.读取twitter的xml然后散布     四.目前可以散布到饭否,ping.fm     五.可以借鉴ping.fm散布到豆瓣广播     六.可以把饭否有人@你id 发消息提示回twitter   现在twitter已经成..... ]]></description>
			<content:encoded><![CDATA[<p>学了一周的python 写了这些应用，得到了几位大牛的帮助，在此不提名感谢啦~ </p>
<p>实现效果:    <br />一.以twitter为中心散布出去     <br />二.必须要有ssh     <br />三.读取twitter的xml然后散布     <br />四.目前可以散布到饭否,ping.fm     <br />五.可以借鉴ping.fm散布到豆瓣广播     <br />六.可以把饭否有人@你id 发消息提示回twitter </p>
<p>现在twitter已经成为主力 IM + 提醒 + 应用 了，只开twitter的客户端即可，以twitter为中心散布出去，有实时提醒功能，比如大家可以利用twitterfeed.com之类的来做一个rss的订阅提醒，或者自己写一个python的自动订阅更新提醒 </p>
<p>待考虑功能：既然有bot就可以做出来一些bot功能    <br /><a href="http://twitter.pbwiki.com/Bots">http://twitter.pbwiki.com/Bots</a>     <br />这有一些bot应用 </p>
<p>前期准备   <br />1.发twitter消息到ping.fm,需要 http://code.google.com/p/pyngfm/    <br />2.需要python2.6以上版本 因为五 中 那个format代码实现的问题 lol 俺实在没啥好办法鸟</p>
<p>二.必须要有ssh    <br />主要是用crontab的每隔多久执行一次程序的功能    <br />我是用2分钟一次的，至今还没被饭否和twitter封ip.    <br />解决办法：    <br />1.自己有机器挂着最好    <br />2.如果有dreamhost账户的话，可以用dreamhost的ssh……不过小心被封……</p>
<p>四.发twitter消息到饭否的代码    <br />last.txt 需要手动建立，然后编辑添加某条消息的id值 这样以后更新只会更新至此，然后把最新的id写入last.txt</p>
<pre lang="python">#!/usr/bin/python
from xml.dom.minidom import parseString
import urllib2
import urllib
import sys
def post_to_fanfou(msg):
    url = 'http://<a href="http://jimey.com/tag/api" class="st_tag internal_tag" rel="tag" title="Posts tagged with API">api</a>.fanfou.com/statuses/update.xml'
    data = urllib.urlencode({'status':msg})
    req = urllib2.Request(url,data)
    username = 'jimey'
    password = 'password'
    passman = urllib2.HTTPPasswordMgrWithDefaultRealm()
    passman.add_password(None, url, username, password)
    authhandler = urllib2.HTTPBasicAuthHandler(passman)
    opener = urllib2.build_opener(authhandler)
    urllib2.install_opener(opener)
    response = urllib2.urlopen(req)
def main():
    f = open('last.txt','r')
    maxid = int(f.read())
    f.close()
    if maxid &lt; 1166717326:
        print 'error'
        sys.exit(-1)
    params = urllib.urlencode({'since_id':maxid})
    url = ";http://twitter.com/statuses/user_timeline/jimey.xml?%s";
    username = 'jimey'
    password = 'password'
    passman = urllib2.HTTPPasswordMgrWithDefaultRealm()
    passman.add_password(None, url, username, password)
    authhandler = urllib2.HTTPBasicAuthHandler(passman)
    opener = urllib2.build_opener(authhandler)
    urllib2.install_opener(opener)
    f = urllib2.urlopen(url % params)
    xmltext = f.read()
    dom = parseString(xmltext)
    statuses = dom.childNodes[0]
    messages = []
    s = 0
    for node in statuses.childNodes:
        if node.nodeName == 'status':
            status = node
            for snode in status.childNodes:
                if snode.nodeName == 'id':
                    n = int(snode.childNodes[0].nodeValue)
                    if n &gt; maxid:
                        maxid = n
                elif snode.nodeName == 'text' and snode.childNodes[0].nodeValue[0:2] != 'RT' and snode.childNodes[0].nodeValue[0] != '@':
                    messages.append(snode.childNodes[0].nodeValue.encode('utf-8'))
    while len(messages) &gt; 0:
        post_to_fanfou(messages.pop())
        s = s + 1
    f = open('last.txt','w')
    f.write(str(maxid))
    f.close()
if __name__ == ";__main__";:
    main() </pre>
<p>四.2 发twitter消息到饭否+ping.fm的代码<br />
  <br />需要在ping.fm申请2个<a href="http://jimey.com/tag/api" class="st_tag internal_tag" rel="tag" title="Posts tagged with API">API</a> KEY&#160; 分别是 </p>
<p>pfm.setApiKey(&#8216;************************&#8217;)&#160; = Application <a href="http://jimey.com/tag/api" class="st_tag internal_tag" rel="tag" title="Posts tagged with API">API</a> Key </p>
<p>pfm.setUserAppKey(&#8216;*********************************&#8217;) = own Ping.fm Application Key. </p>
<pre lang="python">
#!/usr/bin/python
from xml.dom.minidom import parseString
import urllib2
import urllib
import sys
from pyngfm import PyngFM 

def post_to_fanfou(msg):
    pfm = PyngFM() 

    pfm.setApiKey('************************')
    pfm.setUserAppKey('*********************************') 

    pfm.user_post('default','%s'%msg)
    url = 'http://<a href="http://jimey.com/tag/api" class="st_tag internal_tag" rel="tag" title="Posts tagged with API">api</a>.fanfou.com/statuses/update.xml'
    data = urllib.urlencode({'status':msg})
    req = urllib2.Request(url,data)
    username = 'jimey'
    password = 'password'
    passman = urllib2.HTTPPasswordMgrWithDefaultRealm()
    passman.add_password(None, url, username, password)
    authhandler = urllib2.HTTPBasicAuthHandler(passman)
    opener = urllib2.build_opener(authhandler)
    urllib2.install_opener(opener)
    response = urllib2.urlopen(req)
def main():
    f = open('last.txt','r')
    maxid = int(f.read())
    f.close()
    if maxid &lt; 1166717326:
        print 'error'
        sys.exit(-1)
    params = urllib.urlencode({'since_id':maxid})
    url = ";http://twitter.com/statuses/user_timeline/jimey.xml?%s";
    username = 'jimey'
    password = 'password'
    passman = urllib2.HTTPPasswordMgrWithDefaultRealm()
    passman.add_password(None, url, username, password)
    authhandler = urllib2.HTTPBasicAuthHandler(passman)
    opener = urllib2.build_opener(authhandler)
    urllib2.install_opener(opener)
    f = urllib2.urlopen(url % params)
    xmltext = f.read()
    dom = parseString(xmltext)
    statuses = dom.childNodes[0]
    messages = []
    s = 0
    for node in statuses.childNodes:
        if node.nodeName == 'status':
            status = node
            for snode in status.childNodes:
                if snode.nodeName == 'id':
                    n = int(snode.childNodes[0].nodeValue)
                    if n &gt; maxid:
                        maxid = n
                elif snode.nodeName == 'text' and snode.childNodes[0].nodeValue[0:2] != 'RT' and snode.childNodes[0].nodeValue[0] != '@':
                    messages.append(snode.childNodes[0].nodeValue.encode('utf-8'))
    while len(messages) &gt; 0:
        post_to_fanfou(messages.pop())
        s = s + 1
    f = open('last.txt','w')
    f.write(str(maxid))
    f.close()
if __name__ == ";__main__";:
    main() </pre>
<p>五 . 发ping.fm消息到豆瓣广播<br />
  <br /><a href="http://www.douban.com/group/topic/4604950/">http://www.douban.com/group/topic/4604950/</a></p>
<p>六.如果有人在饭否回复你，在twitter注册个马甲帐号然后把饭否回复人的id和饭否回复的内容一块发到twitter去，由于你真身帐号已经加了这个马甲帐号的好友，所以在那马甲帐号发消息的时候会有 @饭否id&#160; 如果你饭否id和twitter的id是一样的话，比如我用twhirl会有声音提示，如果含有@id 这样的消息出现的话 </p>
<pre lang="python">#!/usr/bin/python2.6
# -*- coding: utf-8 -*-
'''
Created on 2009-4-2
@author: jimey
'''
from xml.dom.minidom import parseString
import urllib2
import urllib
import sys
import twitter
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
def main():
    f = open('/home/jimey/fanfou/fanfoulast.txt','r')
    maxid = str(f.read())
    params = urllib.urlencode({'since_id':maxid})
    url = ";http://<a href="http://jimey.com/tag/api" class="st_tag internal_tag" rel="tag" title="Posts tagged with API">api</a>.fanfou.com/statuses/replies.xml?%s";
    username = 'jimey'
    password = 'password'
    passman = urllib2.HTTPPasswordMgrWithDefaultRealm()
    passman.add_password(None, url, username, password)
    authhandler = urllib2.HTTPBasicAuthHandler(passman)
    opener = urllib2.build_opener(authhandler)
    urllib2.install_opener(opener)
    f = urllib2.urlopen(url % params)
    xmltext = f.read()
    dom = parseString(xmltext)
    statuses = dom.childNodes[0]
    id = []
    messages = []
    name = []
    content = []
    for node in statuses.childNodes:
        if node.nodeName == 'status':
            status = node
            for snode in status.childNodes:
                if snode.nodeName == 'id':
                   id.append(snode.childNodes[0].nodeValue)
                elif snode.nodeName == 'text':
                    messages.append(snode.childNodes[0].nodeValue)
                elif snode.nodeName == 'user':
                   for unode in snode.childNodes:
                     if unode.nodeName == 'name':
                          name.append(unode.childNodes[0].nodeValue)
    for q, a in zip(name,messages):
      content.append('{0} says {1}'.format(q,a))
    while len(content) &gt; 0:
       <a href="http://jimey.com/tag/api" class="st_tag internal_tag" rel="tag" title="Posts tagged with API">api</a> = twitter.<a href="http://jimey.com/tag/api" class="st_tag internal_tag" rel="tag" title="Posts tagged with API">Api</a>(username='jimeybot', password='password')
       status = <a href="http://jimey.com/tag/api" class="st_tag internal_tag" rel="tag" title="Posts tagged with API">api</a>.PostUpdate(";%s"; %content.pop())
       f = open('fanfoulast.txt','w')
       print id
       maxid = id[0]
       f.write(str(maxid))
       f.close()
if __name__ == ";__main__";:
    main() </pre>
<h3  class="related_post_title">相关博文</h3><ul class="related_post"><li>2009-04-02 -- <a href="http://jimey.com/2009/04/02/after-the-rice-has-reply-u0026gt-twitter-to-remind-the-script.html" title="饭否@回复后->Twitter提醒脚本">饭否@回复后->Twitter提醒脚本</a> (0)</li><li>2009-10-31 -- <a href="http://jimey.com/2009/10/31/to-continue-to-micro-blog-to-continue-to-sync-messages.html" title="继续微博客，继续同步消息">继续微博客，继续同步消息</a> (2)</li><li>2009-04-01 -- <a href="http://jimey.com/2009/04/01/twitter-protected-mode-to-open-the-message-authentication-twitter-messages-if-synchronization-rice.html" title="Twitter开启消息保护模式后认证Twitter消息同步饭否">Twitter开启消息保护模式后认证Twitter消息同步饭否</a> (0)</li><li>2009-03-27 -- <a href="http://jimey.com/2009/03/27/sync-twitter-to-rice-has.html" title="同步twitter到饭否">同步twitter到饭否</a> (0)</li><li>2009-03-13 -- <a href="http://jimey.com/2009/03/13/twitter-significance-of-the-ecosystem-or.html" title="Twitter的生态系统or 意义">Twitter的生态系统or 意义</a> (4)</li><li>2010-05-05 -- <a href="http://jimey.com/2010/05/05/mocospace-architecture-3-billion-mobile-page-views-a-month.html" title="MocoSpace Architecture &#8211; 3 Billion Mobile Page Views a Month">MocoSpace Architecture &#8211; 3 Billion Mobile Page Views a Month</a> (0)</li><li>2010-04-22 -- <a href="http://jimey.com/2010/04/22/several-articles-on-twitter-hadoop-cassandra-pig-flockdbu002639s-slide.html" title="几篇关于twitter,hadoop,Cassandra,Pig,FlockDB的slide">几篇关于twitter,hadoop,Cassandra,Pig,FlockDB的slide</a> (0)</li><li>2010-04-03 -- <a href="http://jimey.com/2010/04/03/marketing-in-twitter.html" title="Marketing in Twitter">Marketing in Twitter</a> (0)</li><li>2010-04-01 -- <a href="http://jimey.com/2010/04/01/foolu002639s-day.html" title="愚人节">愚人节</a> (2)</li><li>2010-03-30 -- <a href="http://jimey.com/2010/03/30/the-garden-of-eden-subtitle-blog-station-uses-the-approach.html" title="伊甸园字幕博客站利用办法">伊甸园字幕博客站利用办法</a> (2)</li><li>2010-03-24 -- <a href="http://jimey.com/2010/03/24/twittersleepingtime.html" title="TwitterSleepingtime">TwitterSleepingtime</a> (0)</li><li>2009-12-26 -- <a href="http://jimey.com/2009/12/26/nateu002639s-twitter-business-model.html" title="NATE的twitter商业模式">NATE的twitter商业模式</a> (0)</li><li>2009-12-25 -- <a href="http://jimey.com/2009/12/25/twitter-search-result-u0026gt-language-filter.html" title="twitter search result -&gt; language filter">twitter search result -&gt; language filter</a> (0)</li><li>2009-12-18 -- <a href="http://jimey.com/2009/12/18/twitter-rss-reminder.html" title="twitter rss 提醒">twitter rss 提醒</a> (0)</li><li>2009-12-18 -- <a href="http://jimey.com/2009/12/18/feedburner-to-be-more-social.html" title="feedburner &#8211; To be more social">feedburner &#8211; To be more social</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://jimey.com/2009/04/06/twitter-micro-blog-to-spread-to-other-steps-of-the-python-and-other.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>饭否@回复后-&gt;Twitter提醒脚本</title>
		<link>http://jimey.com/2009/04/02/after-the-rice-has-reply-u0026gt-twitter-to-remind-the-script.html</link>
		<comments>http://jimey.com/2009/04/02/after-the-rice-has-reply-u0026gt-twitter-to-remind-the-script.html#comments</comments>
		<pubDate>Thu, 02 Apr 2009 09:25:35 +0000</pubDate>
		<dc:creator>jimey</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[ANSCII]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[bot]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Python2.6]]></category>
		<category><![CDATA[simplejson]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Unicode]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[同步]]></category>
		<category><![CDATA[微博客]]></category>
		<category><![CDATA[饭否]]></category>

		<guid isPermaLink="false">http://jimey.com/2009/04/02/%e9%a5%ad%e5%90%a6%e5%9b%9e%e5%a4%8d%e5%90%8e-twitter%e6%8f%90%e9%86%92%e8%84%9a%e6%9c%ac.html</guid>
		<description><![CDATA[利用饭否API以及Twitter的API制作该脚本  首先前期准备工作  使用python2.6版本  Install Python 2.6 in Ubuntu  At first blush, it would seem that those wanting the latest stable python, 2.6, would have to compile it themselves (or so python.org would indicate). Fortunately for us, that process, which is ..... ]]></description>
			<content:encoded><![CDATA[<p>利用饭否<a href="http://jimey.com/tag/api" class="st_tag internal_tag" rel="tag" title="Posts tagged with API">API</a>以及Twitter的<a href="http://jimey.com/tag/api" class="st_tag internal_tag" rel="tag" title="Posts tagged with API">API</a>制作该脚本</p>
<p>首先前期准备工作</p>
<p>使用python2.6版本</p>
<p>Install Python 2.6 in Ubuntu</p>
<p>At first blush, it would seem that those wanting the latest stable python, 2.6, would have to compile it themselves (or so <a href="http://www.python.org/download/releases/2.6.1/">python.org</a> would indicate). Fortunately for us, that process, which is at best annoying, and at worst long and complicated, is spared us by our friends over at Launchpad, and their <a href="https://help.launchpad.net/Packaging/PPA#Installing%20software%20from%20a%20PPA">&quot;Personal Package Archives&quot;</a>.</p>
<p>In order to install anything from the PPA, you need to add them to your repositories: &quot;deb <a href="http://ppa.launchpad.net/doko/ubuntu/">http://ppa.launchpad.net/doko/ubuntu/</a> intrepid main&quot;</p>
<p>For those who&#8217;ve forgotten how, or just need a refresher, hit <a href="https://help.ubuntu.com/community/Repositories/Ubuntu#Adding%20Repositories%20in%20Ubuntu">this page</a> for full instructions.</p>
<p>Once you&#8217;ve done that, just run</p>
<pre>sudo apt-get updatesudo apt-get install python2.6</pre>
<p>编辑/etc/apt/source.list 把那个ppa的源加进去就好 注意，该安装只是纯粹的安装，不会删除原有的python2.5版本</p>
<p>运行的时候也需要运行python2.6才可，所以在下面的脚本中是 #!/usr/bin/python2.6 </p>
<p>安装<a href="http://pypi.python.org/packages/source/s/simplejson/simplejson-2.0.9.tar.gz#md5=af5e67a39ca3408563411d357e6d5e47">simplejson-2.0.9.tar.gz</a></p>
<p>安装 twitter <a href="http://jimey.com/tag/api" class="st_tag internal_tag" rel="tag" title="Posts tagged with API">api</a> for python </p>
<p><a title="http://code.google.com/p/python-twitter/" href="http://code.google.com/p/python-twitter/">http://code.google.com/p/python-twitter/</a></p>
<p>在安装<a href="http://jimey.com/tag/simplejson" class="st_tag internal_tag" rel="tag" title="Posts tagged with simplejson">simplejson</a>的时候，如果是linux版，注意修改ez_setup.py，修改</p>
<p>DEFAULT_VERSION = &quot;0.6c7&quot;</p>
<p>中的0.6c7为0.6c9 否则 在python2.6 setup.py build</p>
<p>python2.6 setup.py install 中会提示无法下载</p>
<p><a title="http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c7-py2.6.egg" href="http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c7-py2.6.egg">http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c7-py2.6.egg</a></p>
<p>实际上是因为该tool已经更新至</p>
<p><a title="http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c9-py2.6.egg" href="http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c9-py2.6.egg">http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c9-py2.6.egg</a></p>
<p>修改之后<a href="http://jimey.com/tag/simplejson" class="st_tag internal_tag" rel="tag" title="Posts tagged with simplejson">simplejson</a>安装顺利完成</p>
<p>然后安装twitter <a href="http://jimey.com/tag/api" class="st_tag internal_tag" rel="tag" title="Posts tagged with API">api</a> for python</p>
<p>如果想测试是否安装成功</p>
<p>可以在terminal中输入python2.6</p>
<p>&gt;&gt; import <a href="http://jimey.com/tag/simplejson" class="st_tag internal_tag" rel="tag" title="Posts tagged with simplejson">simplejson</a></p>
<p>&gt;&gt; import twitter</p>
<p>如果没提示错误，则说明安装成功</p>
<p>在</p>
<p>&gt;&gt; import twitter</p>
<p>的时候会有一提示</p>
<p>twitter.py:12: DeprecationWarning: the md5 module is deprecated; use hashlib instead</p>
<p>在查 <a title="http://docs.python.org/library/md5.html" href="http://docs.python.org/library/md5.html">http://docs.python.org/library/md5.html</a>&#160;</p>
<p>Deprecated since version 2.5: Use the <a href="http://docs.python.org/library/hashlib.html#module-hashlib"><tt>hashlib</tt></a> module instead.</p>
<p>该错误无视即可</p>
<p>至于为何要使用python2.6</p>
<p>是因为我脚本中用了</p>
<p>content.append(&#8216;{0} says {1}&#8217;.format(q,a)) </p>
<p>这个format只有在python2.6之后才有效果</p>
<p>目的是为了把在饭否上回复我的人的name和内容合并一块再发消息给我</p>
<p>中间编码unicode anscii转码的问题，耽误了很久时间</p>
<p>可能是linux的sys.defaultencoding 是 anscii</p>
<p>而windows也许会智能根据网页内容调整为utf-8??</p>
<p>我只能这么猜测了，目前<a href="http://jimey.com/tag/win" class="st_tag internal_tag" rel="tag" title="Posts tagged with Win">win</a> linux下都运行正常</p>
<p>关于unicode anscii的python编码问题</p>
<p>可以参考</p>
<p><a title="http://bbs.ujn.edu.cn/showthread.php?threadid=251448" href="http://bbs.ujn.edu.cn/showthread.php?threadid=251448">http://bbs.ujn.edu.cn/showthread.php?threadid=251448</a></p>
<p>&#160;</p>
<p># 在twitter上建立一个马甲帐号，用来发饭否上抓到有人发给我饭否帐号的回复的时候，把回复人的id以及回复内容，转发到twitter，这样我的主力帐号就可以看到马甲帐号发的内容并且有提示，这样就可以及时回复饭否上的回复</p>
<p>至于如何及时回复… 可以利用Bot来中转即可，即发一个有明显特征的前缀比如fanfou @饭否某人id 内容 把该内容发给twitter的马甲帐号即可，用direct message or @马甲 之类的方式应该是都可以的。该脚本待下次有空再写。因为饭否上貌似回复俺的人不多=,=!! 脚本依然是用crontab上运行，每隔2分钟一次，希望不会被饭否封掉ip，这么频繁的打开那个xml页面 =,=!! 不过应该是有过滤不用很怕，至少twitter 2分钟运行一次都没什么问题</p>
<pre lang="python">#!/usr/bin/python2.6
# -*- coding: utf-8 -*-
'''
Created on 2009-4-2

@author: jimey
'''

from xml.dom.minidom import parseString
import urllib2
import urllib
import sys
import twitter
import sys
reload(sys)
sys.setdefaultencoding('utf-8')

def main():
    f = open('/home/jimey/fanfou/fanfoulast.txt','r')
    maxid = str(f.read())
    params = urllib.urlencode({'since_id':maxid})
    url = "http://<a href="http://jimey.com/tag/api" class="st_tag internal_tag" rel="tag" title="Posts tagged with API">api</a>.fanfou.com/statuses/replies.xml?%s"
    username = 'jimey'
    password = 'password'

    passman = urllib2.HTTPPasswordMgrWithDefaultRealm()
    passman.add_password(None, url, username, password)

    authhandler = urllib2.HTTPBasicAuthHandler(passman)
    opener = urllib2.build_opener(authhandler)
    urllib2.install_opener(opener)
    f = urllib2.urlopen(url % params)
    xmltext = f.read()
    dom = parseString(xmltext)
    statuses = dom.childNodes[0]
    id = []
    messages = []
    name = []
    content = []
    for node in statuses.childNodes:
        if node.nodeName == 'status':
            status = node
            for snode in status.childNodes:
                if snode.nodeName == 'id':
                   id.append(snode.childNodes[0].nodeValue)
                elif snode.nodeName == 'text':
                    messages.append(snode.childNodes[0].nodeValue)
                elif snode.nodeName == 'user':
                   for unode in snode.childNodes:
                     if unode.nodeName == 'name':
                          name.append(unode.childNodes[0].nodeValue)
    for q, a in zip(name,messages):
      content.append('{0} says {1}'.format(q,a))
    while len(content) > 0:
       <a href="http://jimey.com/tag/api" class="st_tag internal_tag" rel="tag" title="Posts tagged with API">api</a> = twitter.<a href="http://jimey.com/tag/api" class="st_tag internal_tag" rel="tag" title="Posts tagged with API">Api</a>(username='jimeybot', password='password')
       status = <a href="http://jimey.com/tag/api" class="st_tag internal_tag" rel="tag" title="Posts tagged with API">api</a>.PostUpdate("%s" %content.pop())
       f = open('fanfoulast.txt','w')
       print id
       maxid = id[0]
       f.write(str(maxid))
       f.close()

if __name__ == "__main__":
    main()</pre>
<p>windows下支援的代码</p>
<pre lang="python">'''
Created on 2009-4-2

@author: jimey
'''

from xml.dom.minidom import parseString
import urllib2
import urllib
import sys
import twitter

def main():
    f = open('fanfoulast.txt','r')
    maxid = str(f.read())
    params = urllib.urlencode({'since_id':maxid})
    url = "http://<a href="http://jimey.com/tag/api" class="st_tag internal_tag" rel="tag" title="Posts tagged with API">api</a>.fanfou.com/statuses/replies.xml?%s"
    username = 'jimey'
    password = 'password'

    passman = urllib2.HTTPPasswordMgrWithDefaultRealm()
    passman.add_password(None, url, username, password)

    authhandler = urllib2.HTTPBasicAuthHandler(passman)
    opener = urllib2.build_opener(authhandler)
    urllib2.install_opener(opener)
    f = urllib2.urlopen(url % params)
    xmltext = f.read()
    dom = parseString(xmltext)
    statuses = dom.childNodes[0]
    id = []
    messages = []
    name = []
    content = []
    s = 0
    for node in statuses.childNodes:
        if node.nodeName == 'status':
            status = node
            for snode in status.childNodes:
                if snode.nodeName == 'id':
                   id.append(snode.childNodes[0].nodeValue)
                elif snode.nodeName == 'text':
                    messages.append(snode.childNodes[0].nodeValue)
                elif snode.nodeName == 'user':
                   for unode in snode.childNodes:
                     if unode.nodeName == 'name':
                          name.append(unode.childNodes[0].nodeValue)
    for q, a in zip(name,messages):
      content.append('{0} says {1}'.format(q,a))
    while len(content) > 0:
       <a href="http://jimey.com/tag/api" class="st_tag internal_tag" rel="tag" title="Posts tagged with API">api</a> = twitter.<a href="http://jimey.com/tag/api" class="st_tag internal_tag" rel="tag" title="Posts tagged with API">Api</a>(username='jimeybot', password='password')
       status = <a href="http://jimey.com/tag/api" class="st_tag internal_tag" rel="tag" title="Posts tagged with API">api</a>.PostUpdate("%s" %content.pop())
       f = open('fanfoulast.txt','w')
       print id
       maxid = id[0]
       f.write(str(maxid))
       f.close()
       s += 1
    print "post to bot %d posts" %s
if __name__ == "__main__":
    main()</pre>
<h3  class="related_post_title">相关博文</h3><ul class="related_post"><li>2009-04-06 -- <a href="http://jimey.com/2009/04/06/twitter-micro-blog-to-spread-to-other-steps-of-the-python-and-other.html" title="散布twitter到其他微博客的python脚步及其他">散布twitter到其他微博客的python脚步及其他</a> (2)</li><li>2009-04-01 -- <a href="http://jimey.com/2009/04/01/twitter-protected-mode-to-open-the-message-authentication-twitter-messages-if-synchronization-rice.html" title="Twitter开启消息保护模式后认证Twitter消息同步饭否">Twitter开启消息保护模式后认证Twitter消息同步饭否</a> (0)</li><li>2009-03-27 -- <a href="http://jimey.com/2009/03/27/sync-twitter-to-rice-has.html" title="同步twitter到饭否">同步twitter到饭否</a> (0)</li><li>2009-10-31 -- <a href="http://jimey.com/2009/10/31/to-continue-to-micro-blog-to-continue-to-sync-messages.html" title="继续微博客，继续同步消息">继续微博客，继续同步消息</a> (2)</li><li>2009-03-13 -- <a href="http://jimey.com/2009/03/13/twitter-significance-of-the-ecosystem-or.html" title="Twitter的生态系统or 意义">Twitter的生态系统or 意义</a> (4)</li><li>2010-05-05 -- <a href="http://jimey.com/2010/05/05/mocospace-architecture-3-billion-mobile-page-views-a-month.html" title="MocoSpace Architecture &#8211; 3 Billion Mobile Page Views a Month">MocoSpace Architecture &#8211; 3 Billion Mobile Page Views a Month</a> (0)</li><li>2010-04-22 -- <a href="http://jimey.com/2010/04/22/several-articles-on-twitter-hadoop-cassandra-pig-flockdbu002639s-slide.html" title="几篇关于twitter,hadoop,Cassandra,Pig,FlockDB的slide">几篇关于twitter,hadoop,Cassandra,Pig,FlockDB的slide</a> (0)</li><li>2010-04-03 -- <a href="http://jimey.com/2010/04/03/marketing-in-twitter.html" title="Marketing in Twitter">Marketing in Twitter</a> (0)</li><li>2010-04-01 -- <a href="http://jimey.com/2010/04/01/foolu002639s-day.html" title="愚人节">愚人节</a> (2)</li><li>2010-03-30 -- <a href="http://jimey.com/2010/03/30/the-garden-of-eden-subtitle-blog-station-uses-the-approach.html" title="伊甸园字幕博客站利用办法">伊甸园字幕博客站利用办法</a> (2)</li><li>2010-03-24 -- <a href="http://jimey.com/2010/03/24/twittersleepingtime.html" title="TwitterSleepingtime">TwitterSleepingtime</a> (0)</li><li>2009-12-26 -- <a href="http://jimey.com/2009/12/26/nateu002639s-twitter-business-model.html" title="NATE的twitter商业模式">NATE的twitter商业模式</a> (0)</li><li>2009-12-25 -- <a href="http://jimey.com/2009/12/25/twitter-search-result-u0026gt-language-filter.html" title="twitter search result -&gt; language filter">twitter search result -&gt; language filter</a> (0)</li><li>2009-12-18 -- <a href="http://jimey.com/2009/12/18/twitter-rss-reminder.html" title="twitter rss 提醒">twitter rss 提醒</a> (0)</li><li>2009-12-18 -- <a href="http://jimey.com/2009/12/18/feedburner-to-be-more-social.html" title="feedburner &#8211; To be more social">feedburner &#8211; To be more social</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://jimey.com/2009/04/02/after-the-rice-has-reply-u0026gt-twitter-to-remind-the-script.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter开启消息保护模式后认证Twitter消息同步饭否</title>
		<link>http://jimey.com/2009/04/01/twitter-protected-mode-to-open-the-message-authentication-twitter-messages-if-synchronization-rice.html</link>
		<comments>http://jimey.com/2009/04/01/twitter-protected-mode-to-open-the-message-authentication-twitter-messages-if-synchronization-rice.html#comments</comments>
		<pubDate>Wed, 01 Apr 2009 13:02:40 +0000</pubDate>
		<dc:creator>jimey</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[饭否]]></category>

		<guid isPermaLink="false">http://jimey.com/2009/04/01/twitter%e5%bc%80%e5%90%af%e6%b6%88%e6%81%af%e4%bf%9d%e6%8a%a4%e6%a8%a1%e5%bc%8f%e5%90%8e%e8%ae%a4%e8%af%81%e5%90%8c%e6%ad%a5%e9%a5%ad%e5%90%a6.html</guid>
		<description><![CDATA[基本上还是之前的代码同步twitter到饭否 稍微修改了下Twitter的认证部分 再次感谢 raptium同学的Twitter 和饭否同步 代码 #!/usr/bin/python from xml.dom.minidom import parseString import urllib2 import urllib import sys def post_to_fanfou(msg): url = 'http://api.fanfou.com/statuses/update.xml' data = urllib.urlencode({'status':msg}) req = urllib2.Request(url,data) username = 'jimey' password = 'password' passman = urllib2.HTTPPasswordMgrWithDefaultRealm() passman... ]]></description>
			<content:encoded><![CDATA[<p>基本上还是之前的代码<a href="http://jimey.com/2009/03/27/%e5%90%8c%e6%ad%a5twitter%e5%88%b0%e9%a5%ad%e5%90%a6.html">同步twitter到饭否</a></p>
<p>稍微修改了下Twitter的认证部分</p>
<p>再次感谢 <a href="http://www.raptium.com/">raptium</a>同学的<a href="http://www.raptium.com/2009/02/01/twitter-sync-with-fanfou/">Twitter 和饭否同步</a> 代码</p>
<pre lang="python">#!/usr/bin/python

from xml.dom.minidom import parseString
import urllib2
import urllib
import sys

def post_to_fanfou(msg):
    url = 'http://<a href="http://jimey.com/tag/api" class="st_tag internal_tag" rel="tag" title="Posts tagged with API">api</a>.fanfou.com/statuses/update.xml'
    data = urllib.urlencode({'status':msg})
    req = urllib2.Request(url,data)
    username = 'jimey'
    password = 'password'

    passman = urllib2.HTTPPasswordMgrWithDefaultRealm()
    passman.add_password(None, url, username, password)

    authhandler = urllib2.HTTPBasicAuthHandler(passman)
    opener = urllib2.build_opener(authhandler)
    urllib2.install_opener(opener)
    response = urllib2.urlopen(req)

def main():
    f = open('last.txt','r')
    maxid = int(f.read())
    f.close()
    if maxid &lt; 1166717326:
        print 'error'
        sys.exit(-1)

    params = urllib.urlencode({'since_id':maxid})
    url = &quot;http://twitter.com/statuses/user_timeline/jimey.xml?%s&quot;
    username = 'jimey'
    password = 'password'

    passman = urllib2.HTTPPasswordMgrWithDefaultRealm()
    passman.add_password(None, url, username, password)

    authhandler = urllib2.HTTPBasicAuthHandler(passman)
    opener = urllib2.build_opener(authhandler)
    urllib2.install_opener(opener)
    f = urllib2.urlopen(url % params)
    xmltext = f.read()
    dom = parseString(xmltext)
    statuses = dom.childNodes[0]
    messages = []
    s = 0
    for node in statuses.childNodes:
        if node.nodeName == 'status':
            status = node
            for snode in status.childNodes:
                if snode.nodeName == 'id':
                    n = int(snode.childNodes[0].nodeValue)
                    if n &gt; maxid:
                        maxid = n
                elif snode.nodeName == 'text' and snode.childNodes[0].nodeValue[0:2] != 'RT' and snode.childNodes[0].nodeValue[0] != '@':
                    messages.append(snode.childNodes[0].nodeValue.encode('utf-8'))
    while len(messages) &gt; 0:
        post_to_fanfou(messages.pop())
        s = s + 1
    f = open('last.txt','w')
    f.write(str(maxid))
    f.close()

if __name__ == &quot;__main__&quot;:
    main()</pre>
<h3  class="related_post_title">相关博文</h3><ul class="related_post"><li>2009-04-06 -- <a href="http://jimey.com/2009/04/06/twitter-micro-blog-to-spread-to-other-steps-of-the-python-and-other.html" title="散布twitter到其他微博客的python脚步及其他">散布twitter到其他微博客的python脚步及其他</a> (2)</li><li>2009-04-02 -- <a href="http://jimey.com/2009/04/02/after-the-rice-has-reply-u0026gt-twitter-to-remind-the-script.html" title="饭否@回复后->Twitter提醒脚本">饭否@回复后->Twitter提醒脚本</a> (0)</li><li>2009-03-27 -- <a href="http://jimey.com/2009/03/27/sync-twitter-to-rice-has.html" title="同步twitter到饭否">同步twitter到饭否</a> (0)</li><li>2009-10-31 -- <a href="http://jimey.com/2009/10/31/to-continue-to-micro-blog-to-continue-to-sync-messages.html" title="继续微博客，继续同步消息">继续微博客，继续同步消息</a> (2)</li><li>2009-03-13 -- <a href="http://jimey.com/2009/03/13/twitter-significance-of-the-ecosystem-or.html" title="Twitter的生态系统or 意义">Twitter的生态系统or 意义</a> (4)</li><li>2010-05-05 -- <a href="http://jimey.com/2010/05/05/mocospace-architecture-3-billion-mobile-page-views-a-month.html" title="MocoSpace Architecture &#8211; 3 Billion Mobile Page Views a Month">MocoSpace Architecture &#8211; 3 Billion Mobile Page Views a Month</a> (0)</li><li>2010-04-22 -- <a href="http://jimey.com/2010/04/22/several-articles-on-twitter-hadoop-cassandra-pig-flockdbu002639s-slide.html" title="几篇关于twitter,hadoop,Cassandra,Pig,FlockDB的slide">几篇关于twitter,hadoop,Cassandra,Pig,FlockDB的slide</a> (0)</li><li>2010-04-03 -- <a href="http://jimey.com/2010/04/03/marketing-in-twitter.html" title="Marketing in Twitter">Marketing in Twitter</a> (0)</li><li>2010-04-01 -- <a href="http://jimey.com/2010/04/01/foolu002639s-day.html" title="愚人节">愚人节</a> (2)</li><li>2010-03-30 -- <a href="http://jimey.com/2010/03/30/the-garden-of-eden-subtitle-blog-station-uses-the-approach.html" title="伊甸园字幕博客站利用办法">伊甸园字幕博客站利用办法</a> (2)</li><li>2010-03-24 -- <a href="http://jimey.com/2010/03/24/twittersleepingtime.html" title="TwitterSleepingtime">TwitterSleepingtime</a> (0)</li><li>2009-12-26 -- <a href="http://jimey.com/2009/12/26/nateu002639s-twitter-business-model.html" title="NATE的twitter商业模式">NATE的twitter商业模式</a> (0)</li><li>2009-12-25 -- <a href="http://jimey.com/2009/12/25/twitter-search-result-u0026gt-language-filter.html" title="twitter search result -&gt; language filter">twitter search result -&gt; language filter</a> (0)</li><li>2009-12-18 -- <a href="http://jimey.com/2009/12/18/twitter-rss-reminder.html" title="twitter rss 提醒">twitter rss 提醒</a> (0)</li><li>2009-12-18 -- <a href="http://jimey.com/2009/12/18/feedburner-to-be-more-social.html" title="feedburner &#8211; To be more social">feedburner &#8211; To be more social</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://jimey.com/2009/04/01/twitter-protected-mode-to-open-the-message-authentication-twitter-messages-if-synchronization-rice.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>花了半天的时间写完auto</title>
		<link>http://jimey.com/2009/03/31/spent-a-long-time-to-finish-auto.html</link>
		<comments>http://jimey.com/2009/03/31/spent-a-long-time-to-finish-auto.html#comments</comments>
		<pubDate>Tue, 31 Mar 2009 13:27:48 +0000</pubDate>
		<dc:creator>jimey</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[auto]]></category>
		<category><![CDATA[auto download]]></category>
		<category><![CDATA[auto seed]]></category>
		<category><![CDATA[auto unrar]]></category>
		<category><![CDATA[Bat]]></category>
		<category><![CDATA[Mirc]]></category>
		<category><![CDATA[utorrent]]></category>

		<guid isPermaLink="false">http://jimey.com/2009/03/31/%e8%8a%b1%e4%ba%86%e5%8d%8a%e5%a4%a9%e7%9a%84%e6%97%b6%e9%97%b4%e5%86%99%e5%ae%8cauto.html</guid>
		<description><![CDATA[在3.17那会 ftprush中调用unrar.exe  决定写一个auto unrar auto seed 的脚本  先是考虑glftpd，然后是那个seedbox 不过在看了资料之后都决定放弃，之后又陆陆续续忙其他事情  昨晚花了点时间，画了个流程图  早上8点半起来，开始写，写到中午基本上自动提示，手动下载torrent功能基本解决，下午上课到4点半，花了1小时时间..... ]]></description>
			<content:encoded><![CDATA[<p>在3.17那会 <a href="http://jimey.com/2009/03/17/ftprush%e4%b8%ad%e8%b0%83%e7%94%a8unrarexe.html">ftprush中调用unrar.exe</a></p>
<p>决定写一个<a href="http://jimey.com/tag/auto" class="st_tag internal_tag" rel="tag" title="Posts tagged with auto">auto</a> unrar <a href="http://jimey.com/tag/auto" class="st_tag internal_tag" rel="tag" title="Posts tagged with auto">auto</a> seed 的脚本</p>
<p>先是考虑glftpd，然后是那个seedbox 不过在看了资料之后都决定放弃，之后又陆陆续续忙其他事情</p>
<p>昨晚花了点时间，画了个流程图</p>
<p>早上8点半起来，开始写，写到中午基本上自动提示，手动下载torrent功能基本解决，下午上课到4点半，花了1小时时间写完全自动load torrent </p>
<p>修改了下utorrent的设置，具体看图，这样就不会出现提示，完全全自动了</p>
<p> <a href="http://s321.photobucket.com/albums/nn376/jimeyren/?action=view&amp;current=bt-1.jpg" target="_blank"><img border="0" alt="Photobucket" src="http://i321.photobucket.com/albums/nn376/jimeyren/bt-1.jpg" /></a>
<p>最终用了mirc脚本+<a href="http://jimey.com/tag/bat" class="st_tag internal_tag" rel="tag" title="Posts tagged with Bat">bat</a>批处理命令 解决所有问题</p>
<p><a href="http://jimey.com/2009/03/27/%e8%87%aa%e5%8a%a8%e6%a3%80%e6%b5%8b%e6%96%87%e4%bb%b6%e5%a4%b9%e5%86%85100%e8%a7%a3%e5%8e%8brar%e5%88%86%e5%8c%85%e5%b9%b6%e4%b8%94%e5%88%a0%e9%99%a4%e6%96%87%e4%bb%b6%e7%9a%84bat.html">自动检测文件夹内100%解压rar分包并且删除文件的bat</a></p>
<p><a href="http://jimey.com/tag/bat" class="st_tag internal_tag" rel="tag" title="Posts tagged with Bat">bat</a>脚本见此，不过稍微修正了一下。实现了一些自己需要判断写入的小功能</p>
<h3  class="related_post_title">相关博文</h3><ul class="related_post"><li>2009-03-18 -- <a href="http://jimey.com/2009/03/18/drops-things-done-secretly-at-night.html" title="半夜偷偷干了滴事情">半夜偷偷干了滴事情</a> (6)</li><li>2009-03-27 -- <a href="http://jimey.com/2009/03/27/automatically-detect-100-percent-folder-and-delete-the-sub-extracting-rar-file-bat.html" title="自动检测文件夹内100%解压rar分包并且删除文件的bat">自动检测文件夹内100%解压rar分包并且删除文件的bat</a> (0)</li><li>2009-03-17 -- <a href="http://jimey.com/2009/03/17/ftprush-call-unrar-exe.html" title="ftprush中调用unrar.exe">ftprush中调用unrar.exe</a> (0)</li><li>2009-11-13 -- <a href="http://jimey.com/2009/11/13/utorrent-support-the-garden-of-eden-bt-software-bt-download-station-resources-u0026quotautomaticu0026quot-download-tutorial.html" title="bt软件uTorrent支持伊甸园bt下载站资源&ldquo;全自动&rdquo;下载教程">bt软件uTorrent支持伊甸园bt下载站资源&ldquo;全自动&rdquo;下载教程</a> (0)</li><li>2009-11-12 -- <a href="http://jimey.com/2009/11/12/utorrent-support-the-garden-of-eden-bt-software-bt-download-station-resources-u0026quotautomaticu0026quot-download-tutorial.html" title="bt软件uTorrent支持伊甸园bt下载站资源&ldquo;全自动&rdquo;下载教程">bt软件uTorrent支持伊甸园bt下载站资源&ldquo;全自动&rdquo;下载教程</a> (0)</li><li>2009-05-05 -- <a href="http://jimey.com/2009/05/05/mirc-amip-kmplayer-foul-significantly.html" title="mirc+AMIP+kmplayer臭显">mirc+AMIP+kmplayer臭显</a> (0)</li><li>2009-03-07 -- <a href="http://jimey.com/2009/03/07/chatzilla-the-irc-plugin-firefox.html" title="firefox的irc插件chatzilla">firefox的irc插件chatzilla</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://jimey.com/2009/03/31/spent-a-long-time-to-finish-auto.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>自动检测文件夹内100%解压rar分包并且删除文件的bat</title>
		<link>http://jimey.com/2009/03/27/automatically-detect-100-percent-folder-and-delete-the-sub-extracting-rar-file-bat.html</link>
		<comments>http://jimey.com/2009/03/27/automatically-detect-100-percent-folder-and-delete-the-sub-extracting-rar-file-bat.html#comments</comments>
		<pubDate>Fri, 27 Mar 2009 07:27:33 +0000</pubDate>
		<dc:creator>jimey</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[auto]]></category>
		<category><![CDATA[Bat]]></category>
		<category><![CDATA[check]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[unrar]]></category>

		<guid isPermaLink="false">http://jimey.com/2009/03/27/%e8%87%aa%e5%8a%a8%e6%a3%80%e6%b5%8b%e6%96%87%e4%bb%b6%e5%a4%b9%e5%86%85100%e8%a7%a3%e5%8e%8brar%e5%88%86%e5%8c%85%e5%b9%b6%e4%b8%94%e5%88%a0%e9%99%a4%e6%96%87%e4%bb%b6%e7%9a%84bat.html</guid>
		<description><![CDATA[   @REM ------- BEGIN ustv_unrar.cmd ----------------     @ECHO OFF      cd /d e:&#34;tv      set path=&#34;C:Program FilesWinRAR&#34;;%path%      :recheck      for /D %%i in (e:	v\%1*) do (      echo %1      if exist &#34;%1*100*&#34; (unrar e &#34;e:	v\%1&#34; &#34;e:	v&#34;&#160..... ]]></description>
			<content:encoded><![CDATA[<pre lang="dos">
    @REM ------- BEGIN ustv_unrar.cmd ----------------
    @ECHO OFF
    cd /d e:"tv
    set path="C:\Program Files\WinRAR\";%path%
    :recheck
    for /D %%i in (e:\tv\%1\*) do (
    echo %1
    if exist "%1\*100*" (unrar e "e:\tv\%1" "e:\tv\"
    del /q/a/f e:\tv\%1\*
    echo e:\tv\%1
    ) else (
    for /l %%i in (1,1,40000) do (echo %random%)>nul
    goto recheck
    )
    )
    rd /s /q e:\tv\%1
    popd

    @REM ------- END ustv_unrar.cmd ------------------
</pre>
<p>ftp含有sfv自动检测 在文件夹下自动添加</p>
<p>===Uploaded===&#8211;[100%]&#8211;[25-of-25]&#8211;</p>
<p>类似tag</p>
<p>如果100%即执行解压文件至e:\tv根目录下</p>
<p>然后删除该目录下文件以及sfv检测生成的文件夹</p>
<p>再删除原始文件夹</p>
<p>最后退出</p>
<p>如果文件夹下sfv检测不到100%，即80% 90%之类的情况</p>
<p>等待4秒之后再去检查是否达到100%完成，如此反复循环至解压完毕。如果想把间隔时间改长，可把for /l %%i in (1,1,40000) 中的40000改为其他</p>
<h3  class="related_post_title">相关博文</h3><ul class="related_post"><li>2009-03-31 -- <a href="http://jimey.com/2009/03/31/spent-a-long-time-to-finish-auto.html" title="花了半天的时间写完auto">花了半天的时间写完auto</a> (2)</li><li>2009-03-17 -- <a href="http://jimey.com/2009/03/17/ftprush-call-unrar-exe.html" title="ftprush中调用unrar.exe">ftprush中调用unrar.exe</a> (0)</li><li>2009-11-17 -- <a href="http://jimey.com/2009/11/17/caption-blog-station-and-the-garden-of-eden-garden-of-eden-drama-wikipedia-desks-set-up-the-united-states-shows.html" title="伊甸园字幕博客站和伊甸园美剧百科站成立说明">伊甸园字幕博客站和伊甸园美剧百科站成立说明</a> (2)</li><li>2009-03-18 -- <a href="http://jimey.com/2009/03/18/custom-my-winrar-to-extract-the-files-on-demand-and-should.html" title="定制我的WinRAR 让文件解压按需而宜">定制我的WinRAR 让文件解压按需而宜</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://jimey.com/2009/03/27/automatically-detect-100-percent-folder-and-delete-the-sub-extracting-rar-file-bat.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>基于Eclipse的Hadoop应用开发环境的配置</title>
		<link>http://jimey.com/2009/03/25/eclipse-based-application-development-environment-configuration-of-hadoop.html</link>
		<comments>http://jimey.com/2009/03/25/eclipse-based-application-development-environment-configuration-of-hadoop.html#comments</comments>
		<pubDate>Wed, 25 Mar 2009 09:48:03 +0000</pubDate>
		<dc:creator>jimey</dc:creator>
				<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[hadoop]]></category>
		<category><![CDATA[hadoop-0.19.1]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://jimey.com/2009/03/25/%e5%9f%ba%e4%ba%8eeclipse%e7%9a%84hadoop%e5%ba%94%e7%94%a8%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83%e7%9a%84%e9%85%8d%e7%bd%ae.html</guid>
		<description><![CDATA[最新版的Hadoop 0.19.1中  hadoop-0.19.1contribeclipse-plugin  &#160;  有新版的hadoop-0.19.1-eclipse-plugin 插件  只可惜暂时不支持最新版的eclipse  所以无奈只能http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/europa/winter/eclipse-java-europa-winter-win32.zip  选择..... ]]></description>
			<content:encoded><![CDATA[<p>最新版的<a href="http://jimey.com/tag/hadoop" class="st_tag internal_tag" rel="tag" title="Posts tagged with hadoop">Hadoop</a> 0.19.1中</p>
<p><a href="http://jimey.com/tag/hadoop" class="st_tag internal_tag" rel="tag" title="Posts tagged with hadoop">hadoop</a>-0.19.1\contrib\<a href="http://jimey.com/tag/eclipse" class="st_tag internal_tag" rel="tag" title="Posts tagged with Eclipse">eclipse</a>-plugin</p>
<p>&#160;</p>
<p>有新版的<a href="http://jimey.com/tag/hadoop" class="st_tag internal_tag" rel="tag" title="Posts tagged with hadoop">hadoop</a>-0.19.1-<a href="http://jimey.com/tag/eclipse" class="st_tag internal_tag" rel="tag" title="Posts tagged with Eclipse">eclipse</a>-plugin 插件</p>
<p>只可惜暂时不支持最新版的<a href="http://jimey.com/tag/eclipse" class="st_tag internal_tag" rel="tag" title="Posts tagged with Eclipse">eclipse</a></p>
<p>所以无奈只能<a title="http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/europa/winter/eclipse-java-europa-winter-win32.zip" href="http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/europa/winter/eclipse-java-europa-winter-win32.zip">http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/europa/winter/eclipse-java-europa-winter-win32.zip</a></p>
<p>选择europa版本的<a href="http://jimey.com/tag/eclipse" class="st_tag internal_tag" rel="tag" title="Posts tagged with Eclipse">eclipse</a>进行配置</p>
<h3  class="related_post_title">相关博文</h3><ul class="related_post"><li>2009-03-26 -- <a href="http://jimey.com/2009/03/26/windows-environment-eclipse-debugging-environment-hadoop-remote-ubuntu.html" title="windows环境下eclipse调试远端ubuntu环境的hadoop">windows环境下eclipse调试远端ubuntu环境的hadoop</a> (12)</li><li>2009-03-26 -- <a href="http://jimey.com/2009/03/26/midnight.html" title="半夜">半夜</a> (0)</li><li>2009-03-25 -- <a href="http://jimey.com/2009/03/25/linux-server-clustered-hdfs-access-from-windows-eclipse-java-application.html" title="Linux server clustered HDFS: access from Windows eclipse Java application">Linux server clustered HDFS: access from Windows eclipse Java application</a> (0)</li><li>2009-10-09 -- <a href="http://jimey.com/2009/10/09/eclipse-hadoop-full-linux-environment-for-development.html" title="Eclipse+Hadoop 全linux环境开发">Eclipse+Hadoop 全linux环境开发</a> (6)</li><li>2009-05-01 -- <a href="http://jimey.com/2009/05/01/hadoop-0-20-0.html" title="hadoop-0.20.0">hadoop-0.20.0</a> (0)</li><li>2010-05-06 -- <a href="http://jimey.com/2010/05/06/ubuntu10-04-compiled-hadoop-version-eclipse-plugin-jar-and-hadoop-0-20-3-dev-eclipse-plugin-jar-download.html" title="Ubuntu10.04 编译hadoop-${version}-eclipse- plugin.jar and hadoop-0.20.3-dev-eclipse-plugin.jar">Ubuntu10.04 编译hadoop-${version}-eclipse- plugin.jar and hadoop-0.20.3-dev-eclipse-plugin.jar</a> (0)</li><li>2010-04-22 -- <a href="http://jimey.com/2010/04/22/several-articles-on-twitter-hadoop-cassandra-pig-flockdbu002639s-slide.html" title="几篇关于twitter,hadoop,Cassandra,Pig,FlockDB的slide">几篇关于twitter,hadoop,Cassandra,Pig,FlockDB的slide</a> (0)</li><li>2009-12-02 -- <a href="http://jimey.com/2009/12/02/karmasphere-studio-for-hadoop.html" title="Karmasphere Studio for Hadoop">Karmasphere Studio for Hadoop</a> (0)</li><li>2009-10-23 -- <a href="http://jimey.com/2009/10/23/feedsky-feed-plug-in-plug-in-will-lead-to-failure-of-task-execution-wp-booking.html" title="Feedsky Feed 插件插件会导致wp的预订任务执行失败">Feedsky Feed 插件插件会导致wp的预订任务执行失败</a> (0)</li><li>2009-10-21 -- <a href="http://jimey.com/2009/10/21/wordpress-lifestream-plugin.html" title="WordPress Lifestream 插件">WordPress Lifestream 插件</a> (0)</li><li>2009-10-09 -- <a href="http://jimey.com/2009/10/09/compiled-hadoop-version-eclipse-plugin-jar-and-hadoop-0-20-1-eclipse-plugin-jar-download.html" title="编译hadoop-${version}-eclipse-plugin.jar and hadoop-0.20.1-eclipse-plugin.jar download">编译hadoop-${version}-eclipse-plugin.jar and hadoop-0.20.1-eclipse-plugin.jar download</a> (3)</li><li>2009-07-13 -- <a href="http://jimey.com/2009/07/13/south-korea-to-see-youkuu002639s-ssh-proxy-ip-address.html" title="韩国ip看youku之ssh代理解决">韩国ip看youku之ssh代理解决</a> (0)</li><li>2009-04-28 -- <a href="http://jimey.com/2009/04/28/hadoop-mysql-combination-of.html" title="Hadoop+MySQL结合">Hadoop+MySQL结合</a> (0)</li><li>2009-03-06 -- <a href="http://jimey.com/2009/03/06/the-use-of-eclipse-cdt-development-of-ns2.html" title="使用Eclipse CDT 开发NS2">使用Eclipse CDT 开发NS2</a> (0)</li><li>2009-03-04 -- <a href="http://jimey.com/2009/03/04/tcl-compiler-environment-win.html" title="Win环境下的TCL Compiler">Win环境下的TCL Compiler</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://jimey.com/2009/03/25/eclipse-based-application-development-environment-configuration-of-hadoop.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Komodo IDE + Subversion</title>
		<link>http://jimey.com/2009/03/05/komodo-ide-subversion.html</link>
		<comments>http://jimey.com/2009/03/05/komodo-ide-subversion.html#comments</comments>
		<pubDate>Thu, 05 Mar 2009 07:44:22 +0000</pubDate>
		<dc:creator>jimey</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[CollabNet]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[Komodo]]></category>
		<category><![CDATA[SCC handler]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[TortoiseSVN]]></category>

		<guid isPermaLink="false">http://jimey.com/2009/03/05/komodo-ide-subversion.html</guid>
		<description><![CDATA[之前是用TortoiseSVN的，但是怎么样都搞不定，总是会提示  No SCC handler found for:

后来找了一堆资料 还是用回原版的CollabNet Subversion

http://www.open.collab.net/downloads/subversion/

安装CollabNet Subversion v1.5.6 命令行客户端(for Windows)

这个版本

然后在Komodo IDE的SVN设置里面设置好这个subvers..... ]]></description>
			<content:encoded><![CDATA[<p>之前是用<a href="http://jimey.com/tag/tortoisesvn" class="st_tag internal_tag" rel="tag" title="Posts tagged with TortoiseSVN">TortoiseSVN</a>的，但是怎么样都搞不定，总是会提示</p>
<pre>No SCC handler found for:</pre>
<pre>后来找了一堆资料 还是用回原版的CollabNet Subversion</pre>
<pre><a title="http://www.open.collab.net/downloads/subversion/" href="http://www.open.collab.net/downloads/subversion/">http://www.open.collab.net/downloads/subversion/</a></pre>
<pre>安装CollabNet Subversion v1.5.6 命令行客户端(for Windows)</pre>
<pre>这个版本</pre>
<pre>然后在Komodo IDE的SVN设置里面设置好这个subversion的路径即可，指到exe文件</pre>
<pre>然后就好用了~~~</pre>
<pre>浪费了两个小时啊，两个小时……不该用<a href="http://jimey.com/tag/tortoisesvn" class="st_tag internal_tag" rel="tag" title="Posts tagged with TortoiseSVN">TortoiseSVN</a>……</pre>
<h3  class="related_post_title">相关博文</h3><ul class="related_post"><li>2009-03-04 -- <a href="http://jimey.com/2009/03/04/tcl-compiler-environment-win.html" title="Win环境下的TCL Compiler">Win环境下的TCL Compiler</a> (0)</li><li>2009-03-04 -- <a href="http://jimey.com/2009/03/04/komodo-ide-guide.html" title="Komodo IDE Guide">Komodo IDE Guide</a> (0)</li><li>2009-12-02 -- <a href="http://jimey.com/2009/12/02/karmasphere-studio-for-hadoop.html" title="Karmasphere Studio for Hadoop">Karmasphere Studio for Hadoop</a> (0)</li><li>2009-03-04 -- <a href="http://jimey.com/2009/03/04/in-the-ubuntu-install-configure-subversion-aapache.html" title="在Ubuntu上安装配置Subversion + Aapache">在Ubuntu上安装配置Subversion + Aapache</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://jimey.com/2009/03/05/komodo-ide-subversion.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Win环境下的TCL Compiler</title>
		<link>http://jimey.com/2009/03/04/tcl-compiler-environment-win.html</link>
		<comments>http://jimey.com/2009/03/04/tcl-compiler-environment-win.html#comments</comments>
		<pubDate>Wed, 04 Mar 2009 13:27:23 +0000</pubDate>
		<dc:creator>jimey</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Active]]></category>
		<category><![CDATA[Compiler]]></category>
		<category><![CDATA[DLTK]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[Komodo]]></category>
		<category><![CDATA[Remote]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VIM]]></category>
		<category><![CDATA[Win]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://jimey.com/2009/03/04/win%e7%8e%af%e5%a2%83%e4%b8%8b%e7%9a%84tcl-compiler.html</guid>
		<description><![CDATA[Eclipse直接拿来做IDE了  装了DLTK 以及一堆语言包  然后装ActiveTcl8.5.6.0.289025-win32-ix86-threaded   然后是ActiveState.Tcl.Dev.Kit  接着是ActiveState.Komodo.IDE  然后本想在我那台ubuntu机器上搞个remote compiler  暂时看起来很麻烦，先不弄了这次，实在是没时间  还好Eclipse暂时用起来还算舒服，实在是受不了..... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://jimey.com/tag/eclipse" class="st_tag internal_tag" rel="tag" title="Posts tagged with Eclipse">Eclipse</a>直接拿来做IDE了</p>
<p>装了DLTK 以及一堆语言包</p>
<p>然后装ActiveTcl8.5.6.0.289025-win32-ix86-threaded </p>
<p>然后是ActiveState.Tcl.Dev.Kit</p>
<p>接着是ActiveState.Komodo.IDE</p>
<p>然后本想在我那台ubuntu机器上搞个remote compiler</p>
<p>暂时看起来很麻烦，先不弄了这次，实在是没时间</p>
<p>还好<a href="http://jimey.com/tag/eclipse" class="st_tag internal_tag" rel="tag" title="Posts tagged with Eclipse">Eclipse</a>暂时用起来还算舒服，实在是受不了linux下的vim编译了 =,=!! 虽然有插件包，还是用<a href="http://jimey.com/tag/eclipse" class="st_tag internal_tag" rel="tag" title="Posts tagged with Eclipse">Eclipse</a>好一些</p>
<h3  class="related_post_title">相关博文</h3><ul class="related_post"><li>2009-03-06 -- <a href="http://jimey.com/2009/03/06/the-use-of-eclipse-cdt-development-of-ns2.html" title="使用Eclipse CDT 开发NS2">使用Eclipse CDT 开发NS2</a> (0)</li><li>2009-10-28 -- <a href="http://jimey.com/2009/10/28/ubuntu-8-04-version-to-compile-rtorrent-0-85-pian.html" title="ubuntu 8.04版本编译rtorrent 0.85篇">ubuntu 8.04版本编译rtorrent 0.85篇</a> (0)</li><li>2009-10-09 -- <a href="http://jimey.com/2009/10/09/eclipse-hadoop-full-linux-environment-for-development.html" title="Eclipse+Hadoop 全linux环境开发">Eclipse+Hadoop 全linux环境开发</a> (6)</li><li>2009-03-26 -- <a href="http://jimey.com/2009/03/26/windows-environment-eclipse-debugging-environment-hadoop-remote-ubuntu.html" title="windows环境下eclipse调试远端ubuntu环境的hadoop">windows环境下eclipse调试远端ubuntu环境的hadoop</a> (12)</li><li>2009-03-25 -- <a href="http://jimey.com/2009/03/25/linux-server-clustered-hdfs-access-from-windows-eclipse-java-application.html" title="Linux server clustered HDFS: access from Windows eclipse Java application">Linux server clustered HDFS: access from Windows eclipse Java application</a> (0)</li><li>2009-03-05 -- <a href="http://jimey.com/2009/03/05/komodo-ide-subversion.html" title="Komodo IDE + Subversion">Komodo IDE + Subversion</a> (0)</li><li>2009-03-04 -- <a href="http://jimey.com/2009/03/04/komodo-ide-guide.html" title="Komodo IDE Guide">Komodo IDE Guide</a> (0)</li><li>2010-05-04 -- <a href="http://jimey.com/2010/05/04/ubuntu-10-04-installed-sunu002639s-jdk.html" title="ubuntu 10.04安装sun的jdk">ubuntu 10.04安装sun的jdk</a> (0)</li><li>2009-12-02 -- <a href="http://jimey.com/2009/12/02/karmasphere-studio-for-hadoop.html" title="Karmasphere Studio for Hadoop">Karmasphere Studio for Hadoop</a> (0)</li><li>2009-10-08 -- <a href="http://jimey.com/2009/10/08/formatting-windows-partition-under-ubuntu-systems.html" title="Ubuntu系统下格式化windows 分区">Ubuntu系统下格式化windows 分区</a> (0)</li><li>2009-03-27 -- <a href="http://jimey.com/2009/03/27/installing-freenx-in-ubuntu-8-04-hardy-u0026amp-8-10-intrepid-u0026amp-9-04-jaunty-ibex.html" title="Installing FreeNX in Ubuntu 8.04 Hardy &#038; 8.10 Intrepid &#038; 9.04 jaunty Ibex">Installing FreeNX in Ubuntu 8.04 Hardy &#038; 8.10 Intrepid &#038; 9.04 jaunty Ibex</a> (0)</li><li>2009-03-26 -- <a href="http://jimey.com/2009/03/26/midnight.html" title="半夜">半夜</a> (0)</li><li>2009-03-25 -- <a href="http://jimey.com/2009/03/25/eclipse-based-application-development-environment-configuration-of-hadoop.html" title="基于Eclipse的Hadoop应用开发环境的配置">基于Eclipse的Hadoop应用开发环境的配置</a> (0)</li><li>2009-03-11 -- <a href="http://jimey.com/2009/03/11/perlu002639s-cpan-permission-issues.html" title="perl的CPAN权限问题">perl的CPAN权限问题</a> (0)</li><li>2009-03-11 -- <a href="http://jimey.com/2009/03/11/ubuntu-ubuntu-8-04-lts-configuration-notes.html" title="Ubuntu Ubuntu 8.04 LTS 配置笔记">Ubuntu Ubuntu 8.04 LTS 配置笔记</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://jimey.com/2009/03/04/tcl-compiler-environment-win.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Komodo IDE Guide</title>
		<link>http://jimey.com/2009/03/04/komodo-ide-guide.html</link>
		<comments>http://jimey.com/2009/03/04/komodo-ide-guide.html#comments</comments>
		<pubDate>Wed, 04 Mar 2009 12:49:26 +0000</pubDate>
		<dc:creator>jimey</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[Komodo]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Tcl]]></category>

		<guid isPermaLink="false">http://jimey.com/2009/03/04/komodo-ide-guide.html</guid>
		<description><![CDATA[Language and Debugging Prerequisites     Debugging: If firewall software is installed on the system, it must be configured to allow Komodo to access the network during remote debugging.     Debugger Proxy: The optional Debugger Proxy (pydbgpproxy) requires Python 2.2 or greater on Mac OS X and Linux..... ]]></description>
			<content:encoded><![CDATA[<h4><a name="Lang_Debug_Prerequisites">Language and Debugging Prerequisites</a></h4>
<ul>
<li><strong>Debugging</strong>: If firewall software is installed on the system, it must be configured to allow Komodo to access the network during remote debugging. </li>
<li><strong>Debugger Proxy</strong>: The optional <a href="http://jimey.com/blog/wp-content/uploads/2009/03/debugger.html">Debugger Proxy</a> (<code>pydbgpproxy</code>) requires <strong>Python 2.2</strong> or greater on Mac OS X and Linux systems. An appropriate version of Python is installed by default on Mac OS X systems. </li>
<li><strong>Perl</strong>: <strong>Perl 5.6</strong> or greater is required to debug Perl programs. Download the latest version of <a href="http://www.ActiveState.com/Products/ActivePerl/">ActivePerl</a> from the ActiveState website. Ensure that the directory location of the Perl interpreter (by default, <code>C:\perl</code>) is included in your system&#8217;s <code>PATH</code> environment variable. On Windows, some features such as background syntax checking and remote debugging may require ActivePerl &#8212; there are known incompatibilities with Cygwin and msys perl. </li>
<li><strong>Python</strong>: <strong>Python 2.2</strong> or greater is required to debug Python programs. You can download the latest version of <a href="http://www.ActiveState.com/Products/ActivePython/">ActivePython</a> from the ActiveState website. Ensure that the directory location of the Python interpreter (by default <code>C:\Pythonxx</code> (where &quot;xx&quot; is the Python version)) is included in your system&#8217;s <code>PATH</code> environment variable. </li>
<li><strong><a href="http://jimey.com/tag/php" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></strong>: <strong><a href="http://jimey.com/tag/php" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a> 4.0.5</strong> or greater is required for <a href="http://jimey.com/tag/php" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a> syntax checking. <strong><a href="http://jimey.com/tag/php" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a> 4.3.11</strong> or greater is required to debug <a href="http://jimey.com/tag/php" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a> programs. Debugging and syntax checking are also available for <strong><a href="http://jimey.com/tag/php" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a> 5.0.3</strong> or greater. Download <a href="http://jimey.com/tag/php" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a> from <a href="http://www.php.net/downloads.php">http://www.php.net/downloads.php</a>. Ensure that the directory location of the <a href="http://jimey.com/tag/php" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a> interpreter (by default <code>C:\<a href="http://jimey.com/tag/php" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a></code>) is included in your system&#8217;s <code>PATH</code> environment variable. For complete instructions for configuring Komodo and <a href="http://jimey.com/tag/php" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a>, see <a href="http://jimey.com/blog/wp-content/uploads/2009/03/debugphp.html">Configuring the PHP Debugger</a>. <a href="http://jimey.com/tag/php" class="st_tag internal_tag" rel="tag" title="Posts tagged with php">PHP</a> debugging extensions are available on <a href="http://aspn.ActiveState.com/ASPN/Downloads/Komodo/RemoteDebugging">ASPN</a>, the ActiveState Programmer Network. </li>
<li><strong>Tcl</strong>: <strong>Tcl 7.6</strong> or greater is required to debug Tcl programs. Download the latest version of <a href="http://www.ActiveState.com/Products/ActiveTcl">ActiveTcl</a> from the ActiveState website. </li>
<li><strong><a href="http://jimey.com/tag/ruby" class="st_tag internal_tag" rel="tag" title="Posts tagged with Ruby">Ruby</a></strong>: <strong><a href="http://jimey.com/tag/ruby" class="st_tag internal_tag" rel="tag" title="Posts tagged with Ruby">Ruby</a> 1.8.4</strong> or greater is required to debug <a href="http://jimey.com/tag/ruby" class="st_tag internal_tag" rel="tag" title="Posts tagged with Ruby">Ruby</a> programs. Download the latest version of <a href="http://jimey.com/tag/ruby" class="st_tag internal_tag" rel="tag" title="Posts tagged with Ruby">Ruby</a> from <a href="http://rubyinstaller.rubyforge.org/wiki/wiki.pl">http://rubyinstaller.rubyforge.org/wiki/wiki.pl</a>. Cygwin-based versions of <a href="http://jimey.com/tag/ruby" class="st_tag internal_tag" rel="tag" title="Posts tagged with Ruby">Ruby</a> are currently unsupported. </li>
</ul>
<h4><a name="SCC_Prerequisites">Source Code Control Integration Prerequisites</a></h4>
<ul>
<li><strong>CVS Source Control Integration</strong>: Requires CVS, which is available from <a href="http://www.nongnu.org/cvs/">http://www.nongnu.org/cvs/</a>, or the latest stable version of CVSNT, which is available from <a href="http://www.cvsnt.org/wiki/">http://www.cvsnt.org/wiki/</a>. </li>
<li><strong>CVS Source Control Integration using Putty</strong> (Windows): Requires Putty version 0.52 or greater. </li>
<li><strong>Perforce Source Control Integration</strong>: Requires a connection to a Perforce server with version 99.1 or later. </li>
<li><strong>Subversion Source Code Control Integration</strong>: Requires the svn command line client, available from <a href="http://subversion.tigris.org/">http://subversion.tigris.org/</a>. Komodo cannot use the <a href="http://jimey.com/tag/tortoisesvn" class="st_tag internal_tag" rel="tag" title="Posts tagged with TortoiseSVN">TortoiseSVN</a> client as it&#8217;s SVN executable. </li>
</ul>
<h3  class="related_post_title">相关博文</h3><ul class="related_post"><li>2009-03-05 -- <a href="http://jimey.com/2009/03/05/komodo-ide-subversion.html" title="Komodo IDE + Subversion">Komodo IDE + Subversion</a> (0)</li><li>2009-03-04 -- <a href="http://jimey.com/2009/03/04/tcl-compiler-environment-win.html" title="Win环境下的TCL Compiler">Win环境下的TCL Compiler</a> (0)</li><li>2009-12-02 -- <a href="http://jimey.com/2009/12/02/karmasphere-studio-for-hadoop.html" title="Karmasphere Studio for Hadoop">Karmasphere Studio for Hadoop</a> (0)</li><li>2009-10-31 -- <a href="http://jimey.com/2009/10/31/to-continue-to-micro-blog-to-continue-to-sync-messages.html" title="继续微博客，继续同步消息">继续微博客，继续同步消息</a> (2)</li><li>2009-04-06 -- <a href="http://jimey.com/2009/04/06/twitter-micro-blog-to-spread-to-other-steps-of-the-python-and-other.html" title="散布twitter到其他微博客的python脚步及其他">散布twitter到其他微博客的python脚步及其他</a> (2)</li><li>2009-04-02 -- <a href="http://jimey.com/2009/04/02/after-the-rice-has-reply-u0026gt-twitter-to-remind-the-script.html" title="饭否@回复后->Twitter提醒脚本">饭否@回复后->Twitter提醒脚本</a> (0)</li><li>2009-04-01 -- <a href="http://jimey.com/2009/04/01/twitter-protected-mode-to-open-the-message-authentication-twitter-messages-if-synchronization-rice.html" title="Twitter开启消息保护模式后认证Twitter消息同步饭否">Twitter开启消息保护模式后认证Twitter消息同步饭否</a> (0)</li><li>2009-03-27 -- <a href="http://jimey.com/2009/03/27/sync-twitter-to-rice-has.html" title="同步twitter到饭否">同步twitter到饭否</a> (0)</li><li>2009-03-11 -- <a href="http://jimey.com/2009/03/11/perlu002639s-cpan-permission-issues.html" title="perl的CPAN权限问题">perl的CPAN权限问题</a> (0)</li><li>2009-02-02 -- <a href="http://jimey.com/2009/02/02/ruby-1-9-1-released.html" title="Ruby 1.9.1发布">Ruby 1.9.1发布</a> (0)</li><li>2008-12-13 -- <a href="http://jimey.com/2008/12/13/saturdayu002639s-decent-thing.html" title="周六的正经事">周六的正经事</a> (0)</li><li>2008-08-25 -- <a href="http://jimey.com/2008/08/25/tiobe-programming-community-index-for-august-2008.html" title="TIOBE Programming Community Index for August 2008">TIOBE Programming Community Index for August 2008</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://jimey.com/2009/03/04/komodo-ide-guide.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby 1.9.1发布</title>
		<link>http://jimey.com/2009/02/02/ruby-1-9-1-released.html</link>
		<comments>http://jimey.com/2009/02/02/ruby-1-9-1-released.html#comments</comments>
		<pubDate>Mon, 02 Feb 2009 04:45:18 +0000</pubDate>
		<dc:creator>jimey</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://jimey.cn/2009/02/02/ruby-191%e5%8f%91%e5%b8%83.html</guid>
		<description><![CDATA[Ruby 1.9.0系列的第一个稳定版1.9.1正式发布。其主要特性包括了酝酿已久的虚拟机VM（以前的YARV），支持原生线程和纤程（Fiber，一种轻量级的线程）。Ruby 1.9.1的速度据称是上一个稳定版1.8.7两倍。... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://jimey.com/tag/ruby" class="st_tag internal_tag" rel="tag" title="Posts tagged with Ruby">Ruby</a> 1.9.0系列的第一个稳定版1.9.1正式发布。其主要特性包括了酝酿已久的虚拟机VM（以前的YARV），支持原生线程和纤程（Fiber，一种轻量级的线程）。<a href="http://www.rubyinside.com/ruby-191-released-first-production-release-of-the-fastest-ruby-ever-1480.html" target="_blank">Ruby 1.9.1</a>的速度据称是上一个稳定版1.8.7两倍。 </p>
<h3  class="related_post_title">相关博文</h3><ul class="related_post"><li>2009-03-04 -- <a href="http://jimey.com/2009/03/04/komodo-ide-guide.html" title="Komodo IDE Guide">Komodo IDE Guide</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://jimey.com/2009/02/02/ruby-1-9-1-released.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Supervised versus Unsupervised Learning</title>
		<link>http://jimey.com/2008/12/14/supervised-versus-unsupervised-learning.html</link>
		<comments>http://jimey.com/2008/12/14/supervised-versus-unsupervised-learning.html#comments</comments>
		<pubDate>Sat, 13 Dec 2008 18:51:44 +0000</pubDate>
		<dc:creator>jimey</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Collective Intelligence]]></category>

		<guid isPermaLink="false">http://jimey.cn/2008/12/14/supervised-versus-unsupervised-learning.html</guid>
		<description><![CDATA[Techniques that use example inputs and outputs to learn how to make predictions are known as supervised learning methods. We’ll explore many supervised learning methods in this book, including neural networks, decision trees, support-vector machines, and Bayesian filtering. Applications using these..... ]]></description>
			<content:encoded><![CDATA[<p>Techniques that use example inputs and outputs to learn how to make predictions are known as supervised learning methods. We’ll explore many supervised learning methods in this book, including <strong><em>neural networks, decision trees, support-vector machines, and Bayesian filtering. </em></strong>Applications using these methods “learn” by examining a set of inputs and expected outputs.</p>
<p><strong><em>Clustering</em></strong> is an example of unsupervised learning. Unlike a neural network or a decision tree, unsupervised learning algorithms are not trained with examples of correct answers. Their purpose is to find structure within a set of data where no one piece of data is the answer. The goal of clustering algorithms is to take the data and find the distinct groups that exist within it. Other examples of unsupervised learning include <em><strong>non-negative matrix factorization, self-organizing maps</strong></em>.</p>
<p>继续做摘要</p>
<p>这次给了蛮详细的一些区分</p>
<h3  class="related_post_title">相关博文</h3><ul class="related_post"><li>2008-12-11 -- <a href="http://jimey.com/2008/12/11/learning-algorithms.html" title="Learning Algorithms">Learning Algorithms</a> (0)</li><li>2009-03-11 -- <a href="http://jimey.com/2009/03/11/ubuntu-ubuntu-8-04-lts-configuration-notes.html" title="Ubuntu Ubuntu 8.04 LTS 配置笔记">Ubuntu Ubuntu 8.04 LTS 配置笔记</a> (0)</li><li>2008-12-13 -- <a href="http://jimey.com/2008/12/13/saturdayu002639s-decent-thing.html" title="周六的正经事">周六的正经事</a> (0)</li><li>2008-12-04 -- <a href="http://jimey.com/2008/12/04/programming-collective-intelligence.html" title="Programming.Collective.Intelligence">Programming.Collective.Intelligence</a> (0)</li><li>2008-11-10 -- <a href="http://jimey.com/2008/11/10/look-at-the-papers-the-last-month-of-a-small-comments.html" title="最近一个月看的论文一个小点评">最近一个月看的论文一个小点评</a> (0)</li><li>2008-11-06 -- <a href="http://jimey.com/2008/11/06/clojure.html" title="Clojure">Clojure</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://jimey.com/2008/12/14/supervised-versus-unsupervised-learning.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learning Algorithms</title>
		<link>http://jimey.com/2008/12/11/learning-algorithms.html</link>
		<comments>http://jimey.com/2008/12/11/learning-algorithms.html#comments</comments>
		<pubDate>Thu, 11 Dec 2008 11:50:49 +0000</pubDate>
		<dc:creator>jimey</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Algorithms]]></category>
		<category><![CDATA[Collective Intelligence]]></category>

		<guid isPermaLink="false">http://jimey.cn/2008/12/11/learning-algorithms.html</guid>
		<description><![CDATA[The methods described in this book are not new, and although the examples focus on Internet-based collective intelligence problems, knowledge of machine-learning algorithms can be helpful for software developers in many other fields. They are   particularly useful in areas that deal with large datas..... ]]></description>
			<content:encoded><![CDATA[<p>The methods described in this book are not new, and although the examples focus on Internet-based collective intelligence problems, knowledge of machine-learning algorithms can be helpful for software developers in many other fields. They are   <br />particularly useful in areas that deal with large datasets that can be searched for interesting patterns, for example:</p>
<p>Biotechnology,Financial fraud detection,Machine vision, Product marketing, Supply chain optimization, Stock market analysis, National security</p>
<p>…………………………………………………………</p>
<p>开始做一些乱七八糟的Programming Collective Intelligence的读书笔记</p>
<h3  class="related_post_title">相关博文</h3><ul class="related_post"><li>2008-12-14 -- <a href="http://jimey.com/2008/12/14/supervised-versus-unsupervised-learning.html" title="Supervised versus Unsupervised Learning">Supervised versus Unsupervised Learning</a> (0)</li><li>2009-03-11 -- <a href="http://jimey.com/2009/03/11/ubuntu-ubuntu-8-04-lts-configuration-notes.html" title="Ubuntu Ubuntu 8.04 LTS 配置笔记">Ubuntu Ubuntu 8.04 LTS 配置笔记</a> (0)</li><li>2008-12-13 -- <a href="http://jimey.com/2008/12/13/saturdayu002639s-decent-thing.html" title="周六的正经事">周六的正经事</a> (0)</li><li>2008-12-04 -- <a href="http://jimey.com/2008/12/04/programming-collective-intelligence.html" title="Programming.Collective.Intelligence">Programming.Collective.Intelligence</a> (0)</li><li>2008-11-10 -- <a href="http://jimey.com/2008/11/10/look-at-the-papers-the-last-month-of-a-small-comments.html" title="最近一个月看的论文一个小点评">最近一个月看的论文一个小点评</a> (0)</li><li>2008-11-06 -- <a href="http://jimey.com/2008/11/06/clojure.html" title="Clojure">Clojure</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://jimey.com/2008/12/11/learning-algorithms.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Programming.Collective.Intelligence</title>
		<link>http://jimey.com/2008/12/04/programming-collective-intelligence.html</link>
		<comments>http://jimey.com/2008/12/04/programming-collective-intelligence.html#comments</comments>
		<pubDate>Thu, 04 Dec 2008 05:13:57 +0000</pubDate>
		<dc:creator>jimey</dc:creator>
				<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Collective Intelligence]]></category>

		<guid isPermaLink="false">http://jimey.cn/2008/12/04/programmingcollectiveintelligence.html</guid>
		<description><![CDATA[&#160;  Programming Collective Intelligence: Building Smart Web 2.0 Applications [ILLUSTRATED] (Paperback)  Product Description    Want to tap the power behind search rankings, product recommendations, social bookmarking, and online matchmaking? This fascinating book demonstrates how you can build W..... ]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>Programming Collective Intelligence: Building Smart Web 2.0 Applications [ILLUSTRATED] (Paperback)</p>
<p><b>Product Description</b>    <br />Want to tap the power behind search rankings, product recommendations, social bookmarking, and online matchmaking? This fascinating book demonstrates how you can build Web 2.0 applications to mine the enormous amount of data created by people on the Internet. With the sophisticated algorithms in this book, you can write smart programs to access interesting datasets from other web sites, collect data from users of your own applications, and analyze and understand the data once you&#8217;ve found it. Programming Collective Intelligence takes you into the world of machine learning and statistics, and explains how to draw conclusions about user experience, marketing, personal tastes, and human behavior in general &#8212; all from information that you and others collect every day. Each algorithm is described clearly and concisely with code that can immediately be used on your web site, blog, Wiki, or specialized application. This book explains: Collaborative filtering techniques that enable online retailers to recommend products or media Methods of clustering to detect groups of similar items in a large dataset Search engine features &#8212; crawlers, indexers, query engines, and the PageRank algorithm Optimization algorithms that search millions of possible solutions to a problem and choose the best one Bayesian filtering, used in spam filters for classifying documents based on word types and other features Using decision trees not only to make predictions, but to model the way decisions are made Predicting numerical values rather than classifications to build price models Support vector machines to match people in online dating sites Non-negative matrix factorization to find the independent features in adataset Evolving intelligence for problem solving &#8212; how a computer develops its skill by improving its own code the more it plays a game Each chapter includes exercises for extending the algorithms to make them more powerful. Go beyond simple database-backed applications and put the wealth of Internet data to work for you. &quot;Bravo! I cannot think of a better way for a developer to first learn these algorithms and methods, nor can I think of a better way for me (an old AI dog) to reinvigorate my knowledge of the details.&quot; &#8212; Dan Russell, Google &quot;Toby&#8217;s book does a great job of breaking down the complex subject matter of machine-learning algorithms into practical, easy-to-understand examples that can be directly applied to analysis of social interaction across the Web today. If I had this book two years ago, it would have saved precious time going down some fruitless paths.&quot; &#8212; Tim Wolters, CTO, Collective Intellect     <br /><b>About the Author</b>    <br />Toby Segaran is a software developer and manager at Genstruct, a computational systems biology company. He has written free web applications for his own use and put them online for others to try, including: tasktoy, a task management system; Lazybase, an online application that lets users design, create and share databases of anything they like; and Rosetta Blog, an online tool for practicing Spanish and French by reading blogs along with their translations and lists of common words. Each of these has several hundred regular users. His blog is located at kiwitobes.com.</p>
<p>&#8212;&#8212;</p>
<p>顺便转一篇关于奥威尔式的</p>
<p>&#8212;&#8212;&#8212;&#8212;-</p>
<p>集体智慧工具可能创造奥威尔式的世界</p>
<p>《纽约时报》报道，MIT的100名学生同意以隐私交换一台能向中央电脑发送定向数据的Windows Mobile智能手机。除了记录个人行为，如发送短消息、拨打电话、听歌之外，这台手机还能捕捉移动图像。<i> 学生的数据只不过是广袤的数字信息海洋中的一个泡沫，这个海洋由密集的传感器网络所创造，从手机到GPS设备到标签，它记录了我们的一举一动。再加上互联网冲浪记录和信用卡等信息来源，数据之海就是所谓集体智慧（collective intelligence）的新兴领域的基础。新技术的推动，互联网正稳步的侵入人们生活的每一个角落。从更高效广告传递，到社区组织管理的新方式，集体智慧提供了强大的能力。但是，甚至是从业者也承认，如果被滥用，集体智慧工具会创造连老大哥都梦想不到的<a href="http://www.nytimes.com/2008/11/30/business/30privacy.html?_r=1&amp;partner=permalink&amp;exprod=permalink">奥威尔式的未来</a>。</i></p>
<p>[<a href="http://internet.solidot.org/article.pl?sid=08/12/01/0643244&amp;amp;from=rss">via</a>]</p>
<h3  class="related_post_title">相关博文</h3><ul class="related_post"><li>2008-12-14 -- <a href="http://jimey.com/2008/12/14/supervised-versus-unsupervised-learning.html" title="Supervised versus Unsupervised Learning">Supervised versus Unsupervised Learning</a> (0)</li><li>2008-12-13 -- <a href="http://jimey.com/2008/12/13/saturdayu002639s-decent-thing.html" title="周六的正经事">周六的正经事</a> (0)</li><li>2008-12-11 -- <a href="http://jimey.com/2008/12/11/learning-algorithms.html" title="Learning Algorithms">Learning Algorithms</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://jimey.com/2008/12/04/programming-collective-intelligence.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PCL -&gt; Clojure</title>
		<link>http://jimey.com/2008/11/11/pcl-u0026gt-clojure.html</link>
		<comments>http://jimey.com/2008/11/11/pcl-u0026gt-clojure.html#comments</comments>
		<pubDate>Tue, 11 Nov 2008 06:39:02 +0000</pubDate>
		<dc:creator>jimey</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Clojure]]></category>
		<category><![CDATA[LISP]]></category>

		<guid isPermaLink="false">http://jimey.cn/2008/11/11/pcl-clojure.html</guid>
		<description><![CDATA[http://blog.thinkrelevance.com/2008/9/16/pcl-clojure  The Series     Intro (this post)     Chapter 3. Practical: A Simple Database    Chapter 5. Functions    Chapter 6. Variables    Chapter 7. Macros: Standard Control Constructs    Chapter 8. Macros: Defining Your Own    Chapter 9. Practical: A Unit..... ]]></description>
			<content:encoded><![CDATA[<p><a title="http://blog.thinkrelevance.com/2008/9/16/pcl-clojure" href="http://blog.thinkrelevance.com/2008/9/16/pcl-clojure">http://blog.thinkrelevance.com/2008/9/16/pcl-clojure</a></p>
<h5>The Series</h5>
<ul>
<li><a href="http://blog.thinkrelevance.com/2008/9/16/pcl-clojure">Intro</a> (this post) </li>
<li><a href="http://blog.thinkrelevance.com/2008/9/16/pcl-clojure-chapter-3">Chapter 3. Practical: A Simple Database</a></li>
<li><a href="http://blog.thinkrelevance.com/2008/9/16/pcl-clojure-chapter-5">Chapter 5. Functions</a></li>
<li><a href="http://blog.thinkrelevance.com/2008/9/16/pcl-clojure-chapter-6">Chapter 6. Variables</a></li>
<li><a href="http://blog.thinkrelevance.com/2008/9/18/pcl-clojure-chapter-7">Chapter 7. Macros: Standard Control Constructs</a></li>
<li><a href="http://blog.thinkrelevance.com/2008/9/23/pcl-clojure-chapter-8">Chapter 8. Macros: Defining Your Own</a></li>
<li><a href="http://blog.thinkrelevance.com/2008/9/24/pcl-clojure-chapter-9">Chapter 9. Practical: A Unit Test Framework</a></li>
<li><a href="http://blog.thinkrelevance.com/2008/9/19/pcl-clojure-chapter-10">Chapter 10. Numbers, Characters, and Strings</a></li>
<li><a href="http://blog.thinkrelevance.com/2008/9/22/pcl-clojure-chapter-11">Chapter 11. Collections</a></li>
<li><a href="http://blog.thinkrelevance.com/2008/9/25/pcl-clojure-chapter-16">Chapter 16. Object Reorientation: Generic Functions</a></li>
<li><a href="http://blog.thinkrelevance.com/2008/9/25/pcl-clojure-chapter-17">Chapter 17. Object Reorientation: Classes</a></li>
</ul>
<p>&#160;</p>
<p>之前一直打算从头把Lisp看一遍的，一直没时间，这回可以把clojure一块看了……</p>
<h3  class="related_post_title">相关博文</h3><ul class="related_post"><li>2008-11-06 -- <a href="http://jimey.com/2008/11/06/clojure.html" title="Clojure">Clojure</a> (0)</li><li>2008-09-30 -- <a href="http://jimey.com/2008/09/30/thesis-of-a-little-bit-of-thinking.html" title="毕业论文的一点点思路">毕业论文的一点点思路</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://jimey.com/2008/11/11/pcl-u0026gt-clojure.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clojure</title>
		<link>http://jimey.com/2008/11/06/clojure.html</link>
		<comments>http://jimey.com/2008/11/06/clojure.html#comments</comments>
		<pubDate>Thu, 06 Nov 2008 06:02:36 +0000</pubDate>
		<dc:creator>jimey</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Clojure]]></category>
		<category><![CDATA[LISP]]></category>

		<guid isPermaLink="false">http://jimey.cn/2008/11/06/clojure.html</guid>
		<description><![CDATA[&#160;  Clojure is a dynamic programming language that targets the Java Virtual Machine. It is designed to be a general-purpose language, combining the approachability and interactive development of a scripting language with an efficient and robust infrastructure for multithreaded programming. Cloju..... ]]></description>
			<content:encoded><![CDATA[<p>Clojure is a dynamic programming language that targets the Java Virtual Machine. It is designed to be a general-purpose language, combining the approachability and interactive development of a scripting language with an efficient and robust infrastructure for multithreaded programming. Clojure is a compiled language &#8211; it compiles directly to JVM bytecode, yet remains completely dynamic. Every feature supported by Clojure is supported at runtime. Clojure provides easy access to the Java frameworks, with optional type hints and type inference, to ensure that calls to Java can avoid reflection.</p>
<p>More details <a title="http://clojure.org/" href="http://clojure.org/">http://clojure.org/</a></p>
<p>and <a title="http://www.moxleystratton.com/article/clojure/for-non-lisp-programmers" href="http://www.moxleystratton.com/article/clojure/for-non-lisp-programmers">http://www.moxleystratton.com/article/clojure/for-non-lisp-programmers</a></p>
<h3  class="related_post_title">相关博文</h3><ul class="related_post"><li>2008-11-11 -- <a href="http://jimey.com/2008/11/11/pcl-u0026gt-clojure.html" title="PCL -&gt; Clojure">PCL -&gt; Clojure</a> (0)</li><li>2009-03-11 -- <a href="http://jimey.com/2009/03/11/ubuntu-ubuntu-8-04-lts-configuration-notes.html" title="Ubuntu Ubuntu 8.04 LTS 配置笔记">Ubuntu Ubuntu 8.04 LTS 配置笔记</a> (0)</li><li>2008-12-14 -- <a href="http://jimey.com/2008/12/14/supervised-versus-unsupervised-learning.html" title="Supervised versus Unsupervised Learning">Supervised versus Unsupervised Learning</a> (0)</li><li>2008-12-11 -- <a href="http://jimey.com/2008/12/11/learning-algorithms.html" title="Learning Algorithms">Learning Algorithms</a> (0)</li><li>2008-11-10 -- <a href="http://jimey.com/2008/11/10/look-at-the-papers-the-last-month-of-a-small-comments.html" title="最近一个月看的论文一个小点评">最近一个月看的论文一个小点评</a> (0)</li><li>2008-09-30 -- <a href="http://jimey.com/2008/09/30/thesis-of-a-little-bit-of-thinking.html" title="毕业论文的一点点思路">毕业论文的一点点思路</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://jimey.com/2008/11/06/clojure.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VTC Offers Free (with a Code) Video Software Training</title>
		<link>http://jimey.com/2008/10/02/vtc-offers-free-with-a-code-video-software-training.html</link>
		<comments>http://jimey.com/2008/10/02/vtc-offers-free-with-a-code-video-software-training.html#comments</comments>
		<pubDate>Thu, 02 Oct 2008 02:22:29 +0000</pubDate>
		<dc:creator>jimey</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Free]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Training]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[VTC]]></category>

		<guid isPermaLink="false">http://jimey.cn/2008/10/02/vtc-offers-free-with-a-code-video-software-training.html</guid>
		<description><![CDATA[The Digital Inspiration blog points out that one can get ulimited access to the Video Training Company, a site with more than 70,000 video tutorials focused on software, programming, and other technology, with a three-letter promotional code. If you&#8217;re determined not to have to bother anyone in accounting for advanced Excel tricks (or learn any [...... ]]></description>
			<content:encoded><![CDATA[<p>The Digital Inspiration blog points out that one can get ulimited access to the Video <a href="http://jimey.com/tag/training" class="st_tag internal_tag" rel="tag" title="Posts tagged with Training">Training</a> Company, a site with more than 70,000 video tutorials focused on software, programming, and other technology, with a three-letter promotional code. If you&#8217;re determined not to have to bother anyone in accounting for advanced Excel tricks (or learn any software package or OS, really)</p>
<p>&#160;</p>
<p>enter <em>u5atr3alvtcfr33</em> as a promotional code at the sign-up page below. The offer goes for one week, and may not last, so now&#8217;s your chance to grab Quicktime or Flash-based how-to videos. Found an instructional vid worth sharing? Tell us about it in the comments. </p>
<p><a href="http://www.vtc.com/promos/filemaker/signup.php">VTC FileMaker Promotional Offer</a></p>
<h3  class="related_post_title">相关博文</h3><ul class="related_post"><li>2009-03-13 -- <a href="http://jimey.com/2009/03/13/10-papers-every-software-architect-should-read-at-least-twice.html" title="10 Papers Every Software Architect Should Read (At Least Twice)">10 Papers Every Software Architect Should Read (At Least Twice)</a> (0)</li><li>2008-09-17 -- <a href="http://jimey.com/2008/09/17/american-accent-training-linguaphone-course-on-5-cds.html" title="American Accent Training Linguaphone Course on 5 CDs">American Accent Training Linguaphone Course on 5 CDs</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://jimey.com/2008/10/02/vtc-offers-free-with-a-code-video-software-training.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TIOBE Programming Community Index for August 2008</title>
		<link>http://jimey.com/2008/08/25/tiobe-programming-community-index-for-august-2008.html</link>
		<comments>http://jimey.com/2008/08/25/tiobe-programming-community-index-for-august-2008.html#comments</comments>
		<pubDate>Mon, 25 Aug 2008 10:57:21 +0000</pubDate>
		<dc:creator>jimey</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Community Index]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[TIOBE]]></category>

		<guid isPermaLink="false">http://jimey.cn/2008/08/25/tiobe-programming-community-index-for-august-2008/</guid>
		<description><![CDATA[来自http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html              Position        Position        Programming Language        Ratings        Delta        Status                  Aug-08        Aug-07        Aug-08        Aug-07                  1        1        Java        21.57%    ..... ]]></description>
			<content:encoded><![CDATA[<p>来自<a title="http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html" href="http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html">http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html</a></p>
<table style="width: 324pt; border-collapse: collapse" cellspacing="0" cellpadding="0" width="432" border="0">
<colgroup>
<col style="width: 54pt" span="span" width="72" /></colgroup>
<tbody>
<tr style="height: 15pt" height="20">
<td class="xl65" style="width: 54pt; height: 15pt" width="72" height="20">Position</td>
<td class="xl65" style="border-left: medium none; width: 54pt" width="72">Position</td>
<td class="xl65" style="width: 54pt; border-bottom: gray 1pt solid" width="72" rowspan="rowspan">Programming Language</td>
<td class="xl65" style="border-left: medium none; width: 54pt" width="72">Ratings</td>
<td class="xl65" style="border-left: medium none; width: 54pt" width="72">Delta</td>
<td class="xl65" style="width: 54pt; border-bottom: gray 1pt solid" width="72" rowspan="rowspan">Status</td>
</tr>
<tr style="height: 15.75pt" height="21">
<td class="xl66" style="height: 15.75pt" height="21">Aug-08</td>
<td class="xl66" style="border-left: medium none">Aug-07</td>
<td class="xl66" style="border-left: medium none">Aug-08</td>
<td class="xl66" style="border-left: medium none">Aug-07</td>
</tr>
<tr style="height: 14.25pt" height="19">
<td class="xl67" style="border-top: medium none; width: 54pt; height: 14.25pt" width="72" height="19">1</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">1</td>
<td class="xl68" style="border-top: medium none; border-left: medium none; width: 54pt" width="72"><a href="http://www.tiobe.com/content/paperinfo/tpci/Java.html">Java</a></td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">21.57%</td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">-0.20%</td>
<td class="xl70" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">&#160; A</td>
</tr>
<tr style="height: 14.25pt" height="19">
<td class="xl67" style="border-top: medium none; width: 54pt; height: 14.25pt" width="72" height="19">2</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">2</td>
<td class="xl68" style="border-top: medium none; border-left: medium none; width: 54pt" width="72"><a href="http://www.tiobe.com/content/paperinfo/tpci/C.html">C</a></td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">16.18%</td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">0.48%</td>
<td class="xl70" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">&#160; A</td>
</tr>
<tr style="height: 27.75pt" height="37">
<td class="xl67" style="border-top: medium none; width: 54pt; height: 27.75pt" width="72" height="37">3</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">3</td>
<td class="xl68" style="border-top: medium none; border-left: medium none; width: 54pt" width="72"><a href="http://www.tiobe.com/content/paperinfo/tpci/(Visual)_Basic.html">(Visual) Basic</a></td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">10.86%</td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">0.21%</td>
<td class="xl70" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">&#160; A</td>
</tr>
<tr style="height: 14.25pt" height="19">
<td class="xl67" style="border-top: medium none; width: 54pt; height: 14.25pt" width="72" height="19">4</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">4</td>
<td class="xl68" style="border-top: medium none; border-left: medium none; width: 54pt" width="72"><a href="http://www.tiobe.com/content/paperinfo/tpci/C__.html">C++</a></td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">10.06%</td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">-0.05%</td>
<td class="xl70" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">&#160; A</td>
</tr>
<tr style="height: 14.25pt" height="19">
<td class="xl67" style="border-top: medium none; width: 54pt; height: 14.25pt" width="72" height="19">5</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">5</td>
<td class="xl68" style="border-top: medium none; border-left: medium none; width: 54pt" width="72"><a href="http://www.tiobe.com/content/paperinfo/tpci/PHP.html">PHP</a></td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">9.35%</td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">-0.35%</td>
<td class="xl70" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">&#160; A</td>
</tr>
<tr style="height: 14.25pt" height="19">
<td class="xl67" style="border-top: medium none; width: 54pt; height: 14.25pt" width="72" height="19"><font color="#ff0000">6</font></td>
<td class="xl67" style="border-top: medium none; border-left: medium none; width: 54pt" width="72"><font color="#ff0000">8</font></td>
<td class="xl68" style="border-top: medium none; border-left: medium none; width: 54pt" width="72"><a href="http://www.tiobe.com/content/paperinfo/tpci/Python.html"><font color="#ff0000">Python</font></a></td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72"><font color="#ff0000">4.98%</font></td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72"><font color="#ff0000">2.23%</font></td>
<td class="xl70" style="border-top: medium none; border-left: medium none; width: 54pt" width="72"><font color="#ff0000">&#160; A</font></td>
</tr>
<tr style="height: 14.25pt" height="19">
<td class="xl67" style="border-top: medium none; width: 54pt; height: 14.25pt" width="72" height="19">7</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">6</td>
<td class="xl68" style="border-top: medium none; border-left: medium none; width: 54pt" width="72"><a href="http://www.tiobe.com/content/paperinfo/tpci/Perl.html">Perl</a></td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">4.69%</td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">-0.63%</td>
<td class="xl70" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">&#160; A</td>
</tr>
<tr style="height: 14.25pt" height="19">
<td class="xl67" style="border-top: medium none; width: 54pt; height: 14.25pt" width="72" height="19">8</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">7</td>
<td class="xl68" style="border-top: medium none; border-left: medium none; width: 54pt" width="72"><a href="http://www.tiobe.com/content/paperinfo/tpci/C_.html">C#</a></td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">3.70%</td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">-0.29%</td>
<td class="xl70" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">&#160; A</td>
</tr>
<tr style="height: 14.25pt" height="19">
<td class="xl67" style="border-top: medium none; width: 54pt; height: 14.25pt" width="72" height="19">9</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">10</td>
<td class="xl68" style="border-top: medium none; border-left: medium none; width: 54pt" width="72"><a href="http://www.tiobe.com/content/paperinfo/tpci/Ruby.html">Ruby</a></td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">2.92%</td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">1.01%</td>
<td class="xl70" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">&#160; A</td>
</tr>
<tr style="height: 27.75pt" height="37">
<td class="xl67" style="border-top: medium none; width: 54pt; height: 27.75pt" width="72" height="37">10</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">9</td>
<td class="xl68" style="border-top: medium none; border-left: medium none; width: 54pt" width="72"><a href="http://www.tiobe.com/content/paperinfo/tpci/JavaScript.html">JavaScript</a></td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">2.89%</td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">0.32%</td>
<td class="xl70" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">&#160; A</td>
</tr>
<tr style="height: 14.25pt" height="19">
<td class="xl67" style="border-top: medium none; width: 54pt; height: 14.25pt" width="72" height="19">11</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">14</td>
<td class="xl68" style="border-top: medium none; border-left: medium none; width: 54pt" width="72"><a href="http://www.tiobe.com/content/paperinfo/tpci/Delphi.html">Delphi</a></td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">2.73%</td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">1.51%</td>
<td class="xl70" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">&#160; A</td>
</tr>
<tr style="height: 14.25pt" height="19">
<td class="xl67" style="border-top: medium none; width: 54pt; height: 14.25pt" width="72" height="19">12</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">13</td>
<td class="xl68" style="border-top: medium none; border-left: medium none; width: 54pt" width="72"><a href="http://www.tiobe.com/content/paperinfo/tpci/D.html">D</a></td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">1.36%</td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">0.11%</td>
<td class="xl70" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">&#160; A</td>
</tr>
<tr style="height: 14.25pt" height="19">
<td class="xl67" style="border-top: medium none; width: 54pt; height: 14.25pt" width="72" height="19">13</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">11</td>
<td class="xl68" style="border-top: medium none; border-left: medium none; width: 54pt" width="72"><a href="http://www.tiobe.com/content/paperinfo/tpci/PL_SQL.html">PL/SQL</a></td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">0.68%</td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">-1.15%</td>
<td class="xl70" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">&#160; A-</td>
</tr>
<tr style="height: 14.25pt" height="19">
<td class="xl67" style="border-top: medium none; width: 54pt; height: 14.25pt" width="72" height="19">14</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">12</td>
<td class="xl68" style="border-top: medium none; border-left: medium none; width: 54pt" width="72"><a href="http://www.tiobe.com/content/paperinfo/tpci/SAS.html">SAS</a></td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">0.55%</td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">-0.84%</td>
<td class="xl70" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">&#160; B</td>
</tr>
<tr style="height: 27.75pt" height="37">
<td class="xl67" style="border-top: medium none; width: 54pt; height: 27.75pt" width="72" height="37">15</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">-</td>
<td class="xl68" style="border-top: medium none; border-left: medium none; width: 54pt" width="72"><a href="http://www.tiobe.com/content/paperinfo/tpci/PowerShell.html">PowerShell</a></td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">0.44%</td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">0.44%</td>
<td class="xl70" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">&#160; B</td>
</tr>
<tr style="height: 14.25pt" height="19">
<td class="xl67" style="border-top: medium none; width: 54pt; height: 14.25pt" width="72" height="19">16</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">24</td>
<td class="xl68" style="border-top: medium none; border-left: medium none; width: 54pt" width="72"><a href="http://www.tiobe.com/content/paperinfo/tpci/Pascal.html">Pascal</a></td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">0.42%</td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">0.00%</td>
<td class="xl70" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">&#160; B</td>
</tr>
<tr style="height: 27.75pt" height="37">
<td class="xl67" style="border-top: medium none; width: 54pt; height: 27.75pt" width="72" height="37">17</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">18</td>
<td class="xl68" style="border-top: medium none; border-left: medium none; width: 54pt" width="72"><a href="http://www.tiobe.com/content/paperinfo/tpci/Lisp_Scheme.html">Lisp/Scheme</a></td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">0.38%</td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">-0.21%</td>
<td class="xl70" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">&#160; B</td>
</tr>
<tr style="height: 14.25pt" height="19">
<td class="xl67" style="border-top: medium none; width: 54pt; height: 14.25pt" width="72" height="19">18</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">15</td>
<td class="xl68" style="border-top: medium none; border-left: medium none; width: 54pt" width="72"><a href="http://www.tiobe.com/content/paperinfo/tpci/Lua.html">Lua</a></td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">0.37%</td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">-0.27%</td>
<td class="xl70" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">&#160; B</td>
</tr>
<tr style="height: 14.25pt" height="19">
<td class="xl67" style="border-top: medium none; width: 54pt; height: 14.25pt" width="72" height="19">19</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">16</td>
<td class="xl68" style="border-top: medium none; border-left: medium none; width: 54pt" width="72"><a href="http://www.tiobe.com/content/paperinfo/tpci/COBOL.html">COBOL</a></td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">0.36%</td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">-0.24%</td>
<td class="xl70" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">&#160; B</td>
</tr>
<tr style="height: 27.75pt" height="37">
<td class="xl67" style="border-top: medium none; width: 54pt; height: 27.75pt" width="72" height="37">20</td>
<td class="xl67" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">23</td>
<td class="xl68" style="border-top: medium none; border-left: medium none; width: 54pt" width="72"><a href="http://www.tiobe.com/content/paperinfo/tpci/ActionScript.html">ActionScript</a></td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">0.36%</td>
<td class="xl69" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">-0.07%</td>
<td class="xl70" style="border-top: medium none; border-left: medium none; width: 54pt" width="72">&#160; B</td>
</tr>
</tbody>
</table>
<h3  class="related_post_title">相关博文</h3><ul class="related_post"><li>2009-10-31 -- <a href="http://jimey.com/2009/10/31/to-continue-to-micro-blog-to-continue-to-sync-messages.html" title="继续微博客，继续同步消息">继续微博客，继续同步消息</a> (2)</li><li>2009-04-06 -- <a href="http://jimey.com/2009/04/06/twitter-micro-blog-to-spread-to-other-steps-of-the-python-and-other.html" title="散布twitter到其他微博客的python脚步及其他">散布twitter到其他微博客的python脚步及其他</a> (2)</li><li>2009-04-02 -- <a href="http://jimey.com/2009/04/02/after-the-rice-has-reply-u0026gt-twitter-to-remind-the-script.html" title="饭否@回复后->Twitter提醒脚本">饭否@回复后->Twitter提醒脚本</a> (0)</li><li>2009-04-01 -- <a href="http://jimey.com/2009/04/01/twitter-protected-mode-to-open-the-message-authentication-twitter-messages-if-synchronization-rice.html" title="Twitter开启消息保护模式后认证Twitter消息同步饭否">Twitter开启消息保护模式后认证Twitter消息同步饭否</a> (0)</li><li>2009-03-27 -- <a href="http://jimey.com/2009/03/27/sync-twitter-to-rice-has.html" title="同步twitter到饭否">同步twitter到饭否</a> (0)</li><li>2009-03-04 -- <a href="http://jimey.com/2009/03/04/komodo-ide-guide.html" title="Komodo IDE Guide">Komodo IDE Guide</a> (0)</li><li>2008-12-13 -- <a href="http://jimey.com/2008/12/13/saturdayu002639s-decent-thing.html" title="周六的正经事">周六的正经事</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://jimey.com/2008/08/25/tiobe-programming-community-index-for-august-2008.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>关于JAVA中交换变量的方法</title>
		<link>http://jimey.com/2008/08/03/with-regard-to-the-exchange-of-variables-method-in-java.html</link>
		<comments>http://jimey.com/2008/08/03/with-regard-to-the-exchange-of-variables-method-in-java.html#comments</comments>
		<pubDate>Mon, 29 Nov 1999 16:00:00 +0000</pubDate>
		<dc:creator>jimey</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://jimey.s216.sureserver.com/blog/index.php/2008/08/03/%e5%85%b3%e4%ba%8ejava%e4%b8%ad%e4%ba%a4%e6%8d%a2%e5%8f%98%e9%87%8f%e7%9a%84%e6%96%b9%e6%b3%95/</guid>
		<description><![CDATA[在我们写程序的时候，经常会遇到两个变量Ａ与Ｂ交换的操作，通常大家会借助第三个变量来实现：  第一种方法利用第三个变量： 如：C=A;A=B;B=C; 第二种方法是利用加减法实现两个变量的交换： 如：A=A+B;B=A-B;A=A-B; 第三种方法是得用位异或运算来实现，也是效率最高的一种，在大量数据交换的时候，效率明显优于前两种方法， 如：A=A^B;B=A^B;A=A^B; 原理：利用一个数异或本身等... ]]></description>
			<content:encoded><![CDATA[<h6><font face="Arial" size="3">在我们写程序的时候，经常会遇到两个变量Ａ与Ｂ交换的操作，通常大家会借助第三个变量来实现：  </font></h6>
<ul>
<li>第一种方法利用第三个变量：</li>
</ul>
<p>如：C=A;A=B;B=C;</p>
<ul>
<li>第二种方法是利用加减法实现两个变量的交换：</li>
</ul>
<p>如：A=A+B;B=A-B;A=A-B;</p>
<ul>
<li>第三种方法是得用位异或运算来实现，也是效率最高的一种，在大量数据交换的时候，效率明显优于前两种方法，</li>
</ul>
<p>如：A=A^B;B=A^B;A=A^B;
</p>
<p>原理：利用一个数异或本身等于０和异或运算符合交换率。 <br />下面看看执行效率
</p>
<p>Java代码
</p>
<p><strong>package com.ramon.test; </strong>
</p>
<p><strong>public class Test {<br />    public static void main(String args[]) {<br />        int A = 2;<br />        int B = 3;<br />        int C;<br />        System.out.println(&quot;Object creating&#8230;&quot;);<br />        System.out.println(&quot;A=&quot; + A);<br />        System.out.println(&quot;B=&quot; + B);<br />        System.out.println(&quot;==================&quot;);<br />        System.out.println(&quot;Method 1 starting&#8230;&quot;);<br />        Long begin=System.nanoTime();<br />        C = A;<br />        A = B;<br />        B = C;<br />        System.out.println(&quot;A=&quot; + A);<br />        System.out.println(&quot;B=&quot; + B);<br />        Long end=System.nanoTime();<br />        System.out.println(&quot;Start Time: &quot;+begin);<br />        System.out.println(&quot;End Time: &quot;+end);<br />        System.out.println(&quot;Last Time: &quot;+(end-begin));<br />        System.out.println(&quot;==================&quot;);<br />        System.out.println(&quot;Method 2 starting&#8230;&quot;);<br />        begin=System.nanoTime();<br />        A = A + B;<br />        B = A &#8211; B;<br />        A = A &#8211; B;<br />        System.out.println(&quot;A=&quot; + A);<br />        System.out.println(&quot;B=&quot; + B);<br />        end=System.nanoTime();<br />        System.out.println(&quot;Start Time: &quot;+begin);<br />        System.out.println(&quot;End Time: &quot;+end);<br />        System.out.println(&quot;Last Time: &quot;+(end-begin));<br />        System.out.println(&quot;==================&quot;);<br />        System.out.println(&quot;Method 3 starting&#8230;&quot;);<br />        begin=System.nanoTime();<br />        A = A ^ B;<br />        B = A ^ B;<br />        A = A ^ B;<br />        System.out.println(&quot;A=&quot; + A);<br />        System.out.println(&quot;B=&quot; + B);<br />        end=System.nanoTime();<br />        System.out.println(&quot;Start Time: &quot;+begin);<br />        System.out.println(&quot;End Time: &quot;+end);<br />        System.out.println(&quot;Last Time: &quot;+(end-begin));<br />        System.out.println(&quot;==================&quot;);<br />    }<br />}</strong>
</p>
<p>运行结果：
</p>
<p><strong>Object creating&#8230;<br />A=2<br />B=3<br />==================<br />Method 1 starting&#8230;<br />A=3<br />B=2<br />Start Time: 7022865296008<br />End Time: 7022865590179<br />Last Time: 294171<br />==================<br />Method 2 starting&#8230;<br />A=2<br />B=3<br />Start Time: 7022866909621<br />End Time: 7022867035335<br />Last Time: 125714<br />==================<br />Method 3 starting&#8230;<br />A=3<br />B=2<br />Start Time: 7022867374764<br />End Time: 7022867490700<br />Last Time: 115936<br />==================</strong></p>
<h3  class="related_post_title">无关博文</h3><ul class="related_post"><li>2008-08-17 -- <a href="http://jimey.com/2008/08/17/again-lie-down-youpaqilai.html" title="又一次躺下又爬起来">又一次躺下又爬起来</a> (0)</li><li>2008-07-05 -- <a href="http://jimey.com/2008/07/05/now-seen-the-history-of-the-strongest-in-the-english-translation.html" title="目前见到过的，史上最强中英翻译">目前见到过的，史上最强中英翻译</a> (0)</li><li>2010-05-09 -- <a href="http://jimey.com/2010/05/09/time-went-by-fast.html" title="时间过的飞快">时间过的飞快</a> (0)</li><li>2009-03-18 -- <a href="http://jimey.com/2009/03/18/wget-manual-wget-command-to-use.html" title="wget手册 wget命令使用方法">wget手册 wget命令使用方法</a> (1)</li><li>2008-08-01 -- <a href="http://jimey.com/2008/08/01/hancock.html" title="Hancock">Hancock</a> (2)</li><li>2008-12-10 -- <a href="http://jimey.com/2008/12/10/i-do-not-know-english-or-a-scary-scary-people.html" title="不知道是英文邪门还是人邪门">不知道是英文邪门还是人邪门</a> (0)</li><li>2008-08-04 -- <a href="http://jimey.com/2008/08/04/a-presentation-of-cloud-computing-on-thursday.html" title="a presentation of cloud computing on Thursday">a presentation of cloud computing on Thursday</a> (0)</li><li>2008-10-29 -- <a href="http://jimey.com/2008/10/29/beit-el-1.html" title="拜一拜">拜一拜</a> (0)</li><li>2006-01-05 -- <a href="http://jimey.com/2006/01/05/%ed%95%9c%ed%95%b4.html" title="한  해">한  해</a> (3)</li><li>2009-01-14 -- <a href="http://jimey.com/2009/01/14/replacement-discuz-and-ucenter-domain-name-or-directory-to-note-what-matters.html" title="更换 Discuz！ 和 UCenter 域名或者目录，需要注意哪些事项？">更换 Discuz！ 和 UCenter 域名或者目录，需要注意哪些事项？</a> (0)</li><li>2008-09-13 -- <a href="http://jimey.com/2008/09/13/nell-good-night.html" title="Nell &#8211; Good Night">Nell &#8211; Good Night</a> (4)</li><li>2009-04-29 -- <a href="http://jimey.com/2009/04/29/mozart-concerto-20-in-d-k-466-1-allegro-1of2-gulda.html" title="Mozart concerto 20 in d, K.466 &#8211; 1. Allegro (1of2) Gulda">Mozart concerto 20 in d, K.466 &#8211; 1. Allegro (1of2) Gulda</a> (2)</li><li>2009-02-02 -- <a href="http://jimey.com/2009/02/02/repair-of-the-display-to-come-back.html" title="修了显示器回来">修了显示器回来</a> (4)</li><li>2008-08-31 -- <a href="http://jimey.com/2008/08/31/weekend.html" title="周末">周末</a> (0)</li><li>2009-06-22 -- <a href="http://jimey.com/2009/06/22/asiaccs-2010.html" title="ASIACCS 2010">ASIACCS 2010</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://jimey.com/2008/08/03/with-regard-to-the-exchange-of-variables-method-in-java.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
