<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[张宴的博客]]></title> 
<link>http://zyan.cc/index.php</link> 
<description><![CDATA[Web系统架构与底层研发]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[张宴的博客]]></copyright>
<item>
<link>http://zyan.cc/windows_mstsc/</link>
<title><![CDATA[Windows 服务程序、窗口界面与远程桌面的那点事]]></title> 
<author>张宴 &lt;net@s135.com&gt;</author>
<category><![CDATA[Windows相关]]></category>
<pubDate>Tue, 28 Jun 2011 09:17:51 +0000</pubDate> 
<guid>http://zyan.cc/windows_mstsc/</guid> 
<description>
<![CDATA[ 
	　　[文章作者：张宴 本文版本：v1.0 最后修改：2011.06.28 转载请注明原文链接：<a href="http://blog.zyan.cc/windows_mstsc/" target="_blank">http://blog.zyan.cc/windows_mstsc/</a>]<br/><br/>　　个人不喜欢服务端程序，以 Windows 操作系统作为运行平台，但是，很多时候，迫于环境现状，需要让自己的程序实现跨平台。<br/><br/>　　在开发全新的金山游戏运营平台时，发现：虽然大部分游戏，服务端程序运行在 Linux 服务器，但是，仍有例外。几款最近代理的游戏，服务端运行在 Windows 服务器上。西山居开发的游戏，服务端集群架构，既有 Windows 服务器，又有 Linux 服务器。<br/><br/>　　<a href="http://zyan.cc/attachment/201106/knose01.png" target="_blank"><img src="http://zyan.cc/attachment/201106/knose01.png" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><hr/><br/>　　游戏运行系统的 Knose 程序，我最初是在 Linux 下开发的，后来才实现了兼容 Windows 的跨平台版本。<br/><br/>　　<a href="http://zyan.cc/attachment/201106/knose02.png" target="_blank"><img src="http://zyan.cc/attachment/201106/knose02.png" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><hr/><br/>　　在 Linux 下，Knose 为“父子进程+指令处理线程池+独立功能多线程”结构；在 Windows 上，将 Knose 父子进程结构，拆分成了 knose_daemon.exe（Service 服务程序）和 knose.exe（主程序），由 knose_daemon.exe 启动 knose.exe。<br/><br/>　　<a href="http://zyan.cc/attachment/201106/knose03.png" target="_blank"><img src="http://zyan.cc/attachment/201106/knose03.png" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><hr/><br/>　　遇到了问题：按照运营维护需求，knose.exe 以及通过它启动的游戏服务端进程，需要有“窗口界面”，显示在桌面中。而 knose_daemon.exe 是以服务方式运行的，无窗口界面，knose_daemon.exe 启动的 knose.exe，窗口界面没有弹出来。<br/><br/>　　为了解决这个问题，我在 install.bat 中，用了 Windows 的 sc 命令，将 knose_daemon.exe 启动为系统服务，“type= interact type= own”设置了“允许桌面与服务交互”。在本机（Windows XP SP3）测试，knose.exe 的窗口界面以及通过它启动的游戏进程窗口界面，都弹出来了。<br/><br/><div style="border-left: 0px dashed #D6C094; margin: 5px; padding: 3px; margin-bottom:0px; border: 1px dashed #00a0c6; background-color: #ffffff;">@echo off<br/>sc create "KingeyesKnose" binPath= "%CD%&#92;knose_daemon.exe" DisplayName= "Kingeyes Knose Daemon" start= auto type= interact type= own<br/>sc description KingeyesKnose "金山游戏运营系统 KingEyes Knose 守护进程。"<br/>sc start KingeyesKnose</div><br/><br/>　　<a href="http://zyan.cc/attachment/201106/knose04.png" target="_blank"><img src="http://zyan.cc/attachment/201106/knose04.png" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><hr/><br/>　　于是将程序发布到 Windows Server 2003 服务器上，远程桌面连接上去，发现 knose.exe 的窗口界面始终弹不出来。<br/><br/>　　后来，同事发现，原来是“远程桌面”惹的祸：<br/><br/>　　远程桌面客户端 mstsc 有一个 /console 参数，模式等同于本地终端显示器登录，/console 不会去占用非 /console 远程桌面，远程桌面允许两个正常连接和一个控制台/console方式连接，并且正常连接和 /console 连接的桌面操作不能相互看见，只有通过 /console 参数远程桌面连接到 Windows 2003 服务器，才能够看到弹出的 knose.exe 窗口界面。<br/><br/>　　在 Windows XP SP3 以上版本，/console 参数改名为 /admin，需要用 mstsc /admin 启动远程桌面：<br/><br/>　　<a href="http://zyan.cc/attachment/201106/knose05.png" target="_blank"><img src="http://zyan.cc/attachment/201106/knose05.png" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>　　连上后，终于能够看到由 knose_daemon.exe 启动的 knose.exe 程序窗口，以及由 knose.exe 启动的游戏服务端进程窗口了。<br/><br/>Tags - <a href="http://zyan.cc/tags/windows/" rel="tag">windows</a> , <a href="http://zyan.cc/tags/mstsc/" rel="tag">mstsc</a> , <a href="http://zyan.cc/tags/console/" rel="tag">console</a> , <a href="http://zyan.cc/tags/admin/" rel="tag">admin</a> , <a href="http://zyan.cc/tags/%25E8%25BF%259C%25E7%25A8%258B%25E6%25A1%258C%25E9%259D%25A2/" rel="tag">远程桌面</a>
]]>
</description>
</item><item>
<link>http://zyan.cc/libevent_windows/</link>
<title><![CDATA[Windows 上静态编译 Libevent 2.0.10 并实现一个简单 HTTP 服务器]]></title> 
<author>张宴 &lt;net@s135.com&gt;</author>
<category><![CDATA[Windows相关]]></category>
<pubDate>Wed, 30 Mar 2011 00:40:22 +0000</pubDate> 
<guid>http://zyan.cc/libevent_windows/</guid> 
<description>
<![CDATA[ 
	　　[文章作者：张宴 本文版本：v1.0 最后修改：2011.03.30 转载请注明原文链接：<a href="http://blog.zyan.cc/libevent_windows/" target="_blank">http://blog.zyan.cc/libevent_windows/</a>]<br/><br/>　　本文介绍了如何在 Windows 操作系统中，利用微软 Visual Studio 2005 编译生成 <a href="http://monkey.org/~provos/libevent/" target="_blank">Libevent</a> 2.0.10 静态链接库，并利用 <a href="http://monkey.org/~provos/libevent/" target="_blank">Libevent</a> 静态链接库，实现一个简单的 HTTP Web服务器程序：httpd.exe。<br/><br/>　　假设 Visual Studio 2005 的安装路径为“D:&#92;Program Files&#92;Microsoft Visual Studio 8&#92;”，<a href="http://monkey.org/~provos/libevent/" target="_blank">Libevent</a> 2.0.10 解压后的路径为“D:&#92;libevent-2.0.10-stable”。<br/><br/><hr/><br/>　　<strong>一、编译生成 Libevent 2.0.10 静态链接库。</strong><br/>　　<br/>　　1、修改“D:&#92;libevent-2.0.10-stable&#92;event_iocp.c”、“D:&#92;libevent-2.0.10-stable&#92;evthread_win32.c”、“D:&#92;libevent-2.0.10-stable&#92;listener.c”三个文件，在文件开头分别加上一行：<br/><div style="border-left: 0px dashed #D6C094; margin: 5px; padding: 3px; margin-bottom:0px; border: 1px dashed #00a0c6; background-color: #ffffff;">#define _WIN32_WINNT 0x0500</div><br/><br/>　　2、鼠标点击Windows左下角的【开始】-【所有程序】，找到【Microsoft Visual Studio 2005】，执行下图中的脚本：<br/><br/>　　<a href="http://zyan.cc/attachment/201103/libevent/libevent1.png" target="_blank"><img src="http://zyan.cc/attachment/201103/libevent/libevent1.png" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/><br/>　　3、按照下图中的方法编译Libevent 2.0.10：<br/><br/>　　<a href="http://zyan.cc/attachment/201103/libevent/libevent2.png" target="_blank"><img src="http://zyan.cc/attachment/201103/libevent/libevent2.png" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/><br/>　　4、生成的“libevent.lib”、“libevent_core.lib”、“libevent_extras.lib”三个文件就是我们需要的 Libevent 静态链接库。<br/><br/>　　<a href="http://zyan.cc/attachment/201103/libevent/libevent3.png" target="_blank"><img src="http://zyan.cc/attachment/201103/libevent/libevent3.png" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/><hr/><br/>　　<strong>二、利用 Libevent 静态链接库，实现一个简单的 HTTP Web服务器程序</strong><br/><br/>　　1、打开 Visual Studio 2005，新建一个项目<br/><br/>　　<a href="http://zyan.cc/attachment/201103/libevent/libevent4.png" target="_blank"><img src="http://zyan.cc/attachment/201103/libevent/libevent4.png" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>............<br/><br/>Tags - <a href="http://zyan.cc/tags/libevent/" rel="tag">libevent</a> , <a href="http://zyan.cc/tags/windows/" rel="tag">windows</a> , <a href="http://zyan.cc/tags/vs2005/" rel="tag">vs2005</a> , <a href="http://zyan.cc/tags/visual/" rel="tag">visual</a> , <a href="http://zyan.cc/tags/studio/" rel="tag">studio</a> , <a href="http://zyan.cc/tags/lib/" rel="tag">lib</a> , <a href="http://zyan.cc/tags/%25E9%259D%2599%25E6%2580%2581%25E9%2593%25BE%25E6%258E%25A5%25E5%25BA%2593/" rel="tag">静态链接库</a>
]]>
</description>
</item><item>
<link>http://zyan.cc/truecrypt/</link>
<title><![CDATA[让U盘变成安全的加密便携式绿色软件盘]]></title> 
<author>张宴 &lt;net@s135.com&gt;</author>
<category><![CDATA[Windows相关]]></category>
<pubDate>Sat, 29 Jan 2011 10:07:22 +0000</pubDate> 
<guid>http://zyan.cc/truecrypt/</guid> 
<description>
<![CDATA[ 
	　　[文章作者：张宴 本文版本：v1.0 最后修改：2010.01.29 转载请注明原文链接：<a href="http://blog.zyan.cc/truecrypt" target="_blank">http://blog.zyan.cc/truecrypt</a>]<br/><br/>　　QQ、MSN、RTX的聊天历史记录，有时候在处理问题时，想查看一下，但换台电脑，就查看不到了，怎么办？Foxmail在公司收取的邮件，在家就看不到了，怎么解决？SecureCRT存放大量服务器SSH密码信息，换台电脑，如何不在新电脑上保存信息，同时又使用起来又方便、安全？存放在U盘上的机密文件，如何避免U盘丢失、被盗后，文件泄漏？<br/><br/>　　市面上有很多加密软件，但由于未开源，可能存在后门，或者漏洞，导致加密的文件可破解。因此，对于加密软件来说，还是开源的比较靠谱。源码都公开，留有后门的可能性不存在了。在源码都可以查看的情况下，如果能够破解，早就可以破解了。<br/><br/>　　TrueCrypt（<a href="http://www.truecrypt.org/" target="_blank">http://www.truecrypt.org/</a>）是一款开源的绿色加密软件。它可以在硬盘或闪存上创建一个或多个虚拟磁盘，所有虚拟磁盘上的文件都被自动加密，加密后需要通过密码来进行访问，由于加入了AES-256加密算法，使得加密数据几乎不可能被，对于没有商务安全功能的普通电脑，或者不舍得购买加密闪存的商务用户，TrueCrypt可以让他们的数据存储安全可靠。<br/><br/>　　前几天公司发了两个2GB的金山毒霸版U盘，我将我的QQ、MSN、公司内部通讯工具RTX、SSH客户端SecureCRT、OpenSSL VPN、Foxmail、一些文档都装在了其中一个U盘上。<br/><br/>　　<a href="http://zyan.cc/attachment/201001/v1.gif" target="_blank"><img src="http://zyan.cc/attachment/201001/v1.gif" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>　　关于TrueCrypt的安全性，有一则外电新闻：<a href="http://www.security.nl/artikel/33724" target="_blank">http://www.security.nl/artikel/33724</a><br/>&nbsp;&nbsp;<br/>　　FBI在经过一年的尝试后，还是未能破译被巴西执法机构指控金融犯罪的巴西银行家的加密文件。巴西一家葡萄牙语报纸报道（葡萄牙语），巴西联邦警察在2008年7月展开的Satyagraha行动中，在银行家Daniel Dantas位于里约热内卢的公寓内收缴了5个硬盘。文章提到硬盘使用了两种加密程序，一种是TrueCrypt，另一种是不知名的256位AES加密软件。在专家未能破解密码后，巴西政府在2009年初请求美国提供帮助，然而美国联邦警察在一年不成功的尝试后，退还了硬盘。巴西现有的法律中不存在强制要求Dantas交出密码的规定。<br/><br/><hr/><br/>　　使用步骤：将TrueCrypt拷贝到U盘上，然后运行TrueCrypt.exe。<br/><br/>　　1、创建文件加密卷<br/><br/>............<br/><br/>Tags - <a href="http://zyan.cc/tags/truecrypt/" rel="tag">truecrypt</a> , <a href="http://zyan.cc/tags/u%25E7%259B%2598/" rel="tag">u盘</a> , <a href="http://zyan.cc/tags/%25E5%258A%25A0%25E5%25AF%2586/" rel="tag">加密</a> , <a href="http://zyan.cc/tags/aes/" rel="tag">aes</a>
]]>
</description>
</item><item>
<link>http://zyan.cc/chrome_phone/</link>
<title><![CDATA[用谷歌浏览器来当手机模拟器]]></title> 
<author>张宴 &lt;net@s135.com&gt;</author>
<category><![CDATA[Windows相关]]></category>
<pubDate>Thu, 30 Sep 2010 09:44:18 +0000</pubDate> 
<guid>http://zyan.cc/chrome_phone/</guid> 
<description>
<![CDATA[ 
	　　很多网站都通过User-Agent来判断浏览器类型，如果是3G手机，显示手机页面内容，如果是普通浏览器，显示普通网页内容。<br/><br/>　　谷歌Chrome浏览器，可以很方便地用来当3G手机模拟器。在Windows的【开始】-->【运行】中输入以下命令，启动谷歌浏览器，即可模拟相应手机的浏览器去访问3G手机网页：<br/><br/>　　谷歌Android：<br/><div style="border-left: 0px dashed #D6C094; margin: 5px; padding: 3px; margin-bottom:0px; border: 1px dashed #00a0c6; background-color: #ffffff;">chrome.exe --user-agent="Mozilla/5.0 (Linux; U; Android 2.2; en-us; Nexus One Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"</div><br/><br/>　　苹果iPhone 4：<br/><div style="border-left: 0px dashed #D6C094; margin: 5px; padding: 3px; margin-bottom:0px; border: 1px dashed #00a0c6; background-color: #ffffff;">chrome.exe --user-agent="Mozilla/5.0 (iPhone; CPU iPhone OS 5_0_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Mobile/9A405"</div><br/><br/>　　苹果iPad 2：<br/><div style="border-left: 0px dashed #D6C094; margin: 5px; padding: 3px; margin-bottom:0px; border: 1px dashed #00a0c6; background-color: #ffffff;">chrome.exe --user-agent="Mozilla/5.0 (iPad; CPU OS 5_0_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Mobile/9A405"</div><br/><br/>　　诺基亚N97：<br/><div style="border-left: 0px dashed #D6C094; margin: 5px; padding: 3px; margin-bottom:0px; border: 1px dashed #00a0c6; background-color: #ffffff;">chrome.exe --user-agent="Mozilla/5.0 (SymbianOS/9.4; Series60/5.0 NokiaN97-1/20.0.019; Profile/MIDP-2.1 Configuration/CLDC-1.1) AppleWebKit/525 (KHTML, like Gecko) BrowserNG/7.1.18124"</div><br/><br/>　　试一试，分别用Android、iPhone、诺基亚访问<a href="http://www.163.com/" target="_blank">http://www.163.com/</a>、<a href="http://blog.zyan.cc/" target="_blank">http://blog.zyan.cc/</a>、<a href="http://www.google.com.hk/" target="_blank">http://www.google.com.hk/</a>、<a href="http://3g.qq.com" target="_blank">http://3g.qq.com</a>、<a href="http://t.sina.cn" target="_blank">http://t.sina.cn</a>这些3G手机网页，看看有什么不同。<br/><br/>　　更多款手机的User-Agent：<a href="http://www.zytrax.com/tech/web/mobile_ids.html" target="_blank">http://www.zytrax.com/tech/web/mobile_ids.html</a><br/><br/>　　10月11日备注：如果想切换回普通浏览器模式，关掉所有Chrome浏览器，重开即可。如果不想关闭浏览器，切回普通浏览器模式，则访问：<br/><div style="border-left: 0px dashed #D6C094; margin: 5px; padding: 3px; margin-bottom:0px; border: 1px dashed #00a0c6; background-color: #ffffff;">chrome.exe --user-agent="Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.77 Safari/535.7"</div><br/>Tags - <a href="http://zyan.cc/tags/chrome/" rel="tag">chrome</a> , <a href="http://zyan.cc/tags/mobile/" rel="tag">mobile</a> , <a href="http://zyan.cc/tags/phone/" rel="tag">phone</a>
]]>
</description>
</item><item>
<link>http://zyan.cc/google_public_dns/</link>
<title><![CDATA[Google 公共 DNS 解析服务器]]></title> 
<author>张宴 &lt;net@s135.com&gt;</author>
<category><![CDATA[Windows相关]]></category>
<pubDate>Sun, 06 Dec 2009 23:09:15 +0000</pubDate> 
<guid>http://zyan.cc/google_public_dns/</guid> 
<description>
<![CDATA[ 
	　　Google 推出了公共的 DNS 解析服务器（<a href="http://code.google.com/speed/public-dns/" target="_blank">Google Public DNS</a>），可以用来代替 <a href="http://www.opendns.com/" target="_blank">OpenDNS</a>。Google承诺将严格遵循DNS协议，即不阻挡、不劫持和不过滤用户查询。Google Public DNS服务器IP非常好记，过目难忘：<br/><br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><span style="color: #FF0000;">8.8.8.8</span>　　　　　　　　google-public-dns-a.google.com<br/><span style="color: #FF0000;">8.8.4.4</span>　　　　　　　　google-public-dns-b.google.com</div></div><br/><br/>　　<a href="http://zyan.cc/attachment/200912/google-dns.png" target="_blank"><img src="http://zyan.cc/attachment/200912/google-dns.png" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>　　<a href="http://zyan.cc/attachment/200912/google-nslookup.png" target="_blank"><img src="http://zyan.cc/attachment/200912/google-nslookup.png" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>　　当然，短IP的DNS服务器还有以下这些：<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><span style="color: #FF0000;">4.3.2.1</span><br/>4.2.2.1<br/>4.2.2.2<br/>4.2.2.3<br/>4.2.2.4<br/>4.2.2.5<br/>4.2.2.6</div></div><br/><br/>Tags - <a href="http://zyan.cc/tags/google/" rel="tag">google</a> , <a href="http://zyan.cc/tags/public/" rel="tag">public</a> , <a href="http://zyan.cc/tags/dns/" rel="tag">dns</a>
]]>
</description>
</item><item>
<link>http://zyan.cc/post/207/</link>
<title><![CDATA[可以上传、下载文件的SSH客户端软件--SecureCRT绿色版]]></title> 
<author>张宴 &lt;net@s135.com&gt;</author>
<category><![CDATA[Windows相关]]></category>
<pubDate>Sun, 18 Mar 2007 09:57:17 +0000</pubDate> 
<guid>http://zyan.cc/post/207/</guid> 
<description>
<![CDATA[ 
	　　我用过putty、SSH Secure Shell Client等Windows下的SSH客户端软件，这些软件可以实现终端仿真，通过Shell命令远程操作Linux、FreeBSD系统，却不能直接上传文件到服务器或从服务器下载文件，还必须配合使用单独的psftp、WinSCP等基于SSH(sftp、scp)进行文件传输的软件，不太方便。<br/>　　<br/><img src="attachment/200703/SecurID.gif" align="right" border="0">　　对于采用了美国RSA信息安全公司的SecurID双重认证系统的用户来说，psftp、WinSCP等软件就无法使用了。因为SecurID系统包含一个配备液晶显示的令牌(Token)，令牌每60秒便能产生一组全新的6位数字密码。用户在登录服务器时，除输入其帐号、密码及私人PIN码外，还需输入显示在令牌上的6位数字，黑客想猜出密码进行入侵几乎是不可能的，但由于psftp、WinSCP等软件无法输入SecurID令牌密码，因而不能进行文件传输。<br/>　　<br/>　　而SecureCRT这款国外的SSH客户端软件则同时具备了终端仿真器和文件传输功能。<br/>　　<br/>　　上传文件只需在shell终端仿真器中输入命令“<font color="red">rz</font>”，即可从弹出的对话框中选择本地磁盘上的文件，利用Zmodem上传到服务器，例如(上传一个rsyncd.conf文件到服务器)：<br/>　　[root@localhost ~]# rz<br/>　　rz waiting to receive.<br/>　　正在开始 zmodem 传输。 按 Ctrl+C 取消。<br/>　　正在传输 rsyncd.conf...<br/>　　 &nbsp;100% &nbsp; &nbsp; 715 bytes &nbsp;715 bytes/s 00:00:01 &nbsp; &nbsp; &nbsp; 0 错误<br/>　　<br/>　　下载文件只需在shell终端仿真器中输入命令“<font color="red">sz 文件名</font>”，即可利用Zmodem将文件下载到“路径&#92;SecureCRT-5.1.3&#92;download&#92;”目录下，例如(下载服务器当前目录下的rsyncd.conf文件到本地)：<br/>　　[root@localhost ~]# sz rsyncd.conf<br/>　　rz<br/>　　正在开始 zmodem 传输。 按 Ctrl+C 取消。<br/>　　正在传输 rsyncd.conf...<br/>　　 &nbsp;100% &nbsp; &nbsp; 715 bytes &nbsp;715 bytes/s 00:00:01 &nbsp; &nbsp; &nbsp; 0 错误<br/>　　<br/>　　如果要改变SecureCRT终端的背景颜色和文件名颜色，只需点击菜单栏上的“选项”－“会话选项”，在“终端“－“仿真”分类的右侧窗口选上“ANSI 颜色”以及“选择一个备用的键盘仿真－Linux”，如图：<br/>　　<img src="attachment/200703/SecureCRT.jpg" border="0"><br/>　　<br/>　　《SecureCRT 5.1.3 绿色汉化版》下载地址：<br/>　　<a href="http://ishare.sina.com.cn/cgi-bin/fileid.cgi?fileid=1386760" target="_blank"><font color="blue"><a href="http://ishare.sina.com.cn/cgi-bin/fileid.cgi?fileid=1386760" target="_blank">http://ishare.sina.com.cn/cgi-bin/fileid.cgi?fileid=1386760</a></font></a>
]]>
</description>
</item><item>
<link>http://zyan.cc/post/186/</link>
<title><![CDATA[IE7浏览器简体中文版的安装、设置和使用方法[原创]]]></title> 
<author>张宴 &lt;net@s135.com&gt;</author>
<category><![CDATA[Windows相关]]></category>
<pubDate>Thu, 28 Dec 2006 08:22:17 +0000</pubDate> 
<guid>http://zyan.cc/post/186/</guid> 
<description>
<![CDATA[ 
	　　我今天安装了微软公司的Internet Explorer 7网络浏览器简体中文版，总结了IE7的安装、设置和使用方法如下：<br/>　　<br/>　　一、安装<br/>　　1、下载IE7简体中文版安装程序<br/>　　①、Internet Explorer 7.0.5730.11 for XP SP2 简体中文版 (此版本只能运行于Windows XP SP2) [<a href="http://download.microsoft.com/download/4/1/8/418981A4-6EF9-4DE6-BEFC-1A53E886CB62/ie7-windowsxp-x86-chs.exe"><font color="blue">微软网站下载</font></a>] [<a href="http://www.newhua.com/soft/48511.htm" target="_blank"><font color="blue">华军软件园下载</font></a>]<br/>　　<br/>　　②、Internet Explorer 7.0.5730.11 for Win2003 SP1 简体中文版 (此版本只能运行于Win2003 SP1) [<a href="http://download.microsoft.com/download/8/8/d/88dc5518-0a4d-4912-a8a3-a0fcb6fb657f/IE7-WindowsServer2003-x86-chs.exe"><font color="blue">微软网站下载</font></a>] [<a href="http://www.newhua.com/soft/9800.htm" target="_blank"><font color="blue">华军软件园下载</font></a>]<br/>　　<br/>　　<font color="red">*由于IE7安装时会验证Windows是否为正版，盗版Windows用户请按以下步骤进行破解：</font><br/>　　2、切断网络(禁用网络连接、拔掉网线或关闭ADSL)。<br/>　　<br/>　　3、安装IE7，出现正版验证页面时，点击验证按钮。验证的结果肯定是通不过，这时不管它，不要退出IE7安装程序。<br/>　　<br/>　　4、点击【开始】－【运行】，输入路径C:&#92;Documents and Settings&#92;All Users&#92;Application Data&#92;Windows Genuine Advantage&#92;data按回车键，在该目录下找到data.dat文件，删除它。<br/>　　<br/>　　5、回到IE7安装程序，再一次点击验证按钮，即可通过。安装完成后重新启动计算机。<br/><br/>............<br/>
]]>
</description>
</item><item>
<link>http://zyan.cc/post/84/</link>
<title><![CDATA[如何寻找联想电脑驱动程序[原创]]]></title> 
<author>张宴 &lt;net@s135.com&gt;</author>
<category><![CDATA[Windows相关]]></category>
<pubDate>Sat, 01 Oct 2005 10:33:53 +0000</pubDate> 
<guid>http://zyan.cc/post/84/</guid> 
<description>
<![CDATA[ 
	　　我们大班的一个女生为她的笔记本电脑重装操作系统后，驱动程序盘找不到了，找不到声、显卡驱动程序，从网上下载的驱动程序因型号不对，安装了也不行。于是她把她的笔记本电脑借我，让我帮她找一下驱动。<br/>　　我看了一下该笔记本电脑，是联想昭阳笔记本，于是就打开联想集团中文网站(<a href="http://www.lenovo.com.cn" target="_blank"><font color="blue"><a href="http://www.lenovo.com.cn" target="_blank">http://www.lenovo.com.cn</a></font></a>)看看能不能找到相关驱动程序。我发现在“支持&下载”栏目(<a href="http://www.lenovo.com.cn/Support/Channel/" target="_blank"><font color="blue"><a href="http://www.lenovo.com.cn/Support/Channel/" target="_blank">http://www.lenovo.com.cn/Support/Channel/</a></font></a>)输入她笔记本电脑的主机编号<font color="red">EB02556068</font>(从笔记本背面查看获取)，就可以查到并下载该型号联想笔记本电脑的驱动程序了。<br/><center><img src="http://blog.zyan.cc/tools/readfile/photo.php?url=http://photo.hexun.com/p/2005/1006/4184/b_29E85A89E1C8B781.jpg" border="0"></center><br/>　　<b>附1：联想笔记本电脑主机编号获取方法</b><br/>　　主机编号位置：联想电脑装箱单或主机背面<br/>　　联想电脑装箱单上标明的是："主机编号：NB0XXXXXXX" 或 "主机编号：EB0XXXXXXX"<br/>　　主机背面标明的是："S/N：XXXXXXX"<br/>　　说明：<br/>　　主机背面的编号S/N：XXXXXXX，(编号小于1570000)录入时需要加上NB0，即NB0+XXXXXXX <br/>　　主机背面的编号S/N：XXXXXXX，(编号大于1570000)录入时需要加上EB0，即EB0+XXXXXXX <br/>　　<font color="red">NB、EB后为数字0,不是字母。</font><br/>　　举例：<br/>　　(装箱单)主机编号：EB07237684，录入：EB07237684<br/>　　(主机背面)S/N：7237684，录入：EB07237684 <br/>　　(装箱单)主机编号：NB00965438，录入：NB00965438<br/>　　(主机背面)S/N：965438，录入：NB00965438<br/>　　<br/>　　<b>附2：联想台式电脑主机编号获取方法</b><br/>　　主机编号位置：装箱单上注明“出厂编号”后面的一组号码。或者主机背面产品标签上注明为“出厂编号”后面的一组号码。<br/>　　填写原则：最好以装箱单为准，若没有装箱单，主机上条形码的填写原则目前产品为前十位，早期产品为前六位或七位，以最先出现的字母为界限（首字母除外）；<br/>　　举例：<br/>　　目前产品：如条形码为：NA02001263NA19121620，则输入：NA02001263<br/>　　早期产品：如条形码为：434648AAXXXXXXXXX，则输入：434648<br/>　　又如条形码为：S442663AXXXXXXXXX，则输入：S442663
]]>
</description>
</item><item>
<link>http://zyan.cc/post/58/</link>
<title><![CDATA[Microsoft SQL Server数据库的备份与恢复[原创]]]></title> 
<author>张宴 &lt;net@s135.com&gt;</author>
<category><![CDATA[Windows相关]]></category>
<pubDate>Tue, 16 Aug 2005 09:18:37 +0000</pubDate> 
<guid>http://zyan.cc/post/58/</guid> 
<description>
<![CDATA[ 
	　　这是我以前做的一个网站项目中的开发文档附件。我后来的一段时间都是用PHP+MySQL数据库做网站，很久没接触SQL Server数据库了，但现在又要跟SQL Server数据库打交道了，就把这个附近发了出来，方便参考。<br/><br/>★附件㈠、如何进行SQL Server数据库的备份与恢复<br/><br/>　　方法一、利用备份和恢复 <br/><br/>　　先对源数据库进行完全备份，备份到一个设备（device）上，然后把备份文件复制到目的服务器上（恢复的速度快），进行数据库的恢复操作，在恢复的数据库名中填上源数据库的名字（名字必须相同），选择强制型恢复（可以覆盖以前数据库的选项），在选择从设备中进行恢复，浏览时选中备份的文件就行了。这种方法可以完全恢复数据库，包括外键，主键，索引。 <br/><br/>　　方法二、直接拷贝数据文件 <br/><br/>　　把数据库的数据文件（*.mdf）和日志文件（*.ldf）都拷贝到目的服务器，在SQL Server Query Analyzer（中文名：SQL查询分析器）中用语句进行恢复: <br/><br/>EXEC sp_attach_db @dbname = 'test', <br/>@filename1 = 'c:&#92;mssql&#92;data&#92;test_data.mdf', <br/>@filename2 = 'c:&#92;mssql&#92;data&#92;test_log.ldf' <br/><br/>　　这样就把test数据库附加到SQL Server中，可以照常使用。如果不想用原来的日志文件，可以用如下的命令： <br/><br/>EXEC sp_detach_db @dbname = 'test' <br/>EXEC sp_attach_single_file_db @dbname = 'test', <br/>@physname = 'c:&#92;mssql&#92;data&#92;test_data.mdf' <br/><br/>　　这个语句的作用是仅仅加载数据文件，日志文件可以由SQL Server数据库自动添加，但是原来的日志文件中记录的数据就丢失了。 
]]>
</description>
</item><item>
<link>http://zyan.cc/post/45/</link>
<title><![CDATA[解决IE浏览器打不开的办法[原创]]]></title> 
<author>张宴 &lt;net@s135.com&gt;</author>
<category><![CDATA[Windows相关]]></category>
<pubDate>Tue, 12 Jul 2005 06:39:15 +0000</pubDate> 
<guid>http://zyan.cc/post/45/</guid> 
<description>
<![CDATA[ 
	　　习惯地打开电脑，习惯地点击IE浏览器，但它却打不开了，点击后没任何反应。查看进程，发现iexplore.exe在进程中，猜想可能是IE模块损坏了，于是将这些模块重新注册了一遍，问题解决。<br/>　　【开始】－【运行】－依次输入以下命令 <br/>　　regsvr32 Shdocvw.dll <br/>　　regsvr32 Oleaut32.dll <br/>　　regsvr32 Actxprxy.dll <br/>　　regsvr32 Mshtml.dll <br/>　　regsvr32 Urlmon.dll<br/>　　我通过这种方法使IE浏览器恢复了正常。如果发现无效，再重新输入一遍，这次在输入完第一条命令后再加入一条命令regsvr32 Shell32.dll，然后再依次输入余下的命令，重新启动计算机即可。<br/>Tags - <a href="http://zyan.cc/tags/ie/" rel="tag">ie</a> , <a href="http://zyan.cc/tags/%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8/" rel="tag">浏览器</a>
]]>
</description>
</item><item>
<link>http://zyan.cc/post/9/</link>
<title><![CDATA[1小时ASP快速入门[转贴]]]></title> 
<author>张宴 &lt;net@s135.com&gt;</author>
<category><![CDATA[Windows相关]]></category>
<pubDate>Sat, 28 May 2005 03:38:24 +0000</pubDate> 
<guid>http://zyan.cc/post/9/</guid> 
<description>
<![CDATA[ 
	　　经常有人问我，在没有任何基础的情况下，怎么学习动态网页编程。今天偶尔发现一篇《1小时ASP快速入门》的文章，或许对他们很有用，就转了过来。我一开始学的也是ASP语言，自己在2003年8月创办的网站---商资网就是用ASP写的。但现在已经很久没用ASP技术做动态网站了，原因是学校大多数网站的服务器用的是Linux操作系统，WEB服务自然也就是PHP语言＋MySQL数据库了。正如我相信的一句话：“如果不能改变现实，就要面对现实。在现实的基础上因势利导。”我要给学校一些部门做网站，但我不可能叫他们更换操作系统与PHP服务，所以我后来转向了PHP技术。我给经济学院做的网站、给校党委宣传部做的中南民族大学新闻网、给就业指导服务中心做的中南民族大学就业信息网等等，都用的是PHP技术。虽然我已经可以决定在服务器上安装什么系统、采用什么技术，但此时已经习惯了PHP，就用PHP了做了。现在很多企业、国家机关的网站开始用JSP、ASP.NET技术写，我想，未来我可能还会转向JSP、ASP.NET。<br/>　　1小时ASP快速入门，原文如下：<br/><br/>............<br/>
]]>
</description>
</item>
</channel>
</rss>