<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[P2P 研究 思考]]></title><description><![CDATA[qq:6388233,msn,mail:Xian.Chen@live.com]]></description><link>https://blog.youkuaiyun.com/chenbuaa</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; chenbuaa]]></copyright><item><title><![CDATA[Converting Unicode Strings to 8-bit Strings 转换unicode到utf-8]]></title><link>https://blog.youkuaiyun.com/chenbuaa/article/details/2449630</link><guid>https://blog.youkuaiyun.com/chenbuaa/article/details/2449630</guid><author>chenbuaa</author><pubDate>Thu, 15 May 2008 21:17:00 +0800</pubDate><description><![CDATA[A Unicode string holds characters from the Unicode character set.  If you want an 8-bit string, you need to decide what encoding you want to use.  Common encodings are US-ASCII (which is the default]]></description><category></category></item><item><title><![CDATA[python中的unicode]]></title><link>https://blog.youkuaiyun.com/chenbuaa/article/details/2449473</link><guid>https://blog.youkuaiyun.com/chenbuaa/article/details/2449473</guid><author>chenbuaa</author><pubDate>Thu, 15 May 2008 19:55:00 +0800</pubDate><description><![CDATA[Python’s Unicode string type stores characters from the Unicode character set.  In this set, each distinct character has its own number, the code point.  Unicode supports more than one million code po]]></description><category></category></item><item><title><![CDATA[How to Use UTF-8 with Python   python中使用utf-8]]></title><link>https://blog.youkuaiyun.com/chenbuaa/article/details/2448884</link><guid>https://blog.youkuaiyun.com/chenbuaa/article/details/2448884</guid><author>chenbuaa</author><pubDate>Thu, 15 May 2008 16:44:00 +0800</pubDate><description><![CDATA[[ 2005-October-01 20:15 ]Tim Bray describes why Unicode and UTF-8 are wonderfulmuch better than I could, so go read that for an overview of whatUnicode is, and why all your programs should support it.]]></description><category></category></item><item><title><![CDATA[VIM查找替换归纳总结]]></title><link>https://blog.youkuaiyun.com/chenbuaa/article/details/2312963</link><guid>https://blog.youkuaiyun.com/chenbuaa/article/details/2312963</guid><author>chenbuaa</author><pubDate>Mon, 21 Apr 2008 20:02:00 +0800</pubDate><description><![CDATA[VIM中常用的替换模式总结。 1，简单替换表达式 替换命令可以在全文中用一个单词替换另一个单词： :%s/four/4/g   "%" 范围前缀表示在所有行中执行替换。最后的 "g" 标记表示替换行中的所有匹配点。如果仅仅对当前行进行操作，那么只要去掉%即可     如果你有一个象 "thirtyfour" 这样的单词，上面的命令会出错。这种情况下，这个单词会被替换成"th]]></description><category></category></item><item><title><![CDATA[python hashlib moudle]]></title><link>https://blog.youkuaiyun.com/chenbuaa/article/details/2305879</link><guid>https://blog.youkuaiyun.com/chenbuaa/article/details/2305879</guid><author>chenbuaa</author><pubDate>Fri, 18 Apr 2008 22:51:00 +0800</pubDate><description><![CDATA[MD4 demoimport hashlibpasswd = mygreatpasswdprint hashlib.new(md4, passwd.encode(utf-16le)).hexdigest().upper()It works pretty good. ]]></description><category></category></item><item><title><![CDATA[generate uuid by python]]></title><link>https://blog.youkuaiyun.com/chenbuaa/article/details/2305837</link><guid>https://blog.youkuaiyun.com/chenbuaa/article/details/2305837</guid><author>chenbuaa</author><pubDate>Fri, 18 Apr 2008 22:10:00 +0800</pubDate><description><![CDATA[UUID is aviable in python2.5Here it is:r"""UUID objects (universally unique identifiers) according to RFC 4122.This module provides immutable UUID objects (class UUID) and the functionsuuid1(), uuid]]></description><category></category></item><item><title><![CDATA[Kademlia Emule协议分析及和Bt协议的比较]]></title><link>https://blog.youkuaiyun.com/chenbuaa/article/details/2304468</link><guid>https://blog.youkuaiyun.com/chenbuaa/article/details/2304468</guid><author>chenbuaa</author><pubDate>Fri, 18 Apr 2008 15:06:00 +0800</pubDate><description><![CDATA[Kademlia 是个 Petar Maymounkov 与 David Mazières 所设计的点对点 (P2P)  重叠网络传输协议，以达成非集中式的点对点 (P2P)  电脑网络。它规制了网络的结构及规范了节点间的通讯和交换资讯的方式。Kademlia 节点间使用传输通讯协定 UDP  （请见OSI模型） 沟通。Kademlia 节点借以实作分布式杂凑表 (DHT,distributed ]]></description><category></category></item><item><title><![CDATA[Python 与 C++ 的交互编程 ]]></title><link>https://blog.youkuaiyun.com/chenbuaa/article/details/2303766</link><guid>https://blog.youkuaiyun.com/chenbuaa/article/details/2303766</guid><author>chenbuaa</author><pubDate>Fri, 18 Apr 2008 12:09:00 +0800</pubDate><description><![CDATA[说明：这是一份学习笔记，而不是一份完整的教程，不可能用它来代替Boost的标准文档。写这份文档的目的在于帮助读者在学习过程中理清思路。当然，限于我的水平，这完全可能造成相反的效果，如果真的如此，请甩开它――BOOST本身并不复杂，至少不像你想象的那么复杂。Python 与 C++ 的交互编程 基础知识编译语言和解释语言尽管现在很多编程技术都在交融，出现了不少带有编译系统的解释语言，和带有复杂运行时]]></description><category></category></item><item><title><![CDATA[vim tab configuration]]></title><link>https://blog.youkuaiyun.com/chenbuaa/article/details/2302879</link><guid>https://blog.youkuaiyun.com/chenbuaa/article/details/2302879</guid><author>chenbuaa</author><pubDate>Fri, 18 Apr 2008 09:38:00 +0800</pubDate><description><![CDATA[Insert the these four lines into .vimrcset shiftwidth=4set tabstop=4set expandtab "replace tab with spaceset smarttab  "easy when you use backspace]]></description><category></category></item><item><title><![CDATA[twisted helloworld]]></title><link>https://blog.youkuaiyun.com/chenbuaa/article/details/2302234</link><guid>https://blog.youkuaiyun.com/chenbuaa/article/details/2302234</guid><author>chenbuaa</author><pubDate>Thu, 17 Apr 2008 21:06:00 +0800</pubDate><description><![CDATA[A simple twisted program which can be served as a helloworld of twisted.from twisted.internet.protocol import Factory, Protocolfrom twisted.internet import reactorclass QOTD(Protocol):    def connecti]]></description><category></category></item><item><title><![CDATA[Kademlia 协议原理简介]]></title><link>https://blog.youkuaiyun.com/chenbuaa/article/details/2301676</link><guid>https://blog.youkuaiyun.com/chenbuaa/article/details/2301676</guid><author>chenbuaa</author><pubDate>Thu, 17 Apr 2008 17:17:00 +0800</pubDate><description><![CDATA[Kademlia 协议原理简介   Kademlia 协议原理简介 （k7mmx@tom.com）  一、前言 Kademlia协议（以下简称Kad）是美国纽约大学的PetarP. Maymounkov和David Mazieres.在2002年发布的一项研究结果《Kademlia: A peerto -peer information system based onthe XOR metric》]]></description><category></category></item><item><title><![CDATA[emule中节点加入Kad网络过程（源代码详解）]]></title><link>https://blog.youkuaiyun.com/chenbuaa/article/details/2301656</link><guid>https://blog.youkuaiyun.com/chenbuaa/article/details/2301656</guid><author>chenbuaa</author><pubDate>Thu, 17 Apr 2008 17:14:00 +0800</pubDate><description><![CDATA[emule中节点加入Kad网络过程（源代码详解）程序启动：EmuleDlg.cpp中函数BOOL CemuleDlg::OnInitDialog()，此函数用于对话框的初始化，在这个函数里添加了定时器：VERIFY( (m_hTimer = ::SetTimer(NULL, NULL, 300, StartupTimer)) != NULL );在这里添加了函数void CALLBAC]]></description><category></category></item><item><title><![CDATA[Kademlia原理介绍]]></title><link>https://blog.youkuaiyun.com/chenbuaa/article/details/2301638</link><guid>https://blog.youkuaiyun.com/chenbuaa/article/details/2301638</guid><author>chenbuaa</author><pubDate>Thu, 17 Apr 2008 17:09:00 +0800</pubDate><description><![CDATA[Kademlia: A Peer To Peer Information Systems Based On TheXOR Metric, Petar Maymounkov and David Mazieres, 2002.-------------------------------------------------------------Kad概述首先, 读者要清楚的是, Kademlia是用]]></description><category></category></item><item><title><![CDATA[SOA介绍]]></title><link>https://blog.youkuaiyun.com/chenbuaa/article/details/531319</link><guid>https://blog.youkuaiyun.com/chenbuaa/article/details/531319</guid><author>chenbuaa</author><pubDate>Thu, 17 Nov 2005 09:43:00 +0800</pubDate><description><![CDATA[内容简介SOA是英文Service-Oriented Architecture，即服务导向架构的缩写。这个词汇最近一两年频频出现在各种技术期刊上。但是一直以来对于SOA到底是什么一直没有明确的回答；SOA有什么特点？适合用于解决哪些问题？与其他的技术有什么区别与联系？Web Service和SOA又是什么关系？SOA的出现对于软件架构设计有什么影响？本文将就上面提到的这些问题，尝试根据作者自己的理]]></description><category></category></item><item><title><![CDATA[How To Use the C Run-Time]]></title><link>https://blog.youkuaiyun.com/chenbuaa/article/details/479202</link><guid>https://blog.youkuaiyun.com/chenbuaa/article/details/479202</guid><author>chenbuaa</author><pubDate>Tue, 13 Sep 2005 13:43:00 +0800</pubDate><description><![CDATA[Section 1:  Three Forms of C Run-Time (CRT) Libraries Are AvailableThere are three forms of the C Run-time library provided with the Win32SDK:•LIBC.LIB is a statically linked library for sin]]></description><category></category></item><item><title><![CDATA[使用 typedef 抑制劣质代码]]></title><link>https://blog.youkuaiyun.com/chenbuaa/article/details/358719</link><guid>https://blog.youkuaiyun.com/chenbuaa/article/details/358719</guid><author>chenbuaa</author><pubDate>Fri, 22 Apr 2005 17:03:00 +0800</pubDate><description><![CDATA[作者：Danny Kalev      编译：MTT 工作室              原文出处：Using       typedef to Curb Miscreant Code                                    摘要：Typedef             声明有助于创建平台无关类型，甚至能隐藏复杂和难以理解的语法。]]></description><category></category></item><item><title><![CDATA[DLL(Dynamic Link Libraries)专题]]></title><link>https://blog.youkuaiyun.com/chenbuaa/article/details/358518</link><guid>https://blog.youkuaiyun.com/chenbuaa/article/details/358518</guid><author>chenbuaa</author><pubDate>Fri, 22 Apr 2005 15:18:00 +0800</pubDate><description><![CDATA[[ 原创文档 本文适合初级读者 已阅读13080次 ]                                DLL(Dynamic Link Libraries)专题              作者：姜山                                                原文出处：http://www.microsoft.com]]></description><category></category></item><item><title><![CDATA[在VC编写的DLL中导出C++类]]></title><link>https://blog.youkuaiyun.com/chenbuaa/article/details/358205</link><guid>https://blog.youkuaiyun.com/chenbuaa/article/details/358205</guid><author>chenbuaa</author><pubDate>Fri, 22 Apr 2005 12:04:00 +0800</pubDate><description><![CDATA[如何在VC中导出类，这是一个常有人问起的问题，下面我以一个简单的例子来说明这个问题： 首先使用Wizard创建一个Win32 Dynamic-Link Library工程，然后定义一个简单的C++类CInDLL。由于该类会被工程之外的文件所引用，所以需要对这个类进行引出。因为只有引出后所生成的DLL中才带有供足够的信息以在连接和运行时被正确引入到进程空间中。有两种方法可以引出类，使]]></description><category></category></item><item><title><![CDATA[书教得再好也还是个讲师 学生千篇文悼大学讲师 ]]></title><link>https://blog.youkuaiyun.com/chenbuaa/article/details/338908</link><guid>https://blog.youkuaiyun.com/chenbuaa/article/details/338908</guid><author>chenbuaa</author><pubDate>Thu, 07 Apr 2005 08:46:00 +0800</pubDate><description><![CDATA[书教得再好也还是个讲师 学生千篇文悼大学讲师http://news.163.com　2005-04-04 15:05:02　来源: 新华网　　　网友评论 657 条 新华网上海４月４日电题：在人生价值的天平上——一位大学讲师之死引发的思考新华社“新华视点”记者李柯勇、刘丹 晏才宏，上海交通大学的一位普通教师，３月１２日死于肺癌。他去世三天内，上海交大校园ＢＢＳ上，竟发表了学]]></description><category></category></item><item><title><![CDATA[C语言中易被忽略的地方]]></title><link>https://blog.youkuaiyun.com/chenbuaa/article/details/337310</link><guid>https://blog.youkuaiyun.com/chenbuaa/article/details/337310</guid><author>chenbuaa</author><pubDate>Tue, 05 Apr 2005 16:23:00 +0800</pubDate><description><![CDATA[in = fopen("input.file","r"); int res = fgetc(in); 此时，如果in = 0x1A的话，res = EOF, 如果靠这个来判断文件是否结束，则会出错。 正确的做法是 fopen("input.file","rb"); out = fopen("output.file","w"); 如果此时向文件中写]]></description><category></category></item></channel></rss>