<?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>Y-Space &#187; 会点小技术</title>
	<atom:link href="http://www.1990y.com/category/coding/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.1990y.com</link>
	<description>A bad beginning makes a bad ending.</description>
	<lastBuildDate>Mon, 05 Jul 2010 14:12:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>使命召唤4 作弊器 Y-Hack v1 cod4 hack release</title>
		<link>http://www.1990y.com/cod-4-y-hack-v1-release/</link>
		<comments>http://www.1990y.com/cod-4-y-hack-v1-release/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 15:38:26 +0000</pubDate>
		<dc:creator>yeasiz</dc:creator>
				<category><![CDATA[会点小技术]]></category>
		<category><![CDATA[cheat]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[show]]></category>

		<guid isPermaLink="false">http://www.1990y.com/?p=668</guid>
		<description><![CDATA[闲来无事，做了个使命召唤4作弊器，不用在战网上测试了，不过pb，不解答作弊器问题。 Hack:Y-Hack v1 [download id="25"] Youtube  需翻墙 http://www.youtube.com/watch?v=puReKHCHAAc Tudou http://www.tudou.com/programs/view/PHipPZjNFCQ/ 功能: 无后坐力 无烟雾弹 无闪光弹 小地图显示敌军 显示姓名标签 Features: NoRecoil NoFog NoFlashBang Minimap Nametags Credits: Me UC-Forum Quicktime R4z8r K@N@VEL]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.1990y.com/wp-content/uploads/2009/11/sudu.JPG" class="highslide-image" onclick="return hs.expand(this);"></a>闲来无事，做了个使命召唤4作弊器，不用在战网上测试了，不过pb，不解答作弊器问题。</p>
<p>Hack:Y-Hack v1</p>
<p style="text-align: center;"><a href="http://www.1990y.com/wp-content/uploads/2009/11/Y-Hack-norecoil.jpg" class="highslide-image" onclick="return hs.expand(this);"><img class="aligncenter size-full wp-image-673" title="Y-Hack norecoil" src="http://www.1990y.com/wp-content/uploads/2009/11/Y-Hack-norecoil.jpg" alt="Y-Hack norecoil" width="432" height="288" /></a></p>
<p>[download id="25"]</p>
<p>Youtube  需翻墙</p>
<p><a href="http://www.youtube.com/watch?v=puReKHCHAAc">http://www.youtube.com/watch?v=puReKHCHAAc</a></p>
<p>Tudou</p>
<p><a href="http://www.tudou.com/programs/view/PHipPZjNFCQ/">http://www.tudou.com/programs/view/PHipPZjNFCQ/</a></p>
<p><span id="more-668"></span></p>
<p style="text-align: center;"><a href="http://www.1990y.com/wp-content/uploads/2009/11/Y-Hack-NameTags.jpg" class="highslide-image" onclick="return hs.expand(this);"><img class="aligncenter size-full wp-image-672" title="Y-Hack NameTags" src="http://www.1990y.com/wp-content/uploads/2009/11/Y-Hack-NameTags.jpg" alt="Y-Hack NameTags" width="432" height="288" /></a></p>
<p style="text-align: center;"><a href="http://www.1990y.com/wp-content/uploads/2009/11/Y-Hack-NameTags3.jpg" class="highslide-image" onclick="return hs.expand(this);"><img class="aligncenter size-full wp-image-672" title="Y-Hack NameTags3" src="http://www.1990y.com/wp-content/uploads/2009/11/Y-Hack-NameTags3.jpg" alt="Y-Hack NameTags3" width="432" height="288" /></a></p>
<p style="text-align: center;"><a href="http://www.1990y.com/wp-content/uploads/2009/11/Y-Hack-NameTags2.jpg" class="highslide-image" onclick="return hs.expand(this);"><img class="aligncenter size-full wp-image-671" title="Y-Hack NameTags2" src="http://www.1990y.com/wp-content/uploads/2009/11/Y-Hack-NameTags2.jpg" alt="Y-Hack NameTags2" width="432" height="288" /></a></p>
<p>功能:<br />
无后坐力<br />
无烟雾弹<br />
无闪光弹<br />
小地图显示敌军<br />
显示姓名标签</p>
<p>Features:<br />
NoRecoil<br />
NoFog<br />
NoFlashBang<br />
Minimap<br />
Nametags</p>
<p>Credits:<br />
Me<br />
UC-Forum<br />
Quicktime<br />
R4z8r<br />
K@N@VEL</p>
]]></content:encoded>
			<wfw:commentRss>http://www.1990y.com/cod-4-y-hack-v1-release/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CentOS SSH常用命令</title>
		<link>http://www.1990y.com/centos-command/</link>
		<comments>http://www.1990y.com/centos-command/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 10:49:46 +0000</pubDate>
		<dc:creator>yeasiz</dc:creator>
				<category><![CDATA[会点小技术]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.1990y.com/?p=612</guid>
		<description><![CDATA[这是我平时使用PuTTY记录下的命令，以前经常去google搜索这些基本的命令，现在记录下来就不用再东跑西跑浪费时间了。 命令包括top、yum、getconf、more、rpm、hostname、rm、cd、mv、ln、cp、find、df、wget、unzip、tar Latest update:091023 top /*性能分析工具，就是windows下的任务管理器*/ yum check-update /*检查可更新的rpm包*/ yum update /*更新所有的rpm包*/ yum update 包名 /*更新指定的rpm包*/ getconf LONG_BIT /*查看CPU位数(32 or 64)*/ more /etc/redhat-release cat /etc/redhat-release /*查看当前linux的版本*/ rpm -qa rpm -qa &#124; wc -l yum list installed &#124; wc -l /*查看现在已经安装了那些软件包*/ hostname /*查看主机名*/ rm -rf mydir /*删除mydir目录*/ rm go.tar /*删除go.tar文件*/ cd mydir /*进入mydir目录*/ cd - /*回上一级目录*/ [...]]]></description>
			<content:encoded><![CDATA[<p>这是我平时使用PuTTY记录下的命令，以前经常去google搜索这些基本的命令，现在记录下来就不用再东跑西跑浪费时间了。<br />
命令包括top、yum、getconf、more、rpm、hostname、rm、cd、mv、ln、cp、find、df、wget、unzip、tar<br />
Latest update:<span style="color: #ff0000;">091023</span></p>
<p><span id="more-612"></span><br />
top<br />
/*性能分析工具，就是windows下的任务管理器*/</p>
<p>yum check-update<br />
/*检查可更新的rpm包*/<br />
yum update<br />
/*更新所有的rpm包*/<br />
yum update 包名<br />
/*更新指定的rpm包*/</p>
<p>getconf LONG_BIT<br />
/*查看CPU位数(32 or 64)*/</p>
<p>more /etc/redhat-release<br />
cat /etc/redhat-release<br />
/*查看当前linux的版本*/</p>
<p>rpm -qa<br />
rpm -qa | wc -l<br />
yum list installed | wc -l<br />
/*查看现在已经安装了那些软件包*/</p>
<p>hostname<br />
/*查看主机名*/</p>
<p>rm -rf mydir<br />
/*删除mydir目录*/<br />
rm go.tar<br />
/*删除go.tar文件*/<br />
cd mydir<br />
/*进入mydir目录*/<br />
cd -<br />
/*回上一级目录*/<br />
cd ~<br />
/*回根目录*/</p>
<p>mv tools tool<br />
/*把tools目录改名为tool */</p>
<p>ln -s tool bac<br />
/*给tool目录创建名为bac的符号链接,最熟悉的应该就是FTP中www链接到public_html目录了*/</p>
<p>cp -a tool /home/leavex/www<br />
/*把tool目录下所有文件复制到www目录下 */</p>
<p>find mt.cgi<br />
/*查找文件名为mt.cgi的文件*/</p>
<p>df -h<br />
/*查看磁盘剩余空间,好像没这个必要，除非你太那个了*/</p>
<p>wget <a href="http://lib.1990y.com/wordpress-2.8.2.tar.gz">http://lib.1990y.com/wordpress-2.8.2.tar.gz</a><br />
/*下载远程服务器上的文件到自己的服务器，连上传都省了，服务器不是100M就是1000M的带宽，下载一个2-3兆的MT还不是几十秒的事*/</p>
<p>wget -c <a href="http://lib.1990y.com/wordpress-2.8.2.tar.gz">http://lib.1990y.com/wordpress-2.8.2.tar.gz</a><br />
/*继续下载上次未下载完的文件*/</p>
<p>unzip phpbb.zip<br />
/*解压zip文件，windows下要压缩出一个.tar.gz格式的文件还是有点麻烦的*/</p>
<p>tar cf toole.tar tool<br />
/*把tool目录打包为toole.tar文件*/<br />
tar cfz geek.tar.gz tool<br />
/*把tool目录打包且压缩为geek.tar.gz文件，因为.tar文件几乎是没有压缩过的，MT的.tar.gz文件解压成.tar文件后差不多是10MB*/</p>
<p>tar xvf wordpress.tar<br />
/*解压tar格式的文件*/<br />
tar -tvf myfile.tar<br />
/*查看tar文件中包含的文件*/<br />
gzip -d ge.tar.gz<br />
/*解压.tar.gz文件为.tar文件*/</p>
<p>/etc/init.d/httpd restart<br />
/*重启Apache进程*/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.1990y.com/centos-command/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>安装eAccelerator来加速你的PHP执行速度</title>
		<link>http://www.1990y.com/install-eaccelerator-for-your/</link>
		<comments>http://www.1990y.com/install-eaccelerator-for-your/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 01:05:13 +0000</pubDate>
		<dc:creator>yeasiz</dc:creator>
				<category><![CDATA[会点小技术]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[eAccelerator]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.1990y.com/?p=586</guid>
		<description><![CDATA[根据官网上对eAccelerator的描述: eAccelerator is a free open-source PHP accelerator, optimizer, and dynamic content cache. It increases the performance of PHP scripts by caching them in their compiled state, so that the overhead of compiling is almost completely eliminated. It also optimizes scripts to speed up their execution. eAccelerator typically reduces server load and increases the speed [...]]]></description>
			<content:encoded><![CDATA[<p>根据<a href="http://www.eaccelerator.net/">官网</a>上对eAccelerator的描述:</p>
<blockquote><p>eAccelerator is a free open-source PHP accelerator, optimizer, and dynamic content cache. It increases the performance of PHP scripts by caching them in their compiled state, so that the overhead of compiling is almost completely eliminated. It also optimizes scripts to speed up their execution. eAccelerator typically reduces server load and increases the speed of your PHP code by 1-10 times.</p></blockquote>
<p>我们可以理解为:<br />
eAccelerator是一个自由开放源码php加速器，优化和动态内容缓存，提高了性能php脚本的缓存性能，使得PHP脚本在编译的状态下，对 服务器的开销几乎完全消除。 它还有对脚本起优化作用，以加快其执行效率。<span style="color: #ff0000;">使您的PHP程序代码执效率能提高1-10倍</span>。</p>
<p><span id="more-586"></span></p>
<h3>如何安装eAccelerator？</h3>
<p>本文以CentOS操作系统为例，系统环境如下：</p>
<p style="padding-left: 30px;">Apache 2<br />
MySQL 5.0.67<br />
PHP 5.2.10<br />
Zend Optimizer v3.3.3</p>
<p>使用PuTTY登录SSH后输入如下命令：</p>
<p>cd /usr/local/src<br />
//切换目录到/usr/local/src</p>
<p>mkdir eAccelerator<br />
//创建eAccelerator目录</p>
<p>cd eAccelerator<br />
//切换目录到eAccelerator</p>
<p>wget http://lib.1990y.com/eaccelerator-0.9.5.2.tar.bz2<br />
//从Y-Space中下载eAccelerator 0.9.5.2，你也可以在官网中找到<a href="http://www.eaccelerator.net/wiki/Release-0.9.5.3">0.9.5.3</a>的下载链接</p>
<p>tar -xzvf eaccelerator-0.9.5.2.tar.bz2<br />
//解压缩eaccelerator-0.9.5.2.tar.bz2</p>
<p>cd eaccelerator-0.9.5.2<br />
//切换目录到eaccelerator-0.9.5.2</p>
<p>export PHP_PREFIX=&#8221;/usr&#8221;<br />
//输出目录，安装目录</p>
<p>$PHP_PREFIX/bin/phpize<br />
//显示你需要的phpize 配置安装</p>
<p>./configure \</p>
<p>&#8211;enable-eaccelerator=shared \</p>
<p>&#8211;with-php-config=$PHP_PREFIX/bin/php-config<br />
//显示你需要的phpize 配置安装</p>
<p>make<br />
//编译</p>
<p>make install<br />
//安装</p>
<p>#现在创建缓存的目录 或Cache directory</p>
<p>cd /tmp<br />
//切换目录到/tmp</p>
<p>mkdir eaccelerator<br />
//创建eaccelerator目录</p>
<p>chmod 0777 eaccelerator<br />
//给予eaccelerator写入读取权限0777</p>
<h3>如何配置eAccelerator？</h3>
<p>#编辑 php.ini</p>
<p>cd /usr/local/lib<br />
//切换目录到/usr/local/lib，如果你已经装过Zend，那么实际目录为/usr/local/Zend/etc</p>
<p>注：通过export 来设置php所在的安装路径变量，我的PHP是安装在/usr目录下，系统用CentOS 5。其它系统如果默认安装也大体差不多；如果不一样，就自己指定一下；<br />
完成安装后，eaccelerator.so模块位于 /usr/lib/php/extensions目录中，您的系统如果和我不一样，您自己应该安装在哪了；</p>
<p>vi php.ini<br />
//编辑php.ini，在文件末尾加入：</p>
<p style="padding-left: 30px;">zend_extension=&#8221;/usr/lib/php/extensions/eaccelerator.so&#8221;<br />
<span style="color: #ff0000;">;</span>模块的具体位置、如果你找不到具体位置，可以使用 find / -name eaccelerator.so 命令来进行硬盘搜索，你可以从文章《<a href="http://www.1990y.com/linux-system-to-find-documents/">Linux系统中查找文件的方法</a>》中获取更多的技巧。<br />
eaccelerator.shm_size=&#8221;32&#8243;<br />
<span style="color: #ff0000;">;</span>设置共享内存大小<br />
eaccelerator.cache_dir=&#8221;/tmp/eaccelerator&#8221;<br />
<span style="color: #ff0000;">;</span>设置缓存目录<br />
eaccelerator.enable=&#8221;1&#8243;<br />
eaccelerator.optimizer=&#8221;1&#8243;<br />
eaccelerator.check_mtime=&#8221;1&#8243;<br />
eaccelerator.debug=&#8221;0&#8243;<br />
eaccelerator.filter=&#8221;"<br />
eaccelerator.shm_max=&#8221;0&#8243;<br />
eaccelerator.shm_ttl=&#8221;0&#8243;<br />
eaccelerator.shm_prune_period=&#8221;0&#8243;<br />
eaccelerator.shm_only=&#8221;0&#8243;<br />
eaccelerator.compress=&#8221;1&#8243;<br />
eaccelerator.compress_level=&#8221;9&#8243;</p>
<p>（<span style="color: #ff0000;">注：分号&#8221;;&#8221;后为解释说明文字，在实际操作中你可以将其删除</span>）</p>
<p>缓存目录创建方法：<br />
mkdir /tmp/eaccelerator<br />
chmod 0777 /tmp/eaccelerator</p>
<h3>如何检查eAccelerator是否工作？</h3>
<p>重启apache</p>
<p>php -v</p>
]]></content:encoded>
			<wfw:commentRss>http://www.1990y.com/install-eaccelerator-for-your/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Linux系统中查找文件的方法</title>
		<link>http://www.1990y.com/linux-system-to-find-documents/</link>
		<comments>http://www.1990y.com/linux-system-to-find-documents/#comments</comments>
		<pubDate>Sat, 25 Jul 2009 12:59:08 +0000</pubDate>
		<dc:creator>yeasiz</dc:creator>
				<category><![CDATA[会点小技术]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.1990y.com/?p=589</guid>
		<description><![CDATA[-name 必须用到的选项。表明要求系统按照文件名查找. 一般格式：find /(dirname) -name filename 具体文件名查找法: 如果知道了某个文件的文件名，而不知道这个文件放到哪个文件夹，甚至是层层套嵌的文件夹里。举例说明，假设你忘记了httpd.conf这个文件在系统的哪个目录下，甚至在系统的某个地方也不知道，则这是可以使用如下命令： find / -name httpd.conf 无错误查找法： Linux系统中系统管理员ROOT可以把某些文件目录设置成禁止访问模式。这样普通用户就没有权限用“find”命令来查询这些目录或者文件。当普通用户使用“find”命令来查询这些文件目录是，往往会出现&#8221;Permissiondenied.&#8221;（禁止访问）字样。系统将无法查询到你想要的文件。为了避免这样的错误，我们可是使用转移错误提示的方法尝试着查找文件，输入 find / -name access_log 2&#62;/dev/null 这个方法是把查找错误提示转移到特定的目录中去。系统执行这个命令后，遇到错误的信息就直接输送到stderrstream 2 中，access_log 2就是表明系统将把错误信息输送到stderrstream 2中，/dev/null是一个特殊的文件，表明空的或者错误的信息，这样查询到的错误信息将被转移了，不会再显示了。 模糊文件名查找方法： find /etc -name &#8216;*srm*&#8217; 这个命令表明了Linux系统将在/etc整个目录中查找所有的包含有srm这3个字母的文件，比如 absrmyz， tibc.srm等等符合条件的文件都能显示出来。如果你还知道这个文件是由srm 这3个字母打头的，那么我们还可以省略最前面的星号，命令如下： find/etc -name &#8216;srm*&#8217; 这是只有像srmyz 这样的文件才被查找出来。 与或非方式查找文件： find命令可以使用混合查找的方法，例如我们想在/tmp目录中查找大于100000000字节并且在48小时内修改的某个文件，我们可以使用-and 来把两个查找选项链接起来组合成一个混合的查找方式。 find /tmp -size +10000000c -and -mtime +2 使用and ,or 分别表示“与”和“或”的关系。find / -user fred -or [...]]]></description>
			<content:encoded><![CDATA[<p>-name 必须用到的选项。表明要求系统按照文件名查找.</p>
<p>一般格式：find /(dirname) -name filename</p>
<p>具体文件名查找法:</p>
<p>如果知道了某个文件的文件名，而不知道这个文件放到哪个文件夹，甚至是层层套嵌的文件夹里。举例说明，假设你忘记了httpd.conf这个文件在系统的哪个目录下，甚至在系统的某个地方也不知道，则这是可以使用如下命令：</p>
<p>find / -name httpd.conf</p>
<p><span id="more-589"></span></p>
<p>无错误查找法：</p>
<p>Linux系统中系统管理员ROOT可以把某些文件目录设置成禁止访问模式。这样普通用户就没有权限用“find”命令来查询这些目录或者文件。当普通用户使用“find”命令来查询这些文件目录是，往往会出现&#8221;Permissiondenied.&#8221;（禁止访问）字样。系统将无法查询到你想要的文件。为了避免这样的错误，我们可是使用转移错误提示的方法尝试着查找文件，输入</p>
<p>find / -name access_log 2&gt;/dev/null</p>
<p>这个方法是把查找错误提示转移到特定的目录中去。系统执行这个命令后，遇到错误的信息就直接输送到stderrstream 2 中，access_log 2就是表明系统将把错误信息输送到stderrstream 2中，/dev/null是一个特殊的文件，表明空的或者错误的信息，这样查询到的错误信息将被转移了，不会再显示了。</p>
<p>模糊文件名查找方法：</p>
<p>find /etc -name &#8216;*srm*&#8217;</p>
<p>这个命令表明了Linux系统将在/etc整个目录中查找所有的包含有srm这3个字母的文件，比如 absrmyz， tibc.srm等等符合条件的文件都能显示出来。如果你还知道这个文件是由srm 这3个字母打头的，那么我们还可以省略最前面的星号，命令如下：</p>
<p>find/etc -name &#8216;srm*&#8217;</p>
<p>这是只有像srmyz 这样的文件才被查找出来。</p>
<p>与或非方式查找文件：</p>
<p>find命令可以使用混合查找的方法，例如我们想在/tmp目录中查找大于100000000字节并且在48小时内修改的某个文件，我们可以使用-and 来把两个查找选项链接起来组合成一个混合的查找方式。</p>
<p>find /tmp -size +10000000c -and -mtime +2</p>
<p>使用and ,or 分别表示“与”和“或”的关系。find / -user fred -or -user george</p>
<p>我们可以解释为在/tmp目录中查找属于fred或者george这两个用户的文件。</p>
<p>在find命令中还可以使用“非”的关系来查找文件，如果我们要在/tmp目录中查找所有不属于panda的文件，使用一个简单的方法可以搞定。</p>
<p>find /tmp ! -user panda</p>
<p>查找并显示文件的方法：</p>
<p>查找到某个文件是我们的目的，我们更想知道查找到的文件的详细信息和属性，如果我们采取现查找文件，在使用LS命令来查看文件信息是相当繁琐的，现在我们也可以把这两个命令结合起来使用。</p>
<p>find / -name &#8220;httpd.conf&#8221; -ls</p>
<p>系统查找到httpd.conf文件后立即在屏幕上显示httpd.conf文件信息。</p>
<p>12063 34 -rw-r&#8211;r&#8211; 1 root root 33545 Dec 30 15:36 /etc/httpd/conf/httpd.conf</p>
<p>下面的表格就是一些常用的查找文件并显示文件信息的参数和使用方法</p>
<p>选项 用途描述</p>
<p>-exec command 查找并执行命令</p>
<p>-fprint file 打印文件完整文件名</p>
<p>-fprint0 file 打印文件完整文件名包括空的文件</p>
<p>-fprintf file format 打印文件格式</p>
<p>-ok command 给用户命令执行操作，根据用户的Y 确认输入执行</p>
<p>-printf format 打印文件格式</p>
<p>-ls 显示同种文件格式的文件</p>
<p>根据文件的特征查询方法：</p>
<p>下面的列表就是对find命令所可以指定文件的特征进行查找的部分条件。在这里并没有列举所有的查找条件，参考有关Linux有关书籍可以知道所有find命令的查找函数。</p>
<p>-amin n 查找系统中最后N分钟访问的文件</p>
<p>-atime n 查找系统中最后n*24小时访问的文件</p>
<p>-cmin n 查找系统中最后N分钟被改变状态的文件</p>
<p>-ctime n 查找系统中最后n*24小时被改变状态的文件</p>
<p>-empty 查找系统中空白的文件，或空白的文件目录，或目录中没有子目录的文件夹</p>
<p>-false 查找系统中总是错误的文件</p>
<p>-fstype type 查找系统中存在于指定文件系统的文件，例如：ext2 .</p>
<p>-gid n 查找系统中文件数字组 ID 为 n的文件</p>
<p>-group gname 查找系统中文件属于gnam文件组，并且指定组和ID的文件</p>
<p>举例：</p>
<p>find / -amin -10 # 查找在系统中最后10分钟访问的文件</p>
<p>find / -atime -2 # 查找在系统中最后48小时访问的文件</p>
<p>find / -empty # 查找在系统中为空的文件或者文件夹</p>
<p>find / -group cat # 查找在系统中属于 groupcat的文件</p>
<p>find / -mmin -5 # 查找在系统中最后5分钟里修改过的文件</p>
<p>find / -mtime -1 #查找在系统中最后24小时里修改过的文件</p>
<p>find / -nouser #查找在系统中属于作废用户的文件</p>
<p>find / -user fred #查找在系统中属于FRED这个用户的文件</p>
<p>例如我们知道一个Linux文件大小为1,500 bytes，那么我们可是使用如下命令来查询find / -size 1500c，字符 c 表明这个要查找的文件的大小是以bytes为单位。如果我们连这个文件的具体大小都不知道，那么在Linux中还可以进行模糊查找方式来解决。例如我们输入find/ -size +10000000c 这个命令，则标明我们指定系统在根目录中查找出大于10000000字节的文件并显示出来。命令中的“＋”是表示要求系统只列出大于指定大小的文件，而使用“-”则表示要求系统列出小于指定大小的文件。</p>
<p>Find命令的控制选项说明：</p>
<p>Find命令也提供给用户一些特有的选项来控制查找操作。</p>
<p>选项 用途描述</p>
<p>-daystart 测试系统从今天开始24小时以内的文件，用法类似-amin</p>
<p>-depth 使用深度级别的查找过程方式,在某层指定目录中优先查找文件内容</p>
<p>-follow 遵循通配符链接方式查找; 另外，也可忽略通配符链接方式查询</p>
<p>-help 显示命令摘要</p>
<p>-maxdepth levels 在某个层次的目录中按照递减方法查找</p>
<p>-mount 不在文件系统目录中查找， 用法类似 -xdev.</p>
<p>-noleaf 禁止在非UNUX文件系统，MS-DOS系统，CD-ROM文件系统中进行最优化查找</p>
<p>-version 打印版本数字</p>
<p>使用-follow选项后，find命令则遵循通配符链接方式进行查找，除非你指定这个选项，否则一般情况下find命令将忽略通配符链接方式进行文件查找。</p>
<p>-maxdepth选项的作用就是限制find命令在目录中按照递减方式查找文件的时候搜索文件超过某个级别或者搜索过多的目录，这样导致查找速度变慢，查找花费的时间过多。例如，我们要在当前(.)目录技巧子目录中查找一个名叫fred的文件，我们可以使用如下命令</p>
<p>find . -maxdepth 2 -name fred</p>
<p>假如这个fred文件在./sub1/fred目录中，那么这个命令就会直接定位这个文件，查找很容易成功。假如，这个文件在./sub1/sub2/fred目录中，那么这个命令就无法查找到。因为前面已经给find命令在目录中最大的查询目录级别为2，只能查找2层目录下的文件。这样做的目的就是为了让find命令更加精确的定位文件，如果你已经知道了某个文件大概所在的文件目录级数，那么加入-maxdepth n 就很快的能在指定目录中查找成功。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.1990y.com/linux-system-to-find-documents/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>DirectAdmin控制面板中文语言包安装+下载</title>
		<link>http://www.1990y.com/directadmin-cpanel-of-chinese-language-pack-install-download/</link>
		<comments>http://www.1990y.com/directadmin-cpanel-of-chinese-language-pack-install-download/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 09:56:36 +0000</pubDate>
		<dc:creator>yeasiz</dc:creator>
				<category><![CDATA[会点小技术]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[DirectAdmin]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.1990y.com/?p=532</guid>
		<description><![CDATA[首先下载 DirectAdmin 面板中文语言包到你的电脑上 [download id="24"] 解压到你喜欢放的地方，例如 d:\cn 一、上传中文语言文件 使用 putty 中的 psftp 工具上传 cn 文件夹到 usr/local/directadmin/data/skins/enhanced/lang 具体命令如下： open 127.0.0.1 连接服务器，请将127.0.0.1改为你的服务器或VPS地址 root password 分别输入 root 账号与密码 cd / 回到根目录，因为默认登录路径为 root/ cd usr/local/directadmin/data/skins/enhanced/lang 进入 DirectAdmin 控制面板 enhanced 皮肤的语言文件夹 put -r d:\cn 将本地D盘的cn文件夹上传到当前目录 exit 退出psftp 二、更改 DirectAdmin 语言设置 登录 DirectAdmin 控制面板，一般为你的 ip 或是域名地址后加:2222 例如：http://127.0.0.1:2222/ 输入 admin 账号与密码 将当前 [...]]]></description>
			<content:encoded><![CDATA[<p>首先下载 DirectAdmin 面板中文语言包到你的电脑上</p>
<p>[download id="24"]</p>
<p>解压到你喜欢放的地方，例如 d:\cn</p>
<h2>一、上传中文语言文件</h2>
<p>使用 putty 中的 psftp 工具上传 cn 文件夹到</p>
<blockquote><p>usr/local/directadmin/data/skins/enhanced/lang</p></blockquote>
<p>具体命令如下：</p>
<p>open 127.0.0.1</p>
<p>连接服务器，请将127.0.0.1改为你的服务器或VPS地址</p>
<p>root</p>
<p>password</p>
<p>分别输入 root 账号与密码</p>
<p><span id="more-532"></span></p>
<p>cd /</p>
<p>回到根目录，因为默认登录路径为 root/</p>
<p>cd usr/local/directadmin/data/skins/enhanced/lang</p>
<p>进入 DirectAdmin 控制面板 enhanced 皮肤的语言文件夹</p>
<p>put -r d:\cn</p>
<p>将本地D盘的cn文件夹上传到当前目录</p>
<p>exit</p>
<p>退出psftp</p>
<h2>二、更改 DirectAdmin 语言设置</h2>
<p>登录 DirectAdmin 控制面板，一般为你的 ip 或是域名地址后加:2222</p>
<blockquote><p>例如：http://127.0.0.1:2222/</p></blockquote>
<p>输入 admin 账号与密码</p>
<p>将当前 Access Level 更改 为User Level</p>
<p>点击进入 Your Account 中的 Site Summary / Statistics / Logs</p>
<p>将 Language 选项中的 en 改为 cn 后，点击 Save Language 按钮</p>
<p>此时，你的 DirectAdmin 控制面板语言就被更改为中文了</p>
]]></content:encoded>
			<wfw:commentRss>http://www.1990y.com/directadmin-cpanel-of-chinese-language-pack-install-download/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>3种在手机上查看维基百科的方法</title>
		<link>http://www.1990y.com/3-ways-wikipedia-in-mobile/</link>
		<comments>http://www.1990y.com/3-ways-wikipedia-in-mobile/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 21:00:00 +0000</pubDate>
		<dc:creator>yeasiz</dc:creator>
				<category><![CDATA[会点小技术]]></category>
		<category><![CDATA[wap]]></category>
		<category><![CDATA[wikipedia]]></category>

		<guid isPermaLink="false">http://www.1990y.com/in-the-cell-phone-to-see-wikipedia-way/</guid>
		<description><![CDATA[在PC上，我们可以在wikipedia上查看维基百科，但是在手机中，我们该怎么办呢？用PIE或者Opera Mobile 打开wikipedia？NO！除非你是拥有无限流量套餐或者使用WiFi上网，否则好几百K的流量一下子就占据了仅有的流量，那么我们该怎么如何在最省流量的情况下在手机上查看维基百科呢？下面就为各位机油推荐3个wap浏览wikipedia的网站。 http://zh.wap.wikipedia.org/ wikipedia官方的手机浏览版本，不支持中文。 http://wapedia.mobi/zh/ 维基百科移动版于2004年8月开张，它提供了每个文章最新的版本，推荐小分辨率手机浏览，支持中文。 http://zh.wikipedia.7val.com/ wikipedia的PDA手机版本，推荐大分辨率手机浏览，支持中文。]]></description>
			<content:encoded><![CDATA[<p>在PC上，我们可以在<a href="http://en.wikipedia.org/wiki/Main_Page">wikipedia</a>上查看维基百科，但是在手机中，我们该怎么办呢？用PIE或者Opera Mobile 打开wikipedia？NO！除非你是拥有无限流量套餐或者使用WiFi上网，否则好几百K的流量一下子就占据了仅有的流量，那么我们该怎么如何在最省流量的情况下在手机上查看维基百科呢？下面就为各位机油推荐3个wap浏览wikipedia的网站。</p>
<p><a href="http://zh.wap.wikipedia.org/">http://zh.wap.wikipedia.org/</a> wikipedia官方的手机浏览版本，不支持中文。</p>
<p><a href="http://www.1990y.com/wp-content/uploads/2008/12/wikipedia1.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" title="wikipedia" src="http://www.1990y.com/wp-content/uploads/2008/12/wikipedia-thumb.png" border="0" alt="wikipedia" width="200" height="260" /></a> <a href="http://www.1990y.com/wp-content/uploads/2008/12/wikipediahtc.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" title="wikipedia-htc" src="http://www.1990y.com/wp-content/uploads/2008/12/wikipediahtc-thumb.png" border="0" alt="wikipedia-htc" width="200" height="260" /></a> <a href="http://www.1990y.com/wp-content/uploads/2008/12/wikipediamobilehtc.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" title="wikipedia-mobile-htc" src="http://www.1990y.com/wp-content/uploads/2008/12/wikipediamobilehtc-thumb.png" border="0" alt="wikipedia-mobile-htc" width="200" height="260" /></a></p>
<p><a href="http://wapedia.mobi/zh/">http://wapedia.mobi/zh/</a> 维基百科移动版于2004年8月开张，它提供了每个文章最新的版本，推荐小分辨率手机浏览，支持中文。</p>
<p><a href="http://www.1990y.com/wp-content/uploads/2008/12/wapediamobileindex.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" title="wapedia-mobile-index" src="http://www.1990y.com/wp-content/uploads/2008/12/wapediamobileindex-thumb.png" border="0" alt="wapedia-mobile-index" width="300" height="393" /></a> <a href="http://www.1990y.com/wp-content/uploads/2008/12/wapediamobile.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" title="wapedia-mobile" src="http://www.1990y.com/wp-content/uploads/2008/12/wapediamobile-thumb.png" border="0" alt="wapedia-mobile" width="300" height="393" /></a></p>
<p><a href="http://zh.wikipedia.7val.com/">http://zh.wikipedia.7val.com/</a> wikipedia的PDA手机版本，推荐大分辨率手机浏览，支持中文。</p>
<p><a href="http://www.1990y.com/wp-content/uploads/2008/12/wikipediapda.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" title="wikipedia-pda" src="http://www.1990y.com/wp-content/uploads/2008/12/wikipediapda-thumb.png" border="0" alt="wikipedia-pda" width="300" height="393" /></a> <a href="http://www.1990y.com/wp-content/uploads/2008/12/wikipediapdahuatuo.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" title="wikipedia-pda-huatuo" src="http://www.1990y.com/wp-content/uploads/2008/12/wikipediapdahuatuo-thumb.png" border="0" alt="wikipedia-pda-huatuo" width="300" height="393" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.1990y.com/3-ways-wikipedia-in-mobile/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>在Google Reader手机版中进行RSS订阅操作</title>
		<link>http://www.1990y.com/mobile-version-of-google-reader-for-rss-subscription/</link>
		<comments>http://www.1990y.com/mobile-version-of-google-reader-for-rss-subscription/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 21:00:00 +0000</pubDate>
		<dc:creator>yeasiz</dc:creator>
				<category><![CDATA[会点小技术]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[reader]]></category>
		<category><![CDATA[rss]]></category>

		<guid isPermaLink="false">http://www.1990y.com/skills/in-the-mobile-version-of-google-reader-for-rss-subscription-operation.html</guid>
		<description><![CDATA[我在之前的文章中介绍过手机RSS阅读软件SPB Insight与GoNews 国产离线新闻阅读软件，但相对于我这类 Gfans，更喜欢选择 Google 的 Rss 阅读产品 Google Reader。和抓虾与鲜果相同的是，Google Reader也提供 Google Reader 手机版页面，通常我都是在 PC 端将 RSS 源添加到 Google Reader 中，但在手机中如何操作呢？ 我在 Google Reader 手机版中并没有找到添加 RSS 源的页面，但在这个页面中，我发现了一个订阅 RSS 源的方法。 首先在PPC中使用IE浏览器打开 http://www.google.com/gwt/n 这个页面。在Enter a URL下方的输入框内输入需要订阅的博客、网站或者 Rss 源地址，并点击 Go 。Google 会根据网页的源码进行简化操作，使我们的IE浏览器可以更方便的浏览Web网页内容。在网页的最上方，我们可以找到RSS 2.0 &#8211; 所有文章（不一定都是此信息）的URL。 在我们点击RSS 2.0 &#8211; 所有文章这个链接后，会在 Google Reader 手机版中列出该源的文章标题与概述。我们将浏览器拉到最下方，点击 登入并进行订阅。 此时，Google会要求我们输入Google 账户与密码进行确认登陆。（如何获得Google 账户？）在输入电子邮件账户与密码后，我们点击登入进行下面的操作。 至此，我们已经成功在 Google [...]]]></description>
			<content:encoded><![CDATA[<p>我在之前的文章中介绍过<a href="http://www.1990y.com/shares/softwares/mobile-rss-reader-software-spb-insight.html">手机RSS阅读软件SPB Insight</a>与<a href="http://www.1990y.com/shares/softwares/gonews-reader-software.html">GoNews 国产离线新闻阅读软件</a>，但相对于我这类 Gfans，更喜欢选择 Google 的 Rss 阅读产品 Google Reader。和抓虾与鲜果相同的是，Google Reader也提供 Google Reader 手机版页面，通常我都是在 PC 端将 RSS 源添加到 Google Reader 中，但在手机中如何操作呢？</p>
<p>我在 Google Reader 手机版中并没有找到添加 RSS 源的页面，但在<a href="http://www.google.com/gwt/n">这个页面</a>中，我发现了一个订阅 RSS 源的方法。</p>
<p>首先在PPC中使用IE浏览器打开 <a title="http://www.google.com/gwt/n" href="http://www.google.com/gwt/n">http://www.google.com/gwt/n</a> 这个页面。在Enter a URL下方的输入框内输入需要订阅的博客、网站或者 Rss 源地址，并点击 Go 。Google 会根据网页的源码进行简化操作，使我们的IE浏览器可以更方便的浏览Web网页内容。在网页的最上方，我们可以找到<a href="http://feed.1990y.com/">RSS 2.0 &#8211; 所有文章</a>（不一定都是此信息）的URL。</p>
<p><a href="http://www.1990y.com/wp-content/uploads/2008/12/screen001.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="Screen001" src="http://www.1990y.com/wp-content/uploads/2008/12/screen001-thumb.png" border="0" alt="Screen001" width="310" height="407" /></a> <a href="http://www.1990y.com/wp-content/uploads/2008/12/screen002.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="Screen002" src="http://www.1990y.com/wp-content/uploads/2008/12/screen002-thumb.png" border="0" alt="Screen002" width="310" height="407" /></a></p>
<p>在我们点击<a href="http://feed.1990y.com/">RSS 2.0 &#8211; 所有文章</a>这个链接后，会在 Google Reader 手机版中列出该源的文章标题与概述。我们将浏览器拉到最下方，点击 登入并进行订阅。</p>
<p><a href="http://www.1990y.com/wp-content/uploads/2008/12/screen003.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="Screen003" src="http://www.1990y.com/wp-content/uploads/2008/12/screen003-thumb.png" border="0" alt="Screen003" width="310" height="407" /></a> <a href="http://www.1990y.com/wp-content/uploads/2008/12/screen004.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="Screen004" src="http://www.1990y.com/wp-content/uploads/2008/12/screen004-thumb.png" border="0" alt="Screen004" width="310" height="407" /></a></p>
<p><span id="more-328"></span>此时，Google会要求我们输入Google 账户与密码进行确认登陆。（如何获得Google 账户？）在输入电子邮件账户与密码后，我们点击登入进行下面的操作。</p>
<p><a href="http://www.1990y.com/wp-content/uploads/2008/12/screen005.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="Screen005" src="http://www.1990y.com/wp-content/uploads/2008/12/screen005-thumb.png" border="0" alt="Screen005" width="310" height="407" /></a> <a href="http://www.1990y.com/wp-content/uploads/2008/12/screen010.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="Screen010" src="http://www.1990y.com/wp-content/uploads/2008/12/screen010-thumb.png" border="0" alt="Screen010" width="310" height="407" /></a></p>
<p>至此，我们已经成功在 Google Reader 手机版中成功订阅 Y-Space 。</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;我是Tips的分割线&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Tips:</p>
<p><a title="http://www.google.com/gwt/n" href="http://www.google.com/gwt/n">http://www.google.com/gwt/n</a> 同时具有翻墙功能，你可以使用这个<a href="http://en.blog.wordpress.com/2008/12/03/27-gets-here-in-two-days/">WordPress升级官方声明链接</a>进行测试。</p>
<p>但是翻墙功能不一定好用，在登入 FLG 网站时，也会出现 GFWed 情况。</p>
<p><a href="http://www.1990y.com/wp-content/uploads/2008/12/screen011.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" title="Screen011" src="http://www.1990y.com/wp-content/uploads/2008/12/screen011-thumb.png" border="0" alt="Screen011" width="200" height="260" /></a> <a href="http://www.1990y.com/wp-content/uploads/2008/12/screen006.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" title="Screen006" src="http://www.1990y.com/wp-content/uploads/2008/12/screen006-thumb.png" border="0" alt="Screen006" width="200" height="260" /></a> <a href="http://www.1990y.com/wp-content/uploads/2008/12/screen007.png" class="highslide-image" onclick="return hs.expand(this);"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" title="Screen007" src="http://www.1990y.com/wp-content/uploads/2008/12/screen007-thumb.png" border="0" alt="Screen007" width="200" height="260" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.1990y.com/mobile-version-of-google-reader-for-rss-subscription/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>使用K2主题时如何在首页显示摘要</title>
		<link>http://www.1990y.com/k2-using-subject-of-how-to-display-on-the-first-page-summary/</link>
		<comments>http://www.1990y.com/k2-using-subject-of-how-to-display-on-the-first-page-summary/#comments</comments>
		<pubDate>Sat, 08 Nov 2008 13:06:28 +0000</pubDate>
		<dc:creator>yeasiz</dc:creator>
				<category><![CDATA[会点小技术]]></category>
		<category><![CDATA[k2 theme]]></category>

		<guid isPermaLink="false">http://www.1990y.com/?p=169</guid>
		<description><![CDATA[首先提出来的问题是： 我们为什么要在WordPress首页显示摘要？ 在WordPress首页摘要可以让： 首页页面美观，不会因为每篇文章的长短不同，有无图片而造成页面的长短不一； 首页载入速度更快，首页内容提要没有图片，没有视频，只有少量文字，在进入首页后，能够更迅速地显示； 增加文章页面的阅读程度。 那么， 如何在WordPress首页显示摘要呢？ 根据我们以往的经验，只要在你启用的皮肤文件夹里找到 index.php 将 &#60;!--p the_content&#40;&#41;;--&#62; 替换为 &#60;!--p the_excerpt&#40;&#41;;--&#62; 即可 但是在K2主题中，index.php 文件内找不到 语句，这是因为K2主题的不同页面，包括 index.php，single.php，search.php，archive.php 等都是通过间接调用 theloop.php 文件实现的。所以，我们只要在 theloop.php 文件中找到第 146 行，将 &#60;!--p the_content&#40;sprintf&#40;__&#40;&#34;Continue reading '%s'&#34;, 'k2_domain'&#41;, the_title&#40;'', '', false&#41;&#41;&#41;;--&#62; 替换为 &#60;!--p if &#40; is_single&#40;&#41; &#41;&#123; the_content&#40;sprintf&#40;__&#40;&#34;Continue reading '%s'&#34;, 'k2_domain'&#41;, the_title&#40;'', '', false&#41;&#41;&#41;; &#125; else &#123; the_excerpt&#40;&#41;; &#125;--&#62; 即可 [...]]]></description>
			<content:encoded><![CDATA[<p>首先提出来的问题是：</p>
<blockquote><p>我们为什么要在WordPress首页显示摘要？</p></blockquote>
<p>在WordPress首页摘要可以让：</p>
<ul>
<li><strong>首页页面美观，不会因为每篇文章的长短不同，有无图片而造成页面的长短不一；</strong></li>
<li><strong>首页载入速度更快，首页内容提要没有图片，没有视频，只有少量文字，在进入首页后，能够更迅速地显示；</strong></li>
<li><strong>增加文章页面的阅读程度。</strong></li>
</ul>
<p>那么，</p>
<blockquote><p>如何在WordPress首页显示摘要呢？</p></blockquote>
<p>根据我们以往的经验，只要在你启用的皮肤文件夹里找到 index.php</p>
<p>将</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;!--</span>p the_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;--&gt;</span></pre></div></div>

<p>替换为</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;!--</span>p the_excerpt<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;--&gt;</span></pre></div></div>

<p>即可</p>
<p>但是在K2主题中，index.php 文件内找不到 <!--p the_content();-->语句，这是因为K2主题的不同页面，包括 index.php，single.php，search.php，archive.php 等都是通过间接调用 theloop.php 文件实现的。所以，我们只要在 theloop.php 文件中找到第 <span style="color: #ff0000;">146 </span>行，将</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;!--</span>p the_content<span style="color: #009900;">&#40;</span><span style="color: #990000;">sprintf</span><span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Continue reading '<span style="color: #009933; font-weight: bold;">%s</span>'&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'k2_domain'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;--&gt;</span></pre></div></div>

<p>替换为</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;!--</span>p <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_single<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    the_content<span style="color: #009900;">&#40;</span><span style="color: #990000;">sprintf</span><span style="color: #009900;">&#40;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Continue reading '<span style="color: #009933; font-weight: bold;">%s</span>'&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'k2_domain'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
    the_excerpt<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">--&gt;</span></pre></div></div>

<p>即可</p>
<p>这里，主要是增加了一个判断语句，如果是独立文章，则显示全文；否则，显示摘要。</p>
<p>当然，如果你希望在其他页面也显示全文，则可以自己对上述代码进行修改。常用的判断函数有：首页 is_home，独立文章页 is_single，搜索结果页 is_search，存档文章页 is_archive（还可以细分为按作者存档 is_author，按分类存档 is_category，按年存档 is_year，按月存档 is_month，按日存档 is_day 等），Tage 文章页 is_tag 等等。</p>
<p>至此，你的wordpress，除非打开单个post，其他情况下都是显示摘要。</p>
<p>本文参考：<a href="http://www.dwgoogle.cn/articles/%E8%AE%A9wordpress%E5%8D%9A%E5%AE%A2%E9%A6%96%E9%A1%B5%E4%BB%85%E6%98%BE%E7%A4%BA%E6%91%98%E8%A6%81.html" target="_blank">让wordpress博客首页仅显示摘要</a><br />
                <a href="http://jiangzhanyong.com/2007/07/wordpress-tip-content-or-excerpt-with-k2-theme-470.html" target="_blank">WordPress 技巧: K2 主题如何实现分别输出全文和摘要</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.1990y.com/k2-using-subject-of-how-to-display-on-the-first-page-summary/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTC Touch Diamond 手机刷机操作</title>
		<link>http://www.1990y.com/htc-touch-diamond-cook/</link>
		<comments>http://www.1990y.com/htc-touch-diamond-cook/#comments</comments>
		<pubDate>Mon, 15 Sep 2008 02:43:19 +0000</pubDate>
		<dc:creator>yeasiz</dc:creator>
				<category><![CDATA[会点小技术]]></category>
		<category><![CDATA[htc touch diamond]]></category>

		<guid isPermaLink="false">http://www.1990y.com/?p=52</guid>
		<description><![CDATA[上次讲完了HTC Touch Diamond 手机解锁，这次我来讲下HTC Touch Diamond手机刷机步骤。 首先需要明确的是：刷机有风险，开刷要谨慎。如果你还不知道如何进行下载、解压缩等操作，那么我建议你点击浏览器右上角的关闭按钮。 请务必在操作前做好备份！ 请确保你已经解锁！  点击图片可以查看大图 Step1 下载解压缩ROM文件(例如这个ROM) Step2 连接手机USB，保持电脑中的Microsoft ActiveSync软件处于同步状态。 Step3 在电脑中运行DiamonCustomRUU.exe，如果出现“应用程序正常初始化(0xc0000135)失败”那是因为你没有安装Mmicrosoft.net Framework。 Step4 仔细阅读程序中的每一步，一路Next即可。 Step5 你的电脑与手机都会出现一个进度条，待进度条到达100%即可。 Enjoy!]]></description>
			<content:encoded><![CDATA[<p>上次讲完了<a href="http://www.1990y.com/skills/htc-touch-diamond-unlock.html">HTC Touch Diamond 手机解锁</a>，这次我来讲下HTC Touch Diamond手机刷机步骤。</p>
<p>首先需要明确的是：刷机有风险，开刷要谨慎。如果你还不知道如何进行下载、解压缩等操作，那么我建议你点击浏览器右上角的关闭按钮。</p>
<blockquote><p>请务必在操作前做好备份！<br />
请确保你已经<a href="http://www.1990y.com/mobile/htc-touch-diamond-unlock.html">解锁</a>！ </p></blockquote>
<p>点击图片可以查看大图</p>
<p>Step1 下载解压缩ROM文件(例如<a href="http://duttythroy.net/download-area.html?task=finish&amp;cid=130&amp;catid=7&amp;m=0">这个ROM</a>)</p>
<p>Step2 连接手机USB，保持电脑中的Microsoft ActiveSync软件处于同步状态。<br />
<a href="http://www.1990y.com/wp-content/uploads/2008/09/activesync.png" class="highslide-image" onclick="return hs.expand(this);"><img class="alignnone size-medium wp-image-64" title="activesync" src="http://www.1990y.com/wp-content/uploads/2008/09/activesync-300x253.png" alt="" width="300" height="253" /></a></p>
<p>Step3 在电脑中运行DiamonCustomRUU.exe，如果出现“应用程序正常初始化(0xc0000135)失败”那是因为你没有安装<a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=333325FD-AE52-4E35-B531-508D977D32A6&amp;displaylang=zh-cn">Mmicrosoft.net Framework</a>。<br />
<a href="http://www.1990y.com/wp-content/uploads/2008/09/diamoncustomruu.png" class="highslide-image" onclick="return hs.expand(this);"><img class="alignnone size-medium wp-image-65" title="diamoncustomruu" src="http://www.1990y.com/wp-content/uploads/2008/09/diamoncustomruu-300x192.png" alt="" width="300" height="192" /></a></p>
<p>Step4 仔细阅读程序中的每一步，一路Next即可。<br />
<a href="http://www.1990y.com/wp-content/uploads/2008/09/diamoncustomruu-1.png" class="highslide-image" onclick="return hs.expand(this);"><img class="alignnone size-medium wp-image-66" title="diamoncustomruu-1" src="http://www.1990y.com/wp-content/uploads/2008/09/diamoncustomruu-1-300x192.png" alt="" width="300" height="192" /></a></p>
<p><a href="http://www.1990y.com/wp-content/uploads/2008/09/diamoncustomruu-2.png" class="highslide-image" onclick="return hs.expand(this);"><img class="alignnone size-medium wp-image-67" title="diamoncustomruu-2" src="http://www.1990y.com/wp-content/uploads/2008/09/diamoncustomruu-2-300x192.png" alt="" width="300" height="192" /></a></p>
<p><a href="http://www.1990y.com/wp-content/uploads/2008/09/diamoncustomruu-3.png" class="highslide-image" onclick="return hs.expand(this);"><img class="alignnone size-medium wp-image-68" title="diamoncustomruu-3" src="http://www.1990y.com/wp-content/uploads/2008/09/diamoncustomruu-3-300x192.png" alt="" width="300" height="192" /></a></p>
<p><a href="http://www.1990y.com/wp-content/uploads/2008/09/diamoncustomruu-4.png" class="highslide-image" onclick="return hs.expand(this);"><img class="alignnone size-medium wp-image-69" title="diamoncustomruu-4" src="http://www.1990y.com/wp-content/uploads/2008/09/diamoncustomruu-4-300x192.png" alt="" width="300" height="192" /></a></p>
<p>Step5 你的电脑与手机都会出现一个进度条，待进度条到达100%即可。<br />
<a href="http://www.1990y.com/wp-content/uploads/2008/09/update.png" class="highslide-image" onclick="return hs.expand(this);"><img class="alignnone size-medium wp-image-71" title="update" src="http://www.1990y.com/wp-content/uploads/2008/09/update-300x129.png" alt="" width="300" height="129" /></a></p>
<p><a href="http://www.1990y.com/wp-content/uploads/2008/09/diamoncustomruu-6.png" class="highslide-image" onclick="return hs.expand(this);"><img class="alignnone size-medium wp-image-70" title="diamoncustomruu-6" src="http://www.1990y.com/wp-content/uploads/2008/09/diamoncustomruu-6-300x129.png" alt="" width="300" height="129" /></a></p>
<p><a href="http://www.1990y.com/wp-content/uploads/2008/09/diamoncustomruu-finish.png" class="highslide-image" onclick="return hs.expand(this);"><img class="alignnone size-medium wp-image-72" title="diamoncustomruu-finish" src="http://www.1990y.com/wp-content/uploads/2008/09/diamoncustomruu-finish-300x192.png" alt="" width="300" height="192" /></a></p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.1990y.com/htc-touch-diamond-cook/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>HTC Touch Diamond 手机解锁</title>
		<link>http://www.1990y.com/htc-touch-diamond-unlock/</link>
		<comments>http://www.1990y.com/htc-touch-diamond-unlock/#comments</comments>
		<pubDate>Mon, 15 Sep 2008 01:10:07 +0000</pubDate>
		<dc:creator>yeasiz</dc:creator>
				<category><![CDATA[会点小技术]]></category>
		<category><![CDATA[htc touch diamond]]></category>
		<category><![CDATA[unlock]]></category>

		<guid isPermaLink="false">http://www.thetwolovers.cn/?p=18</guid>
		<description><![CDATA[首先，我必须向你说明：刷机有风险，开刷要谨慎。如果你还不知道如何进行下载、解压缩等操作，那么我建议你点击浏览器右上角的关闭按钮。 请务必在操作前做好备份！ Step1 下载解压缩这个文件 Step2 连接手机USB，保持电脑中的Microsoft ActiveSync软件处于同步状态。将压缩包中的SSPL-Manual.exe文件通过ActiveSync软件传送到手机内部文件夹中(例如\My Documents\SSPL-Manual.exe)。 Step3 在手机中运行SSPL-Manual.exe，此时，你的手机会变成黑屏，不用惊慌，这是正常现象。稍等片刻后，你的电脑会提示你安装新的驱动。 Step4 在自动安装驱动完毕后，在电脑中运行ROMUpdateUtility.exe，仔细阅读程序中的每一步，直到出现Update按钮。 Step5 按下Update后，你的电脑会出现一个进度条，待进度条至100%后。你的手机就会自动解锁，重启，并格式化手机，但是你的内部存储文件不会消失，但我建议你做好备份。 Step6 当解锁完毕后，点击Finish退出。 Q:为什么要解锁？ A:如果不解锁直接刷机的话，你的爱机有可能会刷成“砖头”。 Q:我点击程序后，出现“应用程序正常初始化(0xc0000135)失败”。 A:你的电脑没有升级Mmicrosoft.net Framework，你可以在这里下载到这个文件]]></description>
			<content:encoded><![CDATA[<p>首先，我必须向你说明：刷机有风险，开刷要谨慎。如果你还不知道如何进行下载、解压缩等操作，那么我建议你点击浏览器右上角的关闭按钮。</p>
<h2>请务必在操作前做好备份！</h2>
<p><em>Step1</em> 下载解压缩<a href="http://www.1990y.com/wp-content/uploads/2008/09/unsigned-hard-spl-diamond-olinex.zip">这个文件</a><br />
<em>Step2</em> 连接手机USB，保持电脑中的Microsoft ActiveSync软件处于同步状态。将压缩包中的SSPL-Manual.exe文件通过ActiveSync软件传送到手机内部文件夹中(例如\My Documents\SSPL-Manual.exe)。<em><br />
</em><em>Step3</em> 在手机中运行SSPL-Manual.exe，此时，你的手机会变成黑屏，不用惊慌，这是正常现象。稍等片刻后，你的电脑会提示你安装新的驱动。<br />
<em>Step4</em> 在自动安装驱动完毕后，在电脑中运行ROMUpdateUtility.exe，仔细阅读程序中的每一步，直到出现Update按钮。<br />
<em>Step5</em> 按下Update后，你的电脑会出现一个进度条，待进度条至100%后。你的手机就会自动解锁，重启，并格式化手机，但是你的内部存储文件不会消失，但我建议你做好备份。<br />
<em>Step6</em> 当解锁完毕后，点击Finish退出。</p>
<p>Q:为什么要解锁？<br />
A:如果不解锁直接刷机的话，你的爱机有可能会刷成“砖头”。</p>
<p>Q:我点击程序后，出现“应用程序正常初始化(0xc0000135)失败”。<br />
A:你的电脑没有升级Mmicrosoft.net Framework，你可以在<a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=333325FD-AE52-4E35-B531-508D977D32A6&amp;displaylang=zh-cn">这里</a>下载到这个文件</p>
]]></content:encoded>
			<wfw:commentRss>http://www.1990y.com/htc-touch-diamond-unlock/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
