<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[lengthBYlength的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/lengthBYlength</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; lengthBYlength]]></copyright><item><title><![CDATA[转载《免费ARP(gratuitous ARP)简介》]]></title><link>https://blog.youkuaiyun.com/lengthBYlength/article/details/6186671</link><guid>https://blog.youkuaiyun.com/lengthBYlength/article/details/6186671</guid><author>lengthBYlength</author><pubDate>Tue, 15 Feb 2011 19:43:00 +0800</pubDate><description><![CDATA[<br /> 现在很多系统都使用双机热备份系统（即一个主用，另一个备用， 如果主用没有问题，备用一直处于空闲状态；如果主用出现问题，备用立刻接管）。假设主用服务器的MAC地址为：1111-1111-1111，备用服务器 的MAC地址为：2222-2222-2222，通过某种软件，两台服务器对外共用一个IP，例如10.10.10.1，这样客户机在需要同服务器进行通 信的时候（第一次通信时ARP的缓存是空的，或至少没有10.10.10.1的MAC地址），先向局域网发送广播ARP请求报文，请求 10.10.10.]]></description><category></category></item><item><title><![CDATA[MPICH2在Visual Studio 2008 C++项目下如何设置]]></title><link>https://blog.youkuaiyun.com/lengthBYlength/article/details/6070866</link><guid>https://blog.youkuaiyun.com/lengthBYlength/article/details/6070866</guid><author>lengthBYlength</author><pubDate>Sun, 12 Dec 2010 14:53:00 +0800</pubDate><description><![CDATA[<br /><br /> <br />    网上的很多文章针对性不是很强，自己写一个针对自己电脑环境的配置，这样配置起来快一点。<br />    
我使用的是新版本的MPICH即MPICH2；IDE使用的是Visual Studio 2008 
C++。系统是WinXP。<br />0)首先安装好MPICH2，可以去其官方网站下载http://www.mcs.anl.gov/research/projects/mpich2/，我使用的最新版本是mpich2-1.0.7-win32-ia32.msi<]]></description><category></category></item><item><title><![CDATA[面试宝典上的vector析构函数]]></title><link>https://blog.youkuaiyun.com/lengthBYlength/article/details/5523215</link><guid>https://blog.youkuaiyun.com/lengthBYlength/article/details/5523215</guid><author>lengthBYlength</author><pubDate>Sat, 24 Apr 2010 08:31:00 +0800</pubDate><description><![CDATA[面试宝典上的vector析构函数#include  using namespace std; class CDemo{ public: CDemo():str(NULL){} ~CDemo(){if(str) delete [] str;} char *str; }; int main() { CDemo d1; d1.str = new char[32]; strcpy(]]></description><category></category></item><item><title><![CDATA[DNS配置文件详解]]></title><link>https://blog.youkuaiyun.com/lengthBYlength/article/details/5394105</link><guid>https://blog.youkuaiyun.com/lengthBYlength/article/details/5394105</guid><author>lengthBYlength</author><pubDate>Thu, 18 Mar 2010 20:27:00 +0800</pubDate><description><![CDATA[配置文件解析　　　　基本上， BIND 的主要配置都放在 /etc/named.conf 文件中 ！但是对于 hostname  IP 的对应关系，就需要由 zone 来设定了！但是这个 zone 的文件名称是在 /etc/named.conf 里面规定的！所以，请注意，每一个 zone 的名称都是可变的，但是需要在 /etc/named.conf 里面命名好！此外，最好将 zone 的文件直接放]]></description><category></category></item><item><title><![CDATA[c 字符串处理函数----strtok 源码]]></title><link>https://blog.youkuaiyun.com/lengthBYlength/article/details/5335656</link><guid>https://blog.youkuaiyun.com/lengthBYlength/article/details/5335656</guid><author>lengthBYlength</author><pubDate>Mon, 01 Mar 2010 14:02:00 +0800</pubDate><description><![CDATA[/****strtok.c - tokenize a string with given delimiters**       Copyright (c) Microsoft Corporation. All rights reserved.**Purpose:*       defines strtok() - breaks string into series of t]]></description><category></category></item><item><title><![CDATA[stack around the variable "xxx"was corrupted.]]></title><link>https://blog.youkuaiyun.com/lengthBYlength/article/details/5332386</link><guid>https://blog.youkuaiyun.com/lengthBYlength/article/details/5332386</guid><author>lengthBYlength</author><pubDate>Sat, 27 Feb 2010 17:17:00 +0800</pubDate><description><![CDATA[#include #include #define BUFF_LEN 12 // 12 may fix the Run-Time Check Failure #2int rtc_option_test(char * pStr);int cgiMain(){char * myStr = "hello world";rtc_option_test(myStr);return 0;}int rtc_]]></description><category></category></item><item><title><![CDATA[C文件操作一些总结]]></title><link>https://blog.youkuaiyun.com/lengthBYlength/article/details/5329347</link><guid>https://blog.youkuaiyun.com/lengthBYlength/article/details/5329347</guid><author>lengthBYlength</author><pubDate>Fri, 26 Feb 2010 14:25:00 +0800</pubDate><description><![CDATA[1.    首先要理解几个概念：文件： 按一定规则存储在磁盘上的数据集合。文件名： 能唯一标识某个磁盘文件的字符串。形式： 盘符：/ 路径 / 文件名.扩展名文本文件:： 数据以其数字字符的ASCII码形式、一个字节一个字节地存储在磁盘上。二进制文件：数据以二进制形式在存储在磁盘上。（文本文件和二进制文件具体区别见前一篇文章，概括为就是编码方式的区别，前者是固定长度编码、后者是]]></description><category></category></item><item><title><![CDATA[文本与二进制方式打开文件的区别]]></title><link>https://blog.youkuaiyun.com/lengthBYlength/article/details/5329335</link><guid>https://blog.youkuaiyun.com/lengthBYlength/article/details/5329335</guid><author>lengthBYlength</author><pubDate>Fri, 26 Feb 2010 14:22:00 +0800</pubDate><description><![CDATA[Windows平台下 如果以“文本”方式打开文件，当读取文件的时候，系统会将所有的"/r/n"转换成"/n"；当写入文件的时候，系统会将"/n"转换成"/r/n"写入。 如果以"二进制"方式打开文件，则读/写都不会进行这样的转换。 在Unix/Linux平台下“文本”与“二进制”模式没有区别。  数据有字符型和非字符型（数）两种。按文本方式写文件指的是将数据转换为对应的字符型数据之后再]]></description><category></category></item><item><title><![CDATA[etc/xinetd.d目录介绍]]></title><link>https://blog.youkuaiyun.com/lengthBYlength/article/details/5323260</link><guid>https://blog.youkuaiyun.com/lengthBYlength/article/details/5323260</guid><author>lengthBYlength</author><pubDate>Wed, 24 Feb 2010 16:53:00 +0800</pubDate><description><![CDATA[/etc/xinetd.d目录在Linux系统中有一个超级服务程序inetd，大部分的网络服务都是由它启动的，如chargen、echo、finger、talk、telnet、wu-ftpd等…，在旧版本它的设置是在/etc/inetd.conf中配置的。在新版本，它就改成了一个xinetd.d目录。在xinetd.d目录中，每一个服务都有一个相应的配置文件，我们以telnet为例，说明一下各个配]]></description><category></category></item><item><title><![CDATA[ C字符串总结 ]]></title><link>https://blog.youkuaiyun.com/lengthBYlength/article/details/5289358</link><guid>https://blog.youkuaiyun.com/lengthBYlength/article/details/5289358</guid><author>lengthBYlength</author><pubDate>Thu, 04 Feb 2010 19:12:00 +0800</pubDate><description><![CDATA[字符数组和字符串       &字符数组和字符串的概念  &字符数组的初始化  &字符串的输入输出  &综合举例  字符数组和字符串的概念     字符数组是元素类型为字符的数组 ,它既具有普通数组的一般性质 ,又具有某些特殊性质。     字符串常量是用双引号包围的字符序列。存储字符串常量时，系统会在字符序列后自动加上 /0,标志字符串的结束。字符串的长度定义为字符串中的有效字符]]></description><category></category></item><item><title><![CDATA[关于指针的加减 ]]></title><link>https://blog.youkuaiyun.com/lengthBYlength/article/details/5289277</link><guid>https://blog.youkuaiyun.com/lengthBYlength/article/details/5289277</guid><author>lengthBYlength</author><pubDate>Thu, 04 Feb 2010 18:24:00 +0800</pubDate><description><![CDATA[一直以来都觉得对指针的加减是个很恶心的事情。虽然指针是个地址值，但是对指针的加N却不是直接将地址值加N，而是增加N*sizeof(指针类型)……这一点很容易让人疏忽。一般情况下，对指针进行加减运算的代码是很难读的，但是各路考题却总是乐此不疲。看到这样的道题目：int main(){int a[5] = {1,2,3,4,5};int *ptr1 = (int*)(&a + 1);int]]></description><category></category></item><item><title><![CDATA[VMware三种网络模式与linux下使用实例]]></title><link>https://blog.youkuaiyun.com/lengthBYlength/article/details/5269596</link><guid>https://blog.youkuaiyun.com/lengthBYlength/article/details/5269596</guid><author>lengthBYlength</author><pubDate>Fri, 29 Jan 2010 15:34:00 +0800</pubDate><description><![CDATA[VMware三种网络模式根本区别(图) 提到VMware大家就想起了虚拟机技术，虚拟机技术在最近的几年中得到了广泛的发展，一些大型网络服务商都开始采用虚拟机技术，不仅节省了投资成本，更节约了能源的消耗。我们知道VMware也分几种版本，普通用户最常用的就是Workstation，但是不管使用哪种版本，我们都能发现在安装过程中让我们选择网络模式。在默认情况下会选中桥接模式，但有用]]></description><category></category></item><item><title><![CDATA[linux下 主DNS服务器与从DNS服务器]]></title><link>https://blog.youkuaiyun.com/lengthBYlength/article/details/5262891</link><guid>https://blog.youkuaiyun.com/lengthBYlength/article/details/5262891</guid><author>lengthBYlength</author><pubDate>Wed, 27 Jan 2010 19:58:00 +0800</pubDate><description><![CDATA[举例：主DNS的named.conf文件：options {  directory "/var/named";  };  zone "." IN {  type hint;  file "named.ca";  };  zone "localhost" IN {  type master;  file "localhost.zone";  allow-update { none; };]]></description><category></category></item><item><title><![CDATA[linux 下DNS配置错误分析]]></title><link>https://blog.youkuaiyun.com/lengthBYlength/article/details/5262721</link><guid>https://blog.youkuaiyun.com/lengthBYlength/article/details/5262721</guid><author>lengthBYlength</author><pubDate>Wed, 27 Jan 2010 18:17:00 +0800</pubDate><description><![CDATA[DNS配置错误 错误1dns_master_load: *:2: unexpected end of line错误2>linux.zzw.com* Server: 127.0.0.1 ** Address: 127.0.0.1#53 ** **** server cant find linux.zzw.com: SERVFAIL *  linux下错误查看 /var/]]></description><category></category></item><item><title><![CDATA[linux 下DNS服务器的安装和配置 ]]></title><link>https://blog.youkuaiyun.com/lengthBYlength/article/details/5261915</link><guid>https://blog.youkuaiyun.com/lengthBYlength/article/details/5261915</guid><author>lengthBYlength</author><pubDate>Wed, 27 Jan 2010 15:28:00 +0800</pubDate><description><![CDATA[安装篇首先获取以下三个安装包 （安装不成功有提示 ，就是bind-libs-9.2.4-16.EL4被bind-9.2.4-16.EL4依赖）bind-libs-9.2.4-16.EL4.rpmbind-9.2.4-16.EL4.rpmbind-devel-9.2.4-16.EL4.rpm安装完成通过命令查看rpm -qa|grep bind结果如下所示就安装成功！bind]]></description><category></category></item><item><title><![CDATA[Linux下 DHCP服务器安装与配置]]></title><link>https://blog.youkuaiyun.com/lengthBYlength/article/details/5254648</link><guid>https://blog.youkuaiyun.com/lengthBYlength/article/details/5254648</guid><author>lengthBYlength</author><pubDate>Mon, 25 Jan 2010 16:41:00 +0800</pubDate><description><![CDATA[今天，我想在Linux下配置一台DHCP服务器，感觉上比较直观，难度稍微有点大（相对于在windows及路由器下）。DHCP（Dynamic Host Configure Protocol,动态主机配置文件），是一个简化手动分配及管理IP地址的烦恼。DHCP是基于C/S模式的。默认，在RHEL上没有安装服务器组件。查看是否安装的命令[root@localhost ~]# rpm -qa |]]></description><category></category></item><item><title><![CDATA[单词查找树]]></title><link>https://blog.youkuaiyun.com/lengthBYlength/article/details/4807477</link><guid>https://blog.youkuaiyun.com/lengthBYlength/article/details/4807477</guid><author>lengthBYlength</author><pubDate>Fri, 13 Nov 2009 15:10:00 +0800</pubDate><description><![CDATA[ Trie—单词查找树l  简介Trie，又称单词查找树、前缀树，是一种哈希树的变种。应用于字符串的统计与排序，经常被搜索引擎系统用于文本词频统计。含有单词“tea”“tree”“A”“ZSU”的一棵Trie。l  性质n  根节点不包含字符，除根节点外的每一个节点都只包含一个字符。n  从根节点到某一节点，路径上经过的字符连接起来，为该节点对应的字符串。n  ]]></description><category></category></item></channel></rss>