<?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>Leery&#039; blog &#187; 其它</title>
	<atom:link href="http://www.cnpublic.com/category/%e5%85%b6%e5%ae%83/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cnpublic.com</link>
	<description>A New Linuxer!</description>
	<lastBuildDate>Fri, 23 Jul 2010 06:13:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>理解SQL Server的查询计划</title>
		<link>http://www.cnpublic.com/2010/04/mssqlserverqueryplan1/</link>
		<comments>http://www.cnpublic.com/2010/04/mssqlserverqueryplan1/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 10:17:33 +0000</pubDate>
		<dc:creator>wilensky</dc:creator>
				<category><![CDATA[其它]]></category>
		<category><![CDATA[mssql执行计划]]></category>

		<guid isPermaLink="false">http://www.cnpublic.com/?p=209</guid>
		<description><![CDATA[ 让我们以一个简单的例子帮助你理解如何阅读查询计划，可以通过发出SET SHOWPLAN_TEXT On命令，或者在SQL Query Analyzer 的配置属性中设置同样的选项等方式得到查询计划。
        注意：这个例子使用了表pubs..big_sales，该表与pubs..sales表完全相同，除了多了８０，０００行的记录，以当作简单explain plan例子的主要数据。
        如下所示，这个最简单的查询将扫描整个聚集索引，如果该索引存在。注意聚集键值是物理次序，数据按该次序存放。所以，如果聚集键值存在，你将可能避免对整个表进行扫描。即使你所选的列不在聚集键值中，例如ord_date，这个查询引擎将用索引扫描并返回结果集。

        SELECT *
        FROM big_sales
        SELECT ord_date
        FROM big_sales
        StmtText
         &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;
        &#124;&#8211;ClusteredIndexScan(OBJECT:([pubs].[dbo].[big_sales].[UPKCL_big_sales]))
        上面的查询展示返回的数据量非常不同，所以小结果集(ord_date)的查询比其它查询运行更快，这只是因为存在大量底层的I/O。然而，这两个查询计划实际上是一样的。你可以通过使用其它索引提高性能。例如，在title_id列上有一个非聚集索引存在：
       SELECT title_id
       FROM big_sales
       StmtText
        &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;
        &#124;&#8211;Index Scan(OBJECT:([pubs].[dbo].[big_sales].[ndx_sales_ttlID]))
        上面的查询的执行时间与SELECT *查询相比非常小，这是因为可以从非聚集索引即可得到所有结果。该类查询被称为covering query（覆盖查询），因为全部结果集被一个非聚集索引所覆盖。
    SEEK与SCAN
 
        第一件事是你需要在查询计划中区别SEEK和SCAN操作的不同。
       注意：一个简单但非常有用的规则是SEEK操作是有效率的，而SCAN操作即使不是非常差，其效率也不是很好。SEEK操作是直接的，或者至少是快速的，而SCAN操作需要对整个对象进行读取（表，聚集索引或非聚集索引）。因此，SCAN操作通常比SEEK要消耗更多的资源。如果你的查询计划仅是扫描操作，你就应该考虑调整你的查询了。
       where子句在查询性能中能产生巨大的差异，如下面展示的：
        Select *
        From big_sales
        Where stor_id=’6380’
        StmtText
        &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#124;&#8211;Clustered
        Index Seek(OBJECT: ([pubs].[dbo].[big_sales].[UPKCL_big_sales])),SEEK: ([big_sales].[stor_id]={@1} ORDERED FORWARD)
        上面的查询是在聚集索引上执行SEEK而不是SCAN操作。这个SHOWPLAN确切的描述SEEK操作是基于stor_id并且结果是按照在索引中存储的顺序排序的。因为SQL Server支持索引的向前和向后滚动的性能是相同的，所以你可以在查询计划中看到ORDERED FORWARD 或ORDERED BACKWARD。这只是告诉你表或索引读取的方向。你甚至可以在ORDER BY子句中通过用ASC和DESC关键字操作这些行为。范围查询返回的查询计划，与前面的直接查询的查询计划很相似。下面两个范围查询可提供一些信息：
        Select *
        From big_sales
        Where stor_id&#62;=’7131’
        StmtText
        &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#124;-Clustered
        Index Seek(OBJECT: ([pubs].[dbo].[big_sales].[UPKCL_big_sales] ),SEEK: ([big_sales].[stor_id]&#62;=’7131’) ORDER FORWARD
        上面的查询看起来很象以前的例子，除了SEEK谓词有点不同。
        Select *
        From big_sales
        Where stor_id between ‘7066’ and ‘7131’
        StmtText
         &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#124;-Clustered
         Index Seek(OBJECT: ([pubs].[dbo].[big_sales].[UPKCL_big_sales] ),SEEK:([big_sales].[stor_id]&#62;=’7066’ [...]]]></description>
		<wfw:commentRss>http://www.cnpublic.com/2010/04/mssqlserverqueryplan1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux 中压缩解压命令</title>
		<link>http://www.cnpublic.com/2009/12/linux-%e4%b8%ad%e5%8e%8b%e7%bc%a9%e8%a7%a3%e5%8e%8b%e5%91%bd%e4%bb%a4/</link>
		<comments>http://www.cnpublic.com/2009/12/linux-%e4%b8%ad%e5%8e%8b%e7%bc%a9%e8%a7%a3%e5%8e%8b%e5%91%bd%e4%bb%a4/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 07:07:18 +0000</pubDate>
		<dc:creator>wilensky</dc:creator>
				<category><![CDATA[其它]]></category>
		<category><![CDATA[linux压缩]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[解压]]></category>

		<guid isPermaLink="false">http://www.cnpublic.com/?p=198</guid>
		<description><![CDATA[linux 中压缩解压命令，网络收集仅供查阅
.tar
解包：tar xvf FileName.tar
打包：tar cvf FileName.tar DirName
（注：tar是打包，不是压缩！）
———————————————
.gz
解压1：gunzip FileName.gz
解压2：gzip -d FileName.gz
压缩：gzip FileName
.tar.gz 和 .tgz
解压：tar zxvf FileName.tar.gz
压缩：tar zcvf FileName.tar.gz DirName
———————————————
.bz2
解压1：bzip2 -d FileName.bz2
解压2：bunzip2 FileName.bz2
压缩： bzip2 -z FileName
.tar.bz2
解压：tar jxvf FileName.tar.bz2
压缩：tar jcvf FileName.tar.bz2 DirName
———————————————

.bz
解压1：bzip2 -d FileName.bz
解压2：bunzip2 FileName.bz
压缩：未知
.tar.bz
解压：tar jxvf FileName.tar.bz
压缩：未知
———————————————
.Z
解压：uncompress FileName.Z
压缩：compress FileName
.tar.Z
解压：tar Zxvf FileName.tar.Z
压缩：tar Zcvf FileName.tar.Z DirName
———————————————
.zip
解压：unzip FileName.zip
压缩：zip FileName.zip DirName
———————————————
.rar
解压：rar x FileName.rar
压缩：rar a FileName.rar DirName
———————————————
.lha
解压：lha -e FileName.lha
压缩：lha -a FileName.lha FileName
———————————————
.rpm
解包：rpm2cpio FileName.rpm [...]]]></description>
		<wfw:commentRss>http://www.cnpublic.com/2009/12/linux-%e4%b8%ad%e5%8e%8b%e7%bc%a9%e8%a7%a3%e5%8e%8b%e5%91%bd%e4%bb%a4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>错误&#8221;System.Data.OracleClient需要Oracle客户端软件8.1.7或更高版本&#8221;的解决办法</title>
		<link>http://www.cnpublic.com/2009/11/system-data-oracleclient%e9%9c%80%e8%a6%81oracle%e5%ae%a2%e6%88%b7%e7%ab%af%e8%bd%af%e4%bb%b68-1-7%e6%88%96%e6%9b%b4%e9%ab%98%e7%89%88%e6%9c%ac/</link>
		<comments>http://www.cnpublic.com/2009/11/system-data-oracleclient%e9%9c%80%e8%a6%81oracle%e5%ae%a2%e6%88%b7%e7%ab%af%e8%bd%af%e4%bb%b68-1-7%e6%88%96%e6%9b%b4%e9%ab%98%e7%89%88%e6%9c%ac/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 09:01:58 +0000</pubDate>
		<dc:creator>wilensky</dc:creator>
				<category><![CDATA[其它]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[System.Data.OracleClient]]></category>

		<guid isPermaLink="false">http://www.cnpublic.com/?p=196</guid>
		<description><![CDATA[在asp.net中调用oracle数据库时，出现错误提示：System.Data.OracleClient需要Oracle客户端软件8.1.7或更高版本
解决办法：
1.找到ORACLE安装文件夹（我这里是D:\oracle）。点击右键，选属性&#8211;安全，在组或用户栏中选“Authenticated Users”，在权限列表中把“读取和运行”的权限去掉，再按应用（据说这是Oracle的一个Bug，在9i版本中也存在）；重新选上“读取和运行”权限，点击应用；选权限框下面的“高级”按钮，确认 “Authenticated Users”后面的应用于是“该文件夹、子文件夹及文件”，按确定把权限的更改应用于该文件夹；
2.在CMD中输入: iisreset，重启下IIS
问题解决
这些有用吗？2009年09月25日 -- sql server中使用链接服务器访问oracle数据库 (0)]]></description>
		<wfw:commentRss>http://www.cnpublic.com/2009/11/system-data-oracleclient%e9%9c%80%e8%a6%81oracle%e5%ae%a2%e6%88%b7%e7%ab%af%e8%bd%af%e4%bb%b68-1-7%e6%88%96%e6%9b%b4%e9%ab%98%e7%89%88%e6%9c%ac/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>sql server中使用链接服务器访问oracle数据库</title>
		<link>http://www.cnpublic.com/2009/09/sql-server-connect-oracle-net-manager/</link>
		<comments>http://www.cnpublic.com/2009/09/sql-server-connect-oracle-net-manager/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 05:39:36 +0000</pubDate>
		<dc:creator>wilensky</dc:creator>
				<category><![CDATA[其它]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[oracle ner manager]]></category>

		<guid isPermaLink="false">http://www.cnpublic.com/?p=185</guid>
		<description><![CDATA[最近做平台系统，需要和第三方的oracle交互数据，对方使用的是oracle，而我们用的sql server，用oracle的net manager 链接比较方便，特此记录一下。
====================================
一、 安装配置oracle客户端
要访问orcale数据，必须在访问的客户端机器上安装oracle客户端。

Orcale有两种形式的客户端：
l 完整的客户端
包括访问服务器端数据库的基本Oracle 的 Microsoft OLE DB 访问接口需要 Oracle Client Software Support File以及 SQL*Net 。还包括用于配置客户端设置的工具、sqlplus、企业管理器等一系列的工具。
l 立即客户端（instant client）
这个客户端体积很小，但是只包括了访问orcale服务器的最基本的支撑驱动，没有设置管理工具，也找不到可用的图形界面。对客户端的设置需要手工就行。
目前orcale比较新的是oracle 10g版本，以这个版本为例。
1、下载oracle 10 的客户端
可以到orcale官方网站下载，需要先注册，然后下载。
下载适用于Microsoft Windows (32-bit)的Oracle Database 10g Client Release 2的客户端，下载地址：http://download.oracle.com/otn/nt/oracle10g/10201/10201_client_win32.zip
2、安装oracle 10 客户端
下载好后，解压，安装。
安装时有四个选项：
l Instantclient，相当于最小化安装。
l 管理员，完整安装。
l 运行时
l 自定义
为了管理方便，一般以管理员方式安装。
3、配置oracle 10 客户端
在客户端主要需要配置两个设置，命名方法和服务器别名，还有一个监听程序是服务端需要用的，用来监听客户端的访问，客户端不必设置监听程序。
这些设置都能在net manager工具中进行，在oracle程序组中的“配置和移植工具”中的“net manager”。如图所示：

概要文件就是用来设置命名方法和验证方式的的
3.1. 命名方法
在窗口左面的上部下拉列表中选“命名”，左边窗口显示目前可用的方法，右边是已经选择的命名方法，几个主要的命名方法有：
l TNSNAMES表示采用TNSNAMES.ORA文件来解析
l ONAMES表示Oracle使用自己的名称服务器（Oracle Name Server）来解析，目前Oracle建议使用轻量目录访问协议LDAP来取代ONAMES
l HOSTNAME表示使用host文件，DNS，NIS等来解析
一般使用本地命名方式来解析服务器名，即使用TNSNAMES.ORA中设置的服务器名。TNSNAMES.ORA中的服务器名服务器别名中设置。
3.2. 验证方式

在下拉列表中选择“orcale高级安全性”，设置用户连接Oracle服务器时使用哪种验证方式。在下面的左边窗口显示可用的验证方式，右边是已选的验证方式，主要的验证方式有：
l NTS表示操作系统身份验证
l NONE，什么都不选表示Oracle数据库身份验证
l KERBEROS5，使用kerberos 5 验证方式
这些验证方式可以同时采用，一般采用Oracle数据库身份验证，即这里什么都不用设置即可，选了其他验证方式也不影响Oracle数据库身份验证。
3.3. 服务器别名
上面命名方法中选择了TNSNAMES本地命名方法时，在这里设置服务器的别名。
在左边窗口选“服务命名”，就可以新增和编辑本地服务器别名。这里生成的服务器别名都反映在tnsnames.ora文件中。
本地服务器命名设置的服务器实际上设置了服务器的四个主要参数：服务器主机名（可以是主机名也可以是主机ip）、服务器端口号（默认1521）、访问协议、要访问服务器上数据库服务名。

这里的exchange是客户端的服务器别名，客户端访问服务端数据库就要使用这个名称。
服务名databaseName是服务端需要访问的那个数据库的服务名。
下面就是这个服务端的ip、端口和协议（一般为TCP/IP）.
设置服务器别名后，在tnsnames.ora文件中这样反映出来：
EXCHANGE =
(DESCRIPTION =
(ADDRESS_LIST [...]]]></description>
		<wfw:commentRss>http://www.cnpublic.com/2009/09/sql-server-connect-oracle-net-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NTFS文件系统重装系统后文件夹权限问题的解决办法</title>
		<link>http://www.cnpublic.com/2009/09/folder-access-denied-solution/</link>
		<comments>http://www.cnpublic.com/2009/09/folder-access-denied-solution/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 14:44:11 +0000</pubDate>
		<dc:creator>wilensky</dc:creator>
				<category><![CDATA[其它]]></category>
		<category><![CDATA[windows 7 文件夹访问被拒绝]]></category>
		<category><![CDATA[文件夹权限]]></category>

		<guid isPermaLink="false">http://www.cnpublic.com/2009/09/ntfs%e6%96%87%e4%bb%b6%e7%b3%bb%e7%bb%9f%e9%87%8d%e8%a3%85%e7%b3%bb%e7%bb%9f%e5%90%8e%e6%96%87%e4%bb%b6%e5%a4%b9%e6%9d%83%e9%99%90%e9%97%ae%e9%a2%98%e7%9a%84%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95/</guid>
		<description><![CDATA[这个标题很长，也很绕嘴，出现这个问题有两个前提：第一，使用NTFS文件系统，也就是说你的磁盘分区格式是NTFS。第二，是重装了系统之后出现的这种情况，特别是重装前是 XP/2003 等，而你重装后的系统式VISTA/windows 7/2008 等，那么这个问题很可能就会出现：就是删除文件夹，总是提示需要权限，因为这个文件夹的所有者是前面那个系统里的用户，而重装后文件所有者没有自动改变，所以就出现这种情况

 
 
 
 
 
 
 
 
点击继续后

而且设置起来比较麻烦，尤其是很多这样的文件夹，那是件很痛苦的事情，于是我google一番，找到一个简单的办法，就是在右键菜单中添加一个管理员取得所有权的选项，这样一点，操作就自动完成了，接下来就随意了。
下载 管理员取得所有权.reg
随便看看吧2009年08月27日 -- windows 7 魔兽争霸不能全屏的解决办法 (6)2009年06月30日 -- 原来超级玛丽不是用头撞碎砖块的…… (0)2009年07月16日 -- 语录：悲剧是你被X了，喜剧是你还买单 (1)2009年07月30日 -- 美化ubuntu的界面字体 (0)2009年09月25日 -- sql server中使用链接服务器访问oracle数据库 (0)2009年08月5日 -- 勿以恶小而为之&#8212;-《窃听风云》影评 (0)2009年08月27日 -- Hp笔记本安装ubuntu无线网卡开关的LED灯闪烁解决办法 (0)2010年07月23日 -- sqlserver 一些语句记录 (0)2009年11月3日 -- 飞鸽传书(IPMsg)在双网卡下的设置 (2)2009年07月24日 -- 重温经典&#8212;-廊桥遗梦 (0)]]></description>
		<wfw:commentRss>http://www.cnpublic.com/2009/09/folder-access-denied-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>windows7中使用Windows Live Writer 写日志，测试下</title>
		<link>http://www.cnpublic.com/2009/08/windows7%e4%b8%ad%e4%bd%bf%e7%94%a8windows-live-writer-%e5%86%99%e6%97%a5%e5%bf%97%ef%bc%8c%e6%b5%8b%e8%af%95%e4%b8%8b/</link>
		<comments>http://www.cnpublic.com/2009/08/windows7%e4%b8%ad%e4%bd%bf%e7%94%a8windows-live-writer-%e5%86%99%e6%97%a5%e5%bf%97%ef%bc%8c%e6%b5%8b%e8%af%95%e4%b8%8b/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 13:09:07 +0000</pubDate>
		<dc:creator>wilensky</dc:creator>
				<category><![CDATA[其它]]></category>

		<guid isPermaLink="false">http://www.cnpublic.com/2009/08/windows7%e4%b8%ad%e4%bd%bf%e7%94%a8windows-live-writer-%e5%86%99%e6%97%a5%e5%bf%97%ef%bc%8c%e6%b5%8b%e8%af%95%e4%b8%8b/</guid>
		<description><![CDATA[测试下效果怎么样，哈哈


随便看看吧2009年09月25日 -- sql server中使用链接服务器访问oracle数据库 (0)2009年08月5日 -- 勿以恶小而为之&#8212;-《窃听风云》影评 (0)2009年07月8日 -- FusionCharts-part1-简介 (1)2009年08月26日 -- windows 7 中安装 sql server 2005 提示不兼容的解决办法 (10)2009年11月9日 -- 写给奔三的80后们[转] (0)2009年11月28日 -- SQL Server链接服务器的使用方法 (0)2009年06月29日 -- 正则表达式30分钟入门教程 (3)2009年11月3日 -- 飞鸽传书(IPMsg)在双网卡下的设置 (2)2009年06月29日 -- window.location.href 无效的解决方案 (2)2009年08月6日 -- ubuntu中安装python多个版本 (3)]]></description>
		<wfw:commentRss>http://www.cnpublic.com/2009/08/windows7%e4%b8%ad%e4%bd%bf%e7%94%a8windows-live-writer-%e5%86%99%e6%97%a5%e5%bf%97%ef%bc%8c%e6%b5%8b%e8%af%95%e4%b8%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>windows 7 魔兽争霸不能全屏的解决办法</title>
		<link>http://www.cnpublic.com/2009/08/the-solution-of-in-the-windows7-warcraft-can-not-be-full-screen/</link>
		<comments>http://www.cnpublic.com/2009/08/the-solution-of-in-the-windows7-warcraft-can-not-be-full-screen/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 13:06:24 +0000</pubDate>
		<dc:creator>wilensky</dc:creator>
				<category><![CDATA[其它]]></category>
		<category><![CDATA[windows7魔兽不能全屏]]></category>

		<guid isPermaLink="false">http://www.cnpublic.com/?p=174</guid>
		<description><![CDATA[安装好windows7后感觉很是不错，又安装了一个最新版的显卡驱动，嘿嘿，测试下性能吧，先从游戏开始，打开浩方，准备玩会澄海3C，不过进入魔兽后发现不对啊，怎么界面不能全屏了呢，两边都有黑条了，晕，难道是我的设置错误？仔细检查下没有啊，google下才知道是显卡驱动的问题，顺便把解决方法贴出来，以帮助遇到和我一样问题的朋友们，其实很简单：

打开注册表编辑器：进入[HKEY_CURRENT_USER\Software\Blizzard Entertainment\Warcraft III\Video]
在右侧找到“reswidth”与“resheight”这两项，双击修改，选择10进制，把数值更改为和你的分辨率一样就OK啦！
随便看看吧2009年07月16日 -- 语录：悲剧是你被X了，喜剧是你还买单 (1)2009年06月30日 -- 原来超级玛丽不是用头撞碎砖块的…… (0)2009年07月1日 -- Javascript在IE和Firefox下差异及解决方案 (0)2009年08月17日 -- 设置ubuntu终端的命令行颜色 (2)2009年09月14日 -- NTFS文件系统重装系统后文件夹权限问题的解决办法 (0)2009年12月22日 -- ubuntu 904 源 (0)2009年07月25日 -- ubuntu下浏览器新选择－－安装google chrome (2)2009年07月25日 -- 非常实用的ubuntu命令集合 (5)2009年08月27日 -- Hp笔记本安装ubuntu无线网卡开关的LED灯闪烁解决办法 (0)2009年08月13日 -- ubuntu904编译安装python新版本导致出错的解决办法 (0)]]></description>
		<wfw:commentRss>http://www.cnpublic.com/2009/08/the-solution-of-in-the-windows7-warcraft-can-not-be-full-screen/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>windows 7 中安装 sql server 2005 提示不兼容的解决办法</title>
		<link>http://www.cnpublic.com/2009/08/install-sql-server-2005-on-windows-7/</link>
		<comments>http://www.cnpublic.com/2009/08/install-sql-server-2005-on-windows-7/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 05:28:04 +0000</pubDate>
		<dc:creator>wilensky</dc:creator>
				<category><![CDATA[其它]]></category>
		<category><![CDATA[windows 7 sql server 2005]]></category>
		<category><![CDATA[windows 7 兼容性]]></category>

		<guid isPermaLink="false">http://www.cnpublic.com/?p=162</guid>
		<description><![CDATA[最近windows 7 吵得火热啊，我的本自带的vista早已被我咔嚓掉了，因为太难用了，这不windows 7 rtm已经出来，我的小猫奋战一夜，终于把windows 7 rtm版搞下来了，废话不说，刻盘，安装，整个过程很顺利，windows 7 的确在安装上下了不少功夫，步骤减少了不少，而且安装很简单，点几下就OK了。不过未激活，管他呢，能用就好了。现在已经出来软刷和硬刷的办法了，百度一下就好多了。不过我没这样做，还是先用未激活的，功能和激活版一样的，而且微软官方也提供了一个办法，可以试用300多天，我就不信300多天不重装一次系统？再说了，windows 7的oem版一出来，激活就是小case了。

说实话用微软的产品重装系统时是令人头痛的，倒不是说重装系统麻烦，主要是那些应用程序，尤其使我们这些在windows平台下做开发的，那些IDE动辄几个G，重装一次真的令人&#8230;&#8230;.
这不麻烦来了，在windows 7 里 安装 sql server 2005，一运行安装程序系统就提示不兼容，我就奇怪了，都是微软的产品怎么还不兼容的，不管它，继续安装(事实证明我是对的),后来又提示兼容问题，一概忽视，除了检查IIS兼容性时说未检测到IIS，这个就奇怪了，我已经安装好IIS7了，难道sql sever 2005的安装程序检测不到IIS7?，其它的问题没有。
安装完后一切正常，问了下google才知道，微软已经出了 sql server 2005的 sp3 补丁，来解决在 windows 7 和 windows server 2008 上的  sql server 2005 兼容性问题。
微软这样解释： http://blogs.msdn.com/sqlreleaseservices/archive/2009/05/14/sql-server-on-windows-7-rc-and-windows-server-2008-r2-rc.aspx
SQL Server on Windows 7 RC and Windows Server 2008 R2 RC
All editions of SQL Server 2005 SP3 and SQL Server [...]]]></description>
		<wfw:commentRss>http://www.cnpublic.com/2009/08/install-sql-server-2005-on-windows-7/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>设置ubuntu终端的命令行颜色</title>
		<link>http://www.cnpublic.com/2009/08/set-the-terminal-color-for-ubuntu/</link>
		<comments>http://www.cnpublic.com/2009/08/set-the-terminal-color-for-ubuntu/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 15:50:09 +0000</pubDate>
		<dc:creator>wilensky</dc:creator>
				<category><![CDATA[其它]]></category>
		<category><![CDATA[ubuntu终端颜色]]></category>
		<category><![CDATA[命令行颜色]]></category>

		<guid isPermaLink="false">http://www.cnpublic.com/?p=150</guid>
		<description><![CDATA[用ubuntu的终端时间长了会眼花，因为输入和输出都是一个颜色的，当然 ls 不算了，这个还是有颜色的，就想如果终端的输入和输出能用颜色区分该多好啊，google后，搜到的大部分都不是我这个意思。偶然看到一篇，效果凑合吧，只把命令行提示符的颜色变了一下，这样也行吧，至少两次命令行之间的输出容易区分了

打开Home目录的.bashrc文件，添加下面的内容到最后一行：
$ gedit ~/.bashrc
PS1=&#8217;${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]: \[\033[01;34m\]\w\[\033[00m\]\$ &#8216;
直接粘贴过去就OK了。确认无误后保存退出。Now，所有的命令行提示符都成为彩色的了，无论是在终端里面还是虚拟终端里面。

如果你想换用其他的颜色可能有点麻烦。注意上面的命令行，特别是01:32m和01;34m。第一个数字表示username@hostname的颜色输出，第二个表示路径的文字颜色。
一些可用的颜色：

样式
00 &#8212; Normal (no color, no bold)
01 – Bold
文字颜色
30 &#8212; Black
31 &#8212; Red
32 &#8212; Green
33 &#8212; Yellow
34 &#8212; Blue
35 &#8212; Magenta
36 &#8212; Cyan
37 &#8212; White
背景颜色
40 &#8212; Black
41 &#8212; Red
42 &#8212; Green
43 &#8212; Yellow
44 &#8212; Blue
45 &#8212; Magenta
46 &#8212; Cyan
47 – White

数字的顺序没有关系，并且可以自由组合。譬如你想把username@hostname的背景色设置为Magenta，字体颜色为White，路径文件的颜色为Green，你可以这样设置：
PS1=&#8217;${debian_chroot:+($debian_chroot)}\[\033[45;37m\]\u@\h\[\033[00m\]: ֓
\[\033[32m\]\w\[\033[00m\]\$ &#8216;

如果希望全部提示符都是斜体（bold），没有颜色，可以使用：
PS1=&#8217;${debian_chroot:+($debian_chroot)}\[\033[01m\]\u@\h\[\033[01m\]: ֓
\[\033[01m\]\w\[\033[00m\]\$ &#8216;


提醒一下：不要把命令行的颜色设置的和终端的背景色一样阿，不然就真的是盲打了，别说我没提醒你啊 ：）
随便看看吧2009年09月25日 -- sql server中使用链接服务器访问oracle数据库 [...]]]></description>
		<wfw:commentRss>http://www.cnpublic.com/2009/08/set-the-terminal-color-for-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>install nginx on ubuntu 904</title>
		<link>http://www.cnpublic.com/2009/08/install-nginx-on-ubuntu-904/</link>
		<comments>http://www.cnpublic.com/2009/08/install-nginx-on-ubuntu-904/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 18:44:09 +0000</pubDate>
		<dc:creator>wilensky</dc:creator>
				<category><![CDATA[其它]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[安装nginx]]></category>

		<guid isPermaLink="false">http://www.cnpublic.com/?p=141</guid>
		<description><![CDATA[
在ubuntu904中安装 nginx-0.7.61

Nginx ("engine x") 是一个高性能的 HTTP 和 反向代理 服务器，也是一个 IMAP/POP3/SMTP 代理服务器。
 Nginx 是由 Igor Sysoev 为俄罗斯访问量第二的 Rambler.ru 站点开发的，它已经在该站点运行超过两年半了。
Igor 将源代码以类BSD许可证的形式发布。尽管还是测试版，但是，Nginx 已经因为它的稳定性、丰富的功能集、
示例配置文件和低系统资源的消耗而闻名了。


一.准备工作
首先当然要下载nginx了，在这里http://sysoev.ru/nginx/nginx-0.7.61.tar.gz
下载相关的安装包,其中ubuntu需要安装下列几个包.
$sudo  apt-get install libpcre3 &#38;&#38; \
$sudo apt-get install zlib1g &#38;&#38; \
$sudo apt-get install libpcre3-dev &#38;&#38; \
$sudo apt-get install zlib1g-dev &#38;&#38; \
$sudo apt-get install libssl &#38;&#38; \
$sudo apt-get install libssl-dev
如果在build过程中发现缺少其他包可以继续通过apt-get来安装.
三.编译安装
$tar -xzvf nginx-0.7.61.tar.gz
$cd nginx-0.7.61/
$ ./configure
$make
$sudo make install
四.运行测试
$cd /usr/local/nginx/sbin
$sudo ./nginx
在浏览器中输入http://localhost [...]]]></description>
		<wfw:commentRss>http://www.cnpublic.com/2009/08/install-nginx-on-ubuntu-904/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->