<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3383698404198518469</id><updated>2012-02-17T08:31:00.034+08:00</updated><category term='Python'/><category term='程序'/><category term='idea'/><category term='MySQL'/><category term='SQL'/><category term='CSS'/><category term='Javascript'/><category term='正则表达式'/><category term='OpenSocial'/><category term='编辑器IDE'/><category term='浏览器'/><category term='小技巧'/><category term='Perl'/><category term='Windows'/><category term='Java'/><category term='操作系统'/><category term='ASP.NET'/><category term='C#'/><category term='C++'/><category term='PHP'/><category term='Vim'/><category term='iPhone/iTouch'/><category term='书籍推荐'/><category term='Linux'/><category term='程序设计'/><category term='GFW/翻墙'/><category term='HTML'/><category term='Mac'/><category term='搜索'/><category term='算法'/><title type='text'>沉香竹[齐文]</title><subtitle type='html'>记录技术的点滴，涉及C/C++,PHP,Javascript,Linux Related,MySQL等等...
其中部分文章属于转载，均属个人观点，如有错误欢迎指正。</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.qiwen.name/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default?start-index=101&amp;max-results=100'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>302</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-8247169867165447179</id><published>2011-05-15T23:41:00.001+08:00</published><updated>2011-05-15T23:41:55.091+08:00</updated><title type='text'>体验校园WLAN (CMCC-EDU)</title><summary type='text'>今天路过北科大操场的时候，无意中在手机Wifi列表中发现了CMCC和CMCC-EDU.然后尝试连接了下CMCC-EDU，按照验证页面的提示，发送TYEDU到10086，开通了个体验账户，有效期至2011年12月21号，每月可以免费使用120小时。找了个信号最好的地方（大概2格的样子），打开应用汇，下载了几个软件，感觉网速在100KB左右。然后用网速测试的软件，连到长春的server，测试速度下载40KB，上传150KB，估计是因为周围是学生宿舍，很多人在用这个下载东西吧。无论如何还算可以的，但是后来发现就那么很小的一块地方信号还可以，稍微走远一点，基本上就是龟速了。  上网查了下移动随e行的资费标准，北京的还挺贵的呀，好几个等级，其中一个是20元40小时，但是貌似比3G上网卡的便宜一点...其实资费只是一方面，信号的覆盖的范围和强度才是关键。北京市国内Operator WLAN</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/8247169867165447179/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2011/05/wlan-cmcc-edu.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/8247169867165447179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/8247169867165447179'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2011/05/wlan-cmcc-edu.html' title='体验校园WLAN (CMCC-EDU)'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/05514193800532380911</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-5359379086796844595</id><published>2011-04-05T14:34:00.000+08:00</published><updated>2011-04-05T14:34:14.728+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Mac'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><title type='text'>How to fix graphics driver errors (Windows7 installed on Mac Mini 2009)</title><summary type='text'>MAC MINI安装WINDOWS7 的显卡驱动错误的解决方案：
详细步骤请见(我在自己的机器上测试成功) http://bbs.updrv.com/showtopic-10917.aspx


蓝牙驱动解决方案：
直接驱动精灵更新蓝牙驱动, 给安装了最新的博通Broadcom的驱动</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/5359379086796844595/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2011/04/how-to-fix-graphics-driver-errors.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5359379086796844595'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5359379086796844595'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2011/04/how-to-fix-graphics-driver-errors.html' title='How to fix graphics driver errors (Windows7 installed on Mac Mini 2009)'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/05514193800532380911</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-6182744278868456958</id><published>2010-04-26T22:36:00.000+08:00</published><updated>2010-04-26T22:36:27.824+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Vim'/><title type='text'>Mac下Vim的配置（以Snow Leopard为例）</title><summary type='text'>Mac Snow Leopard中的Vim配置文件的路径如下/usr/share/vim/vimrc
因此需要修改这个文件，如果修改这个文件，那么是对所有的用户均生效。

如果你的Mac是多用户，可以仅仅修改自己的配置文件：把这个vimrc copy一份到自己的用户目录下，重新命名为.vimrc即可
比如你的用户叫apple，执行如下命令：cp /usr/share/vim/vimrc ~apple/.vimrc

进入自己的用户目录
cd ~apple
修改.vimrc文件归读写属性(或修改文件组)sudo chmod o+w .vimrc (或者 sudo chmod 777 .vimrc)

在.vimrc文件最后加上
syntax on        "这一行设置语法高亮set nu           "显示行号set ts=2 et      "设置tab对其的字符数为</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/6182744278868456958/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2010/04/macvimsnow-leopard.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/6182744278868456958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/6182744278868456958'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2010/04/macvimsnow-leopard.html' title='Mac下Vim的配置（以Snow Leopard为例）'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/05514193800532380911</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_LJHrouTQG-w/S9WkbaWqJeI/AAAAAAAALlo/QDQvB_JNK5E/s72-c/vim.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-4461559242334007076</id><published>2010-04-25T23:14:00.004+08:00</published><updated>2010-04-25T23:39:25.137+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='算法'/><title type='text'>NKOJ 1040: The Tower of Babylon</title><summary type='text'>NKOJ 1040: The Tower of Babylon
这是题目的原文，题目的分析和源码在后面

Perhaps you have heard of the legend of the Tower of Babylon. Nowadays many details of this tale have been forgotten. So now, in line with the educational nature of this contest, we will tell you the whole story:
The babylonians had n types of blocks, and an unlimited supply of blocks of each type. Each type-i block was a rectangular solid with</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/4461559242334007076/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2010/04/nkoj-1040-tower-of-babylon.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/4461559242334007076'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/4461559242334007076'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2010/04/nkoj-1040-tower-of-babylon.html' title='NKOJ 1040: The Tower of Babylon'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/05514193800532380911</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-2136015718210353672</id><published>2010-04-21T22:45:00.000+08:00</published><updated>2010-04-21T22:45:18.491+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><title type='text'>文件相关的两个DOS 命令（Command）</title><summary type='text'>Windows里面常见的文件操作，如果文件夹里面有很多的内容，比如n个GB大小，那么在命令行下面去做会比较快的。


1.删除一个文件夹以及里面的所有内容。


RMDIR /S /Q [Your  directory path here]


2.拷贝一个文件夹以及里面所有的内容到一个新的路径。


XCOPY [old path] [new  path] /E /I /Q /H /K</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/2136015718210353672/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2010/04/dos-command.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/2136015718210353672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/2136015718210353672'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2010/04/dos-command.html' title='文件相关的两个DOS 命令（Command）'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-6910464671859378973</id><published>2010-04-21T22:32:00.002+08:00</published><updated>2010-04-25T23:43:35.770+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='算法'/><title type='text'>编辑距离问题 -- 《算法设计与分析》</title><summary type='text'>设A 和B 是2 个字符串。要用最少的字符操作将字符串A 转换为字符串B。这里所说的
字符操作包括
(1)删除一个字符；
(2)插入一个字符；
(3)将一个字符改为另一个字符。
将字符串A变换为字符串B 所用的最少字符操作数称为字符串A到B 的编辑距离，记为
d(A,B)。试设计一个有效算法，对任给的2 个字符串A和B，计算出它们的编辑距离d(A,B)。


编程任务：
对于给定的字符串A和字符串B，编程计算其编辑距离d(A,B)。
 
Input

输入包括多组测试数据，每组测试数据包括两行。


第一行是字符串A，第二行是字符串B。


Output
对每组输入数据，输出一行，即将编辑距离d(A,B)输出。 


Sample Input
fxpimu
xwrs


Sample Output
5


Hint
两个字符串长度均不超过2000




举例来说明，对于一个字符串m（</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/6910464671859378973/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2010/04/blog-post_21.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/6910464671859378973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/6910464671859378973'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2010/04/blog-post_21.html' title='编辑距离问题 -- 《算法设计与分析》'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_LJHrouTQG-w/S88MOt9DzqI/AAAAAAAALlg/8xnK6f_Ml3M/s72-c/acm1131.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-6627775568272085160</id><published>2010-04-08T22:26:00.004+08:00</published><updated>2010-04-09T21:52:54.711+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GFW/翻墙'/><title type='text'>终于用上vpn了，一个免费的</title><summary type='text'>试用了一个vpn，速度还行，赶紧把facebook，blogger，twitter，youtube...遍历了一下——墙外的好心人，给个稳定可用的vpn吧

俺的这个免费的vpn 在这里申请的 http://www.internetnolimit.com/ 


不过每天只能用1小时


Update (2010-4-9):
今天发现1个小时用完之后可以换一个帐号继续，对于我这样要求不高的用户，2个小时足够了，呵呵
感谢这家提供免费VPN的公司</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/6627775568272085160/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2010/04/vpn.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/6627775568272085160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/6627775568272085160'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2010/04/vpn.html' title='终于用上vpn了，一个免费的'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-5358447196649050834</id><published>2010-04-07T19:59:00.000+08:00</published><updated>2010-04-09T22:18:48.315+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C++'/><title type='text'>user breakpoint called from code at 0x7C81A3E1</title><summary type='text'>使用VC6.0 调试C语言程序，总是在一个动作之后被断点打断，很奇怪的是每次都是相同的提示“user breakpoint called from code at 0x7C81A3E1”，断点也不在我的代码里，是看不到源码的汇编看看breakpoints，发现这里没有断点呀，于是在网上搜了下，发现也有其他人遇到这个问题看到一些文章提示怀疑是内存写越了，被Windows的内存保护给断住了后来自己的找了找，果然是内存问题，使用了一个被释放的指针，把内存管理块给越了，再次分配内存的时候就断点处停了呃呃。。以后还是要小心</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/5358447196649050834/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2010/04/user-breakpoint-called-from-code-at.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5358447196649050834'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5358447196649050834'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2010/04/user-breakpoint-called-from-code-at.html' title='user breakpoint called from code at 0x7C81A3E1'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-4792717640974237172</id><published>2010-04-04T23:05:00.000+08:00</published><updated>2010-04-09T22:17:41.136+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C++'/><title type='text'>C 语言 fopen参数问题 -- 二进制和文本方式</title><summary type='text'>
昨天调试程序得时候发现，调用一个copy函数，生成得文件和源文件总是不一致，于是去检查copy函数，最后查出问题，fopen里面没有采用二进制方式打开，那么默认得就是文本方式。转一个关于二进制和文本方式打开得区别《fopen 文本文件与二进制文件区别》http://hi.baidu.com/assslove/blog/item/d0b727ea014ee3dbd539c9e8.html在学习C语言文件操作后，我们都会知道打开文件的函数是fopen，也知道它的第二个参数是 标志字符串。其中，如果字符串中出现'b'，则表明是以打开二进制(binary)文件，否则是打开文本文件。　　那么什么是文本文件，什么是二进制文件呢? 可能大多数人都没有仔细考虑过。　　在Windows和DOS系统中，狭义的文本文件是指扩展名为txt的文件。实际上，那些没有规定格式的，由可理解的的ASCII</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/4792717640974237172/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2010/04/c-fopen.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/4792717640974237172'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/4792717640974237172'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2010/04/c-fopen.html' title='C 语言 fopen参数问题 -- 二进制和文本方式'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-6842372069279954422</id><published>2010-03-22T20:24:00.000+08:00</published><updated>2010-04-09T22:16:32.334+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C++'/><title type='text'>c语言中编写可变参数宏 | define 多参数</title><summary type='text'>
引入问题：用Eclipse 编译一个Windows 命令行 C工程，但是在Console里面总是不能及时输出，只会在最后程序退出的时候一次输出来，对于IOT来讲，很麻烦。Google上，需要flush stdout，于是需要在每个printf后调用fflush(stdout);才可以甚是麻烦，于是想到#define PRINTF来替换printf，但是在 多参数宏方面遇到问题。最后用到文中的这个例子解决了：#define PRINTF(out, ...) printf(out, ## __VA_ARGS__); fflush(stdout);  参考文章：1. eclipse cdt中console的奇怪现象 http://www2.eclipseworld.org/bbs/read.php?tid=184582. c语言中编写可变参数宏 http://</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/6842372069279954422/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2010/03/c-define.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/6842372069279954422'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/6842372069279954422'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2010/03/c-define.html' title='c语言中编写可变参数宏 | define 多参数'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-8016424637947389378</id><published>2010-01-11T22:47:00.001+08:00</published><updated>2010-01-11T22:47:50.139+08:00</updated><title type='text'>征集各位朋友的博客地址</title><summary type='text'>Hi，我的同学/亲人/朋友们，如果你们看到这篇文章，麻烦将您的博客地址发给我这样我就可以没事的时候去看看现在工作的确挺忙的，但是我还是会忙里偷闲的拿Google Reader去看看别人的博客、IT新闻等等所以告诉我 你的博客地址吧，thx ~ </summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/8016424637947389378/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2010/01/blog-post.html#comment-form' title='1 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/8016424637947389378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/8016424637947389378'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2010/01/blog-post.html' title='征集各位朋友的博客地址'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-6044604789802610323</id><published>2009-12-31T19:13:00.000+08:00</published><updated>2010-04-21T22:34:34.785+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='程序'/><title type='text'>20种语言打印出来的“祝大家新年快乐”</title><summary type='text'>powerBuilder:messagebox("祝大家新年快乐")C：printf("祝大家新年快乐");C++ : cout&lt;&lt;"祝大家新年快乐";QBasic : Print "祝大家新年快乐"Asp : Response.Write "祝大家新年快乐"PHP : echo "祝大家新年快乐";  JScript: alert("祝大家新年快乐")VBScript:MsgBox "祝大家新年快乐"Jscript:document.write("祝大家新年快乐")Delphi: ShowMessage('祝大家新年快乐！');VB: Msg("祝大家新年快乐！")VC: MessageBox("祝大家新年快乐！");  shell: echo 祝大家新年快乐perl: print '祝大家新年快乐'java: System.out.println("祝大家新年快乐");C#：</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/6044604789802610323/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/12/20.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/6044604789802610323'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/6044604789802610323'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/12/20.html' title='20种语言打印出来的“祝大家新年快乐”'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-3032444567990404715</id><published>2009-12-27T22:35:00.001+08:00</published><updated>2009-12-27T22:35:46.197+08:00</updated><title type='text'>闲聊手机开发</title><summary type='text'>哇，突然发现自己已经有40多天没更新博客了今天看了几篇Android App开发的教程，Android目前已经出了2.01版，UI已经很炫了。因为一些需要，前几天下载了Android源代码，看了看；后来编译下，结果发现我的Dell Notebook已经落伍很多了，编译用了很久（大概是网上说的时间的两倍）；之后启动emulator之后，非常慢...。（Mac, Mac，我期待淘汰这个Dell的日子）  手机开发和PC上开发一个不同之处就是，需要先在模拟器上运行，之后再拿到真机上调试，而有的时候这两者的运行情况会不同的。然后就需要重新烧录app，当然有的时候甚至要重新烧录整个系统。烧录的过程往往比较费时的。想到以前做实习的时候开发iPhone的App，开发工具也是非常好用调试很方便的。良好的开发工具会给Developer一个很好的感觉，然后他们会愿意尝试Hello word，进而深入。</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/3032444567990404715/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/12/blog-post.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/3032444567990404715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/3032444567990404715'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/12/blog-post.html' title='闲聊手机开发'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-5179731169765594525</id><published>2009-11-15T10:45:00.002+08:00</published><updated>2010-04-21T22:34:54.957+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GFW/翻墙'/><title type='text'>Tor的安装以及使用中的问题</title><summary type='text'>下载Tor

