﻿<?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>Gavin&#039;s Blog &#187; 技术大类</title>
	<atom:link href="http://laigw.name/cat/tech/feed" rel="self" type="application/rss+xml" />
	<link>http://laigw.name</link>
	<description>Keep it simple, stupid. Simplicity is beauty.</description>
	<lastBuildDate>Sun, 29 Jan 2012 07:14:51 +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>Linux configure 参数解释</title>
		<link>http://laigw.name/post/429.html</link>
		<comments>http://laigw.name/post/429.html#comments</comments>
		<pubDate>Fri, 08 Jul 2011 08:19:18 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
				<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://laigw.name/?p=429</guid>
		<description><![CDATA[      Linux环境下的软件安装，并不是一件容易的事情；如果通过源代码编译后再安装，当然事情就更为复杂一些；现在安装各种软件的教程都非常普遍；但万变不离其中，对基础知识的扎实掌握，安装各种软件的问题就迎刃而解了。Configure脚本配置工具就是基础之一，它是autoconf的工具的基本应用。
　　
　　与一些技巧相比，Configure显得基础一些，当然使用和学习起来就显得枯燥乏味一些，当然要成为高手，对基础的熟悉不能超越哦。
　　
　　为此我转载了一篇关于Configure选项配置的详细介绍，供大家参考。

　 　&#8217;configure&#8217;脚本有大量的命令行选项.对不同的软件包来说,这些选项可能会有变化,但是许多基本的选项是不会改变的.带上&#8217;&#8211;help&#8217;选 项执行&#8217;configure&#8217;脚本可以看到可用的所有选项.尽管许多选项是很少用到的,但是当你为了特殊的需求而configure一个包时,知道他们的 存在是很有益处的.下面对每一个选项进行简略的介绍:
&#8211;cache-file=FILE
　　&#8217;configure&#8217;会在你的系 统上测试存在的特性(或者bug!).为了加速随后进行的配置,测试的结果会存储在一个cache file里.当configure一个每个子树里都有&#8217;configure&#8217;脚本的复杂的源码树时,一个很好的cache file的存在会有很大帮助.
&#8211;help
　　输出帮助信息.即使是有经验的用户也偶尔需要使用使用&#8217;&#8211;help&#8217;选项,因为一个复杂的项目会包含附加的选项.例如,GCC包里的&#8217;configure&#8217;脚本就包含了允许你控制是否生成和在GCC中使用GNU汇编器的选项.
&#8211;no-create
　　&#8217;configure&#8217;中的一个主要函数会制作输出文件.此选项阻止&#8217;configure&#8217;生成这个文件.你可以认为这是一种演习(dry run),尽管缓存(cache)仍然被改写了.
&#8211;quiet
&#8211;silent
　 　当&#8217;configure&#8217;进行他的测试时,会输出简要的信息来告诉用户正在作什么.这样作是因为&#8217;configure&#8217;可能会比较慢,没有这种输出的话 用户将会被扔在一旁疑惑正在发生什么.使用这两个选项中的任何一个都会把你扔到一旁.(译注:这两句话比较有意思,原文是这样的:If there was no such output, the user would be left wondering what is happening. By using this option, you too can be left wondering!)
&#8211;version
　　打印用来产生&#8217;configure&#8217;脚本的Autoconf的版本号.
&#8211;prefix=PEWFIX
　 　&#8217;&#8211;prefix&#8217;是最常用的选项.制作出的&#8217;Makefile&#8217;会查看随此选项传递的参数,当一个包在安装时可以彻底的重新安置他的结构独立部分. 举一个例子,当安装一个包,例如说Emacs,下面的命令将会使Emacs Lisp file被安装到&#8221;/opt/gnu/share&#8221;:
$ ./configure &#8211;prefix=/opt/gnu
&#8211;exec-prefix=EPREFIX
　　与&#8217;&#8211;prefix&#8217;选项类似,但是他是用来设置结构倚赖的文件的安装位置.编译好的&#8217;emacs&#8217;二进制文件就是这样一个问件.如果没有设置这个选项的话,默认使用的选项值将被设为和&#8217;&#8211;prefix&#8217;选项值一样.
&#8211;bindir=DIR
　　指定二进制文件的安装位置.这里的二进制文件定义为可以被用户直接执行的程序.
&#8211;sbindir=DIR
　　指定超级二进制文件的安装位置.这是一些通常只能由超级用户执行的程序.
&#8211;libexecdir=DIR
　　指定可执行支持文件的安装位置.与二进制文件相反,这些文件从来不直接由用户执行,但是可以被上面提到的二进制文件所执行.
&#8211;datadir=DIR
　　指定通用数据文件的安装位置.
&#8211;sysconfdir=DIR
　　指定在单个机器上使用的只读数据的安装位置.
&#8211;sharedstatedir=DIR
　　指定可以在多个机器上共享的可写数据的安装位置.
&#8211;localstatedir=DIR
　　指定只能单机使用的可写数据的安装位置.
&#8211;libdir=DIR
　　指定库文件的安装位置.
&#8211;includedir=DIR
　　指定C头文件的安装位置.其他语言如C++的头文件也可以使用此选项.
&#8211;oldincludedir=DIR
　　指定为除GCC外编译器安装的C头文件的安装位置.
&#8211;infodir=DIR
　　指定Info格式文档的安装位置.Info是被GNU工程所使用的文档格式.
&#8211;mandir=DIR
　　指定手册页的安装位置.
&#8211;srcdir=DIR
　　这个选项对安装没有作用.他会告诉&#8217;configure&#8217;源码的位置.一般来说不用指定此选项,因为&#8217;configure&#8217;脚本一般和源码文件在同一个目录下.
&#8211;program-prefix=PREFIX
　 　指定将被加到所安装程序的名字上的前缀.例如,使用&#8217;&#8211;program-prefix=g&#8217;来configure一个名为&#8217;tar&#8217;的程序将会使安装 的程序被命名为&#8217;gtar&#8217;.当和其他的安装选项一起使用时,这个选项只有当他被`Makefile.in&#8217;文件使用时才会工作.
&#8211;program-suffix=SUFFIX
　　指定将被加到所安装程序的名字上的后缀.
&#8211;program-transform-name=PROGRAM
　　这里的PROGRAM是一个sed脚本.当一个程序被安装时,他的名字将经过`sed -e PROGRAM&#8217;来产生安装的名字.
&#8211;build=BUILD
　　指定软件包安装的系统平台.如果没有指定,默认值将是&#8217;&#8211;host&#8217;选项的值.
&#8211;host=HOST
　　指定软件运行的系统平台.如果没有指定,将会运行`config.guess&#8217;来检测.
&#8211;target=GARGET
　　指定软件面向(target to)的系统平台.这主要在程序语言工具如编译器和汇编器上下文中起作用.如果没有指定,默认将使用&#8217;&#8211;host&#8217;选项的值.
&#8211;disable-FEATURE
　　一些软件包可以选择这个选项来提供为大型选项的编译时配置,例如使用Kerberos认证系统或者一个实验性的编译器最优配置.如果默认是提供这些特性,可以使用&#8217;&#8211;disable-FEATURE&#8217;来禁用它,这里&#8217;FEATURE&#8217;是特性的名字.例如:
$ ./configure &#8211;disable-gui
-enable-FEATURE[=ARG]
　　相反的,一些软件包可能提供了一些默认被禁止的特性,可以使用&#8217;&#8211;enable-FEATURE&#8217;来起用它.这里&#8217;FEATURE&#8217;是特性的名字.一个特性可能会接受一个可选的参数.例如:
$ ./configure &#8211;enable-buffers=128
`&#8211;enable-FEATURE=no&#8217;与上面提到的&#8217;&#8211;disable-FEATURE&#8217;是同义的.
&#8211;with-PACKAGE[=ARG]
　 [...]]]></description>
		<wfw:commentRss>http://laigw.name/post/429.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>JavaScript的DOM属性和方法</title>
		<link>http://laigw.name/post/418.html</link>
		<comments>http://laigw.name/post/418.html#comments</comments>
		<pubDate>Wed, 17 Nov 2010 06:45:22 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
				<category><![CDATA[Web前端技术]]></category>
		<category><![CDATA[dom]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[属性]]></category>
		<category><![CDATA[方法]]></category>

		<guid isPermaLink="false">http://laigw.name/?p=418</guid>
		<description><![CDATA[DOM属性和方法：

document方法： 
getElementById(id)                            返回指定结点的引用
getElementsByTagName(name)       返回文档中所有匹配的元素的集合
createElement(name)                   [...]]]></description>
		<wfw:commentRss>http://laigw.name/post/418.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>jQuery性能优化实践</title>
		<link>http://laigw.name/post/410.html</link>
		<comments>http://laigw.name/post/410.html#comments</comments>
		<pubDate>Sun, 31 Oct 2010 06:50:32 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
				<category><![CDATA[Web前端技术]]></category>
		<category><![CDATA[默认分类]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[优化]]></category>
		<category><![CDATA[实践]]></category>
		<category><![CDATA[性能]]></category>

		<guid isPermaLink="false">http://laigw.name/?p=410</guid>
		<description><![CDATA[代码优化分多个方面，而性能是主要的优化目标。本文将从对象缓存、DOM操作等14个方面讲解如何优化jQuery代码的执行效率，从而总体提升代码性能。]]></description>
		<wfw:commentRss>http://laigw.name/post/410.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>大小不固定的图片和多行文字的垂直水平居中</title>
		<link>http://laigw.name/post/405.html</link>
		<comments>http://laigw.name/post/405.html#comments</comments>
		<pubDate>Wed, 13 Oct 2010 09:03:43 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
				<category><![CDATA[Web前端技术]]></category>
		<category><![CDATA[默认分类]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[图片居中]]></category>
		<category><![CDATA[垂直居中]]></category>
		<category><![CDATA[多行]]></category>
		<category><![CDATA[文字居中]]></category>

		<guid isPermaLink="false">http://laigw.name/?p=405</guid>
		<description><![CDATA[大小不固定的图片和多行文字的垂直水平居中

一、大小不固定，多行文字的垂直居中
① 单行文字
可能很多人都知道如何让单行文字垂直居中显示，就是使用line-height，将line-height值与外部标签盒子的高度值设置成一致就可以了。例如：
单行文字居中显示测试，css样式为：height:3em; line-height:3em;……
② 多行文字
但是对于外框高度固定，文字大小个数不固定的多行文字呢？
文字可能一行显示，也有可能多行显示；文字可能是小号字体，也有可能是大号的。这时候如何让其垂直居中显示呢？看下面！
这里的文字用来做多行文字垂直居中对齐的测试。
这是第二行文字，您还可以再添加一行文字做测试！
这是隐藏的第三行文字，注意到文字的变化没，依旧垂直居中。

详见：http://xurl.cn/bhfqf

]]></description>
		<wfw:commentRss>http://laigw.name/post/405.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[转]JavaScript字符串函数大全</title>
		<link>http://laigw.name/post/387.html</link>
		<comments>http://laigw.name/post/387.html#comments</comments>
		<pubDate>Fri, 11 Jun 2010 03:29:43 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
				<category><![CDATA[Web前端技术]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[字符串函数]]></category>

		<guid isPermaLink="false">http://laigw.name/?p=387</guid>
		<description><![CDATA[javascript常用字符串函数]]></description>
		<wfw:commentRss>http://laigw.name/post/387.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>浅谈PHP中include文件时的作用域问题</title>
		<link>http://laigw.name/post/319.html</link>
		<comments>http://laigw.name/post/319.html#comments</comments>
		<pubDate>Fri, 10 Apr 2009 13:46:47 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[include]]></category>
		<category><![CDATA[require]]></category>
		<category><![CDATA[作用域]]></category>

		<guid isPermaLink="false">http://laigw.name/?p=319</guid>
		<description><![CDATA[    大多数情况下，PHP程序员都是只需使用include或require的基本功能，即在一个php脚本里include(require)另外一个php脚本，但往往容易忽略在一些情况下include(require)的作用域问题，并造成一些难以发觉的错误。该文就是想理清这样一个问题：在一个函数里使用include(require)时、被包含进来的变量、函数和类的作用域问题。]]></description>
		<wfw:commentRss>http://laigw.name/post/319.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>VSFTP的安装和配置过程</title>
		<link>http://laigw.name/post/316.html</link>
		<comments>http://laigw.name/post/316.html#comments</comments>
		<pubDate>Tue, 07 Apr 2009 13:11:37 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
				<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[VSFTP]]></category>
		<category><![CDATA[安装配置]]></category>

		<guid isPermaLink="false">http://laigw.name/?p=316</guid>
		<description><![CDATA[ 本人在Linux下安装vsftp的过程中，参考了下面整个文档。该文档来自vsftp官方的在线文档(ftp://vsftpd.beasts.org/users/cevans/untar/vsftpd-2.0.5/INSTALL)

INSTALL
=======
This file details how to build and install / run vsftpd from the vsftpd
distribution .tar.gz file.
Step 1) Build vsftpd.
Switch to the directory created when you unpacked the vsftpd .tar.gz file.
e.g.:
cd vsftpd-1.1.2
edit &#8220;builddefs.h&#8221; to handle compile-time settings (tcp_wrappers build,
etc).
Just type &#8220;make&#8221; (and mail me to fix it if it doesn&#8217;t build  .
This should produce [...]]]></description>
		<wfw:commentRss>http://laigw.name/post/316.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP继承构造函数的可见性不能声明为private</title>
		<link>http://laigw.name/post/311.html</link>
		<comments>http://laigw.name/post/311.html#comments</comments>
		<pubDate>Mon, 06 Apr 2009 08:55:27 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[private]]></category>
		<category><![CDATA[构造函数]]></category>
		<category><![CDATA[继承]]></category>

		<guid isPermaLink="false">http://laigw.name/?p=311</guid>
		<description><![CDATA[近日在编写继承性的PHP代码时，遇到一个怪异的问题，就是继承于另外一个基类的继承类的构造函数不能声明为private（但可以是protected和public，没有继承时也是可以使用private的），问题详细描述请看正文。]]></description>
		<wfw:commentRss>http://laigw.name/post/311.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Slackware 常见的46个问题(链接版)</title>
		<link>http://laigw.name/post/304.html</link>
		<comments>http://laigw.name/post/304.html#comments</comments>
		<pubDate>Sat, 07 Feb 2009 03:20:46 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
				<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[Slackware 常见问题]]></category>

		<guid isPermaLink="false">http://laigw.name/?p=304</guid>
		<description><![CDATA[Slackware 常见的46个问题(链接版)
前言：该文是转自Slackware linux常见的46个问题(部分也适合于其他linux发行版)，经本人编辑，加入了目录链接，使更便于阅读。
    用了很长时间的linux，最喜欢的发行版就是slackware，现在一直都用这个了，用slackware 也遇到了不少问题，一些问题在这里找到了答案，还有一些问题在google或者其他地方，比如inuxquestions.org上面找到的答案，还有一些，自己找的解决方法，另外一些，比如43-45个问题，是在学习工作的时候为了方便管理系统，而摸索出来的东西，在这里整理出来，如有不对的地方，请大家指正。大部分解决方法来源于网上，积众人之智慧与经验，若有侵权之处，还请多多谅解。
1.slackware 9 普通用户不能访问mount的分区问题
2.how to Config X?
3.Slackware的自动载入模块配置文件在那里? 
4.Slackware9如何让普通用户也可以使用光驱？
5.如何加载中文系统？
6.系统关机的时候不能自动断电的问题
7.设置slackware命令行(控制台，console，字符界面)的字体
8.How do I make a Slackware bootdisk with this new kernel I made?
9.怎样使终端显示带颜色？
10.slackware9.0可以用电源键直接关机？
11.如何配制服务？
12.为什么~/.bashrc文件不起作用？
13.slackware9中gnome的更好汉化方法
14.Slackware下mplayer菜单乱码,怎么解决? 
15.在kde下调用gnome的程序的时候，那些gnome的程序上面的字体很
16。为什么我安装不起cce?
17.如何系统启动的时候运行xfs服务？(运行xfs之后才可以运行x,使用桌面先要启动这个)
18.非root用户在slackware下运行apache ？
19.进入linux单用户模式
20.看看谁再用设备
21.查看软件包文件的安装位置 
22.手动启用和禁用网卡 
23.如何解决slackware开机自动load 8139cp模块? 
24.slackware9怎么制作启动盘？
25.为什么我登陆console的时候名言没有了？
26.如何设置启动桌面环境?
27.如何启动默认安装的mysqld？
28.为什么我的系统安装完后没有出现引导界面？
29.为什么我安装系统的时候的lilo装不上？
30.如何从Dos引导slackware linux？
31.为什么我的系统启动的时候，每次都要选择显示模式？
32.为什么用startx进入图形界面后，再logout屏幕会黑屏？
33.You have mail,where is the mail ?
34.为什么我的proftpd服务器运行不起？
35.为什么我的gnome经常死机，或者屏幕冻结？或者鼠标用不了？
36.请问安装软件的时候如何用patch打补丁(比如给内核打补丁)？
37.请问我需要把一个可执行文件变成可以用记事本打开的文件，如何编码？
38.请问如何加载优盘？如何使用ntfs分区？
39.请问如何配置桌面的分辨率和显示模式？
40.请问为什么我的系统声音出不来？如何配置声音？
41.请问为什么启动机器的时候，显示一堆一堆的modprobe的错误？(failed to &#8230;.)
42.请问如何设置DNS?
43.请问如何在系统中快速查找某个文件？
44.请问我没有用updatedb这个命令建立数据库，如何查找系统中的文件？
45.请问如何在我的计算机中查找含有某个字符串的文件？
46. why i couldn&#8217;t lock my screen ?

1.slackware 9 普通用户不能访问mount的分区问题
这是我的fstab的内容：
/dev/hda8 swap swap defaults 0 0
/dev/hda9 [...]]]></description>
		<wfw:commentRss>http://laigw.name/post/304.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP的cookie和session学习总结</title>
		<link>http://laigw.name/post/283.html</link>
		<comments>http://laigw.name/post/283.html#comments</comments>
		<pubDate>Thu, 27 Nov 2008 05:25:49 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[COOKIE]]></category>
		<category><![CDATA[Session]]></category>

		<guid isPermaLink="false">http://www.laigw.name/article/283.html</guid>
		<description><![CDATA[在网上看到这篇文章，觉得其对php cookie和session分析阐述得比较到位，特转载于此。]]></description>
		<wfw:commentRss>http://laigw.name/post/283.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

