<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.1" -->
<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/"
	>

<channel>
	<title>Information Life</title>
	<link>http://www.info-life.cn</link>
	<description>Software Development</description>
	<pubDate>Fri, 06 Jun 2008 04:35:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
	<language>en</language>
			<item>
		<title>Getting Started with Subversion on Windows</title>
		<link>http://www.info-life.cn/2008/06/getting-started-with-subversion-on-windows.html</link>
		<comments>http://www.info-life.cn/2008/06/getting-started-with-subversion-on-windows.html#comments</comments>
		<pubDate>Fri, 06 Jun 2008 04:35:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Software Enginnering]]></category>

		<category><![CDATA[Subversion]]></category>

		<guid isPermaLink="false">http://www.info-life.cn/2008/06/getting-started-with-subversion-on-windows.html</guid>
		<description><![CDATA[by Jared Richardson
http://www.jaredrichardson.net
What will we cover?
Downloading Subversion
Installing Subversion
Adding a new repository
Start a subversion server
Adding users
Get a copy of the code
See your Changes
Put your changes back in the server
Get everyone else&#8217;s changes
Adding a new file
Downloading Subversion
You need to download the Windows installer first, but that&#8217;s not quite as easy as you might think.  The Subversion download [...]]]></description>
		<wfw:commentRss>http://www.info-life.cn/2008/06/getting-started-with-subversion-on-windows.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>errno=4 : Interrupted System call</title>
		<link>http://www.info-life.cn/2008/06/errno4-interrupted-system-call.html</link>
		<comments>http://www.info-life.cn/2008/06/errno4-interrupted-system-call.html#comments</comments>
		<pubDate>Tue, 03 Jun 2008 12:52:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.info-life.cn/2008/06/errno4-interrupted-system-call.html</guid>
		<description><![CDATA[ connect, accept, send, and recv   often cause &#8220;Interrupted System call&#8221; error when  you are writting socket programs
you can solve this problem using:
/* Start with fd just returned by socket(), blocking, SOCK_STREAM... */
while ( connect (fd, &#38;name, namelen) == -1 &#38;&#38; errno != EISCONN )
  if ( errno != EINTR )
   [...]]]></description>
		<wfw:commentRss>http://www.info-life.cn/2008/06/errno4-interrupted-system-call.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Recover MySQL root password</title>
		<link>http://www.info-life.cn/2008/06/recover-mysql-root-password.html</link>
		<comments>http://www.info-life.cn/2008/06/recover-mysql-root-password.html#comments</comments>
		<pubDate>Mon, 02 Jun 2008 12:39:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.info-life.cn/2008/06/recover-mysql-root-password.html</guid>
		<description><![CDATA[Posted by Vivek on Tuesday April 18, 06 @4:18 pm
You can recover MySQL database server password with following five easy steps.
Step # 1: Stop the MySQL server process.
Step # 2: Start the MySQL (mysqld) server/daemon process with the &#8211;skip-grant-tables option so that it will not prompt for password
Step # 3: Connect to mysql server as [...]]]></description>
		<wfw:commentRss>http://www.info-life.cn/2008/06/recover-mysql-root-password.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Copy MySQL database from one server to another remote server</title>
		<link>http://www.info-life.cn/2008/06/copy-mysql-database-from-one-server-to-another-remote-server.html</link>
		<comments>http://www.info-life.cn/2008/06/copy-mysql-database-from-one-server-to-another-remote-server.html#comments</comments>
		<pubDate>Mon, 02 Jun 2008 12:36:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.info-life.cn/2008/06/copy-mysql-database-from-one-server-to-another-remote-server.html</guid>
		<description><![CDATA[Posted by Vivek on Tuesday November 28, 06 @7:14 pm
Usually you run mysqldump to create database copy:
$ mysqldump -u user -p db-name &#62; db-name.out
Copy db-name.out file using sftp/ssh to remote MySQL server:
$ scp db-name.out user@remote.box.com:/backup
Restore database at remote server (login over ssh):
$ mysql -u user -p db-name &#60; db-name.out
How do I copy a MySQL database [...]]]></description>
		<wfw:commentRss>http://www.info-life.cn/2008/06/copy-mysql-database-from-one-server-to-another-remote-server.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>MySQL change root password</title>
		<link>http://www.info-life.cn/2008/06/mysql-change-root-password.html</link>
		<comments>http://www.info-life.cn/2008/06/mysql-change-root-password.html#comments</comments>
		<pubDate>Mon, 02 Jun 2008 12:31:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.info-life.cn/2008/06/mysql-change-root-password.html</guid>
		<description><![CDATA[MySQL change root password
Posted by Vivek on Monday January 2, 2006 [Last updated: September 29, 2007]
Q. How do I change MySQL root password under Linux, FreeBSD, OpenBSD and UNIX like operating system over ssh / telnet session?
A. Setting up mysql password is one of the essential tasks. root user is MySQL admin account. Remember Linux [...]]]></description>
		<wfw:commentRss>http://www.info-life.cn/2008/06/mysql-change-root-password.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Sql连接查询和联合查询</title>
		<link>http://www.info-life.cn/2008/06/sql%e8%bf%9e%e6%8e%a5%e6%9f%a5%e8%af%a2%e5%92%8c%e8%81%94%e5%90%88%e6%9f%a5%e8%af%a2.html</link>
		<comments>http://www.info-life.cn/2008/06/sql%e8%bf%9e%e6%8e%a5%e6%9f%a5%e8%af%a2%e5%92%8c%e8%81%94%e5%90%88%e6%9f%a5%e8%af%a2.html#comments</comments>
		<pubDate>Sun, 01 Jun 2008 11:51:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://www.info-life.cn/2008/06/sql%e8%bf%9e%e6%8e%a5%e6%9f%a5%e8%af%a2%e5%92%8c%e8%81%94%e5%90%88%e6%9f%a5%e8%af%a2.html</guid>
		<description><![CDATA[
连接查询
通过连接运算符可以实现多个表查询。连接是关系数据库模型的主要特点，也是它区别于其它类型数据库管理系统的一个标志。
在关系数据库管理系统中，表建立时各数据之间的关系不必确定，常把一个实体的所有信息存放在一个表中。当检索数据时，通过连接操作查询出存放在多个表中 的不同实体的信息。连接操作给用户带来很大的灵活性，他们可以在任何时候增加新的数据类型。为不同实体创建新的表，尔后通过连接进行查询。
连接可以在SELECT 语句的FROM子句或WHERE子句中建立，似是而非在FROM子句中指出连接时有助于将连接操作与WHERE子句中的搜索条件区分开来。所以，在Transact-SQL中推荐使用这种方法。
SQL-92标准所定义的FROM子句的连接语法格式为：
FROM join_table join_type join_table
[ON (join_condition)]
其中join_table指出参与连接操作的表名，连接可以对同一个表操作，也可以对多表操作，对同一个表操作的连接又称做自连接。
join_type 指出连接类型，可分为三种：内连接、外连接和交叉连接。内连接(INNER JOIN)使用比较运算符进行表间某(些)列数据的比较操作，并列出这些表中与连接条件相匹配的数据行。根据所使用的比较方式不同，内连接又分为等值连 接、自然连接和不等连接三种。
网管联盟bitsCN@com
外连接 分为左外连接(LEFT OUTER JOIN或LEFT JOIN)、右外连接(RIGHT OUTER JOIN或RIGHT JOIN)和全外连接(FULL OUTER JOIN或FULL JOIN)三种。与内连接不同的是，外连接不只列出与连接条件相匹配的行，而是列出左表(左外连接时)、右表(右外连接时)或两个表(全外连接时)中所有 符合搜索条件的数据行。
交叉连接(CROSS JOIN)没有WHERE 子句，它返回连接表中所有数据行的笛卡尔积，其结果集合中的数据行数等于第一个表中符合查询条件的数据行数乘以第二个表中符合查询条件的数据行数。
连接操作中的ON (join_condition) 子句指出连接条件，它由被连接表中的列和比较运算符、逻辑运算符等构成。
无论哪种连接都不能对text、ntext和image数据类型列进行直接连接，但可以对这三种列进行间接连接。例如：
SELECT p1.pub_id,p2.pub_id,p1.pr_info
FROM pub_info AS p1 INNER JOIN pub_info AS p2
ON DATALENGTH(p1.pr_info)=DATALENGTH(p2.pr_info)
(一)内连接
内连接查询操作列出与连接条件匹配的数据行，它使用比较运算符比较被连接列的列值。内连接分三种：
1、等值连接：在连接条件中使用等于号(=)运算符比较被连接列的列值，其查询结果中列出被连接表中的所有列，包括其中的重复列。  中国网管论坛bbs.bitsCN.com
2、不等连接： 在连接条件使用除等于运算符以外的其它比较运算符比较被连接的列的列值。这些运算符包括&#62;、&#62;=、&#60;=、&#60;、!&#62;、!&#60;和&#60;&#62;。
3、自然连接：在连接条件中使用等于(=)运算符比较被连接列的列值，但它使用选择列表指出查询结果集合中所包括的列，并删除连接表中的重复列。
例，下面使用等值连接列出authors和publishers表中位于同一城市的作者和出版社：
SELECT *
FROM authors AS a INNER JOIN publishers AS p
ON a.city=p.city
又如使用自然连接，在选择列表中删除authors 和publishers 表中重复列(city和state)：
SELECT a.*,p.pub_id,p.pub_name,p.country
FROM authors AS a INNER [...]]]></description>
		<wfw:commentRss>http://www.info-life.cn/2008/06/sql%e8%bf%9e%e6%8e%a5%e6%9f%a5%e8%af%a2%e5%92%8c%e8%81%94%e5%90%88%e6%9f%a5%e8%af%a2.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>gSOAP Tutorial : Part I</title>
		<link>http://www.info-life.cn/2008/05/gsoap-tutorial-part-i.html</link>
		<comments>http://www.info-life.cn/2008/05/gsoap-tutorial-part-i.html#comments</comments>
		<pubDate>Fri, 30 May 2008 13:23:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Computer Technology]]></category>

		<category><![CDATA[gSoap]]></category>

		<guid isPermaLink="false">http://www.info-life.cn/2008/05/gsoap-tutorial-part-i.html</guid>
		<description><![CDATA[Introduction:
The gSOAP toolkit provides a SOAP/XML-to-C/C++ language binding to ease the development of SOAP/XML Web services and client application in C and C++.The gSOAP uses stub and skeleton compiler to map C or C++ types ( both build-in types and user-defined types) into XML data types. It&#8217; s a open source toolkit and can be [...]]]></description>
		<wfw:commentRss>http://www.info-life.cn/2008/05/gsoap-tutorial-part-i.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>MySQL FAQ</title>
		<link>http://www.info-life.cn/2008/05/mysql-tips.html</link>
		<comments>http://www.info-life.cn/2008/05/mysql-tips.html#comments</comments>
		<pubDate>Thu, 29 May 2008 14:34:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.info-life.cn/2008/05/mysql-tips.html</guid>
		<description><![CDATA[Q1. How to start mysqld manully on Linux

A1. First, make   sure that you have the root previlege, then using the following command:
/etc/init.d/mysql start
Q2. How to Set password for user &#8220;root&#8221;
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password &#8216;new-password&#8217;
/usr/bin/mysqladmin -u root -h linux.site password &#8216;new-password&#8217;
]]></description>
		<wfw:commentRss>http://www.info-life.cn/2008/05/mysql-tips.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Linux 下的Chm 文件阅读器</title>
		<link>http://www.info-life.cn/2008/05/linux-%e4%b8%8b%e7%9a%84chm-%e6%96%87%e4%bb%b6%e9%98%85%e8%af%bb%e5%99%a8.html</link>
		<comments>http://www.info-life.cn/2008/05/linux-%e4%b8%8b%e7%9a%84chm-%e6%96%87%e4%bb%b6%e9%98%85%e8%af%bb%e5%99%a8.html#comments</comments>
		<pubDate>Thu, 29 May 2008 12:36:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[linux chm文件阅读器]]></category>

		<guid isPermaLink="false">http://www.info-life.cn/2008/05/linux-%e4%b8%8b%e7%9a%84chm-%e6%96%87%e4%bb%b6%e9%98%85%e8%af%bb%e5%99%a8.html</guid>
		<description><![CDATA[网络上流传的很多文档，包括一些电子书，采用的是微软的chm格式打包，无法直接在linux下阅读，虽然目前有一些工具如 chmsee , xchm 提供了不错的阅读chm文件的方法，不过它们的安装过程实在是麻烦（主要是各种库的依赖性，往往是装了这个库又依赖那个，真是头大）。还好最近发现了一个 firefox 下阅读 chm 文件的插件，好用的不得了。具体安装过程参考：http://www.info-life.cn/2008/05/chm-viewer-for-linux-chm-reader.html
]]></description>
		<wfw:commentRss>http://www.info-life.cn/2008/05/linux-%e4%b8%8b%e7%9a%84chm-%e6%96%87%e4%bb%b6%e9%98%85%e8%af%bb%e5%99%a8.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>给linux添加新硬盘的经过</title>
		<link>http://www.info-life.cn/2008/05/%e7%bb%99linux%e6%b7%bb%e5%8a%a0%e6%96%b0%e7%a1%ac%e7%9b%98%e7%9a%84%e7%bb%8f%e8%bf%87.html</link>
		<comments>http://www.info-life.cn/2008/05/%e7%bb%99linux%e6%b7%bb%e5%8a%a0%e6%96%b0%e7%a1%ac%e7%9b%98%e7%9a%84%e7%bb%8f%e8%bf%87.html#comments</comments>
		<pubDate>Tue, 20 May 2008 13:45:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.info-life.cn/2008/05/%e7%bb%99linux%e6%b7%bb%e5%8a%a0%e6%96%b0%e7%a1%ac%e7%9b%98%e7%9a%84%e7%bb%8f%e8%bf%87.html</guid>
		<description><![CDATA[网络上搜索到的一篇linux 添加硬盘的记录。


&#160;



&#160;


 最近又出了不少新网络游戏，游戏更新服务器空间不足了。于是就想要给服务器上再加一块新硬盘。
游戏服务器是mandrake2005的系统，原来装有一块160G的硬盘，准备再加一块80G的。
拿到新盘以后就关机、插线、重开机。一切正常。
进入系统以后，查看 /dev下多了个 hdb，然后开始分区
执行  fdisk /dev/hdb
进入 fdisk的界面，打命令 n新建一个分区。
然后提示选择e（扩展分区）或p(主分区),这时输入了e创建扩展分区。
然后提示让输入分区编号(1-4),输入了1
接下来按提示输入起始扇区号和结束扇区号，由于只打算分一个区，都选择了默认值
最后输入命令 w 保存退出。
程式出现以下提示
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
这样分区就完成了。
接下来格式化分区：
执行 mkfs.ext3 /dev/hdb1
预料中应该是出现格式化的过程，结果确是提示 /dev/hdb1: Invalid argument passed to ext2 library while setting up superblock
以为是分区还没有加载上，重启机子后重新执行格式化命令，问题依旧。
fdisk -l /dev/hdb 查看，分区hdb1已正常存在。
百度里搜索此提示，发现有不少人碰到同样的问题，确都没有给了解决方案。
无奈之下去google搜索英文网站，找了几个同样的问题，半读半猜之后看到了解决办法。
删掉刚刚划分出来的分区，然后重新分区，并在选择e(扩展分区)还是p(主分区)的时候选择了创建主分区，然后依次执行，顺利分完区。
接下来再次执行格式划命令 mkfs.ext3 /dev/hdb1
此时程式顺利进入格式化界面，开始格式化。
经过二十多分钟的漫长等待，格式化终于完成.问题解决！
接下来挂载新加的硬盘分区：
原来服务器存放游戏的目录结构为: update目下有个game目录，里面放着任何网络游戏，update做samba共享，管理员用户能够读写删，同时将game目录做samba共享，可匿名访问，只有读和执行权限。
此时在update目录下新建了game2目录: mkdir /update/game2
然后将新添加的硬盘分区挂载到此目录 mount /dev/hdb1 /update/game2
然后修改samba的配置文档，将game2目录也共享出来，设为和game同样权限，可匿名访问，可读、执行。
service smb restart 重启samba共享服务
至此服务器扩容成功。
为了以后每次重启服务器后不用再手工挂载新加的分区，还要再修改/etc/fstab文档，让系统启动时自动挂载。
vi /etc/fstab
在文档末尾添加一行 /dev/hdb1 /update/game2 ext3 default 1 2
保存退出。
至此任何工作全部完成。


]]></description>
		<wfw:commentRss>http://www.info-life.cn/2008/05/%e7%bb%99linux%e6%b7%bb%e5%8a%a0%e6%96%b0%e7%a1%ac%e7%9b%98%e7%9a%84%e7%bb%8f%e8%bf%87.html/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