给Tor的邮箱地址发一封邮件，主题"help"，正文空，邮箱地址为gettor@torproject.org
等会会给你回一封邮件，让你选Tor的类型，这里选择免安装版本(这个版本带有一个firefox，pidgin，vidalia，都已经配置好了)，直接回复tor-im-browser-bundle即可
等会你就会收到一封带附件的邮件，25M左右，注意用GMAIL会比较好，我这里是用的Gmail

Tor 提示 connecting to a relay directory failed(no route to host)的解决方法

下载完后启动，遇到这个问题了，因为ISP已经屏蔽了Tor，这么解决：
vidalia 控制面板的状态是：connecting to a relay directory failed(no route to host)

这是因为ISP</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/5179731169765594525/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/11/tor.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5179731169765594525'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5179731169765594525'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/11/tor.html' title='Tor的安装以及使用中的问题'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-8780057501474911766</id><published>2009-11-12T22:58:00.002+08:00</published><updated>2009-11-15T11:37:27.470+08:00</updated><title type='text'>Google的Go语言: Python和C++相结合的全新编程语言</title><summary type='text'>


开发者的一个重大新闻：Google刚刚发布了一个开源的编程语言，它叫做Go。
Google公司表示，Go是实验性的，它具有像C++这样的编译语言的性能和安全，以及Python这样的动态语言的速度。
Go的官方吉祥物是一个叫做Gordon的北美地鼠

以下是Google在其博客描述Go的帖子： 

Go尝试结合Python这样动态语言的开发速度以及C或C++这样编译语言的性能和安全。
到目前为止，在Go的实验中，普通的编译在瞬间完成，甚至大的二进制文件编译也是短短的几秒钟。
而编译的代码的运行速度已经接近C语言。Go就是为了速度而设计。 
我们希望Go能成为是一个伟大的系统级编程语言，支持多线程和全新的轻量级的面向对象设计，像真正的关闭，反映了一些很酷的功能。 

欲了解更多详情，请访问www.golang.org

立马来开始Go吧，这里是Hello world实例程序。

</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/8780057501474911766/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/11/googlego-pythonc.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/8780057501474911766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/8780057501474911766'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/11/googlego-pythonc.html' title='Google的Go语言: Python和C++相结合的全新编程语言'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-5882553198117030125</id><published>2009-10-30T20:31:00.001+08:00</published><updated>2009-10-31T09:51:39.975+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='程序设计'/><title type='text'>以下编程中问题，你符合多少？</title><summary type='text'>整理自《代码大全2》的"重构"，这些问题我们应该都会遇到，加粗的是我自己觉得比较常见的代码重复——提一个函数出来吧，Don't Repeat Yourself!冗长的子程序——最好不要超过一屏循环过长或嵌套过深——创建子程序内聚性太差的类——拆分为多个类吧类的接口未能提供层次一致的抽象——不要草率的修改当初的设计 拥有太多的参数——子程序的接口显然没设计好 类的内部修改往往被局限于某个部分——是不是改拆分为两个类了变化导致对多个类的相同修改——这组类需要重新组织了对继承体系的同样修改case语句需要做相同的修改——是否该换位继承了？同时使用的相关数据并未以类的方式进行组织——是否该组成一个类了？成员函数使用其他类的特征比使用自身类的特征还要多——把这个子程序挪走吧过多使用基本数据类型——有的时候应该创建类了吧  某个类无所事事——功能转移，然后删掉它吧一系列传递流浪数据的子程序——</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/5882553198117030125/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/10/blog-post_30.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5882553198117030125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5882553198117030125'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/10/blog-post_30.html' title='以下编程中问题，你符合多少？'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-5182847913931654100</id><published>2009-10-30T13:46:00.002+08:00</published><updated>2010-04-09T22:15:04.460+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='书籍推荐'/><title type='text'>一些编程相关的PDF书籍下载</title><summary type='text'>
都是一些不错的编程技巧/软件设计/算法等等相关的书籍推荐给大家，我自己已经看过或者正在看，希望大家看了也能有所收获《程序员修炼之道》pdf下载
《人月神话》pdf下载
《编程珠玑》PDF 下载
《IT小小鸟》pdf下载
《观止-微软创建NT和未来的夺命狂奔》pdf 下载
《代码大全2》PDF下载
《编程之美》PDF下载
以后会不定期的给大家推荐一些书籍，如果您有好的推荐，也可以发给我，谢谢</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/5182847913931654100/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/10/pdf.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5182847913931654100'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5182847913931654100'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/10/pdf.html' title='一些编程相关的PDF书籍下载'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-3484172576374148539</id><published>2009-10-30T13:05:00.004+08:00</published><updated>2009-10-31T11:14:20.820+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GFW/翻墙'/><title type='text'>迅雷威猛--破墙那点事</title><summary type='text'>昨日写了篇博客，用Gmail发布的，但是今天去刷博客，发现还没有显示，所以决定登录博客看看怎么回事。

博客服务用的是Blogger，众所周知的原因，Blogger已经被GFW和谐N天了

去找翻墙软件吧，记得以前用过“无**览”，去Google，发现搜到的页面聊聊无几，而且基本上这些页面都打不开，最终费尽千辛万苦，还是找到了一个最新的的官方地址。 

毫无疑问，官方地址一定是被访问不了的。

忽然想到迅雷无敌的资源搜集 and P2P功能

Copy进去，居然可以 :)

PS. 显然最近墙的功力大增，好多网站都不行了，记得以前Down个“无**览”啥的，是那么轻而易举，哎，时代不同了

UPDATE:
让它配合Firefox的插件Gladder一起使用，效果非常好，很方便，自由的穿梭与在墙内和墙外~~

以下截图： 

