Hi, I'm Kavin Gray, I am a college student majoring in computer science.I specialize in web programming , website design, mobile web and software development.Check out my works to learn 'bout me, or follow me on twitter.
TwiTalker

TwiTalker 是我九月初做的一个应用,提供推特Gtalk机器人服务,通过绑定添加TwiTalker 机器人可以在Gtalk上更新自己的推特和接收好友消息。代码花了两多周时间,9月19号开始公开测试,拖到现在才想到是时候总结下了,一方面是自己懒,一方面也是前段时间还一直在进行增加功能和后台优化。

和Della一样,这个应用也是基于Google App Engine。今年初开始就一直有传闻GAE将支持XMPP,自己盯着Google开放这个功能已经半年,终于在九月时候等到了。刚好饭否已经被那个啥了,转移到Twitter后发现它的官方Gtalk机器人已经失效多时,于是就想着要做这么一个应用,开始也只打算做着自己用的,后来觉得应该有人也需要这么个工具,于是干脆按多用户的结构去设计。

Read the rest of this entry »

Oct 8th, 2009
8:27 pm
Twity Twitter Bot

Well, I’ve developed a twitter bot, @Twity001, same as Della bot that provides with useful information.It’s an auto reply bot.So you have to send a direct reply message to this bot to get information.

Read the rest of this entry »

Aug 28th, 2009
6:29 pm
Della Gtalk Bot

最近杂事很多,都是学校课程设计项目之类的东西,所以三周前开始自己做的这个Della机器人一直拖到现在才算是基本完成了。这是用Python的Xmpppy模块做的一个Gtalk查询机器人,暂时实现了天气情况,星座运程,公交路线(暂停实现),股票走势,中英词典,资讯新闻,美剧节目表的功能查询,而且,我特意将饭否机器人绑定到Della上,这样她就可以接收饭否上的查询信息并作出回应,本来想把Twitter也给绑定了,但Twitter的官方gtalk机器人一直不在线,其他非官方的bot也很不稳定,所以也就没有实现绑定Twitter。

update: 更新至1.2.1版本,通过GAE实现了饭否和Twitter上的查询,程序做了比较大的调整,一分为二,Gtalk上还是以Xmpppy实现,饭否和twitter上通过GAE实现永久在线,每分钟统一处理查询请求。如果你对Della的原理感兴趣,请移步:http://www.kavingray.com/blog/miniblog-bot/

Read the rest of this entry »

Mar 28th, 2009
4:40 pm
Simple Tic Tac Toe

Simple Tic Tac Toe release.This is a small funny game written in Python using Alpha-beta pruning algorithm. It’s also an experimental program for my py & wxpython study.So just sit back and enjoy this game.All the suggestions about this game will be welcome.

New Version update!

Read the rest of this entry »

Feb 20th, 2009
6:51 am
Tic-Tac-Toe算法笔记(一):Minimax算法

这几天在用Python写Tic-Tac-Toe小游戏,顺便接触了一些简单的人机博弈算法,其实在算法方面我完全算是个新手,所以这也算是一个反复折腾学习的过程。而Tic-Tac-Toe应该算是人机博弈里最简单的应用了,最经典的算法是miniMax算法,也叫极大极小值算法,主要方法就是通过考虑双方博弈N步后,从所有可能的走法中选一步最佳的走法来走。
Read the rest of this entry »

Feb 9th, 2009
8:41 am