<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>漠天博客 &#187; 编程&amp;开发</title>
	<atom:link href="http://motian.org/topics/program/feed" rel="self" type="application/rss+xml" />
	<link>http://motian.org</link>
	<description>关注云计算发和物联网的发展，研究和开发开源操作系统，致力于开源项目的发展的技术性博客！</description>
	<lastBuildDate>Thu, 09 Sep 2010 15:20:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Java 7 最快要到 2012 年中发布</title>
		<link>http://motian.org/post/java-7-%e6%9c%80%e5%bf%ab%e8%a6%81%e5%88%b0-2012-%e5%b9%b4%e4%b8%ad%e5%8f%91%e5%b8%83-643.html</link>
		<comments>http://motian.org/post/java-7-%e6%9c%80%e5%bf%ab%e8%a6%81%e5%88%b0-2012-%e5%b9%b4%e4%b8%ad%e5%8f%91%e5%b8%83-643.html#comments</comments>
		<pubDate>Thu, 09 Sep 2010 15:20:26 +0000</pubDate>
		<dc:creator>漠天</dc:creator>
				<category><![CDATA[IT观察室]]></category>
		<category><![CDATA[编程&开发]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://motian.org/?p=643</guid>
		<description><![CDATA[Mark Reinhold 发了篇博客关于 Java 7 的发行计划，他在这篇博客中称，目前的 JDK 7 的发行计划完全是不现实的，主要是因为 Sun 被 Oracle 收购后增加了一些新项目(lambda, Coin, Jigsaw) 导致。 根据 JDK 7 团队的估计，完整的发行版本可能要到 2012 年中。 但 Mark Reinhold 也指出了另外一个 B 计划，那就是在 2012 年中发布不带 Jigsaw 和 Lambda 的 JDK 7 ，该版本只会包含部分的 Coin 项目。然后在 2012 年底发布 JDK8 包含完整的功能。 就个人而言，我觉得 B 计划比较好，这样我们可以更快的看到 Java 7，因为很长时间 Java 都没有发布一个新版本，因此我们对 2012 年前发布 JDK 7 的轻量级版很有兴趣。 [...]]]></description>
			<content:encoded><![CDATA[<p>Mark Reinhold 发了篇博客关于 <span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/java" title="查看 Java 的全部文章" target="_blank">Java</a></span> 7 的发行计划，他在这篇博客中称，目前的 JDK 7 的发行计划完全是不现实的，主要是因为 Sun  被 Oracle 收购后增加了一些新项目(lambda, Coin, Jigsaw) 导致。</p>
<p>根据 JDK 7 团队的估计，完整的发行版本可能要到 2012 年中。</p>
<p>但 Mark Reinhold 也指出了另外一个 B 计划，那就是在 2012 年中发布不带 <a href="http://www.oschina.net/p/jigsaw">Jigsaw</a> 和 Lambda 的 JDK 7 ，该版本只会包含部分的  Coin 项目。然后在 2012 年底发布 JDK8 包含完整的功能。</p>
<p>就个人而言，我觉得 B 计划比较好，这样我们可以更快的看到 <span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/java" title="查看 Java 的全部文章" target="_blank">Java</a></span> 7，因为很长时间 <span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/java" title="查看 Java 的全部文章" target="_blank">Java</a></span> 都没有发布一个新版本，因此我们对 2012 年前发布  JDK 7 的轻量级版很有兴趣。</p>
<p>你怎么看这个事情呢？</p>
<p>来源: <a href="http://blogs.sun.com/mr/entry/rethinking_jdk7" target="_blank">Re-thinking JDK7</a>, by Mark Reinhold</p>
<div class="similarity"><h2>扩展阅读</h2><br /><ul><li><a href="http://motian.org/post/program-java-jdk-549.html">Ubuntu下配置JAVA环境</a> (1.000)</li></ul></div><!-- Tag --><hr />
<p>© 漠天 for <a href="http://motian.org">漠天博客</a>, 2010. |
<a href="http://motian.org/post/java-7-%e6%9c%80%e5%bf%ab%e8%a6%81%e5%88%b0-2012-%e5%b9%b4%e4%b8%ad%e5%8f%91%e5%b8%83-643.html">永久链接</a> |
<a href="http://motian.org/post/java-7-%e6%9c%80%e5%bf%ab%e8%a6%81%e5%88%b0-2012-%e5%b9%b4%e4%b8%ad%e5%8f%91%e5%b8%83-643.html#comments">No comment</a> |标签: <a href="http://motian.org/tag/java" rel="tag">Java</a><br/>
<strong>收藏分享本文：</strong>
<a style="color:#333333;text-align:center;font-size:12px;" href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/weibo.gif" alt="分享到新浪微博" border="0" height="16" width="16"/></a>

<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200" title="你在做啥"><img src="http://img.motian.org/pic/wp/zuosa.gif"/></a>

<a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网"><img src="http://img.motian.org/pic/wp/kaixin.gif" alt="转贴到开心网" border="0"/></a>

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="推荐到豆瓣" rel="nofollow" ><img src="http://img.motian.org/pic/wp/douban.png" border="0" height="16" width="16"></a>

<a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="http://img.motian.org/pic/wp/googlebookmark.png" alt="Google书签" border="0" height="16" width="16"/></a>

<a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="http://img.motian.org/pic/wp/qq.png" alt="QQ书签" border="0" height="16" width="16"/></a>

<a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0"><img src="http://img.motian.org/pic/wp/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi"><img src="http://img.motian.org/pic/wp/vivi.gif" alt="Sina ViVi" border="0"/></a>

<a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow"><img src="http://img.motian.org/pic/wp/yahoo.png" alt="yahoo收藏" border="0" height="16" width="16"/></a>

<a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()"><img src="http://img.motian.org/pic/wp/delicious.gif" alt="Del.icio.us" border="0" height="16" width="16"/></a>

<a title="推荐到digg.com" href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="http://img.motian.org/pic/wp/digg.gif" alt="digg" border="0"/></a>

<a href="javascript:void(location.href='https://twitter.com/home?status=Now%20reading%20<<'+encodeURIComponent(document.title)+'>>%20'+encodeURIComponent(location.href))" title="分享到 Twitter"><img src="http://img.motian.org/pic/wp/twitter.png" alt="分享到twitter"/></a>

 <br/>
<script type="text/javascript"><!--
google_ad_client = "pub-4498164283832126";
/* 468x60, 创建于 10-8-17 */
google_ad_slot = "2152552823";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>]]></content:encoded>
			<wfw:commentRss>http://motian.org/post/java-7-%e6%9c%80%e5%bf%ab%e8%a6%81%e5%88%b0-2012-%e5%b9%b4%e4%b8%ad%e5%8f%91%e5%b8%83-643.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>c语言实现ping功能</title>
		<link>http://motian.org/post/c-ping-code-562.html</link>
		<comments>http://motian.org/post/c-ping-code-562.html#comments</comments>
		<pubDate>Sat, 12 Jun 2010 15:40:23 +0000</pubDate>
		<dc:creator>漠天</dc:creator>
				<category><![CDATA[编程&开发]]></category>
		<category><![CDATA[C/C++]]></category>

		<guid isPermaLink="false">http://motian.org/?p=562</guid>
		<description><![CDATA[PING简介 PING (Packet Internet Grope)，因特网包探索器，用于测试网络连接量的程序。Ping发送一个ICMP回声请求消息给目的地并报告是否收到所希望的ICMP回声应答。 使用 ping可以测试计算机名和计算机的 ip 地址,验证与远程计算机的连接,通过将 icmp 回显数据包发送到计算机并侦听回显回复数据包来验证与一台或多台远程计算机的连接,该命令只有在安装了 tcp/ip 协议后才可以使用。  现在打开你的ms-dos(开始→程序→ms-dos)，用win2000的朋友打开cmd.exe（这是win2000下的ms-dos，开始→程序→附件→&#8221;命令提示符&#8221; 或 开始→搜索文件或文件夹→&#8221;填入cmd.exe&#8221;,找到后双击运行就可以了。）   PING功能实现 思路： 首先构造一个ICMP数据包（类型为8，代码为0），然后通过winsoket采用原始套接字，将数据包发往目标主机，目标主机发送回显信息，然后我就可以将数据包捕获，去掉IP报头，就可以获得PING信息。 代码： /////////////////////////////////////////// // ping.cpp文件 #include &#8220;../common/initsock.h&#8221; #include &#8220;../common/protoinfo.h&#8221; #include &#8220;../common/comm.h&#8221; #include &#60;stdio.h&#62; CInitSock theSock;//初始化 USHORT checksum(USHORT* buff, int size) {  unsigned long cksum = 0;  while(size&#62;1)  {   cksum += *buff++;   size -= sizeof(USHORT);  }  // [...]]]></description>
			<content:encoded><![CDATA[<h3>PING简介</h3>
<p>PING (Packet Internet Grope)，因特网包探索器，用于测试网络连接量的程序。Ping发送一个ICMP回声请求消息给目的地并报告是否收到所希望的ICMP回声应答。<br />
使用 ping可以测试计算机名和计算机的 ip 地址,验证与远程计算机的连接,通过将 icmp 回显数据包发送到计算机并侦听回显回复数据包来验证与一台或多台远程计算机的连接,该命令只有在安装了 tcp/ip 协议后才可以使用。<br />
 现在打开你的ms-dos(开始→程序→ms-dos)，用win2000的朋友打开cmd.exe（这是win2000下的ms-dos，开始→程序→附件→&#8221;命令提示符&#8221; 或 开始→搜索文件或文件夹→&#8221;填入cmd.exe&#8221;,找到后双击运行就可以了。）</p>
<h3> <br />
PING功能实现</h3>
<p>思路：<br />
首先构造一个ICMP数据包（类型为8，代码为0），然后通过winsoket采用原始套接字，将数据包发往目标主机，目标主机发送回显信息，然后我就可以将数据包捕获，去掉IP报头，就可以获得PING信息。<br />
代码：</p>
<blockquote><p>///////////////////////////////////////////<br />
// ping.cpp文件</p>
<p>#include &#8220;../common/initsock.h&#8221;<br />
#include &#8220;../common/protoinfo.h&#8221;<br />
#include &#8220;../common/comm.h&#8221;</p>
<p>#include &lt;stdio.h&gt;<br />
CInitSock theSock;//初始化</p>
<p>USHORT checksum(USHORT* buff, int size)<br />
{<br />
 unsigned long cksum = 0;<br />
 while(size&gt;1)<br />
 {<br />
  cksum += *buff++;<br />
  size -= sizeof(USHORT);<br />
 }<br />
 // 是奇数<br />
 if(size)<br />
 {<br />
  cksum += *(UCHAR*)buff;<br />
 }<br />
 // 将32位的chsum高16位和低16位相加，然后取反<br />
 cksum = (cksum &gt;&gt; 16) + (cksum &amp; 0xffff);<br />
 cksum += (cksum &gt;&gt; 16);   // ??? <br />
 return (USHORT)(~cksum);<br />
}<br />
typedef struct icmp_hdr<br />
{<br />
    unsigned char   icmp_type;  // 消息类型<br />
    unsigned char   icmp_code;  // 代码<br />
    unsigned short  icmp_checksum; // 校验和<br />
 // 下面是回显头<br />
    unsigned short  icmp_id;  // 用来惟一标识此请求的ID号，通常设置为进程ID<br />
    unsigned short  icmp_sequence; // 序列号<br />
    unsigned long   icmp_timestamp; // 时间戳<br />
} ICMP_HDR, *PICMP_HDR;<br />
int main()<br />
{<br />
 // 目的IP地址，即要Ping的IP地址<br />
 char szDestIp[] = &#8220;192.168.20.25&#8243;; // 127.0.0.1</p>
<p> // 创建原始套节字<br />
 SOCKET sRaw = ::socket(AF_INET, SOCK_RAW, IPPROTO_ICMP);</p>
<p> // 设置接收超时<br />
 //SetTimeout(sRaw, 1000, TRUE);</p>
<p> // 设置目的地址<br />
 SOCKADDR_IN dest;<br />
 dest.sin_family = AF_INET;<br />
 dest.sin_port = htons(0);<br />
 dest.sin_addr.S_un.S_addr = inet_addr(szDestIp);</p>
<p> // 创建ICMP封包<br />
 char buff[sizeof(ICMP_HDR) + 32];<br />
 ICMP_HDR* pIcmp = (ICMP_HDR*)buff;<br />
 // 填写ICMP封包数据<br />
 pIcmp-&gt;icmp_type = 8; // 请求一个ICMP回显<br />
 pIcmp-&gt;icmp_code = 0;<br />
 pIcmp-&gt;icmp_id = (USHORT)::GetCurrentProcessId();<br />
 pIcmp-&gt;icmp_checksum = 0;<br />
 pIcmp-&gt;icmp_sequence = 0;<br />
 // 填充数据部分，可以为任意<br />
 memset(&amp;buff[sizeof(ICMP_HDR)], &#8216;E&#8217;, 32);<br />
 <br />
 // 开始发送和接收ICMP封包<br />
 USHORT nSeq = 0;<br />
 char recvBuf[1024];<br />
 SOCKADDR_IN from;<br />
 int nLen = sizeof(from);<br />
 while(TRUE)<br />
 {<br />
  //static int nCount = 0;<br />
  int nRet;<br />
  //if(nCount++ == 4)<br />
  // break;<br />
  pIcmp-&gt;icmp_checksum = 0;<br />
  pIcmp-&gt;icmp_timestamp = ::GetTickCount();<br />
  pIcmp-&gt;icmp_sequence = nSeq++;<br />
  pIcmp-&gt;icmp_checksum = checksum((USHORT*)buff, sizeof(ICMP_HDR) + 32);<br />
  nRet = ::sendto(sRaw, buff, sizeof(ICMP_HDR) + 32, 0, (SOCKADDR *)&amp;dest, sizeof(dest));<br />
  if(nRet == SOCKET_ERROR)<br />
  {<br />
   printf(&#8221; sendto() failed: %d \n&#8221;, ::WSAGetLastError());<br />
   return -1;<br />
  }<br />
  nRet = ::recvfrom(sRaw, recvBuf, 1024, 0, (sockaddr*)&amp;from, &amp;nLen);<br />
  if(nRet == SOCKET_ERROR)<br />
  {<br />
   if(::WSAGetLastError() == WSAETIMEDOUT)<br />
   {<br />
    printf(&#8221; timed out\n&#8221;);<br />
    continue;<br />
   }<br />
   printf(&#8221; recvfrom() failed: %d\n&#8221;, ::WSAGetLastError());<br />
   return -1;<br />
  }</p>
<p>  // 下面开始解析接收到的ICMP封包<br />
  int nTick = ::GetTickCount();<br />
  if(nRet &lt; sizeof(IPHeader) + sizeof(ICMP_HDR))<br />
  {<br />
   printf(&#8221; Too few bytes from %s \n&#8221;, ::inet_ntoa(from.sin_addr));<br />
  }<br />
  // 接收到的数据中包含IP头，IP头大小为20个字节，所以加20得到ICMP头<br />
  ICMP_HDR* pRecvIcmp = (ICMP_HDR*)(recvBuf + 20); // (ICMP_HDR*)(recvBuf + sizeof(IPHeader));<br />
  if(pRecvIcmp-&gt;icmp_type != 0) // 回显<br />
  {<br />
   printf(&#8221; nonecho type %d recvd \n&#8221;, pRecvIcmp-&gt;icmp_type);<br />
   return -1;<br />
  }</p>
<p> // if(pRecvIcmp-&gt;icmp_id != ::GetCurrentProcessId())<br />
 // {<br />
 //  printf(&#8221; someone else&#8217;s packet! \n&#8221;);<br />
 //  return -1;<br />
 // }<br />
  <br />
  printf(&#8221; %d bytes from %s:&#8221;, nRet, inet_ntoa(from.sin_addr));<br />
  printf(&#8221; icmp_seq = %d. &#8220;, pRecvIcmp-&gt;icmp_sequence);<br />
  printf(&#8221; time: %d ms&#8221;, nTick &#8211; pRecvIcmp-&gt;icmp_timestamp);<br />
  printf(&#8221; \n&#8221;);</p>
<p>  ::Sleep(1000);<br />
 }</p>
<p> return 0;<br />
}</p></blockquote>
<p>另外三个头文件就不贴出来了，大家可以下载下来仔细的研究吧。O(∩_∩)O哈哈~</p>
<div class="similarity"><h2>扩展阅读</h2><br /><ul><li><a href="http://motian.org/post/program-linux-gcchowto-211.html">在Linux下Gcchowto的使用</a> (1.000)</li><li><a href="http://motian.org/post/program-cc-bianyiduogeyuanwenjian-213.html">在Linux下Gcchowto编译多个源文件 </a> (1.000)</li><li><a href="http://motian.org/post/program-c-des-447.html">DES加密程序代码</a> (1.000)</li></ul></div><!-- Tag --><hr />
<p>© 漠天 for <a href="http://motian.org">漠天博客</a>, 2010. |
<a href="http://motian.org/post/c-ping-code-562.html">永久链接</a> |
<a href="http://motian.org/post/c-ping-code-562.html#comments">9 comments</a> |标签: <a href="http://motian.org/tag/cc" rel="tag">C/C++</a><br/>
<strong>收藏分享本文：</strong>
<a style="color:#333333;text-align:center;font-size:12px;" href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/weibo.gif" alt="分享到新浪微博" border="0" height="16" width="16"/></a>

<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200" title="你在做啥"><img src="http://img.motian.org/pic/wp/zuosa.gif"/></a>

<a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网"><img src="http://img.motian.org/pic/wp/kaixin.gif" alt="转贴到开心网" border="0"/></a>

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="推荐到豆瓣" rel="nofollow" ><img src="http://img.motian.org/pic/wp/douban.png" border="0" height="16" width="16"></a>

<a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="http://img.motian.org/pic/wp/googlebookmark.png" alt="Google书签" border="0" height="16" width="16"/></a>

<a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="http://img.motian.org/pic/wp/qq.png" alt="QQ书签" border="0" height="16" width="16"/></a>

<a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0"><img src="http://img.motian.org/pic/wp/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi"><img src="http://img.motian.org/pic/wp/vivi.gif" alt="Sina ViVi" border="0"/></a>

<a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow"><img src="http://img.motian.org/pic/wp/yahoo.png" alt="yahoo收藏" border="0" height="16" width="16"/></a>

<a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()"><img src="http://img.motian.org/pic/wp/delicious.gif" alt="Del.icio.us" border="0" height="16" width="16"/></a>

<a title="推荐到digg.com" href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="http://img.motian.org/pic/wp/digg.gif" alt="digg" border="0"/></a>

<a href="javascript:void(location.href='https://twitter.com/home?status=Now%20reading%20<<'+encodeURIComponent(document.title)+'>>%20'+encodeURIComponent(location.href))" title="分享到 Twitter"><img src="http://img.motian.org/pic/wp/twitter.png" alt="分享到twitter"/></a>

 <br/>
<script type="text/javascript"><!--
google_ad_client = "pub-4498164283832126";
/* 468x60, 创建于 10-8-17 */
google_ad_slot = "2152552823";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>]]></content:encoded>
			<wfw:commentRss>http://motian.org/post/c-ping-code-562.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Ubuntu下配置JAVA环境</title>
		<link>http://motian.org/post/program-java-jdk-549.html</link>
		<comments>http://motian.org/post/program-java-jdk-549.html#comments</comments>
		<pubDate>Tue, 25 May 2010 15:11:27 +0000</pubDate>
		<dc:creator>漠天</dc:creator>
				<category><![CDATA[编程&开发]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://motian.org/post/program-java-jdk-549.html</guid>
		<description><![CDATA[我是一个喜欢开源的爱好者，最近自己打算转移到Linux平台上，主要是自己为了拍拖微软更多的束缚（我想这辈子想彻底不用微软的产品比登天还难，O(∩_∩)O哈哈~）、能够彻底的了解和学习Linux系统，同时为开源出一份力。 这次我从Ubuntu网站上下载了最新的版本（10.04LTS版本)，由于前几次的安装经验，所以这次安装起来特别顺利。 由于自己最近在学习JAVA，所以在安装好系统后，当然要配置JAVA环境啦。其实，经过自己的实践发现JAVA环境的配置非常容易。 注：由于我们是在线安装，所以保证系统处于联网的状态下。 $sudo apt-get install sun-java6-jre sun-java6-sdk 这条命令就可以帮助下载并安装JAVA6了（这个时间比较长，要耐心等待啊）。 安装完这三个之后还需要写入系统变量： $sudo gedit /etc/environment 在文本编辑器里写入下面两行内容： CLASSPATH=.:/usr/lib/jvm/java-6-sun/lib JAVA_HOME=/usr/lib/jvm/java-6-sun 接下来在终端中输入命令： $java -version 终端应该返回如下字样： java version &#8220;1.6.0_03&#8243; Java(TM) SE Runtime Environment (build 1.6.0_03-b05) Java HotSpot(TM) Server VM (build 1.6.0_03-b05, mixed mode) 这就说明JAVA环境已经建立好了，你可以用文本编辑器写一个JAVA HelloWorld!程序执行一下javac编译并java来解释执行看看效果。 对于学习JAVA或者从事JAVA开发的人一定对Eclipse不陌生吧！Eclipse是一个开源免费的软件开发工具（IDE），是一个基于JAVA的可扩展的开发平台，准确来说Eclipse提供的是一个框架和一组服务， Eclipse的开放可扩展性使得Eclipse拥有大量的插件可以扩展Eclipse的开发能力和功能，不仅仅局限于JAVA开发。所以虽然 Eclipse是使用JAVA编写的，但不仅仅可以用来进行JAVA开发，还可以用于C/C++等语言的开发，只要你安装相应的插件来扩展。 Eclipse的安装非常简单，只要是从Eclipse网站上下载下来，然后放到一个目录下就可。当然我们也可以通过shell下载。 sudo tar xzvf eclipse-jee-galileo-SR2-linux-gtk-x86_64.tar.gz 扩展阅读Java 7 最快要到 2012 年中发布 (1.000) © [...]]]></description>
			<content:encoded><![CDATA[<p>我是一个喜欢开源的爱好者，最近自己打算转移到Linux平台上，主要是自己为了拍拖微软更多的束缚（我想这辈子想彻底不用微软的产品比登天还难，O(∩_∩)O哈哈~）、能够彻底的了解和学习Linux系统，同时为开源出一份力。</p>
<p>这次我从Ubuntu网站上下载了最新的版本（10.04LTS版本)，由于前几次的安装经验，所以这次安装起来特别顺利。</p>
<p>由于自己最近在学习JAVA，所以在安装好系统后，当然要配置JAVA环境啦。其实，经过自己的实践发现JAVA环境的配置非常容易。</p>
<p>注：由于我们是在线安装，所以保证系统处于联网的状态下。</p>
<p>$sudo apt-get install sun-java6-jre sun-java6-sdk<br />
这条命令就可以帮助下载并安装JAVA6了（这个时间比较长，要耐心等待啊）。</p>
<p>安装完这三个之后还需要写入系统变量：<br />
$sudo gedit /etc/environment<br />
在文本编辑器里写入下面两行内容：</p>
<p>CLASSPATH=.:/usr/lib/jvm/java-6-sun/lib<br />
JAVA_HOME=/usr/lib/jvm/java-6-sun</p>
<p>接下来在终端中输入命令：<br />
$java -version<br />
终端应该返回如下字样：<br />
java version &#8220;1.6.0_03&#8243;<br />
<span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/java" title="查看 Java 的全部文章" target="_blank">Java</a></span>(TM) SE Runtime Environment (build 1.6.0_03-b05)<br />
<span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/java" title="查看 Java 的全部文章" target="_blank">Java</a></span> HotSpot(TM) Server VM (build 1.6.0_03-b05, mixed mode)</p>
<p>这就说明JAVA环境已经建立好了，你可以用文本编辑器写一个JAVA HelloWorld!程序执行一下javac编译并java来解释执行看看效果。</p>
<p>对于学习JAVA或者从事JAVA开发的人一定对Eclipse不陌生吧！Eclipse是一个开源免费的软件开发工具（IDE），是一个基于JAVA的可扩展的开发平台，准确来说Eclipse提供的是一个框架和一组服务， Eclipse的开放可扩展性使得Eclipse拥有大量的插件可以扩展Eclipse的开发能力和功能，不仅仅局限于JAVA开发。所以虽然 Eclipse是使用JAVA编写的，但不仅仅可以用来进行JAVA开发，还可以用于C/C++等语言的开发，只要你安装相应的插件来扩展。</p>
<p>Eclipse的安装非常简单，只要是从Eclipse网站上下载下来，然后放到一个目录下就可。当然我们也可以通过shell下载。</p>
<p>sudo tar xzvf eclipse-jee-galileo-SR2-linux-gtk-x86_64.tar.gz</p>
<div class="similarity"><h2>扩展阅读</h2><br /><ul><li><a href="http://motian.org/post/java-7-%e6%9c%80%e5%bf%ab%e8%a6%81%e5%88%b0-2012-%e5%b9%b4%e4%b8%ad%e5%8f%91%e5%b8%83-643.html">Java 7 最快要到 2012 年中发布</a> (1.000)</li></ul></div><!-- Tag --><hr />
<p>© 漠天 for <a href="http://motian.org">漠天博客</a>, 2010. |
<a href="http://motian.org/post/program-java-jdk-549.html">永久链接</a> |
<a href="http://motian.org/post/program-java-jdk-549.html#comments">11 comments</a> |标签: <a href="http://motian.org/tag/java" rel="tag">Java</a><br/>
<strong>收藏分享本文：</strong>
<a style="color:#333333;text-align:center;font-size:12px;" href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/weibo.gif" alt="分享到新浪微博" border="0" height="16" width="16"/></a>

<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200" title="你在做啥"><img src="http://img.motian.org/pic/wp/zuosa.gif"/></a>

<a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网"><img src="http://img.motian.org/pic/wp/kaixin.gif" alt="转贴到开心网" border="0"/></a>

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="推荐到豆瓣" rel="nofollow" ><img src="http://img.motian.org/pic/wp/douban.png" border="0" height="16" width="16"></a>

<a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="http://img.motian.org/pic/wp/googlebookmark.png" alt="Google书签" border="0" height="16" width="16"/></a>

<a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="http://img.motian.org/pic/wp/qq.png" alt="QQ书签" border="0" height="16" width="16"/></a>

<a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0"><img src="http://img.motian.org/pic/wp/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi"><img src="http://img.motian.org/pic/wp/vivi.gif" alt="Sina ViVi" border="0"/></a>

<a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow"><img src="http://img.motian.org/pic/wp/yahoo.png" alt="yahoo收藏" border="0" height="16" width="16"/></a>

<a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()"><img src="http://img.motian.org/pic/wp/delicious.gif" alt="Del.icio.us" border="0" height="16" width="16"/></a>

<a title="推荐到digg.com" href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="http://img.motian.org/pic/wp/digg.gif" alt="digg" border="0"/></a>

<a href="javascript:void(location.href='https://twitter.com/home?status=Now%20reading%20<<'+encodeURIComponent(document.title)+'>>%20'+encodeURIComponent(location.href))" title="分享到 Twitter"><img src="http://img.motian.org/pic/wp/twitter.png" alt="分享到twitter"/></a>

 <br/>
<script type="text/javascript"><!--
google_ad_client = "pub-4498164283832126";
/* 468x60, 创建于 10-8-17 */
google_ad_slot = "2152552823";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>]]></content:encoded>
			<wfw:commentRss>http://motian.org/post/program-java-jdk-549.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>RSA算法（C++）源代码及分析</title>
		<link>http://motian.org/post/safte-rsa-code-c-537.html</link>
		<comments>http://motian.org/post/safte-rsa-code-c-537.html#comments</comments>
		<pubDate>Fri, 07 May 2010 14:47:14 +0000</pubDate>
		<dc:creator>漠天</dc:creator>
				<category><![CDATA[博客杂文]]></category>
		<category><![CDATA[编程&开发]]></category>
		<category><![CDATA[安全技术]]></category>

		<guid isPermaLink="false">http://motian.org/post/rsa%e7%ae%97%e6%b3%95%ef%bc%88c%ef%bc%89%e6%ba%90%e4%bb%a3%e7%a0%81%e5%8f%8a%e5%88%86%e6%9e%90-537.html</guid>
		<description><![CDATA[ 1. 概述 当前最著名、应用最广泛的公钥系统RSA是在1978年，由美国麻省理工学院(MIT)的Rivest、Shamir和Adleman在题为《获得数字签名和公开钥密码系统的方法》的论文中提出的。它是一个基于数论的非对称(公开钥)密码体制，是一种分组密码体制。其名称来自于三个发明者的姓名首字母。 它的安全性是基于大整数素因子分解的困难性，而大整数因子分解问题是数学上的著名难题，至今没有有效的方法予以解决，因此可以确保RSA算法的安全性。RSA系统是公钥系统的最具有典型意义的方法，大多数使用公钥密码进行加密和数字签名的产品和标准使用的都是RSA算法。  RSA算法是第一个既能用于数据加密也能用于数字签名的算法，因此它为公用网络上信息的加密和鉴别提供了一种基本的方法。它通常是先生成一对RSA 密钥，其中之一是保密密钥，由用户保存；另一个为公开密钥，可对外公开，甚至可在网络服务器中注册，人们用公钥加密文件发送给个人，个人就可以用私钥解密接受。为提高保密强度，RSA密钥至少为500位长，一般推荐使用1024位。  2.RSA算法的思想 (1) 确定密钥的宽度。 (2) 随机选择两个不同的素数p处q，它们的宽度是密钥宽度的二分之一。 (3) 计算出p和q的乘积n=p*q 。 (4) 在2和Φ(n)之间随机选择一个数e , e 必须和Φ(n)互素，整数e用做加密密钥（其中Φ(n)=(p-1)*(q-1)）。 (5) 从公式ed ≡ 1 mod Φ(n)中求出解密密钥d 。 (6) 得公钥（e ，n ）, 私钥 (d , n) 。 (7) 公开公钥，但不公开私钥。 (8) 将明文P (假设P是一个小于n的整数)加密为密文C，计算方法为：  C = Pe mod n(9) 将密文C解密为明文P，计算方法为：  P = Cd mod n然而只根据n和e（不是p和q）要计算出d是不可能的。因此，任何人都可对明文进行加密，但只有授权用户（知道d）才可对密文解密  3.编程 本程序采用了C++编程语言，使用了MFC框架编写。至于代码太多，我就不详细的写出来了，感兴趣的可以下载下来慢慢研究啊。  本下载文件包括源代码以及编译后的文件，至于效果图就是请看下面的图片：  扩展阅读对付恶意网站诡计的六大绝招 [...]]]></description>
			<content:encoded><![CDATA[<p><strong> </strong><strong>1. 概述<br />
</strong><br />
当前最著名、应用最广泛的公钥系统RSA是在1978年，由美国麻省理工学院(MIT)的Rivest、Shamir和Adleman在题为《获得数字签名和公开钥密码系统的方法》的论文中提出的。它是一个基于数论的非对称(公开钥)密码体制，是一种分组密码体制。其名称来自于三个发明者的姓名首字母。 它的安全性是基于大整数素因子分解的困难性，而大整数因子分解问题是数学上的著名难题，至今没有有效的方法予以解决，因此可以确保RSA算法的安全性。RSA系统是公钥系统的最具有典型意义的方法，大多数使用公钥密码进行加密和数字签名的产品和标准使用的都是RSA算法。 </p>
<p>RSA算法是第一个既能用于数据加密也能用于数字签名的算法，因此它为公用网络上信息的加密和鉴别提供了一种基本的方法。它通常是先生成一对RSA 密钥，其中之一是保密密钥，由用户保存；另一个为公开密钥，可对外公开，甚至可在网络服务器中注册，人们用公钥加密文件发送给个人，个人就可以用私钥解密接受。为提高保密强度，RSA密钥至少为500位长，一般推荐使用1024位。 </p>
<h3>2.RSA算法的思想</h3>
<p>(1) 确定密钥的宽度。<br />
(2) 随机选择两个不同的素数p处q，它们的宽度是密钥宽度的二分之一。<br />
(3) 计算出p和q的乘积n=p*q 。<br />
(4) 在2和Φ(n)之间随机选择一个数e , e 必须和Φ(n)互素，整数e用做加密密钥（其中Φ(n)=(p-1)*(q-1)）。<br />
(5) 从公式ed ≡ 1 mod Φ(n)中求出解密密钥d 。<br />
(6) 得公钥（e ，n ）, 私钥 (d , n) 。<br />
(7) 公开公钥，但不公开私钥。<br />
(8) 将明文P (假设P是一个小于n的整数)加密为密文C，计算方法为： </p>
<p>C = P<sup>e</sup> mod n(9) 将密文C解密为明文P，计算方法为： </p>
<p>P = C<sup>d</sup> mod n然而只根据n和e（不是p和q）要计算出d是不可能的。因此，任何人都可对明文进行加密，但只有授权用户（知道d）才可对密文解密 </p>
<h3>3.编程</h3>
<p>本程序采用了C++编程语言，使用了MFC框架编写。至于代码太多，我就不详细的写出来了，感兴趣的可以下载下来慢慢研究啊。 </p>
<p>本下载文件包括源代码以及编译后的文件，至于效果图就是请看下面的图片： </p>
<p style="text-align: center;"><img style="display: inline;" title="RSA" src="http://img.motian.org/images/rsa.png" alt="RSA" width="550" height="520" /></p>
<div class="similarity"><h2>扩展阅读</h2><br /><ul><li><a href="http://motian.org/post/safe-safes-eyi-wangzhan-154.html">对付恶意网站诡计的六大绝招 </a> (1.000)</li><li><a href="http://motian.org/post/ssafe-safe-shougongshadu-182.html">使用分析系统日志工具，手工查毒轻松搞定</a> (1.000)</li><li><a href="http://motian.org/post/safe-safes-bimian-cengwang-207.html">如何避免被人蹭网</a> (1.000)</li></ul></div><!-- Tag --><hr />
<p>© 漠天 for <a href="http://motian.org">漠天博客</a>, 2010. |
<a href="http://motian.org/post/safte-rsa-code-c-537.html">永久链接</a> |
<a href="http://motian.org/post/safte-rsa-code-c-537.html#comments">12 comments</a> |标签: <a href="http://motian.org/tag/safes" rel="tag">安全技术</a><br/>
<strong>收藏分享本文：</strong>
<a style="color:#333333;text-align:center;font-size:12px;" href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/weibo.gif" alt="分享到新浪微博" border="0" height="16" width="16"/></a>

<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200" title="你在做啥"><img src="http://img.motian.org/pic/wp/zuosa.gif"/></a>

<a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网"><img src="http://img.motian.org/pic/wp/kaixin.gif" alt="转贴到开心网" border="0"/></a>

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="推荐到豆瓣" rel="nofollow" ><img src="http://img.motian.org/pic/wp/douban.png" border="0" height="16" width="16"></a>

<a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="http://img.motian.org/pic/wp/googlebookmark.png" alt="Google书签" border="0" height="16" width="16"/></a>

<a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="http://img.motian.org/pic/wp/qq.png" alt="QQ书签" border="0" height="16" width="16"/></a>

<a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0"><img src="http://img.motian.org/pic/wp/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi"><img src="http://img.motian.org/pic/wp/vivi.gif" alt="Sina ViVi" border="0"/></a>

<a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow"><img src="http://img.motian.org/pic/wp/yahoo.png" alt="yahoo收藏" border="0" height="16" width="16"/></a>

<a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()"><img src="http://img.motian.org/pic/wp/delicious.gif" alt="Del.icio.us" border="0" height="16" width="16"/></a>

<a title="推荐到digg.com" href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="http://img.motian.org/pic/wp/digg.gif" alt="digg" border="0"/></a>

<a href="javascript:void(location.href='https://twitter.com/home?status=Now%20reading%20<<'+encodeURIComponent(document.title)+'>>%20'+encodeURIComponent(location.href))" title="分享到 Twitter"><img src="http://img.motian.org/pic/wp/twitter.png" alt="分享到twitter"/></a>

 <br/>
<script type="text/javascript"><!--
google_ad_client = "pub-4498164283832126";
/* 468x60, 创建于 10-8-17 */
google_ad_slot = "2152552823";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>]]></content:encoded>
			<wfw:commentRss>http://motian.org/post/safte-rsa-code-c-537.html/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>DES加密程序代码</title>
		<link>http://motian.org/post/program-c-des-447.html</link>
		<comments>http://motian.org/post/program-c-des-447.html#comments</comments>
		<pubDate>Sun, 11 Apr 2010 14:15:01 +0000</pubDate>
		<dc:creator>漠天</dc:creator>
				<category><![CDATA[编程&开发]]></category>
		<category><![CDATA[C/C++]]></category>

		<guid isPermaLink="false">http://motian.org/post/program-c-des-447.html</guid>
		<description><![CDATA[这个学期学习了《网络安全》这门课，最近学到了加密算法，从古典加密到现代加密，人类经过经过了原始、低级、简单加密到复杂、高级、计算加密的阶段，加密算法由政府等重要的部门使用，到现在的商业以及我们现在天天使用的加密技术。应该说加密算法在计算机时代得到了飞速的发展，这是由于信息的极度膨胀和人类交流密集引起的需求。最近对于初期的DES仔细研究了下，有点困难啊。 DES百科 数据加密标准 (DES)是一种加密算法（一种加密信息的方法），1976年被美国联邦政府的联邦信息处理标准（FIPS）所选中，随后既在国际上广泛流传开来。这个算法因为包含一些机密设计元素，相关的短密钥长度以及被怀疑内含美国国家安全局（NSA）的后门而在开始是有争议的，DES因此收到强烈的学院派式的审查，并以此推动了现代的分组密码及其密码分析。 DES现在已经不视为一种安全的加密算法，因为它使用的56位秘钥过短，以现代计算能力，24小时内即可能被破解。也有一些分析报告提出了该算法的理论上的弱点，虽然实际情况未必出现。该标准在最近已经被高级加密标准（AES）所取代。 DES实验代码 void main() { int i=0; char ch; char a[255]; FILE* fp; // 密钥设置 char key[]={0,2,1,0,9,4,5,1,7,8,5,0,7,2,8}; // 设置明文 //char plain_text[]=&#8221;Welcome to DES world! It is wonderful!&#8221;; fp=fopen(string(string(&#8220;D:\&#8221;)+string(&#8220;dongxing.txt&#8221;)).c_str() ,&#8221;r&#8221;); if(fp==Null) { cout&#60;&#60;&#8221;wrong&#8221;&#60;&#60;endl; exit(1); } while((ch=getc(fp))!=EOF) a[i++]=putchar(ch); fclose(fp); long datalen; datalen=sizeof(plain_text); char encrypt_text[255]; // 密文 char decrypt_text[255]; // 解密文 memset(encrypt_text,0,sizeof(encrypt_text)); memset(decrypt_text,0,sizeof(decrypt_text)); printf(&#8220;\nDES加密前的明文:\n&#8221;); [...]]]></description>
			<content:encoded><![CDATA[<p>这个学期学习了《网络安全》这门课，最近学到了加密算法，从古典加密到现代加密，人类经过经过了原始、低级、简单加密到复杂、高级、计算加密的阶段，加密算法由政府等重要的部门使用，到现在的商业以及我们现在天天使用的加密技术。应该说加密算法在计算机时代得到了飞速的发展，这是由于信息的极度膨胀和人类交流密集引起的需求。最近对于初期的DES仔细研究了下，有点困难啊。</p>
<h3>DES百科</h3>
<p>数据加密标准 (DES)是一种加密算法（一种加密信息的方法），1976年被美国联邦政府的联邦信息处理标准（FIPS）所选中，随后既在国际上广泛流传开来。这个算法因为包含一些机密设计元素，相关的短密钥长度以及被怀疑内含美国国家安全局（NSA）的后门而在开始是有争议的，DES因此收到强烈的学院派式的审查，并以此推动了现代的分组密码及其密码分析。</p>
<p>DES现在已经不视为一种安全的加密算法，因为它使用的56位秘钥过短，以现代计算能力，24小时内即可能被破解。也有一些分析报告提出了该算法的理论上的弱点，虽然实际情况未必出现。该标准在最近已经被高级加密标准（AES）所取代。 </p>
<h3>DES实验代码</h3>
<blockquote><p>void main() <br />{ <br />int i=0; <br />char ch; <br />char a[255]; <br />FILE* fp; <br />// 密钥设置 <br />char key[]={0,2,1,0,9,4,5,1,7,8,5,0,7,2,8}; <br />// 设置明文 <br />//char plain_text[]=&#8221;Welcome to DES world! It is wonderful!&#8221;; <br />fp=fopen(string(string(&#8220;D:\&#8221;)+string(&#8220;dongxing.txt&#8221;)).c_str() ,&#8221;r&#8221;); <br />if(fp==Null) <br />{ <br />cout&lt;&lt;&#8221;wrong&#8221;&lt;&lt;endl; <br />exit(1); <br />} <br />while((ch=getc(fp))!=EOF) <br />a[i++]=putchar(ch); <br />fclose(fp);</p>
<p>long datalen; <br />datalen=sizeof(plain_text); <br />char encrypt_text[255]; // 密文 <br />char decrypt_text[255]; // 解密文</p>
<p>memset(encrypt_text,0,sizeof(encrypt_text)); <br />memset(decrypt_text,0,sizeof(decrypt_text));</p>
<p>printf(&#8220;\nDES加密前的明文:\n&#8221;); <br />printf(&#8220;%s\n\n&#8221;,plain_text);</p>
<p>// 进行DES加密 <br />DES_Act(encrypt_text, plain_text, sizeof(plain_text), key, sizeof(key), ENCRYPT); <br />printf(&#8220;\nDES加密后的密文:\n&#8221;); <br />printf(&#8220;%s\n\n&#8221;,encrypt_text);</p>
<p>DES_Act(decrypt_text, encrypt_text, sizeof(plain_text), key, sizeof(key), DECRYPT); <br />printf(&#8220;\n解密后的输出:\n&#8221;); <br />printf(&#8220;%s&#8221;,decrypt_text);</p>
<p>getchar(); <br />}</p>
</blockquote>
<p>由于涉及到的代码比较多，我在这只是贴出主函数的代码，如果需要，可以下载下面的文件。</p>
<p><strong>DES加密程序下载：<a href="http://bbs.motian.org/topic7-des.html" target="_blank" title="DES加密程序">DES.CPP</a></strong></p>
<div class="similarity"><h2>扩展阅读</h2><br /><ul><li><a href="http://motian.org/post/program-linux-gcchowto-211.html">在Linux下Gcchowto的使用</a> (1.000)</li><li><a href="http://motian.org/post/program-cc-bianyiduogeyuanwenjian-213.html">在Linux下Gcchowto编译多个源文件 </a> (1.000)</li><li><a href="http://motian.org/post/c-ping-code-562.html">c语言实现ping功能</a> (1.000)</li></ul></div><!-- Tag --><hr />
<p>© 漠天 for <a href="http://motian.org">漠天博客</a>, 2010. |
<a href="http://motian.org/post/program-c-des-447.html">永久链接</a> |
<a href="http://motian.org/post/program-c-des-447.html#comments">6 comments</a> |标签: <a href="http://motian.org/tag/cc" rel="tag">C/C++</a><br/>
<strong>收藏分享本文：</strong>
<a style="color:#333333;text-align:center;font-size:12px;" href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/weibo.gif" alt="分享到新浪微博" border="0" height="16" width="16"/></a>

<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200" title="你在做啥"><img src="http://img.motian.org/pic/wp/zuosa.gif"/></a>

<a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网"><img src="http://img.motian.org/pic/wp/kaixin.gif" alt="转贴到开心网" border="0"/></a>

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="推荐到豆瓣" rel="nofollow" ><img src="http://img.motian.org/pic/wp/douban.png" border="0" height="16" width="16"></a>

<a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="http://img.motian.org/pic/wp/googlebookmark.png" alt="Google书签" border="0" height="16" width="16"/></a>

<a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="http://img.motian.org/pic/wp/qq.png" alt="QQ书签" border="0" height="16" width="16"/></a>

<a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0"><img src="http://img.motian.org/pic/wp/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi"><img src="http://img.motian.org/pic/wp/vivi.gif" alt="Sina ViVi" border="0"/></a>

<a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow"><img src="http://img.motian.org/pic/wp/yahoo.png" alt="yahoo收藏" border="0" height="16" width="16"/></a>

<a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()"><img src="http://img.motian.org/pic/wp/delicious.gif" alt="Del.icio.us" border="0" height="16" width="16"/></a>

<a title="推荐到digg.com" href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="http://img.motian.org/pic/wp/digg.gif" alt="digg" border="0"/></a>

<a href="javascript:void(location.href='https://twitter.com/home?status=Now%20reading%20<<'+encodeURIComponent(document.title)+'>>%20'+encodeURIComponent(location.href))" title="分享到 Twitter"><img src="http://img.motian.org/pic/wp/twitter.png" alt="分享到twitter"/></a>

 <br/>
<script type="text/javascript"><!--
google_ad_client = "pub-4498164283832126";
/* 468x60, 创建于 10-8-17 */
google_ad_slot = "2152552823";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>]]></content:encoded>
			<wfw:commentRss>http://motian.org/post/program-c-des-447.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>让迅雷下载的胃口更大</title>
		<link>http://motian.org/post/program-soft-use-xunlei-445.html</link>
		<comments>http://motian.org/post/program-soft-use-xunlei-445.html#comments</comments>
		<pubDate>Tue, 06 Apr 2010 15:14:50 +0000</pubDate>
		<dc:creator>漠天</dc:creator>
				<category><![CDATA[编程&开发]]></category>
		<category><![CDATA[软件应用]]></category>

		<guid isPermaLink="false">http://motian.org/post/program-soft-use-xunlei-445.html</guid>
		<description><![CDATA[许多软件下载网站提供的下载链接都是专用的下载链接，比如网际快车、QQ旋风之类的，有的用户选择使用&#8221;专用链接转换&#8221;软件来将这些专用的下载链接转换为普通的链接后在进行下载，不过这种方法显然比较麻烦。其实，我们完全可以利用一款补丁来改善迅雷的胃口，让迅雷也能下载网际快车、QQ旋风的专用下载链接。 首先下载补丁文件，下载解压后，把解压包里的两个文，件&#8221;LinkSimulate.dll &#8220;和&#8221;注册组件.bat&#8221;复制到&#8221;D:\Program Files\Thunder Networks\ComDlls&#8221;文件下（即迅雷安装目录下的ComDlls文件下），然后双击运行&#8221;注册组件.bat&#8221;文件。就这么简单，至此已经完成了！ 下载：迅雷补丁 扩展阅读常见客户端HTTP请求返回代码 (1.000)和迅雷广告说:“Bey-Bey” (1.000) 2009年SNS社区源码大集合 (1.000)轻松清理右键菜单 (1.000)Visual Studio 2008 破解大法（win7版） (1.000)小红伞合法永久免费试用 (1.000) © 漠天 for 漠天博客, 2010. &#124; 永久链接 &#124; 3 comments &#124;标签: 软件应用 收藏分享本文：]]></description>
			<content:encoded><![CDATA[<p>许多软件<a href="http://bbs.motian.org/post7.html#p7" target="_blank" title="下载 补丁">下载</a>网站提供的下载链接都是专用的下载链接，比如网际快车、QQ旋风之类的，有的用户选择使用&#8221;专用链接转换&#8221;软件来将这些专用的下载链接转换为普通的链接后在进行下载，不过这种方法显然比较麻烦。其实，我们完全可以利用一款补丁来改善迅雷的胃口，让迅雷也能下载网际快车、QQ旋风的专用下载链接。</p>
<p>首先下载补丁文件，下载解压后，把解压包里的两个文，件&#8221;LinkSimulate.dll &#8220;和&#8221;注册组件.bat&#8221;复制到&#8221;D:\Program Files\Thunder Networks\ComDlls&#8221;文件下（即迅雷安装目录下的ComDlls文件下），然后双击运行&#8221;注册组件.bat&#8221;文件。就这么简单，至此已经完成了！</p>
<p><strong>下载：<a href="http://bbs.motian.org/post7.html#p7" target="_blank" title="补丁 下载">迅雷补丁</a></strong></p>
<div class="similarity"><h2>扩展阅读</h2><br /><ul><li><a href="http://motian.org/post/soft-softapplication-http-71.html">常见客户端HTTP请求返回代码</a> (1.000)</li><li><a href="http://motian.org/post/soft-application-xunlei-guanggao-105.html">和迅雷广告说:“Bey-Bey”</a> (1.000)</li><li><a href="http://motian.org/post/soft-soft-2009-sns-146.html"> 2009年SNS社区源码大集合</a> (1.000)</li><li><a href="http://motian.org/post/qingli-youjian-caidan-403.html">轻松清理右键菜单</a> (1.000)</li><li><a href="http://motian.org/post/visual-studio-2008-577.html">Visual Studio 2008 破解大法（win7版）</a> (1.000)</li><li><a href="http://motian.org/post/new-avant-free-use-633.html">小红伞合法永久免费试用 </a> (1.000)</li></ul></div><!-- Tag --><hr />
<p>© 漠天 for <a href="http://motian.org">漠天博客</a>, 2010. |
<a href="http://motian.org/post/program-soft-use-xunlei-445.html">永久链接</a> |
<a href="http://motian.org/post/program-soft-use-xunlei-445.html#comments">3 comments</a> |标签: <a href="http://motian.org/tag/soft-apply" rel="tag">软件应用</a><br/>
<strong>收藏分享本文：</strong>
<a style="color:#333333;text-align:center;font-size:12px;" href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/weibo.gif" alt="分享到新浪微博" border="0" height="16" width="16"/></a>

<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200" title="你在做啥"><img src="http://img.motian.org/pic/wp/zuosa.gif"/></a>

<a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网"><img src="http://img.motian.org/pic/wp/kaixin.gif" alt="转贴到开心网" border="0"/></a>

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="推荐到豆瓣" rel="nofollow" ><img src="http://img.motian.org/pic/wp/douban.png" border="0" height="16" width="16"></a>

<a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="http://img.motian.org/pic/wp/googlebookmark.png" alt="Google书签" border="0" height="16" width="16"/></a>

<a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="http://img.motian.org/pic/wp/qq.png" alt="QQ书签" border="0" height="16" width="16"/></a>

<a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0"><img src="http://img.motian.org/pic/wp/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi"><img src="http://img.motian.org/pic/wp/vivi.gif" alt="Sina ViVi" border="0"/></a>

<a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow"><img src="http://img.motian.org/pic/wp/yahoo.png" alt="yahoo收藏" border="0" height="16" width="16"/></a>

<a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()"><img src="http://img.motian.org/pic/wp/delicious.gif" alt="Del.icio.us" border="0" height="16" width="16"/></a>

<a title="推荐到digg.com" href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="http://img.motian.org/pic/wp/digg.gif" alt="digg" border="0"/></a>

<a href="javascript:void(location.href='https://twitter.com/home?status=Now%20reading%20<<'+encodeURIComponent(document.title)+'>>%20'+encodeURIComponent(location.href))" title="分享到 Twitter"><img src="http://img.motian.org/pic/wp/twitter.png" alt="分享到twitter"/></a>

 <br/>
<script type="text/javascript"><!--
google_ad_client = "pub-4498164283832126";
/* 468x60, 创建于 10-8-17 */
google_ad_slot = "2152552823";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>]]></content:encoded>
			<wfw:commentRss>http://motian.org/post/program-soft-use-xunlei-445.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>推荐几款热门的Ajax/JavaScript脚本</title>
		<link>http://motian.org/post/diary-share-ajax-javascript-426.html</link>
		<comments>http://motian.org/post/diary-share-ajax-javascript-426.html#comments</comments>
		<pubDate>Sun, 07 Mar 2010 13:36:57 +0000</pubDate>
		<dc:creator>漠天</dc:creator>
				<category><![CDATA[编程&开发]]></category>
		<category><![CDATA[资源分享]]></category>

		<guid isPermaLink="false">http://motian.org/?p=426</guid>
		<description><![CDATA[ Dojo Dojo是一个强大的面向对象JavaScript框架。主要由三大模块组成：Core、Dijit、DojoX。Core提供Ajax，events，packaging，CSS-based querying，animations，JSON等相关操作API。Dijit是一个可更换皮肤，基于模板的WEB UI控件库。DojoX包括一些创新/新颖的代码和控件：DateGrid，charts，离线应用，跨浏览器矢量绘图等。 Dojo  Yahoo! User Interface Library Yahoo! User Interface (YUI) Library是一组采用DOM scripting，DHTML和Ajax等技术开发的Web UI控件和工具。当前提供的控件有： AutoComplete Button Calendar Charts Color Picker Container（包括：Module、Overlay、Panel、Tooltip、Dialog、SimpleDialog） DataTable ImageCropper Layout Manager Menu Rich Text Editor Slider TabView TreeView Uploader Yahoo! User Interface Library  jQuery   jQuery是一个快速、简洁的JavaScript框架，帮助你简化查询DOM对象，处理事件，制作动画，和处理Ajax交互过程。利用jQuery将改变你编写JavaScript代码的方式。原先用20行代码完成的功能，jQuery用10行就可以轻松搞定。 jQuery  MooTools   MooTools是一个简洁，模块化，面向对象的JavaScript框架。它能够帮助你更快，更简单地编写可扩展和兼容性强的JavaScript代码。 Mootools从Prototype.js中汲取了许多有益的设计理念，语法也和其极其类似。但它提供的功能要比Prototype.js多，整体设计也比Prototype.js要相对完善，功能更强大，比如增加了动画特效、拖放操作等等。  MooTools  prototype prototype是一个易于使用、面向对象的JavaScript框架。它封装并简化和扩展一些在Web开发过程中常用到JavaScript方法与Ajax交互处理过程。 prototype  qooxdoo   qooxdoo是一个用于开发Ajax应用程序的GUI框架。不需要HTML,CSS,DOM知识，采用面向对象的JavaScript API就能够开发出类似于Window桌面风格的Web应用程序。 [...]]]></description>
			<content:encoded><![CDATA[<h4 onclick="DictFold('PWDECMEC1');">
<div> Dojo</div>
</h4>
<div id="dictc_PWDECMEC1">
<div>Dojo是一个强大的面向对象JavaScript框架。主要由三大模块组成：Core、Dijit、DojoX。Core提供Ajax，events，packaging，CSS-based querying，animations，JSON等相关操作API。Dijit是一个可更换皮肤，基于模板的WEB UI控件库。DojoX包括一些创新/新颖的代码和控件：DateGrid，charts，离线应用，跨浏览器矢量绘图等。<br />
<img src="http://www.open-open.com/ajax/pimage/dojo.jpg" border="0" alt="" /></div>
<div><a href="http://www.open-open.com/ajax/ajax20080723165505.htm">Dojo</a></div>
</div>
<h4 onclick="DictFold('PWDECMEC2');">
<div> Yahoo! User Interface Library</div>
</h4>
<div id="dictc_PWDECMEC2">
<div>Yahoo! User Interface (YUI) Library是一组采用DOM scripting，DHTML和Ajax等技术开发的Web UI控件和工具。当前提供的控件有：</div>
<li>AutoComplete</li>
<li>Button</li>
<li>Calendar</li>
<li>Charts</li>
<li>Color Picker</li>
<li>Container（包括：Module、Overlay、Panel、Tooltip、Dialog、SimpleDialog）</li>
<li>DataTable</li>
<li>ImageCropper</li>
<li>Layout Manager</li>
<li>Menu</li>
<li>Rich Text Editor</li>
<li>Slider</li>
<li>TabView</li>
<li>TreeView</li>
<li>Uploader<br />
<img src="http://www.open-open.com/ajax/pimage/yui_editor.jpg" border="0" alt="" /></li>
<li><a href="http://www.open-open.com/ajax/ajax20080723165558.htm">Yahoo! User Interface Library</a></li>
</div>
<h4 onclick="DictFold('PWDECMEC3');">
<div> jQuery</div>
<div> </div>
</h4>
<div id="dictc_PWDECMEC3">
<div>jQuery是一个快速、简洁的JavaScript框架，帮助你简化查询DOM对象，处理事件，制作动画，和处理Ajax交互过程。利用jQuery将改变你编写JavaScript代码的方式。原先用20行代码完成的功能，jQuery用10行就可以轻松搞定。<br />
<img src="http://www.open-open.com/ajax/pimage/jquery.jpg" border="0" alt="" /></div>
<div><a href="http://www.open-open.com/ajax/ajax20080723165656.htm">jQuery</a></div>
</div>
<h4 onclick="DictFold('PWDECMEC4');">
<div> MooTools</div>
<div> </div>
</h4>
<div id="dictc_PWDECMEC4">
<div>MooTools是一个简洁，模块化，面向对象的JavaScript框架。它能够帮助你更快，更简单地编写可扩展和兼容性强的JavaScript代码。 Mootools从Prototype.js中汲取了许多有益的设计理念，语法也和其极其类似。但它提供的功能要比Prototype.js多，整体设计也比Prototype.js要相对完善，功能更强大，比如增加了动画特效、拖放操作等等。<span style="font-family: Courier New;"><br />
<img src="http://www.open-open.com/ajax/pimage/mootools.jpg" border="0" alt="" /></span></div>
<div><span style="font-family: Courier New;"> </span><a href="http://www.open-open.com/ajax/ajax20080723170325.htm">MooTools</a></div>
</div>
<h4 onclick="DictFold('PWDECMEC5');">
<div> prototype</div>
</h4>
<div id="dictc_PWDECMEC5">
<div>prototype是一个易于使用、面向对象的JavaScript框架。它封装并简化和扩展一些在Web开发过程中常用到JavaScript方法与Ajax交互处理过程。<br />
<img src="http://www.open-open.com/ajax/pimage/prototypejs.gif" border="0" alt="" /></div>
<div><a href="http://www.open-open.com/ajax/ajax20080723171947.htm">prototype</a></div>
</div>
<h4 onclick="DictFold('PWDECMEC6');">
<div> qooxdoo</div>
<div> </div>
</h4>
<div id="dictc_PWDECMEC6">
<div>qooxdoo是一个用于开发Ajax应用程序的GUI框架。不需要HTML,CSS,DOM知识，采用面向对象的JavaScript API就能够开发出类似于Window桌面风格的Web应用程序。<br />
<img src="http://www.open-open.com/ajax/pimage/qooxdoo.jpg" border="0" alt="" /></div>
<div><a href="http://www.open-open.com/ajax/ajax20080723173129.htm">qooxdoo</a></div>
</div>
<h4 onclick="DictFold('PWDECMEC7');">
<div>script.aculo.us</div>
</h4>
<div id="dictc_PWDECMEC7">
<div>script.aculo.us是一个易于使用，支持多种浏览器，用于增强Prototype的JavaScript框架。script.aculo.us包含：动画框架（animation framework），拖放（drag and drop）， Ajax控件，DOM工具，单元测试等。<br />
<a href="http://www.open-open.com/ajax/ajax20080723175511.htm">script.aculo.us</a></div>
</div>
<h4 onclick="DictFold('PWDECMEC8');">
<div> ExtJS</div>
<div> </div>
</h4>
<div id="dictc_PWDECMEC8">
<div>ExtJS是一个跨浏览器，用于开发RIA（Rich iInternet Application）应用的JavaScript框架。提供：高性，可定制的Web UI控件库。良好的设计、丰富的文档和可扩展的组件模型。<br />
<img src="http://www.open-open.com/ajax/pimage/extjs.gif" border="0" alt="" /></div>
<div><a href="http://www.open-open.com/ajax/ajax20080724192142.htm">ExtJS</a></div>
</div>
<div class="similarity"><h2>扩展阅读</h2><br /><ul><li><a href="http://motian.org/post/image-wailian-61.html">多服务器平衡负载,文章轻松加图片</a> (1.000)</li><li><a href="http://motian.org/post/share-open-fluxbb-252.html">推荐一个轻量级的开源论坛</a> (1.000)</li></ul></div><!-- Tag --><hr />
<p>© 漠天 for <a href="http://motian.org">漠天博客</a>, 2010. |
<a href="http://motian.org/post/diary-share-ajax-javascript-426.html">永久链接</a> |
<a href="http://motian.org/post/diary-share-ajax-javascript-426.html#comments">9 comments</a> |标签: <a href="http://motian.org/tag/share" rel="tag">资源分享</a><br/>
<strong>收藏分享本文：</strong>
<a style="color:#333333;text-align:center;font-size:12px;" href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/weibo.gif" alt="分享到新浪微博" border="0" height="16" width="16"/></a>

<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200" title="你在做啥"><img src="http://img.motian.org/pic/wp/zuosa.gif"/></a>

<a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网"><img src="http://img.motian.org/pic/wp/kaixin.gif" alt="转贴到开心网" border="0"/></a>

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="推荐到豆瓣" rel="nofollow" ><img src="http://img.motian.org/pic/wp/douban.png" border="0" height="16" width="16"></a>

<a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="http://img.motian.org/pic/wp/googlebookmark.png" alt="Google书签" border="0" height="16" width="16"/></a>

<a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="http://img.motian.org/pic/wp/qq.png" alt="QQ书签" border="0" height="16" width="16"/></a>

<a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0"><img src="http://img.motian.org/pic/wp/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi"><img src="http://img.motian.org/pic/wp/vivi.gif" alt="Sina ViVi" border="0"/></a>

<a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow"><img src="http://img.motian.org/pic/wp/yahoo.png" alt="yahoo收藏" border="0" height="16" width="16"/></a>

<a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()"><img src="http://img.motian.org/pic/wp/delicious.gif" alt="Del.icio.us" border="0" height="16" width="16"/></a>

<a title="推荐到digg.com" href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="http://img.motian.org/pic/wp/digg.gif" alt="digg" border="0"/></a>

<a href="javascript:void(location.href='https://twitter.com/home?status=Now%20reading%20<<'+encodeURIComponent(document.title)+'>>%20'+encodeURIComponent(location.href))" title="分享到 Twitter"><img src="http://img.motian.org/pic/wp/twitter.png" alt="分享到twitter"/></a>

 <br/>
<script type="text/javascript"><!--
google_ad_client = "pub-4498164283832126";
/* 468x60, 创建于 10-8-17 */
google_ad_slot = "2152552823";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>]]></content:encoded>
			<wfw:commentRss>http://motian.org/post/diary-share-ajax-javascript-426.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Linux下的C++开发之IDE软件</title>
		<link>http://motian.org/post/linux-c-ide-soft-352.html</link>
		<comments>http://motian.org/post/linux-c-ide-soft-352.html#comments</comments>
		<pubDate>Tue, 05 Jan 2010 14:12:40 +0000</pubDate>
		<dc:creator>漠天</dc:creator>
				<category><![CDATA[编程&开发]]></category>
		<category><![CDATA[软件]]></category>

		<guid isPermaLink="false">http://motian.org/?p=352</guid>
		<description><![CDATA[最近一直在研究Linux系统，今天将推荐几款适用于C++开发的IDE软件。在Linux里，开发工具是被切割成一个一个的独立小工具，各自处理不同的问题。例如，编辑器（emacs, vim)用来进行编辑程序的，调试器（gdb)用来调试程序，编译器（GCC）用来编译和链接程序的，性能分析工具（gcov, gprof)用来优化程序的，文档生成器（doxygen）用来生成文档的。同时，还有一些系统工具和系统知识，我们是很有必要了解的：程序自动化机制 makefile，系统粘合剂shell，系统查找工具grep, locate, find。其它的工具（例如ctags， OCI公司的MPC等等），一旦熟练掌握，它们将成为你手中的利器。但是对于一个刚刚入手Linux的新手了说去开发软件更是难上加难，但是当我们在熟悉了Linux是用，再通过图形化的、集成环境的开发软件，那么我们就会有种回到了windows系统的感觉。          anjuta   Anjuta DevStudio 的官方地址：http://anjuta.sourceforge.net/ Anjuta是一个C/C++ IDE，它最大的特色是灵活，同时打开多个文件，内嵌代码级的调试器(调用gdb)，应用程序向导（Application wizards）可以方便的帮助你创建GNOME程序而不需要你自己写一些与你兴趣无关的代码。 安装方法： sudo apt-get install anjuta 安装完成后，可能在新建工程（project)时会出现“找不到版本号为5的Autogen”的错误信息。这时请安装Autogen软件包。 sudo apt-get install autogen  kdevelop   KDevelop Project 的官方地址：http://www.kdevelop.org/ KDevelop-Project诞生于1998年，其目的是为KDE提供一个易用的集成开发环境(Integrated Development Environment)。此后，KDevelop IDE采用GPL进行发布，它支持很多 程序设计语言。 安装方法： sudo apt-get install kdevelop 参考： KDevelop扫盲帖  geany   Geany 的官方地址： http://geany.uvena.de/ http://sourceforge.net/projects/geany Geany 是一个使用 GTK2 工具包开发的快速和轻巧的集成开发环境（IDE），包括以下基本功能：语法高亮显示，代码折叠，代码自动补完，自动补完经常使用的结构（如：if、 for、while [...]]]></description>
			<content:encoded><![CDATA[<p>最近一直在研究Linux系统，今天将推荐几款适用于C++开发的IDE<span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/softnews" title="查看 软件 的全部文章" target="_blank">软件</a></span>。在Linux里，开发工具是被切割成一个一个的独立小工具，各自处理不同的问题。例如，编辑器（emacs, vim)用来进行编辑程序的，调试器（gdb)用来调试程序，编译器（GCC）用来编译和链接程序的，性能分析工具（gcov, gprof)用来优化程序的，文档生成器（doxygen）用来生成文档的。同时，还有一些系统工具和系统知识，我们是很有必要了解的：程序自动化机制 makefile，系统粘合剂shell，系统查找工具grep, locate, find。其它的工具（例如ctags， OCI公司的MPC等等），一旦熟练掌握，它们将成为你手中的利器。但是对于一个刚刚入手Linux的新手了说去开发<span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/softnews" title="查看 软件 的全部文章" target="_blank">软件</a></span>更是难上加难，但是当我们在熟悉了Linux是用，再通过图形化的、集成环境的开发软件，那么我们就会有种回到了windows系统的感觉。<br />
  <br />
     </p>
<h2><span class="mw-headline">anjuta</span></h2>
<p> </p>
<p><span style="font-size: small;">Anjuta DevStudio 的官方地址：<a class="external free" title="http://anjuta.sourceforge.net/" rel="nofollow" href="http://anjuta.sourceforge.net/">http://anjuta.sourceforge.net/</a></span></p>
<p><span style="font-size: small;">Anjuta是一个C/C++ IDE，它最大的特色是灵活，同时打开多个文件，内嵌代码级的调试器(调用gdb)，应用程序向导（Application wizards）可以方便的帮助你创建GNOME程序而不需要你自己写一些与你兴趣无关的代码。 </span></p>
<p><span style="font-size: small;"><strong>安装方法：</strong> </span></p>
<blockquote><p><span style="font-family: Courier New;"><span style="font-size: small;">sudo apt-get install anjuta<br />
</span></span></p></blockquote>
<p><span style="font-size: small;">安装完成后，可能在新建工程（project)时会出现“找不到版本号为5的Autogen”的错误信息。这时请安装Autogen软件包。 </span></p>
<blockquote><p><span style="font-family: Courier New;"><span style="font-size: small;">sudo apt-get install autogen<br />
</span></span><br />
<a id="kdevelop" name="kdevelop"></a></p></blockquote>
<h2> <span class="mw-headline">kdevelop</span></h2>
<p> </p>
<p><span style="font-size: small;">KDevelop Project 的官方地址：<a class="external free" title="http://www.kdevelop.org/" rel="nofollow" href="http://www.kdevelop.org/">http://www.kdevelop.org/</a> </span></p>
<p><span style="font-size: small;">KDevelop-Project诞生于1998年，其目的是为KDE提供一个易用的集成开发环境(Integrated Development Environment)。此后，KDevelop IDE采用GPL进行发布，它支持很多 程序设计语言。 </span></p>
<p><span style="font-size: small;"><br />
<strong>安装方法：</strong> </span></p>
<blockquote><p><span style="font-family: Courier New;"><span style="font-size: small;">sudo apt-get install kdevelop<br />
</span></span></p></blockquote>
<p><span style="font-size: small;"><strong>参考：</strong> </span></p>
<ul>
<li><span style="font-size: small;"><a class="external text" title="http://forum.ubuntu.org.cn/viewtopic.php?t=25271" rel="nofollow" href="http://forum.ubuntu.org.cn/viewtopic.php?t=25271">KDevelop扫盲帖</a> </span></li>
</ul>
<p><a id="geany" name="geany"></a></p>
<h2> <span class="mw-headline">geany</span></h2>
<p> </p>
<p><span style="font-size: small;">Geany 的官方地址： </span></p>
<ul>
<li><span style="font-size: small;"><a class="external free" title="http://geany.uvena.de/" rel="nofollow" href="http://geany.uvena.de/">http://geany.uvena.de/</a> </span></li>
<li><span style="font-size: small;"><a class="external free" title="http://sourceforge.net/projects/geany" rel="nofollow" href="http://sourceforge.net/projects/geany">http://sourceforge.net/projects/geany</a> </span></li>
</ul>
<p><span style="font-size: small;">Geany 是一个使用 GTK2 工具包开发的快速和轻巧的集成开发环境（IDE），包括以下基本功能：语法高亮显示，代码折叠，代码自动补完，自动补完经常使用的结构（如：if、 for、while 等），自动补完 XML 和 HTML 标记（tag），调用提示，支持 C、Java、PHP、HTML、Python、Perl、Pascal 等语言，符号列表等等。 </span></p>
<p><span style="font-size: small;"><br />
<strong>安装方法：</strong> </span></p>
<blockquote><p><span style="font-family: Courier New;"><span style="font-size: small;">sudo apt-get install geany</span></span><br />
<a id="codeblocks" name="codeblocks"></a></p></blockquote>
<h2> <span class="mw-headline">codeblocks</span></h2>
<p> </p>
<p><span style="font-size: small;">Code::Blocks 的官方地址： </span></p>
<ul>
<li><span style="font-size: small;"><a class="external free" title="http://www.codeblocks.org" rel="nofollow" href="http://www.codeblocks.org/">http://www.codeblocks.org</a> </span></li>
<li><span style="font-size: small;"><a class="external free" title="http://sourceforge.net/projects/codeblocks" rel="nofollow" href="http://sourceforge.net/projects/codeblocks">http://sourceforge.net/projects/codeblocks</a> </span></li>
</ul>
<p><span style="font-size: small;">Code::Blocks是一个开源、免费、跨平台的c++ IDE。官方网站上称其能满足最苛刻的用户的需求。虽有点夸张，但既然敢这样说，也说明它的功能肯定不差。可扩展插件，有插件向导功能，让你很方便的创建自己的插件。Code::Blocks是用c++编写的（用wxWidgets库） </span></p>
<p><span style="font-size: small;"><br />
</span></p>
<p><span style="font-size: small;"><strong>安装方法：</strong> </span></p>
<blockquote><p><span style="font-family: Courier New;"><span style="font-size: small;">sudo apt-get install codeblocks</span></span><br />
<a id="eclipse" name="eclipse"></a></p></blockquote>
<h2><span class="mw-headline">eclipse</span></h2>
<p> </p>
<p><span style="font-size: small;">eclipse 的官方地址：<a class="external free" title="http://www.eclipse.org" rel="nofollow" href="http://www.eclipse.org/">http://www.eclipse.org</a> </span></p>
<p><span style="font-size: small;">Eclipse平台是IBM向开发源码社区捐赠的开发框架，它之所以出名并不是因为IBM宣称投入开发的资金总数 —4千万美元，而是因为如此巨大的投入所带来的成果：一个成熟的、精心设计的以及可扩展的体系结构。 </span></p>
<p><span style="font-size: small;"><br />
<strong>安装方法：</strong> </span></p>
<blockquote><p><span style="font-family: Courier New;"><span style="font-size: small;">sudo apt-get install eclipse-cdt eclipse</span></span><br />
<a id="netbeans" name="netbeans"></a></p></blockquote>
<h2> <span class="mw-headline">netbeans</span></h2>
<p> </p>
<p><span style="font-size: small;">netbeans 的官方地址：<a class="external free" title="http://www.netbeans.org/" rel="nofollow" href="http://www.netbeans.org/">http://www.netbeans.org/</a> </span></p>
<p><span style="font-size: small;">NetBeans IDE 是一个开发环境 － 供程序员编写、编译、调试和部署程序的一个工具。 它是用 Java 编写的 － 但却可以支持任何编程语言。 另外也有巨大数量的模块来扩展 NetBeans IDE，它是一个免费产品，不限制其使用形式。 </span></p>
<p><span style="font-size: small;"><br />
<strong>安装方法:</strong> </span></p>
<blockquote><p><span style="font-family: Courier New;"><span style="font-size: small;">sudo apt-get install netbeans<br />
</span></span></p></blockquote>
<p><span style="font-size: small;"><strong>参考：</strong> </span></p>
<ul>
<li><span style="font-size: small;"><a class="external text" title="http://gceclub.sun.com.cn/NetBeans/tutorials/" rel="nofollow" href="http://gceclub.sun.com.cn/NetBeans/tutorials/">NetBeans 5.0本地教程主索引</a> </span></li>
</ul>
<p> <br />
对于以上这6款C++开发软件，我们可以再Linux下的C++开发学习中使用。你可以通过新立得软件安装器或者Ubuntu软件管理中心搜索到，并下载自动安装。</p>
<div class="similarity"><h2>扩展阅读</h2><br /><ul><li><a href="http://motian.org/post/it-soft-opera-mini-5-beta-73.html">Opera Mini 5 Beta 发布</a> (1.000)</li><li><a href="http://motian.org/post/zhengli-cipan-338.html">整理硬盘空间，一点都不浪费</a> (1.000)</li><li><a href="http://motian.org/post/it-opera-10-53-beta-for-linuxunix-528.html">Opera 10.53 Beta(Linux/Unix)发布 </a> (1.000)</li><li><a href="http://motian.org/post/soft-linux-ailurus-551.html">Linux版优化大师——Ailurus</a> (1.000)</li><li><a href="http://motian.org/post/soft-gcc-c-555.html">GCC 将改用 C++ 实现 </a> (1.000)</li><li><a href="http://motian.org/post/word-5-568.html">推荐5款Linux下文字处理软件</a> (1.000)</li><li><a href="http://motian.org/post/flash-lightspark-0-4-2-582.html">开源Flash播放器Lightspark 0.4.2 </a> (1.000)</li><li><a href="http://motian.org/post/java-install4j-5-0-584.html">Java安装程序制作软件 -Install4j 5.0 </a> (1.000)</li><li><a href="http://motian.org/post/mysql-5-5-5-m3-591.html">MySQL 5.5.5 M3 发布</a> (1.000)</li><li><a href="http://motian.org/post/foxit-reader-4-1-595.html">Foxit Reader 4.1 发布</a> (1.000)</li></ul></div><!-- Tag --><hr />
<p>© 漠天 for <a href="http://motian.org">漠天博客</a>, 2010. |
<a href="http://motian.org/post/linux-c-ide-soft-352.html">永久链接</a> |
<a href="http://motian.org/post/linux-c-ide-soft-352.html#comments">14 comments</a> |标签: <a href="http://motian.org/tag/softnews" rel="tag">软件</a><br/>
<strong>收藏分享本文：</strong>
<a style="color:#333333;text-align:center;font-size:12px;" href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/weibo.gif" alt="分享到新浪微博" border="0" height="16" width="16"/></a>

<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200" title="你在做啥"><img src="http://img.motian.org/pic/wp/zuosa.gif"/></a>

<a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网"><img src="http://img.motian.org/pic/wp/kaixin.gif" alt="转贴到开心网" border="0"/></a>

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="推荐到豆瓣" rel="nofollow" ><img src="http://img.motian.org/pic/wp/douban.png" border="0" height="16" width="16"></a>

<a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="http://img.motian.org/pic/wp/googlebookmark.png" alt="Google书签" border="0" height="16" width="16"/></a>

<a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="http://img.motian.org/pic/wp/qq.png" alt="QQ书签" border="0" height="16" width="16"/></a>

<a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0"><img src="http://img.motian.org/pic/wp/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi"><img src="http://img.motian.org/pic/wp/vivi.gif" alt="Sina ViVi" border="0"/></a>

<a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow"><img src="http://img.motian.org/pic/wp/yahoo.png" alt="yahoo收藏" border="0" height="16" width="16"/></a>

<a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()"><img src="http://img.motian.org/pic/wp/delicious.gif" alt="Del.icio.us" border="0" height="16" width="16"/></a>

<a title="推荐到digg.com" href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="http://img.motian.org/pic/wp/digg.gif" alt="digg" border="0"/></a>

<a href="javascript:void(location.href='https://twitter.com/home?status=Now%20reading%20<<'+encodeURIComponent(document.title)+'>>%20'+encodeURIComponent(location.href))" title="分享到 Twitter"><img src="http://img.motian.org/pic/wp/twitter.png" alt="分享到twitter"/></a>

 <br/>
<script type="text/javascript"><!--
google_ad_client = "pub-4498164283832126";
/* 468x60, 创建于 10-8-17 */
google_ad_slot = "2152552823";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>]]></content:encoded>
			<wfw:commentRss>http://motian.org/post/linux-c-ide-soft-352.html/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>推荐一个轻量级的开源论坛</title>
		<link>http://motian.org/post/share-open-fluxbb-252.html</link>
		<comments>http://motian.org/post/share-open-fluxbb-252.html#comments</comments>
		<pubDate>Sat, 19 Dec 2009 12:06:57 +0000</pubDate>
		<dc:creator>漠天</dc:creator>
				<category><![CDATA[博客杂文]]></category>
		<category><![CDATA[编程&开发]]></category>
		<category><![CDATA[资源分享]]></category>

		<guid isPermaLink="false">http://motian.org/?p=252</guid>
		<description><![CDATA[今天，我就在网上逛——目标是找一款轻量级的、速度快、对搜索引擎友好、开源的而且满足一定功能的论坛程序。也许大家想到了DZ，但是DZ是收费的。PW虽然开源但是文件太大，功能复杂。所以我把矛头瞄向了国外。O(∩_∩)O哈哈~，国外太多的开源程序了，比国内的发展的好多了。
]]></description>
			<content:encoded><![CDATA[<p>首先声明下为什么这几天消失了？<br />
其实简单的说是在忙英语了。O(∩_∩)O哈哈~，我的英语比较差，今天考四级，以后还要考研，所以不得不放下手中的一切活来复习英语，今天总算完了，至于结果吗？我也不知道。</p>
<p>其实我这几天一直在琢磨一件事，自己在网络上混这么长时间了，感觉没发扬互联网的博大的精神呢？——资源共享。后来想到，自己没有可分享的资源，何来分享。要不就是那别人的分享。O(∩_∩)O哈哈~所以我决定在今年寒假一定要写出一个好作品来，供大家使用。至于哪方面的，暂时没想好。</p>
<p>虽然我的作品还没出来，但是我现在已经为其做准备啦。今天，我就在网上逛——目标是找一款轻量级的、速度快、对搜索引擎友好、开源的而且满足一定功能的论坛程序。也许大家想到了DZ，但是DZ是收费的。PW虽然开源但是文件太大，功能复杂。所以我把矛头瞄向了国外。O(∩_∩)O哈哈~，国外太多的开源程序了，比国内的发展的好多了。</p>
<p>用WordPress的用户也许知道，我可能是在说bbpress，NO。为什么呢？用过bbress的人也许知道，由于和WordPress属于同一批人开发的，察看源代码会发现，好多函数都是一样的，只不过把wp改成了bb而已，但是bbpress看起来更像贴吧，要说是论坛，身份不纯啊。所以我就没选择这款程序。但是这款程序的最大好处是可以和WordPress高度集成啊。<br />
如果哪位朋友了解bbpress的话，可以去看看这个网站：<a id="o0j8" title="bbpress中文站" href="http://www.bbpcn.org/" target="_blank">bbpress中文站</a></p>
<p>其实，关于国外的开源论坛，我最先知道的是punbb，punbb以速度快而著称，所以我选择了punbb，但是我发现punbb没有那个中文版的，然后现在下来后分析了下，发现汉化简单但是工作量有很大，一时汉化不完，所以就找了个汉化包，没想到汉化包没找到，到找到了今天的文章的主角：<a id="mb7d" title="FluxBB" href="http://www.fluxbb.org/">FluxBB</a>。（punbb官方网站：<a id="uhqi" title="http://punbb.informer.com/" href="http://punbb.informer.com/">http://punbb.informer.com/</a>）</p>
<p>Fluxbb，我以前也没听说过，只是今天刚刚翻出了的。但是它却和punbb有着密切的联系。话说关系式这个的：</p>
<blockquote><p><span style="color: #ff00ff;">FluxBB是Rickard Andersson开发的PunBB之分支。</span><br style="color: #ff00ff;" /><span style="color: #ff00ff;">2007年，PunBB卖给了商业公司，由Rickard Andersson带领的开发计划持续到2008年4月为止，此后RickarAndersson表示它将淡出开发计划。</span><br style="color: #ff00ff;" /><span style="color: #ff00ff;">为求让开发持续，开发团队决定将开发计划分离，以让开发计划能有更大的可控性，因此FluxBB就此产生。</span></p></blockquote>
<p><span style="color: #ff00ff;"><br />
<span style="color: #000000;">重要的是FluxBB有中文版，同时还有一个中文的论坛（<a id="kequ" title="中文网站" href="http://www.fluxbb.cn/" target="_blank">中文网站</a>），虽然不是太活跃，但是站长还是在维护着。所以听过punbb大名的人就可以放心的使用FluxBB啦。</span></span></p>
<h3><span style="font-size: small;">FluxBB简介：</span></h3>
<p style="margin-left: 40px;">FluxBB 是一款基于 GNU 协议的开源论坛程序。它将可以永久地免费下载使用。FluxBB 的最初构想就是设计一款快速的轻量的，并且只包含最基本功能的论坛程序。</p>
<p style="margin-left: 40px;">开发者追求严谨的 web 标准以及最佳可用性。当前开发中的 FluxBB v1.3 新增了一键安装的扩展系统，可以让用户在论坛核心的基础上任意扩展功能。以下是一些主要特性和功能:</p>
<div style="margin-left: 40px;">支持 MySQL, PostgreSQL 和 SQLite<br />
支持 PHP 4 和 PHP 5<br />
生成 XHTML 1.0 标准的页面<br />
支持 application/xhtml+xml (v1.3)<br />
尽可能符合大众的贴切设计<br />
便捷的语言包翻译<br />
支持 UTF-8 (v1.3)<br />
使用有效的 CSS2.1<br />
强大的一键安装的扩展系统 (v1.3)</div>
<p><span style="font-size: small;">FluxBB：<a id="k32:" title="官方网站" href="http://www.fluxbb.org/" target="_blank">官方网站</a><br />
<a id="q.e4" title="中文网站" href="http://www.fluxbb.cn/" target="_blank">中文网站</a><br />
</span></p>
<div class="similarity"><h2>扩展阅读</h2><br /><ul><li><a href="http://motian.org/post/image-wailian-61.html">多服务器平衡负载,文章轻松加图片</a> (1.000)</li><li><a href="http://motian.org/post/diary-share-ajax-javascript-426.html">推荐几款热门的Ajax/JavaScript脚本</a> (1.000)</li></ul></div><!-- Tag --><hr />
<p>© 漠天 for <a href="http://motian.org">漠天博客</a>, 2009. |
<a href="http://motian.org/post/share-open-fluxbb-252.html">永久链接</a> |
<a href="http://motian.org/post/share-open-fluxbb-252.html#comments">24 comments</a> |标签: <a href="http://motian.org/tag/share" rel="tag">资源分享</a><br/>
<strong>收藏分享本文：</strong>
<a style="color:#333333;text-align:center;font-size:12px;" href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/weibo.gif" alt="分享到新浪微博" border="0" height="16" width="16"/></a>

<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200" title="你在做啥"><img src="http://img.motian.org/pic/wp/zuosa.gif"/></a>

<a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网"><img src="http://img.motian.org/pic/wp/kaixin.gif" alt="转贴到开心网" border="0"/></a>

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="推荐到豆瓣" rel="nofollow" ><img src="http://img.motian.org/pic/wp/douban.png" border="0" height="16" width="16"></a>

<a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="http://img.motian.org/pic/wp/googlebookmark.png" alt="Google书签" border="0" height="16" width="16"/></a>

<a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="http://img.motian.org/pic/wp/qq.png" alt="QQ书签" border="0" height="16" width="16"/></a>

<a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0"><img src="http://img.motian.org/pic/wp/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi"><img src="http://img.motian.org/pic/wp/vivi.gif" alt="Sina ViVi" border="0"/></a>

<a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow"><img src="http://img.motian.org/pic/wp/yahoo.png" alt="yahoo收藏" border="0" height="16" width="16"/></a>

<a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()"><img src="http://img.motian.org/pic/wp/delicious.gif" alt="Del.icio.us" border="0" height="16" width="16"/></a>

<a title="推荐到digg.com" href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="http://img.motian.org/pic/wp/digg.gif" alt="digg" border="0"/></a>

<a href="javascript:void(location.href='https://twitter.com/home?status=Now%20reading%20<<'+encodeURIComponent(document.title)+'>>%20'+encodeURIComponent(location.href))" title="分享到 Twitter"><img src="http://img.motian.org/pic/wp/twitter.png" alt="分享到twitter"/></a>

 <br/>
<script type="text/javascript"><!--
google_ad_client = "pub-4498164283832126";
/* 468x60, 创建于 10-8-17 */
google_ad_slot = "2152552823";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>]]></content:encoded>
			<wfw:commentRss>http://motian.org/post/share-open-fluxbb-252.html/feed</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>国人开发的一个的微博客程序</title>
		<link>http://motian.org/post/diary-share%e2%80%94nowhere-246.html</link>
		<comments>http://motian.org/post/diary-share%e2%80%94nowhere-246.html#comments</comments>
		<pubDate>Mon, 14 Dec 2009 15:12:52 +0000</pubDate>
		<dc:creator>漠天</dc:creator>
				<category><![CDATA[博客杂文]]></category>
		<category><![CDATA[编程&开发]]></category>
		<category><![CDATA[微博]]></category>

		<guid isPermaLink="false">http://motian.org/?p=246</guid>
		<description><![CDATA[Nowhere 是一个 90后的高中生开发的微博客程序作品，它采用种树的主题（如下图所示）来表示枝叶日渐繁茂的景象。

Nowhere 支持多种社交类网站（如Twiiter、Facebook、Last.fm、豆瓣、Google Reader、Flicrk 等），输入您在这些网站的用户名，就会有一个到您的页面的链接出现在树根处。

 
]]></description>
			<content:encoded><![CDATA[<p>Nowhere 是一个 90后的高中生开发的<span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/twitter" title="查看 微博 的全部文章" target="_blank">微博</a></span>客程序作品，它采用种树的主题（如下图所示）来表示枝叶日渐繁茂的景象。</p>
<p>Nowhere 支持多种社交类网站（如Twiiter、Facebook、Last.fm、豆瓣、Google Reader、Flicrk 等），输入您在这些网站的用户名，就会有一个到您的页面的链接出现在树根处。</p>
<p> <img class="size-large wp-image-247 alignnone" title="nowhere" src="http://img.motian.org/images/nowhere-500x234.jpg" alt="nowhere" width="500" height="234" /></p>
<blockquote>
<div>1.使用SVN客户端从Google Code获取源代码<br />
<a rel="nofollow external" href="http://code.google.com/p/project-nowhere/source/checkout" target="_blank">http://code.google.com/p/project-nowhere/source/checkout </a></div>
<p>2.配置inc/config.inc.php （特别注意配置文件末尾的AUTHKEY，输入随机字符串即可)</p>
<p>3.上传uploads目录下全部程序文件</p>
<p>4.运行installer.php</p>
<p>5.登陆后至控制面板进行基本设置，提交保存。</p>
<p>6.开始使用！</p></blockquote>
<ul>
<li>在线演示：<a href="http://saicn.com/now" target="_blank">http://saicn.com/now</a></li>
<li>开发语言： <a href="http://docs.google.com/project/lang/22/php">PHP</a></li>
<li>项目主页： <a href="http://code.google.com/p/project-nowhere/" target="_blank">http://code.google.com/p/project-nowhere/</a></li>
<li>文档地址： <a href="http://saicn.com/bbs/topic/view/7467.html" target="_blank">http://saicn.com/bbs/topic/view/7467.html</a></li>
<li>下载地址： <a href="http://code.google.com/p/project-nowhere/source/checkout" target="_blank">http://code.google.com/p/project-nowhere/source/checkout</a></li>
</ul>
<div class="similarity"><h2>扩展阅读</h2><br /><ul><li><a href="http://motian.org/post/blog-deke-weibo-119.html">微博在中国的曲折发展</a> (1.000)</li><li><a href="http://motian.org/post/it-internet-digu-kaitong-162.html">嘀咕网可以嘀咕啦</a> (1.000)</li><li><a href="http://motian.org/post/it-twitter-weibojiazhi-184.html">微型博客的价值</a> (1.000)</li><li><a href="http://motian.org/post/it-twitter-xinlangweibo-209.html">﻿新浪微博还是和Twitter无关！</a> (1.000)</li><li><a href="http://motian.org/post/it-twitter-weibo-wan-250.html">[转]谁才能玩得转微博？</a> (1.000)</li><li><a href="http://motian.org/post/xianguo-lianbo-362.html">迟来的鲜果联播</a> (1.000)</li><li><a href="http://motian.org/post/%e5%be%ae%e5%8d%9a%e5%ae%a2microblog%e5%bc%80%e6%ba%90%e8%bd%af%e4%bb%b6-418.html">微博客MicroBlog开源软件</a> (1.000)</li><li><a href="http://motian.org/post/diary-weibo-robots-448.html">微博生活，机器人帮我写</a> (1.000)</li><li><a href="http://motian.org/post/diary-phpsay-mcrioblog-454.html">PHPSay-Mcrioblog很好很强大</a> (1.000)</li><li><a href="http://motian.org/post/diary-phpsay-mcrioblog-140-456.html">修改PHPSay-Mcrioblog的字数限制</a> (1.000)</li></ul></div><!-- Tag --><hr />
<p>© 漠天 for <a href="http://motian.org">漠天博客</a>, 2009. |
<a href="http://motian.org/post/diary-share%e2%80%94nowhere-246.html">永久链接</a> |
<a href="http://motian.org/post/diary-share%e2%80%94nowhere-246.html#comments">7 comments</a> |标签: <a href="http://motian.org/tag/twitter" rel="tag">微博</a><br/>
<strong>收藏分享本文：</strong>
<a style="color:#333333;text-align:center;font-size:12px;" href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/weibo.gif" alt="分享到新浪微博" border="0" height="16" width="16"/></a>

<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200" title="你在做啥"><img src="http://img.motian.org/pic/wp/zuosa.gif"/></a>

<a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网"><img src="http://img.motian.org/pic/wp/kaixin.gif" alt="转贴到开心网" border="0"/></a>

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="推荐到豆瓣" rel="nofollow" ><img src="http://img.motian.org/pic/wp/douban.png" border="0" height="16" width="16"></a>

<a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="http://img.motian.org/pic/wp/googlebookmark.png" alt="Google书签" border="0" height="16" width="16"/></a>

<a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="http://img.motian.org/pic/wp/qq.png" alt="QQ书签" border="0" height="16" width="16"/></a>

<a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0"><img src="http://img.motian.org/pic/wp/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi"><img src="http://img.motian.org/pic/wp/vivi.gif" alt="Sina ViVi" border="0"/></a>

<a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow"><img src="http://img.motian.org/pic/wp/yahoo.png" alt="yahoo收藏" border="0" height="16" width="16"/></a>

<a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()"><img src="http://img.motian.org/pic/wp/delicious.gif" alt="Del.icio.us" border="0" height="16" width="16"/></a>

<a title="推荐到digg.com" href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="http://img.motian.org/pic/wp/digg.gif" alt="digg" border="0"/></a>

<a href="javascript:void(location.href='https://twitter.com/home?status=Now%20reading%20<<'+encodeURIComponent(document.title)+'>>%20'+encodeURIComponent(location.href))" title="分享到 Twitter"><img src="http://img.motian.org/pic/wp/twitter.png" alt="分享到twitter"/></a>

 <br/>
<script type="text/javascript"><!--
google_ad_client = "pub-4498164283832126";
/* 468x60, 创建于 10-8-17 */
google_ad_slot = "2152552823";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>]]></content:encoded>
			<wfw:commentRss>http://motian.org/post/diary-share%e2%80%94nowhere-246.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>在Linux下Gcchowto编译多个源文件</title>
		<link>http://motian.org/post/program-cc-bianyiduogeyuanwenjian-213.html</link>
		<comments>http://motian.org/post/program-cc-bianyiduogeyuanwenjian-213.html#comments</comments>
		<pubDate>Sat, 05 Dec 2009 14:21:03 +0000</pubDate>
		<dc:creator>漠天</dc:creator>
				<category><![CDATA[编程&开发]]></category>
		<category><![CDATA[C/C++]]></category>

		<guid isPermaLink="false">http://motian.org/?p=213</guid>
		<description><![CDATA[一个源程序可以分成几个文件。这样便于编辑与理解，尤其是程序非常大的时候。这也使各部分独立编译成为可能。

下面的例子中我们将程序 Hello World 分割成 3 个文件：‘hello.c’，‘hello_fn.c’和头文件‘hello.h’。这是主程序‘hello.c’：

]]></description>
			<content:encoded><![CDATA[<p>一个源程序可以分成几个文件。这样便于编辑与理解，尤其是程序非常大的时候。这也使各部分独立编译成为可能。</p>
<p>下面的例子中我们将程序 <em>Hello World</em> 分割成 3 个文件：‘hello.c’，‘hello_fn.c’和头文件‘hello.h’。这是主程序‘hello.c’：</p>
<blockquote>
<div style="text-align: left;" dir="ltr"><span>#include &#8220;hello.h&#8221;</span></div>
<div style="text-align: left;" dir="ltr"> <span>int</span> main<span>(</span><span>void</span><span>)</span></div>
<div style="text-align: left;" dir="ltr"><span>{</span> hello <span>(</span><span>&#8220;world&#8221;</span><span>)</span>; <span>return</span> <span>0</span>; <span>}</span></div>
</blockquote>
<p>在先前例子的‘hello.c’中，我们调用的是库函数 <strong>printf</strong>，本例中我们用一个定义在文件‘hello_fn.c’中的函数 <strong>hello</strong> 取代它。</p>
<p>主程序中包含有头文件‘hello.h’，该头文件包含函数 <strong>hello</strong> 的声明。我们不需要在‘hello.c’文件中包含系统头文件‘stdio.h’来声明函数 <strong>printf</strong>，因为‘hello.c’没有直接调用 <strong>printf</strong>。</p>
<p>文件‘hello.h’中的声明只用了一行就指定了函数 <strong>hello</strong> 的原型。</p>
<blockquote>
<div style="text-align: left;" dir="ltr"><span>void</span> hello <span>(</span><span>const</span> <span>char</span> <span>*</span> name<span>)</span>;</div>
</blockquote>
<p>函数 <strong>hello</strong> 的定义在文件‘hello_fn.c’中：</p>
<div style="text-align: left;" dir="ltr"><span>#include &lt;stdio.h</span><span>&gt;</span></div>
<div style="text-align: left;" dir="ltr"> <span>#include &#8220;hello.h&#8221;</span>  </div>
<div style="text-align: left;" dir="ltr"> <span>void</span> hello <span>(</span><span>const</span> <span>char</span> <span>*</span> name<span>)</span></div>
<div style="text-align: left;" dir="ltr"> <span>{</span> <span>printf</span> <span>(</span><span>&#8220;Hello, %s!<span>\n</span>&#8220;</span>, name<span>)</span>; <span>}</span></div>
<p>语句 <strong>#include &#8220;FILE.h&#8221;</strong> 与 <strong>#include &lt;FILE.h&gt;</strong> 有所不同：前者在搜索系统头文件目录之前将先在当前目录中搜索文件‘FILE.h’，后者只搜索系统头文件而不查看当前目录。</p>
<p>要用<em>gcc</em>编译以上源文件，使用下面的命令：</p>
<pre>$ gcc -Wall hello.c hello_fn.c -o newhello</pre>
<p>本例中，我们使用选项 <strong>-o</strong> 为可执行文件指定了一个不同的名字 <strong>newhello</strong>。注意到头文件‘hello.h’并未在命令行中指定。源文件中的的 <strong>#include &#8220;hello.h&#8221;</strong> 指示符使得编译器自动将其包含到合适的位置。</p>
<p>要运行本程序，输入可执行文件的路径名：</p>
<pre>$ ./newhello
Hello, world!</pre>
<p>源程序各部分被编译为单一的可执行文件，它与我们先前的例子产生的结果相同。</p>
<div class="similarity"><h2>扩展阅读</h2><br /><ul><li><a href="http://motian.org/post/program-linux-gcchowto-211.html">在Linux下Gcchowto的使用</a> (1.000)</li><li><a href="http://motian.org/post/program-c-des-447.html">DES加密程序代码</a> (1.000)</li><li><a href="http://motian.org/post/c-ping-code-562.html">c语言实现ping功能</a> (1.000)</li></ul></div><!-- Tag --><hr />
<p>© 漠天 for <a href="http://motian.org">漠天博客</a>, 2009. |
<a href="http://motian.org/post/program-cc-bianyiduogeyuanwenjian-213.html">永久链接</a> |
<a href="http://motian.org/post/program-cc-bianyiduogeyuanwenjian-213.html#comments">No comment</a> |标签: <a href="http://motian.org/tag/cc" rel="tag">C/C++</a><br/>
<strong>收藏分享本文：</strong>
<a style="color:#333333;text-align:center;font-size:12px;" href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/weibo.gif" alt="分享到新浪微博" border="0" height="16" width="16"/></a>

<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200" title="你在做啥"><img src="http://img.motian.org/pic/wp/zuosa.gif"/></a>

<a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网"><img src="http://img.motian.org/pic/wp/kaixin.gif" alt="转贴到开心网" border="0"/></a>

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="推荐到豆瓣" rel="nofollow" ><img src="http://img.motian.org/pic/wp/douban.png" border="0" height="16" width="16"></a>

<a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="http://img.motian.org/pic/wp/googlebookmark.png" alt="Google书签" border="0" height="16" width="16"/></a>

<a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="http://img.motian.org/pic/wp/qq.png" alt="QQ书签" border="0" height="16" width="16"/></a>

<a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0"><img src="http://img.motian.org/pic/wp/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi"><img src="http://img.motian.org/pic/wp/vivi.gif" alt="Sina ViVi" border="0"/></a>

<a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow"><img src="http://img.motian.org/pic/wp/yahoo.png" alt="yahoo收藏" border="0" height="16" width="16"/></a>

<a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()"><img src="http://img.motian.org/pic/wp/delicious.gif" alt="Del.icio.us" border="0" height="16" width="16"/></a>

<a title="推荐到digg.com" href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="http://img.motian.org/pic/wp/digg.gif" alt="digg" border="0"/></a>

<a href="javascript:void(location.href='https://twitter.com/home?status=Now%20reading%20<<'+encodeURIComponent(document.title)+'>>%20'+encodeURIComponent(location.href))" title="分享到 Twitter"><img src="http://img.motian.org/pic/wp/twitter.png" alt="分享到twitter"/></a>

 <br/>
<script type="text/javascript"><!--
google_ad_client = "pub-4498164283832126";
/* 468x60, 创建于 10-8-17 */
google_ad_slot = "2152552823";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>]]></content:encoded>
			<wfw:commentRss>http://motian.org/post/program-cc-bianyiduogeyuanwenjian-213.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在Linux下Gcchowto的使用</title>
		<link>http://motian.org/post/program-linux-gcchowto-211.html</link>
		<comments>http://motian.org/post/program-linux-gcchowto-211.html#comments</comments>
		<pubDate>Fri, 04 Dec 2009 12:45:34 +0000</pubDate>
		<dc:creator>漠天</dc:creator>
				<category><![CDATA[操作系统]]></category>
		<category><![CDATA[编程&开发]]></category>
		<category><![CDATA[C/C++]]></category>

		<guid isPermaLink="false">http://motian.org/?p=211</guid>
		<description><![CDATA[本文可能会让你失望，如果你有下列疑问的话：为什么要在终端输命令啊？ GCC 是什么东西，怎么在菜单中找不到？ GCC 不能有像 VC 那样的窗口吗？…… 那么你真正想要了解的可能是 anjuta，kdevelop，geany，code blocks，eclipse，netbeans 等 IDE 集成开发环境。即使在这种情况下，由于 GCC 是以上 IDE 的后台的编译器，本文仍值得你稍作了了解。
]]></description>
			<content:encoded><![CDATA[<h3>准备工作</h3>
<p><strong>           注意：</strong>本文可能会让你失望，如果你有下列疑问的话：为什么要在终端输命令啊？ GCC 是什么东西，怎么在菜单中找不到？ GCC 不能有像 VC 那样的窗口吗？…… 那么你真正想要了解的可能是 anjuta，kdevelop，geany，code blocks，eclipse，netbeans 等 <a title="C Cpp IDE" href="http://motian.org/index.php?title=C_Cpp_IDE&amp;variant=zh-cn">IDE 集成开发环境</a>。即使在这种情况下，由于 GCC 是以上 IDE 的后台的编译器，本文仍值得你稍作了了解。</p>
<p>如果你还没装编译环境或自己不确定装没装，不妨先执行</p>
<blockquote>
<pre>sudo apt-get install build-essential</pre>
</blockquote>
<h3>编译简单的 C 程序</h3>
<pre>C 语言经典的入门例子是 Hello World，下面是一示例代码：</pre>
<blockquote>
<div style="text-align: left;" dir="ltr"><span>#include &lt;stdio.h&gt;</span></div>
<div style="text-align: left;" dir="ltr"> <span>int</span> main<span>(</span><span>void</span><span>)</span></div>
<div style="text-align: left;" dir="ltr"><span>{</span> <span>printf</span><span>(</span><span>&#8220;Hello, world!<span>\n</span>&#8220;</span><span>)</span>; <span>return</span> <span>0</span>; <span>}</span></div>
</blockquote>
<p>我们假定该代码存为文件‘hello.c’。要用 <strong>gcc</strong> 编译该文件，使用下面的命令：</p>
<blockquote>
<pre>$ gcc -g -Wall hello.c -o hello</pre>
</blockquote>
<p>该命令将文件‘hello.c’中的代码编译为机器码并存储在可执行文件 ‘hello’中。机器码的文件名是通过 <strong>-o</strong> 选项指定的。该选项通常作为命令行中的最后一个参数。如果被省略，输出文件默认为 ‘a.out’。</p>
<p><strong>注意到</strong>如果当前目录中与可执行文件重名的文件已经存在，它将被复盖。</p>
<p>选项 <strong>-Wall</strong> 开启编译器几乎所有常用的警告──<strong>强烈建议你始终使用该选项</strong>。编译器有很多其他的警告选项，但 <strong>-Wall</strong> 是最常用的。默认情况下GCC 不会产生任何警告信息。当编写 C 或 C++ 程序时编译器警告非常有助于检测程序存在的问题。</p>
<p>本例中，编译器使用了 <em>-Wall</em> 选项而没产生任何警告，因为示例程序是完全合法的。</p>
<p>选项 &#8220;&#8221;-g&#8221;" 表示在生成的目标文件中带调试信息，调试信息可以在程序异常中止产生core后，帮助分析错误产生的源头，包括产生错误的文件名和行号等非常多有用的信息。</p>
<p>要运行该程序，输入可执行文件的路径如下：</p>
<blockquote>
<pre>$ ./hello
Hello, world!</pre>
</blockquote>
<p>这将可执行文件载入内存，并使 CPU 开始执行其包含的指令。 路径 <strong>./</strong> 指代当前目录，因此 <strong>./hello</strong> 载入并执行当前目录下的可执行文件 ‘hello’。</p>
<p>点击<a title="http://ubuntu:ubuntuftp@ftp.ubuntu.org.cn/home/dbzhang800/wiki/gcchowto1.avi" rel="nofollow" href="http://ubuntu:ubuntuftp@ftp.ubuntu.org.cn/home/dbzhang800/wiki/gcchowto1.avi">此处</a>下载本节的操作视频</p>
<h3>捕捉错误</h3>
<p>如上所述，当用 C 或 C++ 编程时，编译器警告是非常重要的助手。为了说明这一点，下面的例子包含一个微妙的错误：为一个整数值错误地指定了一浮点数控制符‘%f’。</p>
<blockquote>
<div style="text-align: left;" dir="ltr"><span>#include &lt;stdio.h&gt;</span></div>
<div style="text-align: left;" dir="ltr">  <span>int</span> main <span>(</span><span>void</span><span>)</span></div>
<div style="text-align: left;" dir="ltr"> <span>{</span> <span>printf</span> <span>(</span><span>&#8220;Two plus two is %f<span>\n</span>&#8220;</span>, <span>4</span><span>)</span>; <span>return</span> <span>0</span>; <span>}</span></div>
</blockquote>
<p>一眼看去该错误并不明显，但是它可被编译器捕捉到，只要启用了警告选项 <strong>-Wall</strong>。</p>
<p>编译上面的程序‘bad.c’，将得到如下的消息：</p>
<blockquote>
<pre>$ gcc -Wall -o bad bad.c
main.c: 在函数‘main’中:
main.c:5: 警告： 格式‘%f’需要类型‘double’，但实参 2 的类型为‘int’</pre>
</blockquote>
<p>这表明文件 ‘bad.c’第 6 行中的格式字符串用法不正确。GCC 的消息总是具有下面的格式 <em>文件名:行号:消息</em>。编译器对错误与警告区别对待，前者将阻止编译，后者表明可能存在的问题但并不阻止程序编译。</p>
<p>本例中，对整数值来说，正确的格式控制符应该是 <strong>%d</strong>。</p>
<p>如果不启用 <strong>-Wall</strong>，程序表面看起来编译正常，但是会产生不正确的结果：</p>
<blockquote>
<pre>$ gcc bad.c -o bad
$ ./bad
Two plus two is 0.000000</pre>
</blockquote>
<p>显而易见，开发程序时不检查警告是非常危险的。如果有函数使用不当，将可能导致程序崩溃或产生错误的结果。开启编译器警告选项 <strong>-Wall</strong> 可捕捉 C 编程时的多数常见错误</p>
<div class="similarity"><h2>扩展阅读</h2><br /><ul><li><a href="http://motian.org/post/program-cc-bianyiduogeyuanwenjian-213.html">在Linux下Gcchowto编译多个源文件 </a> (1.000)</li><li><a href="http://motian.org/post/program-c-des-447.html">DES加密程序代码</a> (1.000)</li><li><a href="http://motian.org/post/c-ping-code-562.html">c语言实现ping功能</a> (1.000)</li></ul></div><!-- Tag --><hr />
<p>© 漠天 for <a href="http://motian.org">漠天博客</a>, 2009. |
<a href="http://motian.org/post/program-linux-gcchowto-211.html">永久链接</a> |
<a href="http://motian.org/post/program-linux-gcchowto-211.html#comments">11 comments</a> |标签: <a href="http://motian.org/tag/cc" rel="tag">C/C++</a><br/>
<strong>收藏分享本文：</strong>
<a style="color:#333333;text-align:center;font-size:12px;" href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/weibo.gif" alt="分享到新浪微博" border="0" height="16" width="16"/></a>

<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200" title="你在做啥"><img src="http://img.motian.org/pic/wp/zuosa.gif"/></a>

<a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网"><img src="http://img.motian.org/pic/wp/kaixin.gif" alt="转贴到开心网" border="0"/></a>

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="推荐到豆瓣" rel="nofollow" ><img src="http://img.motian.org/pic/wp/douban.png" border="0" height="16" width="16"></a>

<a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="http://img.motian.org/pic/wp/googlebookmark.png" alt="Google书签" border="0" height="16" width="16"/></a>

<a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="http://img.motian.org/pic/wp/qq.png" alt="QQ书签" border="0" height="16" width="16"/></a>

<a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0"><img src="http://img.motian.org/pic/wp/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi"><img src="http://img.motian.org/pic/wp/vivi.gif" alt="Sina ViVi" border="0"/></a>

<a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow"><img src="http://img.motian.org/pic/wp/yahoo.png" alt="yahoo收藏" border="0" height="16" width="16"/></a>

<a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()"><img src="http://img.motian.org/pic/wp/delicious.gif" alt="Del.icio.us" border="0" height="16" width="16"/></a>

<a title="推荐到digg.com" href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="http://img.motian.org/pic/wp/digg.gif" alt="digg" border="0"/></a>

<a href="javascript:void(location.href='https://twitter.com/home?status=Now%20reading%20<<'+encodeURIComponent(document.title)+'>>%20'+encodeURIComponent(location.href))" title="分享到 Twitter"><img src="http://img.motian.org/pic/wp/twitter.png" alt="分享到twitter"/></a>

 <br/>
<script type="text/javascript"><!--
google_ad_client = "pub-4498164283832126";
/* 468x60, 创建于 10-8-17 */
google_ad_slot = "2152552823";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>]]></content:encoded>
			<wfw:commentRss>http://motian.org/post/program-linux-gcchowto-211.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
<enclosure url="http://ubuntu:ubuntuftp@ftp.ubuntu.org.cn/home/dbzhang800/wiki/gcchowto1.avi" length="1464134" type="video/x-msvideo" />
		</item>
		<item>
		<title>词法分析器源代码</title>
		<link>http://motian.org/post/program-compiler-cifafenxiqi-195.html</link>
		<comments>http://motian.org/post/program-compiler-cifafenxiqi-195.html#comments</comments>
		<pubDate>Fri, 13 Nov 2009 16:51:07 +0000</pubDate>
		<dc:creator>漠天</dc:creator>
				<category><![CDATA[编程&开发]]></category>
		<category><![CDATA[编程技术]]></category>

		<guid isPermaLink="false">http://motian.org/?p=195</guid>
		<description><![CDATA[偶写的一个简单的词法分析程序源代码，经过测试没有问题。

D    [0-9]
L    [a-z A-Z]
H    [a-f A-F 0-9]

]]></description>
			<content:encoded><![CDATA[<p>偶写的一个简单的词法分析程序源代码，经过测试没有问题。</p>
<blockquote><p>D    [0-9]<br />
L    [a-z A-Z]<br />
H    [a-f A-F 0-9]<br />
%  <br />
{<br />
    #include &lt;stdio.h&gt;<br />
    #include &#8220;y.tab.h&#8221;<br />
    void count();<br />
%}<br />
%%<br />
&#8220;char&#8221;        {count();return(CHAR);}<br />
&#8220;else&#8221;        {count();return(ELSE);}<br />
&#8220;float&#8221;       {count();return(FLOAT);}<br />
&#8220;for&#8221;         {count();return(FOR);}<br />
&#8220;if&#8221;          {count();return(IF);}<br />
&#8220;int&#8221;         {count();return(INT);}<br />
{L}({L}{D})*  {count();return(check type());}<br />
&#8220;&amp;&amp;&#8221;          {count();return(AND_OP);}<br />
&#8220;||&#8221;          {count();return(OR_OP);}<br />
&#8220;;&#8221;           {count();return(&#8216;;&#8217;);}<br />
(&#8220;{&#8220;|&#8221;&lt;%&#8221;)    {count();return(&#8216;{&#8216;);}<br />
(&#8220;)&#8221;|&#8221;%&gt;&#8221;)    {count();return(&#8216;)&#8217;);}<br />
&#8220;:&#8221;           {count();return(&#8216;:&#8217;);}<br />
&#8220;=&#8221;           {count();return(&#8216;=&#8217;);}<br />
&#8220;/*&#8221;          {comment();}<br />
&#8220;c&#8221;           {count();return(&#8216;c&#8217;);}<br />
&#8220;.&#8221;           {count();return(&#8216;.&#8217;);}<br />
&#8220;!&#8221;           {count();return(&#8216;!&#8217;);}<br />
&#8220;&amp;&#8221;           {count();return(&#8216;&amp;&#8217;);}<br />
&#8220;-&#8221;           {count();return(&#8216;-&#8217;);}<br />
&#8220;+&#8221;           {count();return(&#8216;+&#8217;);}<br />
&#8220;*&#8221;           {count();return(&#8216;*&#8217;);}<br />
&#8220;/&#8221;           {count();return(&#8216;/&#8217;);}<br />
&#8220;%&#8221;           {count();return(&#8216;%&#8217;);}<br />
&#8220;&lt;&#8221;           {count();return(&#8216;&lt;&#8217;);}<br />
&#8220;&gt;&#8221;           {count();return(&#8216;&gt;&#8217;);}<br />
[/t/v/n/f]    {count();}<br />
.             {/*ignar bad characters*/}<br />
%%<br />
yywrap()<br />
{<br />
  return(1);<br />
}<br />
comment()<br />
{<br />
  char c,cl;<br />
  loop;<br />
  while((c=input())!=&#8217;*'&amp;&amp;c!=0)<br />
    putchar(c);<br />
  if((cl=input())!=&#8217;/'&amp;&amp;c!=0)<br />
  {<br />
    unput(cl);<br />
    goto loop;<br />
  }<br />
  if(c!=0)<br />
    putchar(cl);<br />
}<br />
int column=0;<br />
void count()<br />
{<br />
   int i;<br />
   for(i=0;yytex[i]!=&#8217;\0&#8242;;i++)<br />
   if(yytex[i]==&#8217;\n&#8217;)<br />
     column=0;<br />
   else if(yytext[i]==&#8217;\t&#8217;)<br />
   column+=8-(column%8);<br />
   else<br />
     column++;<br />
}<br />
int check_type()<br />
{<br />
   return(IDENTIFIER);<br />
}</p></blockquote>
<div class="similarity"><ul><li>随机文章</li></ul></div><!-- Tag --><hr />
<p>© 漠天 for <a href="http://motian.org">漠天博客</a>, 2009. |
<a href="http://motian.org/post/program-compiler-cifafenxiqi-195.html">永久链接</a> |
<a href="http://motian.org/post/program-compiler-cifafenxiqi-195.html#comments">6 comments</a> |标签: <a href="http://motian.org/tag/proability" rel="tag">编程技术</a><br/>
<strong>收藏分享本文：</strong>
<a style="color:#333333;text-align:center;font-size:12px;" href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/weibo.gif" alt="分享到新浪微博" border="0" height="16" width="16"/></a>

<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200" title="你在做啥"><img src="http://img.motian.org/pic/wp/zuosa.gif"/></a>

<a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网"><img src="http://img.motian.org/pic/wp/kaixin.gif" alt="转贴到开心网" border="0"/></a>

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="推荐到豆瓣" rel="nofollow" ><img src="http://img.motian.org/pic/wp/douban.png" border="0" height="16" width="16"></a>

<a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="http://img.motian.org/pic/wp/googlebookmark.png" alt="Google书签" border="0" height="16" width="16"/></a>

<a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="http://img.motian.org/pic/wp/qq.png" alt="QQ书签" border="0" height="16" width="16"/></a>

<a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0"><img src="http://img.motian.org/pic/wp/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi"><img src="http://img.motian.org/pic/wp/vivi.gif" alt="Sina ViVi" border="0"/></a>

<a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow"><img src="http://img.motian.org/pic/wp/yahoo.png" alt="yahoo收藏" border="0" height="16" width="16"/></a>

<a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()"><img src="http://img.motian.org/pic/wp/delicious.gif" alt="Del.icio.us" border="0" height="16" width="16"/></a>

<a title="推荐到digg.com" href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="http://img.motian.org/pic/wp/digg.gif" alt="digg" border="0"/></a>

<a href="javascript:void(location.href='https://twitter.com/home?status=Now%20reading%20<<'+encodeURIComponent(document.title)+'>>%20'+encodeURIComponent(location.href))" title="分享到 Twitter"><img src="http://img.motian.org/pic/wp/twitter.png" alt="分享到twitter"/></a>

 <br/>
<script type="text/javascript"><!--
google_ad_client = "pub-4498164283832126";
/* 468x60, 创建于 10-8-17 */
google_ad_slot = "2152552823";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>]]></content:encoded>
			<wfw:commentRss>http://motian.org/post/program-compiler-cifafenxiqi-195.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>黑客基础知识——DOS下的常用命令</title>
		<link>http://motian.org/post/safe-hack-dos-mingling-160.html</link>
		<comments>http://motian.org/post/safe-hack-dos-mingling-160.html#comments</comments>
		<pubDate>Mon, 26 Oct 2009 15:03:01 +0000</pubDate>
		<dc:creator>漠天</dc:creator>
				<category><![CDATA[编程&开发]]></category>
		<category><![CDATA[黑客]]></category>

		<guid isPermaLink="false">http://motian.org/?p=160</guid>
		<description><![CDATA[本文提供了在DOS下常用黑客命令的基础知识！

*net user 查看用户列表

*net user 用户名 密码 /add 添加用户]]></description>
			<content:encoded><![CDATA[<p>本文提供了在DOS下常用<span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/hack" title="查看 黑客 的全部文章" target="_blank">黑客</a></span>命令的基础知识！</p>
<p>*net user 查看用户列表</p>
<p>*net user 用户名 密码 /add 添加用户</p>
<p>*net user 用户名 密码 更改用户密码</p>
<p>*net localgroup administrators 用户名 /add 添加用户到管理组</p>
<p>*net user 用户名 /delete 删除用户</p>
<p>*net user 用户名 查看用户的基本情况</p>
<p>*net user 用户名 /active:no 禁用该用户</p>
<p>*net user 用户名 /active:yes 启用该用户</p>
<p>*net share 查看计算机IPC$共享资源</p>
<p>*net share 共享名 查看该共享的情况</p>
<p>*net share 共享名=路径 设置共享。例如 net share c$=c:</p>
<p>*net share 共享名 /delete 删除IPC$共享</p>
<p>*net use 查看IPC$连接情况</p>
<p>*net use //ip/ipc$Content$nbsp;&#8221;密码&#8221; /user:&#8221;用户名&#8221; ipc$连接</p>
<p>*net time //ip 查看远程计算机上的时间</p>
<p>*copy 路径:/文件名 //ip/共享名 复制文件到已经ipc$连接的计算机上</p>
<p>*net view ip 查看计算机上的共享资源</p>
<p>*ftp <a href="http://product.yesky.com/service/" target="_bank">服务器</a>地址 进入FTP服务器</p>
<p>*at 查看自己计算机上的计划作业</p>
<p>*at //ip 查看远程计算机上的计划作业</p>
<p>*at //ip 时间 命令(注意加盘符) 在远程计算机上加一个作业</p>
<p>*at //ip 计划作业ID /delete 删</p>
<div class="similarity"><h2>扩展阅读</h2><br /><ul><li><a href="http://motian.org/post/it-hack-windowsloudong-76.html">白帽黑客又爆Windows漏洞</a> (1.000)</li><li><a href="http://motian.org/post/diary-hack-qqloudong-78.html">QQ最新漏洞 无需申请拿无保QQ号</a> (1.000)</li><li><a href="http://motian.org/post/saosaowangzhan-205.html">扫扫网站，挑挑毛病</a> (1.000)</li></ul></div><!-- Tag --><hr />
<p>© 漠天 for <a href="http://motian.org">漠天博客</a>, 2009. |
<a href="http://motian.org/post/safe-hack-dos-mingling-160.html">永久链接</a> |
<a href="http://motian.org/post/safe-hack-dos-mingling-160.html#comments">No comment</a> |标签: <a href="http://motian.org/tag/hack" rel="tag">黑客</a><br/>
<strong>收藏分享本文：</strong>
<a style="color:#333333;text-align:center;font-size:12px;" href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/weibo.gif" alt="分享到新浪微博" border="0" height="16" width="16"/></a>

<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200" title="你在做啥"><img src="http://img.motian.org/pic/wp/zuosa.gif"/></a>

<a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网"><img src="http://img.motian.org/pic/wp/kaixin.gif" alt="转贴到开心网" border="0"/></a>

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="推荐到豆瓣" rel="nofollow" ><img src="http://img.motian.org/pic/wp/douban.png" border="0" height="16" width="16"></a>

<a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="http://img.motian.org/pic/wp/googlebookmark.png" alt="Google书签" border="0" height="16" width="16"/></a>

<a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="http://img.motian.org/pic/wp/qq.png" alt="QQ书签" border="0" height="16" width="16"/></a>

<a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0"><img src="http://img.motian.org/pic/wp/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi"><img src="http://img.motian.org/pic/wp/vivi.gif" alt="Sina ViVi" border="0"/></a>

<a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow"><img src="http://img.motian.org/pic/wp/yahoo.png" alt="yahoo收藏" border="0" height="16" width="16"/></a>

<a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()"><img src="http://img.motian.org/pic/wp/delicious.gif" alt="Del.icio.us" border="0" height="16" width="16"/></a>

<a title="推荐到digg.com" href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="http://img.motian.org/pic/wp/digg.gif" alt="digg" border="0"/></a>

<a href="javascript:void(location.href='https://twitter.com/home?status=Now%20reading%20<<'+encodeURIComponent(document.title)+'>>%20'+encodeURIComponent(location.href))" title="分享到 Twitter"><img src="http://img.motian.org/pic/wp/twitter.png" alt="分享到twitter"/></a>

 <br/>
<script type="text/javascript"><!--
google_ad_client = "pub-4498164283832126";
/* 468x60, 创建于 10-8-17 */
google_ad_slot = "2152552823";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>]]></content:encoded>
			<wfw:commentRss>http://motian.org/post/safe-hack-dos-mingling-160.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2009年SNS社区源码大集合</title>
		<link>http://motian.org/post/soft-soft-2009-sns-146.html</link>
		<comments>http://motian.org/post/soft-soft-2009-sns-146.html#comments</comments>
		<pubDate>Sat, 17 Oct 2009 16:34:17 +0000</pubDate>
		<dc:creator>漠天</dc:creator>
				<category><![CDATA[编程&开发]]></category>
		<category><![CDATA[软件应用]]></category>

		<guid isPermaLink="false">http://motian.org/?p=146</guid>
		<description><![CDATA[社会性网络（社会网络，Social Networking:SN）：是指个人之间的关系网络,这种基于社会网络关系系统思想的网站就是社会性网络网站(SNS网站)。现在许多WEB2.0网站都属于SNS网站，如网络聊天（IM）、交友、视频分享、博客、播客、微博客、网络社区、音乐共享等。社会性网络的理论基础源于六度理论（六度分隔理论，Six Degrees of Separation）和150法则（Rule Of 150）。另外不仅现在一些大公司网站开始了一些SNS应用，一些垂直领域的行业站点也开始了SNS的尝试，并且效果不错。]]></description>
			<content:encoded><![CDATA[<h3><span style="font-size: medium;"><strong>SNS定义</strong></span>：</h3>
<div>SNS：（Social Network Software）社会性网络软件，依据六度理论，以认识朋友的朋友为基础，扩展自己的人脉。并且无限扩张自己的人脉，在需要的时候，可以随时获取一点，得到该人脉的帮助。 社会性网络（社会网络，Social Networking:SN）：是指个人之间的关系网络,这种基于社会网络关系系统思想的网站就是社会性网络网站(SNS网站)。现在许多WEB2.0网站都属于SNS网站，如网络聊天（IM）、交友、视频分享、博客、播客、微博客、网络社区、音乐共享等。社会性网络的理论基础源于六度理论（六度分隔理论，Six Degrees of Separation）和150法则（Rule Of 150）。另外不仅现在一些大公司网站开始了一些SNS应用，一些垂直领域的行业站点也开始了SNS的尝试，并且效果不错。<a href="http://baike.baidu.com/view/8258.htm" target="_blank">参考资料</a></div>
<h3><span style="font-size: small;"><strong>一、PHP类</strong></span></h3>
<div>1、Ucenter home</div>
<div>      简介:Ucenter home是一套采用PHP+MYSQL构建的社会化网路软件，有国内社区产品及服务提供商康盛创想开发。通过它建站者可以构建一个以好友关系为核心的交流网络，让网站用户通过迷你博客记录生活中的点点滴滴，同时用户可以快捷的方便的上传图片、发表日志；更可以方便的与好友分享信息、讨论感兴趣的话题；轻松快捷的了解好友最新动态。应该说这是目前最流行的SNS程序，大部分的站长建立SNS时会采用Uenter home。</div>
<div>     官方网站：http://www.comsenz.com/products/uchome</div>
<div>2、ThinkSNS</div>
<div>     简介：ThinkSNS团队开发的旗舰产品ThinkSNS，是国内继OpenPNE、OpenKaku、Discuz Ucenter之后又一仿facebook的开源软件。据了解，ThinkSNS源于办公圈项目，WEB端基于国内技术领先的ThinkPHP框架开发，另外还有IM客户端软件。而且项目框架都有完善的文档和实例，非常适合二次开发。支持多模版，多语言，内置支持WP式插件开发，提供完善的API，和其他系统无缝集成。</div>
<div>     官方网站：http://www.thinksns.com</div>
<div>3、OpenPNE</div>
<div>     简介：OpenPNE是株式会社手嶋屋主持开发的开源sns引擎,搭载了丰富的sns机能，在PC和手机上都可以免费使用。作为公司内部和各种社区的交流工具，OpenPNE的应用领域非常广泛, 涉及到手机服务、视频服务、企业内部人力资源管理、招聘、交友/婚介、商品搜索购物、行业SNS商务人脉扩展、健康/美容、教育等服务领域。更符合用户习惯，使用者将非常容易上手，使用OpenPNE您可以自由构建各种类型的SNS,也可以根据自己的兴趣爱好打造属于自己的社交圈、兴趣圈、商业圈、朋友圈。</div>
<div>注：OpenPNE中文版已经停止了开发，官方网站却指向了百度的空间，但是我可以下载其2.92和3.0的版本。</div>
<div>    推荐下载站点：http://hi.baidu.com/openpne</div>
<h3><span style="font-size: small;"><strong>二、ASP.NET类</strong></span></h3>
<div>1、SapceBuilder </div>
<div>    简介：SpaceBuilder（简称SPB，软件著作权登记号： 2008SR14027）是一款基于asp.net技术开发的业内领先的web2.0社区平台。结合我们提供的博客、相册、文件、网摘、迷你博客、资讯、论坛、活动、圈子等应用模块，您可以快速的搭建web2.0特征的在线社区。借助SpaceBuilder平台的服务（用户、朋友、私信、邀请、权限、审核、隐私、积分、通知、动态、标签、分类、附件…），二次开发者可以快速的增加新的应用模块或者对现有的应用模块进行修改。SpaceBuilder最新版本采用asp.net mvc开发，是迄今为止基于asp.net技术的最强大的社区产品，采用了世界领先的技术体系架构、优异的缓存技术、基于Lucene的全文检索技术，可以承载千万级的数据，并提供良好的安全性及用户体验。</div>
<div>    官方网站：http://www.tunynet.com</div>
<div>2、JUSNS</div>
<div>    简介：<span style="color: blue;"><strong>JuSNS</strong></span>是一个基于.NET2.0+MS SQL server 2000/2005的一款平台型社交网络软件。她灵活多变，开发者(包括用户)可以基于JuSNS平台开发自己的社交关系。JuSNS对于个人学习或非盈利性质的组织(个人)完全免费且开源。<span style="color: blue;"><strong>JuSNS</strong></span>目前基础功能包括朋友，空间，心情日记，博客，相册，群组，分享，礼物，账本，电影，投票，活动，新闻，问答，留言本，记事本等16个基础模型</div>
<div>    官方网站：http://www.jusns.com/</div>
<div>3、CHSNS#</div>
<div>    简介：CHSNS#是一套运行在Windows2000及以上、SqlServer2005及以上、.net 2.0 sp1及以上、免费开源的SNS社区类网站程序。它是成幻小组 开发的一套SNS社区 是类似于Facebook 校内 占座 等SNS站点 可以通过一些配置而形成成一个较完善的SNS社区网站的程序</div>
<div>   官方网站：http://www.eice.com.cn/</div>
<div>     </div>
<div class="similarity"><h2>扩展阅读</h2><br /><ul><li><a href="http://motian.org/post/soft-softapplication-http-71.html">常见客户端HTTP请求返回代码</a> (1.000)</li><li><a href="http://motian.org/post/soft-application-xunlei-guanggao-105.html">和迅雷广告说:“Bey-Bey”</a> (1.000)</li><li><a href="http://motian.org/post/qingli-youjian-caidan-403.html">轻松清理右键菜单</a> (1.000)</li><li><a href="http://motian.org/post/program-soft-use-xunlei-445.html">让迅雷下载的胃口更大</a> (1.000)</li><li><a href="http://motian.org/post/visual-studio-2008-577.html">Visual Studio 2008 破解大法（win7版）</a> (1.000)</li><li><a href="http://motian.org/post/new-avant-free-use-633.html">小红伞合法永久免费试用 </a> (1.000)</li></ul></div><!-- Tag --><hr />
<p>© 漠天 for <a href="http://motian.org">漠天博客</a>, 2009. |
<a href="http://motian.org/post/soft-soft-2009-sns-146.html">永久链接</a> |
<a href="http://motian.org/post/soft-soft-2009-sns-146.html#comments">8 comments</a> |标签: <a href="http://motian.org/tag/soft-apply" rel="tag">软件应用</a><br/>
<strong>收藏分享本文：</strong>
<a style="color:#333333;text-align:center;font-size:12px;" href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/weibo.gif" alt="分享到新浪微博" border="0" height="16" width="16"/></a>

<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200" title="你在做啥"><img src="http://img.motian.org/pic/wp/zuosa.gif"/></a>

<a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网"><img src="http://img.motian.org/pic/wp/kaixin.gif" alt="转贴到开心网" border="0"/></a>

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="推荐到豆瓣" rel="nofollow" ><img src="http://img.motian.org/pic/wp/douban.png" border="0" height="16" width="16"></a>

<a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="http://img.motian.org/pic/wp/googlebookmark.png" alt="Google书签" border="0" height="16" width="16"/></a>

<a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="http://img.motian.org/pic/wp/qq.png" alt="QQ书签" border="0" height="16" width="16"/></a>

<a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0"><img src="http://img.motian.org/pic/wp/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi"><img src="http://img.motian.org/pic/wp/vivi.gif" alt="Sina ViVi" border="0"/></a>

<a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow"><img src="http://img.motian.org/pic/wp/yahoo.png" alt="yahoo收藏" border="0" height="16" width="16"/></a>

<a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()"><img src="http://img.motian.org/pic/wp/delicious.gif" alt="Del.icio.us" border="0" height="16" width="16"/></a>

<a title="推荐到digg.com" href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="http://img.motian.org/pic/wp/digg.gif" alt="digg" border="0"/></a>

<a href="javascript:void(location.href='https://twitter.com/home?status=Now%20reading%20<<'+encodeURIComponent(document.title)+'>>%20'+encodeURIComponent(location.href))" title="分享到 Twitter"><img src="http://img.motian.org/pic/wp/twitter.png" alt="分享到twitter"/></a>

 <br/>
<script type="text/javascript"><!--
google_ad_client = "pub-4498164283832126";
/* 468x60, 创建于 10-8-17 */
google_ad_slot = "2152552823";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>]]></content:encoded>
			<wfw:commentRss>http://motian.org/post/soft-soft-2009-sns-146.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