当然要事先设置好Firefox的代理“HTTP代理填 </summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/3484172576374148539/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/10/blog-post.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/3484172576374148539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/3484172576374148539'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/10/blog-post.html' title='迅雷威猛--破墙那点事'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-8790111842497585401</id><published>2009-10-29T20:06:00.001+08:00</published><updated>2009-10-31T09:47:31.760+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='书籍推荐'/><title type='text'>大码大全2</title><summary type='text'>第一次看到这本书是去年实习的时候，在那家公司的图书馆里（其实是一个书柜，技术书还是挺多的）很厚的一本书，看了看名字，第一印象：它是一本手册，因为有一个"大全"在它的名字里，于是没怎么去看后来在网上看到一些书评，都是夸它的好，这才后悔当时没抓住机会看看这本"大全"不久前在网上下了电子书，哇，800多页，已经看了好些天，目前进展一半吧虽然还没看完，我已经忍不住要说说它了 1.的确是一本"大全"，关于编程方方面面都有提到，买一本是好的，但是不买的话，至少去看看电子版吧2.内容太多，看了也记不住，只有平时遇到了书中提到的情况，才能有深刻体会的，看书的时候才会和作者产生共鸣的，所以这是本适合经常翻翻的书3.尽量去学作者的方法吧，那可是大师的经典之作PS.《代码大全2》PDF下载 （CSDN）  </summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/8790111842497585401/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/10/2.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/8790111842497585401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/8790111842497585401'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/10/2.html' title='大码大全2'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-4639297028481137236</id><published>2009-10-24T23:53:00.000+08:00</published><updated>2010-04-09T22:10:30.856+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C++'/><title type='text'>C语言IO--printf右对齐补零</title><summary type='text'>
关于printf的一点总结，内容来自http://blog.sina.com.cn/s/blog_5ac88b350100auna.html1.1  标准输入输出函数1.1.1 格式化输入输出函数
Turbo C2.0 标准库提供了两个控制台格式化输入、 输出函数printf( ) 和
scanf(), 这两个函数可以在标准输入输出设备上以各种不同的格式读写数据。
printf()函数用来向标准输出设备(屏幕)写数据; scanf() 函数用来从标准输入
设备(键盘)上读数据。下面详细介绍这两个函数的用法。
一、printf()函数
printf()函数是格式化输出函数, 一般用于向标准输出设备按规定格式输出
信息。在编写程序时经常会用到此函数。printf()函数的调用格式为:
printf("&lt;格式化字符串&gt;", &lt;参量表&gt;);
其中格式化字符串包括两部分内容: 一部分是正常字符,</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/4639297028481137236/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/10/cio-printf.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/4639297028481137236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/4639297028481137236'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/10/cio-printf.html' title='C语言IO--printf右对齐补零'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-3852513486153583489</id><published>2009-10-24T18:28:00.000+08:00</published><updated>2010-04-09T22:13:03.932+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='算法'/><title type='text'>整数最优分解问题--NOI’2006福建省选手选拔赛</title><summary type='text'>
设n是一个正整数。现要求将n分解为若干个自然数的和，且使这些自然数的乘积最大。对于给定的正整数n，编程计算最优分解方案。Input测试数据包括多组测试数据。每组测试数据仅包含一行，即给出数字n。Output对于每组输入数据，输出一行，即计算出的最大乘积。 我们保证，输出不会超过10000位十进制数。Sample Input10Sample Output36Hintn is not bigger than 20962.分析部分copy别人的，下面的是我的代码，没有做反复平方法。。但是AC了，就没做了#include
#include
static char res[10001];
static int i, carry, len = 1;
void mutiply(int n)
{
    carry = 0;
    char *h = res;
    for (i = 0; i &lt;</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/3852513486153583489/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/10/noi2006.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/3852513486153583489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/3852513486153583489'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/10/noi2006.html' title='整数最优分解问题--NOI’2006福建省选手选拔赛'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-7237161319491072810</id><published>2009-10-24T17:04:00.000+08:00</published><updated>2010-04-09T22:11:42.528+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='算法'/><title type='text'>铁皮容器--FJNU Preliminary 2005</title><summary type='text'>
使用白铁皮制作圆柱容器（有盖），其中每个容器耗用的铁皮量（表面积）固定为1000平方厘米。在已知容器的容积情况下，编程计算容器底半径的最小可能取值。其中容器的容积为整数，半径精确到小数点后面一位。Input输入的第一行含一个正整数k (1&lt;=k&lt;=10)，表示测试例的个数。后面紧接着k行，每行对应一个测试例，含一个整数n(0&lt;=n&lt;=20000)，代表容积。Output每个测试例对应一行输出，含一个实数，表示半径的值，若无解则输出“NO”。Sample Input2
1000
3000Sample Output2.1
NO思路如下：通过根据体积公式V=PI*r2*h, 面积公式S=2*PI*r2 + 2*PI*r*h = 2*PI*r*(r+h)可以得到  n = 500*r - PI*r3对其右边部分求导可得 500 – 3*PI*r2 = 0, 得到r = sqrt(500/(3*</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/7237161319491072810/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/10/fjnu-preliminary-2005.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/7237161319491072810'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/7237161319491072810'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/10/fjnu-preliminary-2005.html' title='铁皮容器--FJNU Preliminary 2005'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-3933769616322381767</id><published>2009-10-21T12:44:00.001+08:00</published><updated>2010-04-09T22:08:48.660+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='算法'/><title type='text'>Tree Recovery － acm练习题目</title><summary type='text'>
Little Valentine liked playing with binary trees very much. Her favorite game was constructing randomly looking binary trees with capital letters in the nodes.
This is an example of one of her creations:                                          D
                                         / \
                                        /   \
                                       B     E
</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/3933769616322381767/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/10/tree-recovery-acm.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/3933769616322381767'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/3933769616322381767'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/10/tree-recovery-acm.html' title='Tree Recovery － acm练习题目'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-5408380615164953037</id><published>2009-10-20T01:06:00.002+08:00</published><updated>2010-04-09T22:06:21.748+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='算法'/><title type='text'>小学生游戏--第二届"我为程序狂"南开大学程序设计网上竞赛</title><summary type='text'>某天，无聊的小杰叫上几个同学玩游戏，其中有比较笨的小凤，比较傻的小雪，可爱的小鑫和自以为是的小练。他们去找聪明的小艺去给他们当裁判。判定谁取得游戏胜利。而这个游戏是：由小艺给出一个数 a ，再给出一个数 b ，经过规定的运算，使得数 a 变换成数 b ，且使用最少的变换次数 n .谁先说对这个 n ，谁就取得胜利。当然，因为都是小学生，所以假定如果n&gt;6 ，就算是没有答案。那么裁判小艺试图通过编程来使自己尽快的获得答案。请你帮帮他吧......
问题描述：
题目给出数a(a是一个正整数，不超过50位)，再给出目标数b(同样是一个正整数，不超过50位)，
数的运算有三种：
1：使当前数加上1985429
2：使当前数加上2006
3：使当前数乘2

需要你求出这个最小的n，如果n&gt;6，输出-1。(此为负一)。
例1：小艺给出数a=1，给出数b=1987437
那么最快我们经过3</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/5408380615164953037/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/10/blog-post_20.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5408380615164953037'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5408380615164953037'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/10/blog-post_20.html' title='小学生游戏--第二届&quot;我为程序狂&quot;南开大学程序设计网上竞赛'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-5513775123672257103</id><published>2009-10-18T23:41:00.000+08:00</published><updated>2010-04-09T21:11:35.473+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='算法'/><title type='text'>To and Fro--East Central North America 2004</title><summary type='text'>
Mo and Larry have devised a way of encrypting messages. They first decide secretly on the number of columns and write the message (letters only) down the columns, padding with extra random letters so as to make a rectangular array of letters. For example, if the message is "There’s no place like home on a snowy night" and there are five columns, Mo would write downt o i o y 
h p k n n 
e l e a i</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/5513775123672257103/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/10/to-and-fro-east-central-north-america.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5513775123672257103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5513775123672257103'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/10/to-and-fro-east-central-north-america.html' title='To and Fro--East Central North America 2004'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-5244000147921470965</id><published>2009-10-18T23:23:00.000+08:00</published><updated>2010-04-09T22:01:14.732+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='算法'/><title type='text'>计算最大公约数--辗转相除法(欧几里德算法)与Stein算法</title><summary type='text'>
From http://www.cppblog.com/aurain/archive/2008/10/08/63480.html欧几里德算法又称辗转相除法，用于计算两个整数a,b的最大公约数。其计算原理依赖于下面的定理：
定理：gcd(a,b) = gcd(b,a mod b)其算法用C++语言描述为：
int gcd(int m, int n)
{
if (m == 0)
  return n;
if (n == 0)
  return m;
if (m &lt; n)
{
  int tmp = m;
  m = n;
  n = tmp;
}
while (n != 0)
{
  int tmp = m % n;
  m = n;
  n = tmp;
}return m;
}Stein算法(以下理论请参考http://blog.vckbase.com/arong/archive/</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/5244000147921470965/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2010/04/stein.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5244000147921470965'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5244000147921470965'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2010/04/stein.html' title='计算最大公约数--辗转相除法(欧几里德算法)与Stein算法'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-2171560364058104186</id><published>2009-10-18T18:52:00.000+08:00</published><updated>2010-04-09T21:56:39.057+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='算法'/><title type='text'>Prime Gap--Japan 2007</title><summary type='text'>
The sequence of n − 1 consecutive composite numbers (positive integers that are not prime and not equal to 1) lying between two successive prime numbers p and p + n is called a prime gap of length n. For example, ‹24, 25, 26, 27, 28› between 23 and 29 is a prime gap of length 6.Your mission is to write a program to calculate, for a given positive integer k, the length of the prime gap that </summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/2171560364058104186/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/10/prime-gap-japan-2007.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/2171560364058104186'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/2171560364058104186'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/10/prime-gap-japan-2007.html' title='Prime Gap--Japan 2007'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-1900061804018482960</id><published>2009-10-18T16:45:00.000+08:00</published><updated>2010-04-09T21:14:22.244+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='算法'/><title type='text'>Ancient Keyboard--Tehran 2005</title><summary type='text'>
The scientists have found an ancient device that works in a strange way. The device has a keyboard and an output tape. The keyboard has 26 keys, with symbols 'A' through 'Z' on them. Each key has an LED on it (like the Caps Lock key on some keyboards). Each time you press a key, the LED on it toggles (changes its state from off to on or vice versa). All LEDs are off initially.
To study the </summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/1900061804018482960/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/10/ancient-keyboard-tehran-2005.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/1900061804018482960'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/1900061804018482960'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/10/ancient-keyboard-tehran-2005.html' title='Ancient Keyboard--Tehran 2005'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-6070275004313036063</id><published>2009-10-17T23:00:00.000+08:00</published><updated>2010-04-09T21:10:03.012+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='算法'/><title type='text'>Lotto--1996/97 Ulm Internal Contest</title><summary type='text'>
In the German Lotto you have to select 6 numbers from the set {1,2,...,49}. A popular strategy to play Lotto - although it doesn't increase your chance of winning - is to select a subset S containing k (k&gt;6) of these 49 numbers, and then play several games with choosing numbers only from S. For example, for k=8 and S = {1,2,3,5,8,13,21,34} there are 28 possible games: [1,2,3,5,8,13], [</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/6070275004313036063/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/10/lotto-199697-ulm-internal-contest.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/6070275004313036063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/6070275004313036063'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/10/lotto-199697-ulm-internal-contest.html' title='Lotto--1996/97 Ulm Internal Contest'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-4008661807028046571</id><published>2009-10-17T21:59:00.000+08:00</published><updated>2010-04-09T21:07:17.108+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='搜索'/><title type='text'>石子合并问题--福建省优质硕士课程《算法设计与分析》教学组</title><summary type='text'>
转自:http://www.blogjava.net/gh-jlu/archive/2008/06/28/211364.html/*【石子合并】
    在一个圆形操场的四周摆放着n 堆石子。现要将石子有次序地合并成一堆。规定每次只能选相邻的2 堆石子合并成新的一堆，并将新的一堆石子数记为该次合并的得分。
    试设计一个算法，计算出将n堆石子合并成一堆的最小得分和最大得分。
*/
/**//*
分析】
    本题初看以为可以使用贪心法解决问题，但是事实上因为有必须相邻两堆才能合并这个条件在，用贪心法就无法保证每次都能取到所有堆中石子数最多的两堆。例如下面这个例子：
    6
    3 4 6 5 4 2
    如果使用贪心法求最小得分，应该是如下的合并步骤：
        第一次合并 3 4 6 5 4 2    2,3合并得分是５
        第二次合并 5 4 6</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/4008661807028046571/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/10/blog-post_17.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/4008661807028046571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/4008661807028046571'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/10/blog-post_17.html' title='石子合并问题--福建省优质硕士课程《算法设计与分析》教学组'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-2161662932504125614</id><published>2009-10-17T20:54:00.000+08:00</published><updated>2010-04-09T21:31:03.749+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='算法'/><title type='text'>All in All -- University of Ulm Local Contest</title><summary type='text'>
You have devised a new encryption technique which encodes a message by inserting between its characters randomly generated strings in a clever way. Because of pending patent issues we will not discuss in detail how the strings are generated and inserted into the original message. To validate your method, however, it is necessary to write a program that checks if the message is really encoded in </summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/2161662932504125614/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2010/04/all-in-all-university-of-ulm-local.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/2161662932504125614'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/2161662932504125614'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2010/04/all-in-all-university-of-ulm-local.html' title='All in All -- University of Ulm Local Contest'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-4729794826299677788</id><published>2009-10-09T22:26:00.000+08:00</published><updated>2010-04-09T21:01:38.385+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='算法'/><title type='text'>Jam的计数法</title><summary type='text'>
Jam是个喜欢标新立异的科学怪人。他不使用阿拉伯数字计数，而是使用小写英文字母计数，他觉得这样做，会使世界更加丰富多彩。在他的计数法中，每个数字的位数都是相同的（使用相同个数的字母），英文字母按原先的顺序，排在前面的字母小于排在它后面的字母。我们把这样的“数字”称为Jam数字。在Jam数字中，每个字母互不相同，而且从左到右是严格递增的。每次，Jam还指定使用字母的范围，例如，从2到10，表示只能使用 {b,c,d,e,f,g,h,i,j}这些字母。如果再规定位数为5，那么，紧接在Jam数字“bdfij”之后的数字应该是“bdghi”。（如果我们用U、V依次表示Jam数字“bdfij”与“bdghi”，则U，且不存在Jam数字P，使U）。你的任务是：对于从文件读入的一个Jam数字，按顺序输出紧接在后面的5个Jam数字，如果后面没有那么多Jam数字，那么有几个就输出几个。Input输入有2</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/4729794826299677788/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/10/jam.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/4729794826299677788'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/4729794826299677788'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/10/jam.html' title='Jam的计数法'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-213918078008379179</id><published>2009-10-05T17:06:00.001+08:00</published><updated>2009-10-31T09:47:52.400+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C++'/><title type='text'>代码记录2009.10.5</title><summary type='text'>昨天写的，做个记录，以免遗失input: 正整数noutput: k个连续整数，这些连续整数的和为n要求输出所有的情况例如：input: 15output: 1 2 3 4 54 5 67 8 /*wen qi 2009.10.5*/ #include &lt;math.h&gt; #include &lt;iostream&gt;  using namespace std;   typedef unsigned int U32;   typedef struct _common_divisor  {     U32 cd;      U32 cdd;      _common_divisor *next;  } common_divisor;   void out(common_divisor *h);  void release(common_divisor *p);  void add_note(U32 </summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/213918078008379179/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/10/2009105.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/213918078008379179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/213918078008379179'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/10/2009105.html' title='代码记录2009.10.5'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-4222536992733342324</id><published>2009-09-26T23:01:00.000+08:00</published><updated>2009-09-26T23:01:55.977+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C++'/><title type='text'>关于内存读写越界的一点讨论(C/C++)</title><summary type='text'>关于内存读写越界的一点讨论
根据最近的一点经验，先总结如下两点

1.指针强制转换的隐患
先看一个程序：
#include 

void set_zero(unsigned short *p)
{
    *p = 0;
}

typedef struct
{
    unsignedchar a;
    unsignedchar b;
}test_c_c_struct;

typedef struct
{
    unsigned char a;
    unsigned short b;
} test_i_c_struct;

int main()
{
    test_c_c_struct cc;
    test_i_c_struct ic;
    cc.a = 1;
    cc.b = 1;
    ic.a = 1;
    ic.b = 1;
    set_zero</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/4222536992733342324/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/09/cc.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/4222536992733342324'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/4222536992733342324'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/09/cc.html' title='关于内存读写越界的一点讨论(C/C++)'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-881845041950763110</id><published>2009-09-06T23:34:00.000+08:00</published><updated>2009-09-06T23:34:44.828+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Perl'/><title type='text'>Perl语言: 搜索目录下所有文件中的字符串，列出文件名</title><summary type='text'>需求: 在一个5G多的目录中（基本全是文本文件）搜索某个字符串，如果发现该文本文件中含有这个字符串，立即打印出文本文件的路径，并搜索下一个文件。
--------------
以下是用Perl语言的实现（在前任的基础上修改得到）: 
搜索目录下所有文件中的字符串，列出含有该字符串的文件名#!/usr/bin/perl

use strict;
use File::Spec::Functions;

my %usage={};
$usage{"name"} = "mygrep";
$usage{"version"} = "0.2";
$usage{"last_modify_time"} = "3 Sep, 2009"; 
$usage{"author"} = "Wen Qi, xxx002";
$usage{"blog"} = "www.qiwen.name";
$usage{"mail"</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/881845041950763110/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/09/perl.html#comment-form' title='3 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/881845041950763110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/881845041950763110'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/09/perl.html' title='Perl语言: 搜索目录下所有文件中的字符串，列出文件名'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-3984222033126040910</id><published>2009-08-23T20:12:00.001+08:00</published><updated>2009-09-02T23:45:04.853+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='小技巧'/><title type='text'>让你的浏览器崩溃</title><summary type='text'>今天在一师兄博客中看到的一个链接，可以导致浏览器崩溃  原题是Crash your safari，后来我测试了Chrome3/ie8，均崩溃  下载了html代码后发现这个页面共计59,999个div标签对，页面大小有644K  如果你想体验一下，可以Click it! 猛点这里！(请做好重启浏览器的准备)  如果想下载这个页面看看可以在Chrom浏览器地址栏中输入： view-source:http://blog.morebits.org/wp-content/uploads/2009/08/test-small.html     </summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/3984222033126040910/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/08/blog-post_23.html#comment-form' title='1 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/3984222033126040910'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/3984222033126040910'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/08/blog-post_23.html' title='让你的浏览器崩溃'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-1520299758667874519</id><published>2009-08-22T20:13:00.002+08:00</published><updated>2009-10-31T09:46:30.600+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='idea'/><title type='text'>对抗“呼死你”软件</title><summary type='text'>Google Reader里，有消息说某人被"呼死你"软件困扰，我想手机可以开发对抗"呼死你"软件的功能。

前提是用户开通了来电显示号码的功能。

手机收到电话后，程序处理来电号码，如果号码不在用户设置的白名单之列，或者在黑名单中，均过滤。

当然在设置"黑白名单"这个地方需要做的仔细点。

要给用户很高的自定义的空间，甚至可以考虑支持正则表达式。（一旦有了正则表达式过滤，我想就完美了！）

一般来讲，"呼死你"软件会用网络电话去呼，这样产生的费用比较低。

而网络电话的号码都比较特殊，虽然号码不固定，但是号码是区别于普通号码的，过滤掉是不难的。

Update (2009-10-31):

今天LY师兄谈到一个问题，这种过滤方式没有解决根本问题。

因为电话的信道已经占用了，电话无法打出，也不能接听电话了。

的确是的。那么运营商可以考虑提供增值服务。这样可以解决这个问题。

</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/1520299758667874519/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/08/blog-post_22.html#comment-form' title='2 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/1520299758667874519'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/1520299758667874519'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/08/blog-post_22.html' title='对抗“呼死你”软件'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-8584796494923729767</id><published>2009-08-19T20:12:00.002+08:00</published><updated>2009-09-26T22:52:41.686+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='算法'/><title type='text'>关于100个台阶的面试题目</title><summary type='text'>昨晚回去的路上老六给我说了一道面试题目，大概意思如下：
一共100个台阶，一次可以走1/2/3个台阶，一共有多少中走法？
一开始想到的是递归的方法递归函数如下：
#define STEP_ONE 1

#define STEP_TWO 2
#define STEP_THREE 3
void step(int steps_left, int steps_total, int &amp;cnt)
{
if (steps_left &gt;= 1)
{
  step(steps_left - STEP_ONE, steps_total - STEP_ONE, cnt);
  if (steps_left &gt;= 2)
  {
    step(steps_left - STEP_TWO, steps_total - STEP_TWO, cnt);
    if (steps_left &gt;= 3)
    {
</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/8584796494923729767/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/08/100.html#comment-form' title='4 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/8584796494923729767'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/8584796494923729767'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/08/100.html' title='关于100个台阶的面试题目'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-4789898217824317415</id><published>2009-08-15T16:57:00.007+08:00</published><updated>2009-10-31T10:59:42.298+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>飞信短信接口</title><summary type='text'>免费短信接口网站（目前只有feition/飞信接口） http://sms.api.bz/

PHP代码如下： 
&lt;?php 

$url = http://sms.api.bz/fetion.php?username=13800138000&amp;password=000000&amp;sendto=13800138000&amp;message=短信内容; 

$result = file_get_contents($url); 

echo $result; 

//返回信息默认为UTF-8编码的汉字，如果你的页面编码为gb2312，请使用下行语句输出返回信息。
//echo iconv("UTF-8", "GBK", $result);
?&gt;


</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/4789898217824317415/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/08/blog-post_15.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/4789898217824317415'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/4789898217824317415'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/08/blog-post_15.html' title='飞信短信接口'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-4757580666432486493</id><published>2009-08-15T09:18:00.001+08:00</published><updated>2009-08-15T09:19:49.209+08:00</updated><title type='text'>[申明]博客更换域名</title><summary type='text'>博客从即日起更换域名，本人所有个人网站均启用新域名Qiwen.name</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/4757580666432486493/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/08/blog-post.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/4757580666432486493'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/4757580666432486493'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/08/blog-post.html' title='[申明]博客更换域名'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-8994315590300941238</id><published>2009-08-14T10:03:00.001+08:00</published><updated>2009-08-15T23:35:52.393+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='编辑器IDE'/><title type='text'>Source Insight不支持代码折叠</title><summary type='text'>Source Insight不支持代码折叠!!! 一个这么优秀的源码阅读工具怎能不支持代码折叠了... 哎，难道让我同时开着UE?    </summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/8994315590300941238/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/08/source-insight.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/8994315590300941238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/8994315590300941238'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/08/source-insight.html' title='Source Insight不支持代码折叠'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-378792595344539151</id><published>2009-08-11T18:56:00.001+08:00</published><updated>2009-08-11T18:56:52.037+08:00</updated><title type='text'>推荐电子书《高质量C++ C编程指南》</title><summary type='text'>这本电子书的名字是《高质量C++ C编程指南》，我下载的是PDF格式的（Google一下会得到很多下载链接的，让我惊奇的是虽然这是本非正式出版物，但它还有两条被论文引用的记录） 书籍是同事推荐的，看之前，我去搜索了作者林锐的信息，浙江大学的博士，看了他的经历，颇为佩服他。 书籍介绍了C++/C编程的规范，以及一些重要的特性/编程需要注意的地方等等。最附录里面有一套测试题，不妨在看书之前测试一下看看自己能得多少分，我做之后发现情况不是很理想 :( 给打个分吧，85分 PS: 看了之后发现以前买过的那本《程序员面试宝典》和这个有很多重合的地方，《程序员面试宝典》是05年出版的，而这个电子书是01年写的    </summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/378792595344539151/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/08/c-c.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/378792595344539151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/378792595344539151'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/08/c-c.html' title='推荐电子书《高质量C++ C编程指南》'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-6415777139316214209</id><published>2009-08-09T15:04:00.001+08:00</published><updated>2009-08-15T23:36:39.608+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>PHPMailer类发送邮件</title><summary type='text'>使用phpmailer发送邮件还是很方便的，我使用的虚拟主机虽然很垃圾，还是php4.3，但是经过测试还是可以使用phpmailer的，示例的核心代码如下：    require("class.phpmailer.php");        $mail = new PHPMailer();    $mail-&gt;CharSet = "UTF-8"; // 设置编码    $mail-&gt;IsSMTP();                                      // set mailer to use SMTP        $mail-&gt;Host = "smtp.126.com";  // specify main and backup server     $mail-&gt;SMTPAuth = true;     // turn on SMTP </summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/6415777139316214209/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/08/phpmailer.html#comment-form' title='1 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/6415777139316214209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/6415777139316214209'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/08/phpmailer.html' title='PHPMailer类发送邮件'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-3941485311171897318</id><published>2009-07-07T09:20:00.001+08:00</published><updated>2009-08-15T23:37:37.634+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GFW/翻墙'/><title type='text'>访问youtube及twitter的方法</title><summary type='text'>youtube.com 和twitter.com被封了，Windows下的解决方案之一是修改hosts文件具体如下：用编辑器(notepad/vim/UltraEdit等等)打开C:\WINDOWS\system32\drivers\etc\hosts文件 将如以下行即可203.208.37.160 www.youtube.com203.208.37.160 gdata.youtube.com128.121.146.228 twitter.com 当然也可通过代理的方法解决，比如代理网站 https://mirrorrr.appspot.com/代理客户端 无界u95.exe等等 </summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/3941485311171897318/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/07/youtubetwitter.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/3941485311171897318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/3941485311171897318'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/07/youtubetwitter.html' title='访问youtube及twitter的方法'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-9086531301398312082</id><published>2009-06-18T09:49:00.001+08:00</published><updated>2009-08-15T23:37:49.536+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><title type='text'>IE下Javascript的调试-Companion.JS</title><summary type='text'>今日调试javascript，在firefox下正常，ie下有问题，以前还没怎么在ie下弄过，今天搜了一下，有一个Companion.JS的东西和firebug很像，转来看看 这个工具的名字叫Companion.JS， 请注意，这可不是一个js文件，而是一个名字，它是作为ie的插件来安装使用的，而且需要结合Microsoft Script Debugger使用，通过安装这个工具，但页面出现错误时会在左上角弹出一个小错误提示，点击会在IE下面显示出一个错误控制台，就如FF下的 firebug控制台一样。错误信息提示很详细。如下是官网的一个错误提示示例图： 官网地址：http://www.my-debugbar.com/wiki/CompanionJS/HomePage具体使用方法为： 1、先下载Companion.JS安装文件，然后安装。2、下载安装Microsoft Script </summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/9086531301398312082/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/06/iejavascript-companionjs.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/9086531301398312082'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/9086531301398312082'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/06/iejavascript-companionjs.html' title='IE下Javascript的调试-Companion.JS'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-7870615805091535978</id><published>2009-06-17T19:12:00.001+08:00</published><updated>2009-08-15T23:35:19.622+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='正则表达式'/><title type='text'>Dreamweaver中正则表达-文本替换</title><summary type='text'>今天我要处理一个文件，必须用到正则替换，不然工作量太大，会崩溃的。记录如下：文件的格式如下1300:01:52,080 --&gt; 00:01:54,070 Any government troops here?这里有政府军么？1400:01:54,540 --&gt; 00:01:56,370You wanna argue?你想吵架？要把每一个模块里面的4行变成3行，例如上面的变成如下所示 1300:01:52,080 --&gt; 00:01:54,070Any government troops here? 这里有政府军么？1400:01:54,540 --&gt; 00:01:56,370You wanna argue? 你想吵架？查找的正则表达式如下：([0-9]{1,3}\s\s[0-9]{2}:[0-9]{2}:[0-9]{2},[0-9]{3}\s--&gt;\s[0-9]{2}:[0-9]{2}:</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/7870615805091535978/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/06/dreamweaver.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/7870615805091535978'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/7870615805091535978'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/06/dreamweaver.html' title='Dreamweaver中正则表达-文本替换'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-8546124497248739921</id><published>2009-06-16T10:00:00.001+08:00</published><updated>2009-08-16T00:04:43.877+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='小技巧'/><title type='text'>ADSL 命令行控制</title><summary type='text'>我自己的一个脚本，bat文件如下：@echo off:arasdial adsl /dping 127.0.0.1 -n 2rasdial adsl username passwordC:\Program Files\FirefoxPortable_zh-CN\FirefoxPortable.exe"ping 127.0.0.1 -n 30taskkill /im firefox.exe /f ping 127.0.0.1 -n 10clsgoto :a这个是用来定时重连adsl连接并且重启firefox的。详解：rasdial adsl /d 是用来断开"adsl"连接的rasdial adsl username password 是用来登陆adsl的，"adsl"是你的adsl拨号的名字 username是用户名 password密码ping 127.0.0.1 -n 30 </summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/8546124497248739921/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/06/adsl.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/8546124497248739921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/8546124497248739921'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/06/adsl.html' title='ADSL 命令行控制'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-8279935999232009239</id><published>2009-06-09T16:28:00.003+08:00</published><updated>2009-08-15T23:37:37.636+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='GFW/翻墙'/><title type='text'>关于翻墙那点事</title><summary type='text'>Blogger已经被墙了很久了，幸好我的博客是ftp方式发布的，不然现在是看不到了。当然不幸的还有Youtube，今天就找了个翻墙的东西具体情况如下：wine1.1.18+wujie9.4(无界浏览9.4)+firefox+wjbutton+ubuntu9.04，翻墙成功！如果安装顺利就好，只是我遇到了mfc42.dll 和 MSVCP60.dll 找不到的错误，于是网上下载，开始在国外的网上下的，发现有一个6880的错误，于是在国内的一个网站上下载居然可以，查了查，是dll版本的问题。Youtube，我来啦 :)</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/8279935999232009239/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/06/blog-post.html#comment-form' title='1 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/8279935999232009239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/8279935999232009239'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/06/blog-post.html' title='关于翻墙那点事'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-1213001500194069848</id><published>2009-06-05T18:45:00.002+08:00</published><updated>2009-10-31T11:35:20.457+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='小技巧'/><title type='text'>广电宽带绑定Mac地址的一点问题</title><summary type='text'>近日回家，由于家里没有安宽带，就把笔记本拿到舅舅家上网，把网线接上，新建一个宽带链接，输入帐号密码，发现连接不通，尝试了很久，仍然无法连接。

后来得知广电宽带把服务和电脑的Mac地址绑定了。

以下是解决办法（Windows版本）： 

下载macmakeup.195来改mac地址，它使用起来还是挺方便的。

1.查询被绑定的电脑的Mac地址：在命令提示符里，输入命令 ipconfig /all，在physical address后面显示的即为Mac地址，格式为xx-xx-xx-xx-xx-xx

2.在新接入的电脑里，打开macmakeup，选择正确的网卡，注意不要选中无线网卡了

3.在"新的mac地址"里面输入上面刚刚查询的mac地址，直接填过来就可以了。（这个软件会自动重启网卡的）

然后应该就可以用了，我没有遇到其他啥问题。</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/1213001500194069848/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/06/mac.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/1213001500194069848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/1213001500194069848'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/06/mac.html' title='广电宽带绑定Mac地址的一点问题'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-451950444673626312</id><published>2009-05-22T09:05:00.001+08:00</published><updated>2009-08-16T00:02:54.300+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><title type='text'>PHP错误信息不显示，但无权修改服务器PHP.ini的解决办法</title><summary type='text'>今天遇到这个问题，查了下，写在这里，备忘，呵呵当然error_reporting的用法有很多的，这里只显示错误，而不现实提示信息。代码如下：&lt;?php  ini_set('display_errors', true);  error_reporting(E_ALL&amp;~E_NOTICE);?&gt; </summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/451950444673626312/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/05/phpphpini.html#comment-form' title='1 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/451950444673626312'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/451950444673626312'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/05/phpphpini.html' title='PHP错误信息不显示，但无权修改服务器PHP.ini的解决办法'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-4077134192022654697</id><published>2009-05-18T15:15:00.001+08:00</published><updated>2009-08-16T00:01:34.736+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Ubuntu下Apache2+PHP5+MySQL5+phpMyAdmin的安装配置</title><summary type='text'>我是在ubuntu 9.04下安装的，没遇到啥问题1.安装MySQL(虽然现在最新版为5.1，但是还只能装5.0版本) sudo apt-get install mysql-server-5.0 2.安装Apache sudo apt-get install apache2 3.安装PHP sudo apt-get install php5 libapache2-mod-php5 sudo apt-get install libapache2-mod-auth-mysql sudo apt-get install php5-mysql sudo apt-get install php5-gd 配置php.ini: sudo gedit /etc/php5/apache2/php.ini 找到extension那个地方，添加下面两行 extension=mysql.so extension</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/4077134192022654697/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/05/ubuntuapache2php5mysql5phpmyadmin.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/4077134192022654697'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/4077134192022654697'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/05/ubuntuapache2php5mysql5phpmyadmin.html' title='Ubuntu下Apache2+PHP5+MySQL5+phpMyAdmin的安装配置'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-6620216647611034127</id><published>2009-05-16T09:15:00.001+08:00</published><updated>2009-08-16T00:01:34.738+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>UBUNTU9.04 安装程序需要更改分区表,但不能实现,因为以下挂载点上的分区不能被卸载</title><summary type='text'>安装程序需要更改分区表,但不能实现,因为以下挂载点上的分区不能被卸载,/isodevice,请关闭所有正在使用这些挂载点的应用程序,你是否想让安装程序再次尝试卸载,这些分区?HOW TO SOLVE THIS PROBLEM:安装之前先运行一次 sudo umount -l /isodevice  </summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/6620216647611034127/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/05/ubuntu904.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/6620216647611034127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/6620216647611034127'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/05/ubuntu904.html' title='UBUNTU9.04 安装程序需要更改分区表,但不能实现,因为以下挂载点上的分区不能被卸载'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-2670224453626367438</id><published>2009-05-15T19:01:00.001+08:00</published><updated>2009-08-16T00:01:34.739+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>关于恢复linux引导的一些经历(gOS3.1/Ubuntu 8.04)</title><summary type='text'>昨天晚上干掉了C盘的XP，但是今天还是不得不再次安装，之后考虑恢复gOS的引导。在XP下修改安装gurb，修改boot.ini，重启进入grub，按照望上的教程root (hd0,x)setup (hd0)但是尝试了很多此均失败，后来尝试在grub里面引导gOS，尝试了很多此也不行，后来发现是因为kernel的参数不对 （看网上别人的有UUID什么的，很长）。 想到一个办法，去把linux的ext2分区的/boot/grub/menu.lst打开看一看里面原来是怎么写的，就可以了呗，这个里面的参数肯定是正确的。进入XP，下载explore2fs（我的版本是explore2fs-1.08beta9.zip），运行里面的exe，查看ext2分区的/boot/grub/menu.lst。文件的后面就有了记录下来，再次进grub按照它的那个输入即可。顺利进入gOS，然后打开Terminal </summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/2670224453626367438/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/05/linuxgos31ubuntu-804.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/2670224453626367438'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/2670224453626367438'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/05/linuxgos31ubuntu-804.html' title='关于恢复linux引导的一些经历(gOS3.1/Ubuntu 8.04)'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-49227676774320060</id><published>2009-05-15T00:10:00.001+08:00</published><updated>2009-08-16T00:00:08.162+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='操作系统'/><title type='text'>Dell 1501安装Mac 10.5.6不成功</title><summary type='text'>晚上把C盘的xp干掉了，其实我早就对她有意见了！在软件之家下载了Mac最新的破解镜像，打算装下，虽然在网上看别人遇到过很多的 麻烦，还是想亲自试试。不幸的事情发生了，放进盘只到加载驱动那就卡住了，在网上搜了很久也没找到一 个好的办法，放弃！重新恢复XP,恢复Linux的引导。哎！</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/49227676774320060/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/05/dell-1501mac-1056.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/49227676774320060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/49227676774320060'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/05/dell-1501mac-1056.html' title='Dell 1501安装Mac 10.5.6不成功'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-1921058255857145912</id><published>2009-05-11T23:20:00.001+08:00</published><updated>2009-05-11T23:44:36.146+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Linux(Ubuntu) firefox下视频flv文件的保存</title><summary type='text'>今天在网上看了2个轮滑 的视频文件，于是想保存下来，浏览器firefox3，操作系统个gOS，其实就是Ubuntu8.04。首先，进入firefox保存历史文件的目录cd ~/.mozilla/firefox/{这里是一串随机的字符}.default/Cache然后让文件按照大小排序ls  -l|sort -n -k5最下面的几个大文件就可能是刚刚的视频文件了，一般在优酷，酷6，51上看的视频文件都是几兆，十几兆的。然后也可以看看日期，以便分析哪几个文件可能是flv文件。（还可以看看文件的type）把这几个文件cp 出来就可以了，我用KMplayer可以正常的播放。PS：以下命令是显示大于1M的文件 ls -l|awk '$1!~/^d/&amp;&amp;$5&gt;1048576{print $5, $6, $7, $8}'</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/1921058255857145912/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/05/linuxubuntu-firefoxflv.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/1921058255857145912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/1921058255857145912'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/05/linuxubuntu-firefoxflv.html' title='Linux(Ubuntu) firefox下视频flv文件的保存'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-1232739528075118384</id><published>2009-05-10T22:03:00.001+08:00</published><updated>2009-08-16T00:04:43.880+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='小技巧'/><title type='text'>PSCP 的使用</title><summary type='text'>PSCP 的使用在控制台直接执行 pscp 可以看到帮助C:\&gt;pscpPuTTY Secure Copy clientRelease 0.58Usage: pscp [options] [user@]host:source target      pscp [options] source [source] [user@]host:target      pscp [options] -ls [user@]host:filespecOptions: -V       print version information and exit -pgpfp   print PGP key fingerprints and exit -p       preserve file attributes -q       quiet, don't show statistics -r       </summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/1232739528075118384/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/05/pscp.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/1232739528075118384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/1232739528075118384'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/05/pscp.html' title='PSCP 的使用'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-5966464312920096757</id><published>2009-05-10T20:36:00.001+08:00</published><updated>2009-08-16T00:00:44.443+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>virtualBox键盘失效解决办法</title><summary type='text'>virtualBox键盘失效解决办法sudo apt-get install scim-bridge-client-qt之后im-switch -s scim-bridge </summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/5966464312920096757/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/05/virtualbox.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5966464312920096757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5966464312920096757'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/05/virtualbox.html' title='virtualBox键盘失效解决办法'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-5767212090979277081</id><published>2009-05-10T20:31:00.001+08:00</published><updated>2009-08-16T00:00:44.445+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>VirtualBox No suitable module for running kernel found.的解决办法</title><summary type='text'>我遇到了""这个问题，在网上搜到一办法：顺序执行以下命令sudo apt-get install virtualbox-ose-source sudo m-a update sudo m-a prepare sudo m-a a-i virtualbox-ose sudo /etc/init.d/vboxdrv restart即可 </summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/5767212090979277081/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/05/virtualbox-no-suitable-module-for.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5767212090979277081'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5767212090979277081'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/05/virtualbox-no-suitable-module-for.html' title='VirtualBox No suitable module for running kernel found.的解决办法'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-3982492932216202836</id><published>2009-05-10T11:15:00.001+08:00</published><updated>2009-05-11T18:04:14.537+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Linux(Ubuntu)中安装Java JKD步骤</title><summary type='text'>一个转载的文章，结合我自己的安装经历，来讲讲。首先，从http://java.sun.com中下载jdk,我的版本是jdk1.6.0_12，我下载的是bin文件，我将下载的jdk1.6.0_12.bin文件置于/usr/lib/jvm/java中.(最好放在这里，如果错了，把安装目录删除了重新安装吧。我开始就弄错了，然后没找到卸载的uninstal文件，就直接删除目录，没发现问题。) 然后，在shell中执行：代码:sudo chmod u+x /usr/lib/jvm/java/jdk1.6.0_12.bin修改bin文件权限，使其可执行然后，执行代码: sudo /usr/lib/jvm/java/jdk1.6.0_12.bin将会出现字幕，持续按回车键，直至屏幕显示要求输入yes/no，此时输入y回车，将会把jdk解压到文件夹，得到jdk1.6.0_12目录。此时，jdk已安装完毕</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/3982492932216202836/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/05/linuxubuntujava-jkd.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/3982492932216202836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/3982492932216202836'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/05/linuxubuntujava-jkd.html' title='Linux(Ubuntu)中安装Java JKD步骤'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-5622673297290638759</id><published>2009-05-09T10:37:00.001+08:00</published><updated>2009-05-11T18:04:34.943+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Linux系统信息查看命令大全</title><summary type='text'>some commands in Linux:系统# uname -a               # 查看内核/操作系统/CPU信息# head -n 1 /etc/issue   # 查看操作系统版本# cat /proc/cpuinfo      # 查看CPU信息# hostname               # 查看计算机名# lspci -tv              # 列出所有PCI设备 # lsusb -tv              # 列出所有USB设备# lsmod                  # 列出加载的内核模块# env                    # 查看环境变量资源# free -m                # 查看内存使用量和交换区使用量# df -h                  # 查看各分区使用情况# du -sh </summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/5622673297290638759/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/05/linux.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5622673297290638759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5622673297290638759'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/05/linux.html' title='Linux系统信息查看命令大全'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-1034690647734826179</id><published>2009-05-08T23:25:00.001+08:00</published><updated>2009-08-16T00:04:43.882+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='小技巧'/><title type='text'>Putty字体和中文输入的设置</title><summary type='text'>一.Putty的默认字体为: Courier New,10-Point,这种字体讨厌的地方是:在使用VI编辑C代码时,深蓝色的文字看不清楚,我是这样设置感觉就好多了,Window--&gt;appearence--&gt;change,在弹出的字体选择对话框中选择"Fixedsys"字体,字型为"常规",大小选12.二.对于Putty里不支持中文输入,可以这样的修改:选中"Translaition",在"Recevied data assumed  tobe in  which character  set:"下拉筐中选择"UTF-8";最后使得LANG_ALL="zh_UTF",就可以进行中文输入和查看了</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/1034690647734826179/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/05/putty.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/1034690647734826179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/1034690647734826179'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/05/putty.html' title='Putty字体和中文输入的设置'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-1602394420201157966</id><published>2009-05-08T22:17:00.001+08:00</published><updated>2009-05-11T18:05:04.482+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Vim'/><title type='text'>VIM设置代码折叠</title><summary type='text'>VIM设置代码折叠        1. 折叠方式 可用选项 'foldmethod' 来设定折叠方式：set fdm=*****。有 6 种方法来选定折叠：          manual           手工定义折叠          indent             更多的缩进表示更高级别的折叠           expr                用表达式来定义折叠          syntax             用语法高亮来定义折叠          diff                  对没有更改的文本进行折叠          marker            对文中的标志折叠注意，每一种折叠方式不兼容，如不能即用expr又用marker方式，我主要轮流使用indent和marker方式进行折叠。  使用时，用：set fdm=marker </summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/1602394420201157966/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/05/vim.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/1602394420201157966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/1602394420201157966'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/05/vim.html' title='VIM设置代码折叠'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-5217629948387515692</id><published>2009-05-08T21:07:00.000+08:00</published><updated>2009-05-11T18:05:04.484+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Vim'/><title type='text'>设置vim C的语法高亮及自动缩进</title><summary type='text'>设置vim C的语法高亮及自动缩进 vim简介 Vim（Vi Improved) 是一个类似于vi 的文本编辑器，在Vi的基础上增加了很多新的特性和功能。Vim以其强大的功能和可定制能力，成为Linux/Unix环境下开源的最重要的编辑器之一（另一个是 Emacs），被众多开发者所喜爱。笔者此时所用的是最新的7.1版本。与大部分其它编辑器不同，进入 Vim 后，缺省状态下键入的字符并不会插入到所编辑的文件之中。Vim 的模式（mode，可以简单地理解为"状态"）概念非常重要。需要知道，Vim 有以下几个模式： 1）    正常（normal）模式，缺省的编辑模式；下面如果不加特殊说明，提到的命令都直接在正常模式下输入；任何其它模式中都可以通过键盘上的 Esc 键回到正常模式。2）    命令（command）模式，用于执行较长、较复杂的命令；在正常模式下输入":"（一般命令）、"/"（</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/5217629948387515692/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/05/vim-c.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5217629948387515692'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5217629948387515692'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/05/vim-c.html' title='设置vim C的语法高亮及自动缩进'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-2278988432741340730</id><published>2009-05-08T16:23:00.001+08:00</published><updated>2009-05-11T18:05:04.485+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Vim'/><title type='text'>关于vim的recording</title><summary type='text'>关于vim的recording我经常会不小心地只按下"q"键什么的，然后就看到的烦人的"recording"字样显示在编辑器下边了。有时候在想退出编辑器时，出现这样的情况让我发疯。今天终于有空来研究一下个这"recording"到底是干什么的了。。。原来它是用来记录按键的，然后我们就可以在以后用这个记录了。如何用？在正常状态（正常状态 = !insert状态 &amp;&amp; !visual状态）下，按q，再按下一个字母或数字，来标识将记录保存的位置。这时编辑器下边就显示"recording"了，再按一下q（在正常状态下）就完成记录了。 综上所述 -qx -&gt; 开始键盘记录（在x缓存中）。（在正常状态）要记录的"工作"q -&gt; 结束记录。（在正常状态）例子 -要想往文件开头加"&lt;html&gt;&lt;body&gt;"，往文件结尾加"&lt;/body&gt;&lt;/html&gt;"，就可以像这样执行：qm1G0i&lt;html&gt;&lt;</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/2278988432741340730/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/05/vimrecording.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/2278988432741340730'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/2278988432741340730'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/05/vimrecording.html' title='关于vim的recording'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-3739438293425393389</id><published>2009-05-08T16:13:00.001+08:00</published><updated>2009-05-11T18:05:04.487+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Vim'/><title type='text'>vim制表位(tab)的总结说明</title><summary type='text'>vim制表位(tab)的总结说明 1.tabstop (ts-数值型): 设定文件中制表位占的空格个数,默认是8   :set ts=4     (表示一个插入一个&lt;Tab&gt;占4个空格位)    2.expandtab (et-布尔型): 插入&lt;Tab&gt;时使用相应数量的空格,而不用制表位,默认关闭   :set ts=10 et     (此时插入一个tab时,真正插入的是10个空格)    注: 当'et'打开,要插入实际的制表位,需用CTRL-V&lt;Tab&gt;,win下加载了mswin.vim插件的用CTRL-Q&lt;Tab&gt;    3.softtabstop (sts-数值型): 当插入一个&lt;Tab&gt;时,若'ts'值大于'sts',则此时就插入'sts'值那么多空格；   而当'ts'值小于'sts',则此时就插入几个制表位(制表位的个数是'sts'整除'ts'之商)    和几个空格(</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/3739438293425393389/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/05/vimtab.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/3739438293425393389'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/3739438293425393389'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/05/vimtab.html' title='vim制表位(tab)的总结说明'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-3980944842050657279</id><published>2009-05-07T18:37:00.001+08:00</published><updated>2009-05-11T18:05:04.488+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Vim'/><title type='text'>vim教程 (Great)</title><summary type='text'>第一讲第一节∶移动光标   ※※ 要移动光标，请依照说明分别按下 h、j、k、l 键。 ※※   ^ k 提示∶ h 的键位于左边，每次按下就会向左移动。 &lt; h l &gt; l 的键位于右边，每次按下就会向右移动。 j j 键看起来很象一支尖端方向朝下的箭头。 v   1. 请随意在屏幕内移动光标，直至您觉得舒服为止。   2. 按下下行键(j)，直到出现光标重复下行。   ---&gt; 现在您应该已经学会如何移动到下一讲吧。   3. 现在请使用下行键，将光标移动到第二讲。   提示∶如果您不敢确定您所按下的字母，请按下&lt;ESC&gt;键回到正常(Normal)模式。 然后再次从键盘输入您想要的命令。   提示∶光标键应当也能正常工作的。但是使用hjkl键，在习惯之后您就能够快速 地在屏幕内四处移动光标了。   第一讲第二节∶VIM的进入和退出   !! 特别提示∶敬请阅读完整本一节的内容，</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/3980944842050657279/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/05/vim-great.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/3980944842050657279'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/3980944842050657279'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/05/vim-great.html' title='vim教程 (Great)'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-1435544763979462339</id><published>2009-05-07T18:11:00.001+08:00</published><updated>2009-05-11T18:05:04.490+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Vim'/><title type='text'>Vi与Vim的区别</title><summary type='text'>本来使用这两个的机会就很少，大概只是知道vim 是在vi的基础上做的，今天搜了一下两个的不同。   Vi与Vim的区别   一直用着vi，有朋友劝我用vim，那么它们有什么区别呢？ 简单点来说，它们都是多模式编辑器， 不同的是vim 是vi的升级版本，它不仅兼容vi的所有指令， 而且还有一些新的特性在里面。 vim的这些优势主要体现在以下几个方面：   1、多级撤消 我们知道在vi里，按 u只能撤消上次命令，而在vim里可以无限制的撤消。   2、易用性 vi只能运行于unix中，而vim不仅可以运行于unix,windows ,mac等多操作平台。   3、语法加亮 vim可以用不同的颜色来加亮你的代码。   4、可视化操作 就是说vim不仅可以在终端运行，也可以运行于x window、 mac os、 windows。   5、对vi的完全兼容 某些情况下，你可以把vim当成vi</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/1435544763979462339/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/05/vivim.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/1435544763979462339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/1435544763979462339'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/05/vivim.html' title='Vi与Vim的区别'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-6836067591745589541</id><published>2009-05-06T22:01:00.001+08:00</published><updated>2009-05-11T18:04:14.539+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Dell1501安装gOS3.1时出现错误</title><summary type='text'>今天下载了gOS3.1的iso文件，采用硬盘安装方式，在再如iso之后，出现错误提示 错误代码大概如下： atkbd.c: Use 'setkeycodes e00d &lt;keycode&gt;' to make it known. 退出，进XP，在网上搜了一下，发现是如DELL1501的硬件有关系，很不幸，我的本就是这个型号。   不甘心，过了一会，再次尝试，还是有这个错误，但是过了一会居然跳了过去，进入了gOS Live，接着安装成功，Yeah!  运气、运气...   硬盘安装gOS的步骤如下： 1.把Grldr拷贝到C盘目录下，在boot.ini里面添加GRLDR的引导c:\grldr="Grldr System" 2.把gos.iso与initrd.gz以及vmlinuz放在同一个盘里（我是把它们放在E盘，准备把G盘删掉，之后分出一个swap和ext2的分区） 3.重启电脑，进入</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/6836067591745589541/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/05/dell1501gos31.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/6836067591745589541'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/6836067591745589541'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/05/dell1501gos31.html' title='Dell1501安装gOS3.1时出现错误'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-2255774053060495017</id><published>2009-05-01T16:50:00.001+08:00</published><updated>2009-05-06T14:10:32.126+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><title type='text'>jQuery对象与DOM对象之间的转换</title><summary type='text'>jQuery对象与DOM对象之间的转换 http://wozailongyou.javaeye.com/blog/299311   刚开始学习jQuery，可能一时会分不清楚哪些是jQuery对象，哪些是DOM对象。至于DOM对象不多解释，我们接触的太多了，下面重点介绍一下jQuery，以及两者相互间的转换。   什么是jQuery对象？   ---就是通过jQuery包装DOM对象后产生的对象。jQuery对象是jQuery独有的，其可以使用jQuery里的方法。   比如：   $("#test").html()   意思是指：获取ID为test的元素内的html代码。其中html()是jQuery里的方法   这段代码等同于用DOM实现代码：   document.getElementById("id").innerHTML;   虽然jQuery对象是包装DOM对象后产生的，但是</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/2255774053060495017/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/05/jquerydom.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/2255774053060495017'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/2255774053060495017'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/05/jquerydom.html' title='jQuery对象与DOM对象之间的转换'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-6791983839614554752</id><published>2009-04-18T23:18:00.003+08:00</published><updated>2010-04-09T21:58:45.453+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='算法'/><title type='text'>Bullshit Bingo--2005/2006 Ulm Local Contest</title><summary type='text'>
Bullshit Bingo is a game to make lectures, seminars or meetings less boring. Every player has a card with 5 rows and 5 columns. Each of the 25 cells contains a word (the cell in the middle has always the word "BINGO" written in it). Whenever a player hears a word which is written on his card, he can mark it. The cell in the middle is already marked when the game starts. If a player has marked </summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/6791983839614554752/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/04/bullshit-bingo-20052006-ulm-local.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/6791983839614554752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/6791983839614554752'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/04/bullshit-bingo-20052006-ulm-local.html' title='Bullshit Bingo--2005/2006 Ulm Local Contest'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-1628416131900745656</id><published>2009-04-08T17:52:00.001+08:00</published><updated>2009-05-06T14:09:56.443+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><title type='text'>WINOWS的Netsh命令的使用</title><summary type='text'>本文章转载自这里，在XP下测试通过。 我的批处理文件SetIP.bat 用法：在命令提示符里面输入 SetIP.bat 192.168.1.101   @echo off :: 使用方法 SetIP.bat 192.168.1.101 netsh interface IP set address "Local Area Connection" static %1 255.255.252.0 192.168.1.1 1 netsh interface IP set dns "Local Area Connection" static 202.113.16.10  :: netsh interface ip add dns "Local Area Connection" 202.113.16.11 index=2   想在W2K下快速的改变IP，使用习惯性的Router、Switch</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/1628416131900745656/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/04/winowsnetsh.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/1628416131900745656'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/1628416131900745656'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/04/winowsnetsh.html' title='WINOWS的Netsh命令的使用'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-9204253626194239548</id><published>2009-04-04T22:42:00.004+08:00</published><updated>2009-04-04T22:48:02.489+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='程序'/><title type='text'>自己做的一个iGoogle的小东西--打字练习网页版</title><summary type='text'>自己做的一个iGoogle的小东西，是打字练习的网页版本。有五种打字速度可供选择。程序会记录正确和错误的键位，并给出分析结果。如果你想尝试一下，可以在点击如下链接：http://www.google.com/ig/directory?hl=zh_cn&amp;url=hosting.gmodules.com%2Fig%2Fgadgets%2Ffile%2F117469868818057938429%2FPracticeTyping.xml#这里是截图：</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/9204253626194239548/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/04/igoogle.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/9204253626194239548'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/9204253626194239548'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/04/igoogle.html' title='自己做的一个iGoogle的小东西--打字练习网页版'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_LJHrouTQG-w/SdXSK_UPKhI/AAAAAAAAKVE/p0Ar00mxmSQ/s72-c/screenShort.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-3240895379589105486</id><published>2009-04-03T08:08:00.001+08:00</published><updated>2009-08-16T00:05:29.421+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='小技巧'/><title type='text'>POP3访问Windows Live Hotmail所有账户</title><summary type='text'>Windows Live Hotmail团队已经正式宣布现在已经向每一个用户提供POP3访问Windows Live Hotmail所有账户的功能。 　　下面是通过POP3访问你的电子邮件信息的设置： 　　·POP3服务器：pop3.live.com (端口995) 　　·是否需要POP SSL? 是 　　·用户名：你的Windows Live ID，如，你的用户名@hotmail.com  　　·口令：你经常用来登录Hotmail或者Windows Live的口令。 　　·SMTP服务器：smtp.live.com (端口25或者587) 　　·是否需要身份识别：是（这项与你的POP用户名和口令相匹配） 　　·是否需要TLS/SSL？是 在Foxmail中测试OK！    注意：在使用Gmail收取Hotmail邮件时，需要在用户名一栏中填写完整的用户名（例如a+big+example</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/3240895379589105486/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/04/pop3windows-live-hotmail.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/3240895379589105486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/3240895379589105486'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/04/pop3windows-live-hotmail.html' title='POP3访问Windows Live Hotmail所有账户'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-5259408014903286984</id><published>2009-04-02T19:45:00.001+08:00</published><updated>2009-08-16T00:04:16.973+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><title type='text'>javascript实现的快速排序算法</title><summary type='text'>在网上下载了个javascript实现的开速排序算法，居然频频报错，搞了半天是它的算法有点问题，哎，害人啊，没有测试好的代码就不要往外贴了，搞的别人拿去用还得改Bug... 把我改后的贴出来。（如果有Bug请及时通知，我不想误人子弟...）		function quickSort(array,start,end) {    			if(start &lt; end) {   				var s = start;   				var e = end + 1;   				var temp = array[s][1];  				var temp0 = array[s][0]; 				while(1) {   					while((++s)&lt;=end &amp;&amp; array[s][1] &gt; temp);   					while((--e)&gt;=start &amp;&amp; array[e][1] &lt; temp)</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/5259408014903286984/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/04/javascript.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5259408014903286984'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5259408014903286984'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/04/javascript.html' title='javascript实现的快速排序算法'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-2631319992957060789</id><published>2009-04-02T17:47:00.001+08:00</published><updated>2009-08-16T00:04:16.974+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><title type='text'>Javascript数组的拷贝问题的分析（slice）</title><summary type='text'>最近在coding时没留神直接将数组传递给了一个变量，新变量并没有将数组拷贝过来，而是一个指向该数组的引用，比如：         var anArray = [1, 2, 3];        var a = anArray;                   // a 和 anArray共同指向[1, 2, 3]这个数组         anArray.push(4);                  // 改变了anArray数组        alert(a);                                // 于是a也发生变化                 a指向的数组变为[1, 2, 3, 4]         在代码稍微复杂的时候我们就容易忘记数组赋值操作的本质，比如：                var a = [1, 2, 3];</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/2631319992957060789/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/04/javascriptslice.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/2631319992957060789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/2631319992957060789'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/04/javascriptslice.html' title='Javascript数组的拷贝问题的分析（slice）'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-7843192296585072669</id><published>2009-04-02T09:32:00.001+08:00</published><updated>2009-08-16T00:04:16.976+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><title type='text'>javascript中setTimeout函数增加参数的源码</title><summary type='text'>var _st = window.setTimeout;  window.setTimeout = function(fRef, mDelay) {   if(typeof fRef == 'function'){    var argu = Array.prototype.slice.call(arguments,2);    var f = (function(){ fRef.apply(null, argu); });    return _st(f, mDelay);   }  return _st(fRef,mDelay);  } function test(x){   alert(x); }  window.setTimeout(test,1000,'fason');  </summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/7843192296585072669/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/04/javascriptsettimeout.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/7843192296585072669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/7843192296585072669'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/04/javascriptsettimeout.html' title='javascript中setTimeout函数增加参数的源码'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-2860295425846292075</id><published>2009-04-02T09:27:00.001+08:00</published><updated>2009-08-16T00:04:16.977+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><title type='text'>Javascript中char和int的互相转换的代码</title><summary type='text'>// Converts an integer (unicode value) to a charfunction itoa(i) {    return String.fromCharCode(i);}// Converts a char into to an integer (unicode value)function atoi(a) {    return a.charCodeAt();}http://omnicode.blogspot.com/2008/05/convert-integer-to-ascii-character-in_09.html  </summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/2860295425846292075/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/04/javascriptcharint.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/2860295425846292075'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/2860295425846292075'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/04/javascriptcharint.html' title='Javascript中char和int的互相转换的代码'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-1159315346663928683</id><published>2009-03-31T09:38:00.001+08:00</published><updated>2009-08-16T00:05:41.814+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Dom4j下载及使用Dom4j读写XML简介</title><summary type='text'>要使用dom4j读写XML文档,需要先下载dom4j包,dom4j官方网站在  http://www.dom4j.org/目前最新dom4j包下载地址:http://nchc.dl.sourceforge.net/sourceforge/dom4j/dom4j-1.6.1.zip  解开后有两个包,仅操作XML文档的话把dom4j-1.6.1.jar加入工程就可以了,如果需要使用XPath的话还需要加入包jaxen-1.1-beta-7.jar. 以下是相关操作: 一.Document对象相关 1.读取XML文件,获得document对象.            SAXReader reader = new  SAXReader();            Document  document = reader.read(new  File("input.xml")); 2.解析XML</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/1159315346663928683/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/03/dom4jdom4jxml.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/1159315346663928683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/1159315346663928683'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/03/dom4jdom4jxml.html' title='Dom4j下载及使用Dom4j读写XML简介'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-5043698463059818914</id><published>2009-03-30T21:39:00.004+08:00</published><updated>2009-10-31T11:29:07.596+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>Smack3.10中连GTalk遇到“SASL authentication failed using mechanism PLAIN”</title><summary type='text'>

ConnectionConfiguration conConf = new ConnectionConfiguration("talk.google.com", 5222, "gmail.com");
   
/*
Without this line, you may get "SASL authentication failed using mechanism PLAIN"
*/ 

conConf.setSASLAuthenticationEnabled(false); 


今天采用Smack3.10连接GTalk

遇到“SASL authentication failed using mechanism PLAIN”这个错误提示

在网上搜到一个英文的解释。

原文如下，大致意思是：

如果服务器不支持SASL，那么请关闭它。

就是上面</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/5043698463059818914/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/03/smack310gtalksasl-authentication-failed.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5043698463059818914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5043698463059818914'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/03/smack310gtalksasl-authentication-failed.html' title='Smack3.10中连GTalk遇到“SASL authentication failed using mechanism PLAIN”'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-1704583329090986239</id><published>2009-03-30T16:22:00.001+08:00</published><updated>2009-08-15T23:59:30.058+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>[转]Python中文问题研究</title><summary type='text'>    我曾经在深入浅出java中文问题系列中研究过java的中文问题，现在中文问题已经不再羁绊我在java世界中漫游的脚步了。最近，对Python产生了浓厚的兴趣，谁知道跟中文问题这个老朋友又一次不期而遇。看来，在代码世界中，中文问题会在很长一段时间里跟我们形影不离。这也难怪，谁让当初发明计算机的不是我们中国人呢，否则，现在全世界的计算机都支持而且必须支持GBK，这样，写这样文章的人就不会是我了，而是大洋彼岸的一个金发碧眼的程序员，而且标题也相应改为 "studying the english problem in '大蟒' "。。哈哈     YY而已，还是面对现实问题吧。相对java而言，中文问题在Python中的表现更为激烈。"激烈"的意思不是说更为严重或者说难于解决，只是Python对于decode＆encode错误的默认处理方式为strict，也就是直接报错，而java使用</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/1704583329090986239/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/03/python.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/1704583329090986239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/1704583329090986239'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/03/python.html' title='[转]Python中文问题研究'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-4411808899916819218</id><published>2009-02-09T13:43:00.002+08:00</published><updated>2009-02-09T15:07:30.654+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><title type='text'>启动Tomcat时“A docbase ... inside the host appBase has been specified”的警告</title><summary type='text'>今天测试一个servlet小程序，重启Tomcat，发现了一个警告“A docbase ... inside the host appBase has been specified”，在网上搜索后得知是因为在“conf/Catalina/localhost”目录下的一个xml文件中定义了一个docbase的属性。当webapp不再tomcat的webapp目录中时，这个属性是有用的；当webapp在目录中时，此属性便被忽略掉了。这个信息不是一个错误，不会影响程序的运行。</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/4411808899916819218/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/02/tomcata-docbase-inside-host-appbase-has.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/4411808899916819218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/4411808899916819218'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/02/tomcata-docbase-inside-host-appbase-has.html' title='启动Tomcat时“A docbase ... inside the host appBase has been specified”的警告'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-2201649099548082206</id><published>2009-02-07T11:02:00.004+08:00</published><updated>2009-02-07T11:15:22.442+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='小技巧'/><title type='text'>输入变慢——ati2evxx.exe在作怪</title><summary type='text'>寒假在家一直无法上网，突然一日输入法变的很慢，不可能是病毒突然发作吧，一一查看进程，发现有个ati2vxx.exe，上网搜了一下，也有很多用户遇到了这个问题。杀掉ati2vxx.exe这个进程后输入慢的问题便得到解决，断定是此进程在搞鬼。上网搜了一篇病毒清除技巧 ati2evxx.exe 的清除方法木马伪装成ATi显卡服务，有点可恶！生成文件，如果系统在C盘就是：C:\Program Files\Common Files\ati2evxx.exe   C:\Program Files\Common Files\ATi\ati2evxx.exe，并创建注册表服务项。清除方法1.右击任务栏打开任务管理器，结束ati2evxx.exe进程；（注：如果你的显卡是ATi的，用户名是SYSTEM的ati2evxx.exe进程是正常的，而你登入的用户名或是Administrator的</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/2201649099548082206/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2009/02/ati2evxxexe.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/2201649099548082206'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/2201649099548082206'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2009/02/ati2evxxexe.html' title='输入变慢——ati2evxx.exe在作怪'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-2105306102062502051</id><published>2008-12-28T22:48:00.007+08:00</published><updated>2009-01-05T17:28:15.325+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OpenSocial'/><title type='text'>OpenSocial开发入门（3）</title><summary type='text'>这是OpenSocial开发的系列文章OpenSocial开发入门（1）OpenSocial开发入门（2）OpenSocial开发入门（3）本文着重介绍校内网OpenSocial开发的实例“好友贪吃蛇”（您可以访问这里试玩这个游戏）。一、请下载“好友贪吃蛇”的源码，在这里二、源码介绍1.目录结构/GreedySnake--/css     CSS目录----/snake_.css  游戏页面的CSS----/top10.css  TOP10页面的CSS--/html----/snake.xml  游戏的页面--/img----...    游戏相关的图片--/js----/conn_sns.js 调用OpenSocial API的相关JavaScript----/div_pop.js  控制DIV弹出的JavaScript----/snake.js  游戏控制的JavaScript--/</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/2105306102062502051/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2008/12/opensocial3.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/2105306102062502051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/2105306102062502051'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2008/12/opensocial3.html' title='OpenSocial开发入门（3）'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-622390666129054853</id><published>2008-12-28T21:58:00.002+08:00</published><updated>2009-01-05T17:35:52.015+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OpenSocial'/><title type='text'>OpenSocial开发的一些体会</title><summary type='text'>        前些天参加了OpenSocial hackathon，参加之前的一周时间才开始看OpenSocial相关的资料，因为其文档比较全，上手不困难，所以仅用了一天的时间便开发出了自己的一个简单的小应用，并在hackathon上提交。        先说一说OpenSocial的好处吧，“多个站点，一个 API”是最重要的一点。举个例子，利用OpenSocial在一个SNS网站上做了一个应用，你仅仅需要修改少量的代码（甚至不修改代码），就可以快速方便的移植到另外一个SNS网站上去，这应该是对于开发者来说最大的好处了吧。        OpenSocial的推出已经一年多的时间了，已经有很多SNS网站支持它，国内的校内、聚友、天涯、一起、51等（国外的SNS就更多了）。使用OpenSocial的开发者也越来越多了。        下面介绍一下我学习的一点体会吧。【寻找资料】</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/622390666129054853/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2008/12/opensocial.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/622390666129054853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/622390666129054853'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2008/12/opensocial.html' title='OpenSocial开发的一些体会'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-6357738139787832396</id><published>2008-12-26T20:15:00.003+08:00</published><updated>2009-01-05T17:34:37.852+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C++'/><category scheme='http://www.blogger.com/atom/ns#' term='程序'/><title type='text'>[pdf]侯捷雅虎《C++/OOP/GP/DP》讲座心得</title><summary type='text'>侯捷雅虎《C++/OOP/GP/DP》讲座心得侯捷先生06年在雅虎中国做讲座，naven听讲座后写的一些心得。感谢naven！下载http://www.iamqiwen.cn/upload/houjie-yahoo-2006-naven.pdf</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/6357738139787832396/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2008/12/pdfcoopgpdp.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/6357738139787832396'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/6357738139787832396'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2008/12/pdfcoopgpdp.html' title='[pdf]侯捷雅虎《C++/OOP/GP/DP》讲座心得'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-4115273678189121103</id><published>2008-12-23T14:25:00.003+08:00</published><updated>2009-01-05T17:35:52.018+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OpenSocial'/><title type='text'>OpenSocial开发入门(2)</title><summary type='text'>这是OpenSocial开发的系列文章OpenSocial开发入门（1）OpenSocial开发入门（2）OpenSocial开发入门（3）在这篇文章里，将重点介绍如何使用OpenSocial 的取得好友信息的API，调试环境选择的是校内网，仍然采用Google Editor1.打开Google Editor2.左上角点击File，选择Open，打开上次我们编辑的helloworld.xml将如下的代码拷贝进去，Save As，之后重新输入一个名字，例如我们这里输入friends-list.xml代码如下，其中有较为详细的中文注释&lt;?xml version="1.0" encoding="UTF-8" ?&gt;&lt;Module&gt;&lt;ModulePrefs title="List Friends Example"&gt;&lt;Require feature="opensocial-0.8"/&gt;&lt;/</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/4115273678189121103/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2008/12/opensocial2.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/4115273678189121103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/4115273678189121103'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2008/12/opensocial2.html' title='OpenSocial开发入门(2)'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-7245345140936213743</id><published>2008-12-23T13:13:00.004+08:00</published><updated>2009-01-05T17:35:52.022+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OpenSocial'/><title type='text'>OpenSocial开发入门(1)</title><summary type='text'>我接触OpenSocial的时间也不长，建了个Q群(76554981)，一些做OpenSocial API开发的朋友会经常一起讨论问题，发现很多朋友还没找到入门的方法，所以写一写自己目前知道的东西，希望能给希望做OpenSocial开发的朋友一点帮助。本文将讲解helloworld小程序在校内网以及iGoogle上的详细开发过程。一、前期的准备最起码要有一些javascript的知识OpenSocial API文档需要有自己的服务器，虚拟主机，也可以暂时把代码放在这里（这是Google的一个在线编辑器，使用前，请先在Google首页登录，再打开这个网址）。二、helloword小程序。 在这一步，我将讲解如何利用Google Editor写一个helloworld的小程序，并将它安装到校内网和iGoogle上。 Let's Go!编写helloworld.xml文件（这里介绍的方法是使用</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/7245345140936213743/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2008/12/opensocial1.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/7245345140936213743'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/7245345140936213743'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2008/12/opensocial1.html' title='OpenSocial开发入门(1)'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_LJHrouTQG-w/SVB30TxqzNI/AAAAAAAAJGo/jVk4Ij3-Aho/s72-c/GoogleEditor.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-2552552198943528254</id><published>2008-12-23T10:38:00.001+08:00</published><updated>2008-12-23T12:51:06.303+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='搜索'/><title type='text'>搜索引擎里影响因子权重分配的讨论</title><summary type='text'>昨天和志帅、阿星一起讨论关于我们的搜索引擎里面影响因子权重分配的问题。讨论了一晚上，仍有两个意见，但是我感觉这连个方案都存在问题。感觉我们应该好好研究一下Lucene，看看它的权重分配是怎么处理的。凡是涉及到权重分配问题都存在主观的因素，而且是只有更好，没有最好。那就好好看看Lucene的源代码，研究研究吧。 PS.只买到了《开发自己的搜索引擎 Lucene2.0+Heritrix》这本书，《Lucene IN ACTION中文版》这本以前实习的时候在那个公司看到过，非常好，但是现在当当和卓越一直无货 </summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/2552552198943528254/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2008/12/blog-post_23.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/2552552198943528254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/2552552198943528254'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2008/12/blog-post_23.html' title='搜索引擎里影响因子权重分配的讨论'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-3127658878446010224</id><published>2008-12-20T23:23:00.001+08:00</published><updated>2008-12-23T12:50:55.787+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><title type='text'>jQuery的相关文章以及链接</title><summary type='text'>http://www.jb51.net/article/12977.htmhttp://www.k99k.com/jQuery_getting_started.html http://blog.chinaunix.net/u1/55983/showart_1432872.htmlps:Google 的Ajax api中有jqueryhttp://code.google.com/intl/zh-CN/apis/ajaxlibs/ jQuery的库,最新的下载可以到这里找到。这个指南提供一个基本包含实例的包供下载. 下载：jQuery Starterkit (译者Keel注:一定要下载这个包，光看文章不实践肯定是不行的。) 下载后解压缩，然后用你最喜欢的文本编辑器打开starterkit.html和custom.js这两个文件。(译者Keel注:这两个就是例子文件,</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/3127658878446010224/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2008/12/jquery.html#comment-form' title='1 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/3127658878446010224'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/3127658878446010224'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2008/12/jquery.html' title='jQuery的相关文章以及链接'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-6840895783716868750</id><published>2008-12-20T10:29:00.000+08:00</published><updated>2009-01-05T17:35:52.026+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OpenSocial'/><title type='text'>公布两个基于Google OpenSocial的App的源代码</title><summary type='text'>一个是基于Google App Engine（Python）制作的“好友贪吃蛇”http://apps.xiaonei.com/greedysnake另外一个是自己服务器上的（PHP）Firends Fighthttp://apps.xiaonei.com/pkpkpkpk源代码都公开了，下载地址http://code.google.com/p/qiwenos/————————OpenSocial开发讨论的Q群76554981OpenSocial中文讨论组http://groups.google.com/group/opensocial-chinaOpenSocial中文文档 http://code.google.com/intl/zh-CN/apis/opensocial/docs/0.8/devguide.html</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/6840895783716868750/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2008/12/google-opensocialapp_20.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/6840895783716868750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/6840895783716868750'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2008/12/google-opensocialapp_20.html' title='公布两个基于Google OpenSocial的App的源代码'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-5301027239630114935</id><published>2008-12-20T10:25:00.002+08:00</published><updated>2009-01-05T17:35:52.029+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OpenSocial'/><title type='text'>利用Google App Engine开发你的App</title><summary type='text'>Google App Engine 中文文档 http://code.google.com/intl/zh-CN/appengine/docs/“每个免费帐户都可使用多达 500MB 的持久存储空间，以及可支持每月约 500 万页面浏览量的足够 CPU 和宽带。” PS.目前仅仅支持Python 以下便是采用Google App Engine开发的一个小游戏http://apps.xiaonei.com/greedysnake————————OpenSocial开发讨论的Q群76554981OpenSocial中文讨论组http://groups.google.com/group/opensocial-chinaOPenSociail中文文档 http://code.google.com/intl/zh-CN/apis/opensocial/docs/0.8/devguide.html</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/5301027239630114935/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2008/12/google-app-engineapp.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5301027239630114935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5301027239630114935'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2008/12/google-app-engineapp.html' title='利用Google App Engine开发你的App'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-422867953947620260</id><published>2008-12-20T10:21:00.001+08:00</published><updated>2009-01-05T17:35:52.033+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OpenSocial'/><title type='text'>在Google OpenSocial活动上演示的APP</title><summary type='text'>今天去参加了Google OpenSocial的活动，受益匪浅。 在这里看到了很多优秀的开发者，的确很佩服他们。 十分感谢Google以及各个SNS网站的工程师们 下面是我当场演示的APP(一个简单的小游戏) 好友对战 Friends Fighthttp://apps.xiaonei.com/pkpkpkpk 一个OpenSocial开发的讨论的Q群76554981OpenSocial中文文档 http://code.google.com/intl/zh-CN/apis/opensocial/docs/0.8/devguide.html</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/422867953947620260/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2008/12/google-opensocialapp.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/422867953947620260'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/422867953947620260'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2008/12/google-opensocialapp.html' title='在Google OpenSocial活动上演示的APP'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-8588471407880122511</id><published>2008-12-17T21:38:00.001+08:00</published><updated>2008-12-20T10:21:01.552+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><title type='text'>Javascript键盘响应及空格屏蔽</title><summary type='text'>&lt;input name="keytext" type="text" id="keytext" style="width:200px;" onkeydown="checkThis()"&gt;  2  &lt;SCRIPT   LANGUAGE="JavaScript"&gt;     3  &lt;!--     4  function   checkThis()     5  {     6          if(event.keyCode   ==   32)     7          {  8                  event.returnValue   =   false;     9                  alert("被替换了"); 10          } 11          document.getElementById("keytext").value = </summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/8588471407880122511/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2008/12/javascript.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/8588471407880122511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/8588471407880122511'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2008/12/javascript.html' title='Javascript键盘响应及空格屏蔽'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-540073589361670563</id><published>2008-12-17T19:13:00.001+08:00</published><updated>2008-12-20T10:21:17.463+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='CSS'/><title type='text'>用 javascript 获取页面上有选择符的 CSS 规则</title><summary type='text'>本文介绍的方法可以返回页面上有选择符的 CSS 规则，支持 &lt;link /&gt; 标签和页面内部 &lt;style&gt;&lt;/style&gt; 样式块，可以返回指定选择符下指定属性的值。  --------------------------------------------------------------点此浏览示例文件 -------------------------------------------------------------- Javascript:    &lt;script type="text/javascript"&gt;  /* ###################################################    * 说明：用 javascript 获取页面上有选择符的 CSS 规则   *       包括'内部样式块'和'外部样式表文件'    * 作者</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/540073589361670563/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2008/12/javascript-css.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/540073589361670563'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/540073589361670563'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2008/12/javascript-css.html' title='用 javascript 获取页面上有选择符的 CSS 规则'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-5645833559211268077</id><published>2008-12-15T14:58:00.001+08:00</published><updated>2008-12-20T10:21:01.558+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Javascript'/><title type='text'>ie下检测键盘事件必须document.onkeydown 不能用window.onkeydown</title><summary type='text'> ie下检测键盘事件必须document.onkeydown 不能用window.onkeydown document.onkeydown = function()     {      var oEvent = window.event;      if (oEvent.keyCode == 112) {       alert("F1");      }     } 或 document.attachEvent("onkeydown", this.listening);以下是我自己写的代码：if (window.addEventListener) {//for firefox or chrome    window.addEventListener('load', CreateMap, false);     window.addEventListener('keydown', </summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/5645833559211268077/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2008/12/iedocumentonkeydown-windowonkeydown.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5645833559211268077'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/5645833559211268077'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2008/12/iedocumentonkeydown-windowonkeydown.html' title='ie下检测键盘事件必须document.onkeydown 不能用window.onkeydown'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-3738400085883345331</id><published>2008-12-13T19:19:00.001+08:00</published><updated>2009-01-05T17:37:19.206+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='编辑器IDE'/><title type='text'>在Eclipse中使用Subversion</title><summary type='text'>原文地址：http://www.blogjava.net/coldtear/archive/2006/08/08/62290.html 一、下载插件并安装 在 Eclipse 中使用 Subversion 来进行版本控制，需要下载插件 Subclipse ，下载网址是 http://subclipse.tigris.org ，需要根据 Eclipse 的版本下载相应版本的 Subclipse ，我们这里下载针对 Eclipse3.x 的版本，当前最新版本为 subclipse-1.0.3.zip 。 解压缩后，文件夹结构如下： 在这里，我们将该文件夹拷贝到Eclipse的plugin目录下，并建立相应的目录结构，我们命名为subversion，最终的目录结构如下： 同时，我们在eclipse/links目录下，新建subversion.link文件，文件内容只有一行：path=</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/3738400085883345331/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2008/12/eclipsesubversion.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/3738400085883345331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/3738400085883345331'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2008/12/eclipsesubversion.html' title='在Eclipse中使用Subversion'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-3497712219106586181</id><published>2008-12-12T16:30:00.002+08:00</published><updated>2008-12-12T16:35:57.923+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='程序'/><title type='text'>2008 TopCoder China Tournament</title><summary type='text'>刚刚参加了第五场的比赛，3道题，时间很紧张。用Java写的，提交了两道题，第三道题已经没时间看了。这样的比赛还是很有用的吧，没事的时候，动动脑筋，想想算法PS.全英文的题目，看的我很晕，多谢Chen&amp;Jin两位同学的帮忙理解题目意思。</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/3497712219106586181/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2008/12/2008-topcoder-china-tournament.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/3497712219106586181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/3497712219106586181'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2008/12/2008-topcoder-china-tournament.html' title='2008 TopCoder China Tournament'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-4377761901924402391</id><published>2008-12-11T12:23:00.001+08:00</published><updated>2008-12-12T16:35:46.561+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL'/><title type='text'>简介Mysql中的临时表使用方法</title><summary type='text'> 当工作在非常大的表上时，你可能偶尔需要运行很多查询获得一个大量数据的小的子集，不是对整个表运行这些查询，而是让MySQL每次找出所需的少数记录，将记录选择到一个临时表可能更快些，然后多这些表运行查询。创建临时表很容易，给正常的CREATE TABLE语句加上TEMPORARY关键字：   CREATE TEMPORARY TABLE tmp_table (name VARCHAR(10) NOT NULL,value INTEGER NOT NULL) 临时表将在你连接MySQL期间存在。当你断开时，MySQL将自动删除表并释放所用的空间。当然你可以在仍然连接的时候删除表并释放空间。 DROP TABLE tmp_table 如果在你创建名为tmp_table临时表时名为tmp_table的表在数据库中已经存在，临时表将有必要屏蔽（隐藏）非临时表tmp_table。 </summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/4377761901924402391/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2008/12/mysql.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/4377761901924402391'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/4377761901924402391'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2008/12/mysql.html' title='简介Mysql中的临时表使用方法'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-8535980594920085411</id><published>2008-12-04T13:31:00.001+08:00</published><updated>2008-12-06T11:53:11.599+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL'/><title type='text'>MYSQL中SHOW的用法</title><summary type='text'>SHOW DATABASES︰列出MySQL Server上的资料库。  SHOW TABLES [FROM db_name]︰列出资料库的资料表。 SHOW TABLE STATUS [FROM db_name]︰列出资料库的资料表，提供比较详细的讯息。  SHOW COLUMNS FROM tbl_name [FROM db_name]︰列出资料表的栏位，同SHOW FIELDS FROM tbl_name [FROM db_name]，DESCRIBE tbl_name [col_name]。  SHOW FULL COLUMNS FROM tbl_name [FROM db_name]︰列出资料表的栏位，提供比较详细的讯息，同SHOW FULL FIELDS FROM tbl_name [FROM db_name]。  SHOW INDEX FROM tbl_name [FROM</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/8535980594920085411/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2008/12/mysqlshow.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/8535980594920085411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/8535980594920085411'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2008/12/mysqlshow.html' title='MYSQL中SHOW的用法'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3383698404198518469.post-4055242288441970048</id><published>2008-11-19T10:56:00.004+08:00</published><updated>2009-01-05T17:37:19.208+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='编辑器IDE'/><category scheme='http://www.blogger.com/atom/ns#' term='Java'/><category scheme='http://www.blogger.com/atom/ns#' term='程序'/><title type='text'>设置Eclipse Console字符集(UTF-8) 显示中文</title><summary type='text'>在Eclipse的Run As选项的Open Run Dialog...在左侧选中工程的名字，然后在右侧的common Tab中，把console encoding设置为UTF-8（当然也可以设置为其他的字符集），这样就可以正常的输出了。默认的字符集是GB18030</summary><link rel='replies' type='application/atom+xml' href='http://blog.qiwen.name/feeds/4055242288441970048/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://blog.qiwen.name/2008/11/eclipse-consoleutf-8.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/4055242288441970048'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3383698404198518469/posts/default/4055242288441970048'/><link rel='alternate' type='text/html' href='http://blog.qiwen.name/2008/11/eclipse-consoleutf-8.html' title='设置Eclipse Console字符集(UTF-8) 显示中文'/><author><name>沉香竹</name><uri>http://www.blogger.com/profile/09992789796925587362</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_LJHrouTQG-w/SoaCz5guBAI/AAAAAAAALck/NXHpN7FM8RY/S220/Copy-of-IMG_03791111111_.jpg'/></author><thr:total>0</thr:total></entry></feed>
