竹枝

腾讯微博邀请

by anyshpm on May.26, 2010, under 旅程

http://t.qq.com/invite/6cf7a795a224c28f911b

http://t.qq.com/invite/bd20c428b59224361629

http://t.qq.com/invite/2cf15442699fbf8a291b

http://t.qq.com/invite/bb7b2238d759ae1da569

http://t.qq.com/invite/8d56a0d93cd8124b5ecd

Leave a Comment :, , more...

codeigniter无显示

by anyshpm on May.26, 2010, under Web相关, 旅程

今天更新项目,突然发现本地的开发环境的codeigniter打开页面无显示,困惑。经过我的手动调试,找到问题出在system\libraries\Loader.php中的$CI->db =& DB($params, $active_record);处。但还是不知道原因,只知道跟数据库有点关系。

故,使用phpmyadmin检查数据库,提示找不到PHP数据库的扩展,原来是因为我刚重装过系统,系统PATH中没有libmysql.dll。

codeigniter应该给个提示才对的。

Leave a Comment :, , , more...

不到那个时候不会懂

by anyshpm on May.02, 2010, under 旅程

记得以前老是有人在喊创新怎么怎么重要,当时没想明白

现在终于明白了

很多时候不懂,是因为没有遇到

等真正遇到了,就会明白

成长。

Leave a Comment :, more...

Protected: 弃恶从良

by anyshpm on Apr.19, 2010, under 旅程

This post is password protected. To view it please enter your password below:


Enter your password to view comments. more...

变态协议

by anyshpm on Apr.11, 2010, under 旅程

了解了下BitTorrent协议,记录一下:

  • Tim Berners Lee在1990年设计和发明了HTTP
  • 在HTTP被发明之前,统治互联网的是SMTP和FTP
  • 2003年,Bram Cohen发霉了BitTorrent协议
  • piece大小一般为256KB
  • 种子文件中包含每个piece的hash值
  • 种子文件和Tracker返回的信息都是通过B编码的
  • B编码格式:
    • 字符串:<字符串长度>:<字符串>
    • 整型:i<十进制的整型数>e
    • 列表:l<任何合法的类型>e
    • 字典:d<关键字><值>e
  • 种子文件中的关键字:info、announce、announce-list、creation-date、comment、created by
  • BitTorrent协议建议只向那些提供最快下载速度的4个peer上传数据,在任一时刻,保持一个优化非阻塞peer(防止死锁)
  • 与Tracker交互(HTTP):To Tracker使用GET方法;From Tracker返回一个B编码的字典
  • peer之间通信:
    握手消息:<pstrlen><pstr><reserved><info_hash><peer_id>
    其他消息:<length prefix><message ID><pay load>
  • 关键算法和策略:
    流水线作业
    片段选择算法:严格优先级、最少优先、随机选择第一个要下载的piece、最后阶段模式
    阻塞算法
Leave a Comment :, , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...