月度归档:2010年02月

让Twitter tools用上Twitter API proxy

博客放在国内,怎么让wordpress访问twitter呢?

使用Twitter API proxy就可以了。

让博客通过Twitter API proxy访问twitter。

wordpress的插件很丰富,肯定有一个适合的Twitter插件。

看上了Twitter tools,可貌似它不支持Twitter API proxy。

怎么办呢?

自己动手,丰衣足食啊。

找到twitter-tools.php文件中的:

define('AKTT_API_POST_STATUS', 'http://twitter.com/statuses/update.json');
define('AKTT_API_USER_TIMELINE', 'http://twitter.com/statuses/user_timeline.json');
define('AKTT_API_STATUS_SHOW', 'http://twitter.com/statuses/show/###ID###.json');
define('AKTT_PROFILE_URL', 'http://twitter.com/###USERNAME###');
define('AKTT_STATUS_URL', 'http://twitter.com/###USERNAME###/statuses/###STATUS###');
define('AKTT_HASHTAG_URL', 'http://search.twitter.com/search?q=###HASHTAG###');

用Twitter API proxy地址替换twitter.com即可。

我在GAE上搭建的Twitter API proxy可供大家免费无偿使用(不在提供服务)。

define('AKTT_API_POST_STATUS', 'http://***.appspot.com/api/statuses/update.json');
define('AKTT_API_USER_TIMELINE', 'http://***.appspot.com/api/statuses/user_timeline.json');
define('AKTT_API_STATUS_SHOW', 'http://***.appspot.com/api/statuses/show/###ID###.json');
define('AKTT_PROFILE_URL', 'http://***.appspot.com/api/###USERNAME###');
define('AKTT_STATUS_URL', 'http://***.appspot.com/api/###USERNAME###/statuses/###STATUS###');
define('AKTT_HASHTAG_URL', 'http://***.appspot.com/api/search?q=###HASHTAG###');

游戏-Cogs

Cogs是Lazy 8 Studios制作的一款益智游戏,其官方称该游戏为革新的游戏。

Cogs

Cogs主菜单

这就是一款拼图游戏,不过它是三维的。

Cogs游戏界面

可玩性还是不错的,我最近把它通关了。

有兴趣的同学可以前往Verycd寻找该款游戏。