07.16
The Monkey was busy in his Monkey Sync these days, which can update his micro-blog and blog in several Facebook-like websites automatically.
After last change, Monkey Sync had worked very well for a long time. It posted the posts in Monkey's House to Facebook, Renren, Qzone and Baidu, and sent the statuses from Twitter to Renren, Qzone and Baidu.
There was still a problem that Monkey Sync 's code was a little bit messy because it was modified on a open-source code, which had some failures at its very beginning. So, Monkey Sync was being slower. Because of those failures, the system might be obstructed by some errors raised by network status.
In this modification, the Monkey added the module for Sina Weibo, the Chinese Twitter, and solved a main problem about Twitter 's Rate Limitation, which was not noticed and considered by the first author.
To reduce unnecessary calculations, the Monkey uses MemCached. To get access to Twitter without limitation, the Monkey uses OAuth Libraries, which makes his work much more easier than before.
The Monkey changed the outline of the whole system, which will make it stronger. In this project, the Monkey learnt MemCached and a lot of libraries he had not known.
Thanks to Google App Engine, he could practice Python and learnt a lot.
这几天猴哥在为他的同步系统而忙碌,这个系统能够自动更新他的微博们。
在上一次改动之后,猴哥的同步系统曾经正常工作了很长时间,它把“猴子的小窝”里的帖子转发到Facebook、人人网、QQ空间和百度空间,把Twitter状态转发到人人网、QQ空间和百度空间中。
但是这里仍然有一个问题,由于这个系统是基于一个开源代码修改而来的,而这个代码最最开始的时候就有一些缺陷,所以猴哥的这个系统代码比较凌乱。因此同步系统越来越慢,有的时候还会因为网络状况的一些小错误而被阻碍运行。
在这次修改中,猴哥增加了针对新浪微博的模块,解决了Twitter“速率限制”这个未被原作者注意和考虑到的问题。
为了减少不必要的计算量,猴哥使用了MemCached;为了获得不受限制的Twitter数据,猴哥使用了OAuth库,大大节省了他的工作量。
猴哥改变了整个系统的结构,以便使这个系统更加健壮。在这次的项目中,猴哥学习了很多。

