<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[hamztx的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/hamztx</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; hamztx]]></copyright><item><title><![CDATA[webbench学习]]></title><link>https://blog.youkuaiyun.com/hamztx/article/details/46313923</link><guid>https://blog.youkuaiyun.com/hamztx/article/details/46313923</guid><author>hamztx</author><pubDate>Mon, 01 Jun 2015 17:29:07 +0800</pubDate><description><![CDATA[webbench 是一个网站性能压力测试工具，其模拟多个并发去测试网站的负载能力。
1.安装
wget http://www.ha97.com/code/webbench-1.5.tar.gz
tar zxvf webbench-1.5.tar.gz
cd webbench-1.5
make
make install
2.使用
webbench -c 100 -t 60 http://ww]]></description><category></category></item><item><title><![CDATA[webbench学习之getopt_long,atio]]></title><link>https://blog.youkuaiyun.com/hamztx/article/details/46312629</link><guid>https://blog.youkuaiyun.com/hamztx/article/details/46312629</guid><author>hamztx</author><pubDate>Mon, 01 Jun 2015 16:32:01 +0800</pubDate><description><![CDATA[webben在main函数中使用了getopt_long函数获得main函数的输入参数，可以看到文档中的参数定义


 int getopt(int argc, char * const argv[], const char *optstring);

 int getopt_long(int argc, char * const argv[], const char *optstrin]]></description><category></category></item><item><title><![CDATA[4 Median of Two Sorted Arrays]]></title><link>https://blog.youkuaiyun.com/hamztx/article/details/45129571</link><guid>https://blog.youkuaiyun.com/hamztx/article/details/45129571</guid><author>hamztx</author><pubDate>Sun, 19 Apr 2015 15:19:24 +0800</pubDate><description><![CDATA[Leetcode 4：
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time
 complexity should be O(log (m+n)).

简单的归并排序，将两个已排序的数组合]]></description><category></category></item><item><title><![CDATA[3 Longest Substring Without Repeating Characters]]></title><link>https://blog.youkuaiyun.com/hamztx/article/details/45098961</link><guid>https://blog.youkuaiyun.com/hamztx/article/details/45098961</guid><author>hamztx</author><pubDate>Fri, 17 Apr 2015 16:51:02 +0800</pubDate><description><![CDATA[Leetcode 3:
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without
 repeating letters for "abcabcbb" is "abc", which the le]]></description><category></category></item><item><title><![CDATA[1Two Sum]]></title><link>https://blog.youkuaiyun.com/hamztx/article/details/45076313</link><guid>https://blog.youkuaiyun.com/hamztx/article/details/45076313</guid><author>hamztx</author><pubDate>Thu, 16 Apr 2015 15:55:35 +0800</pubDate><description><![CDATA[Leetcode 1：Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to the targ]]></description><category></category></item><item><title><![CDATA[201 Bitwise AND of Numbers Range]]></title><link>https://blog.youkuaiyun.com/hamztx/article/details/45072233</link><guid>https://blog.youkuaiyun.com/hamztx/article/details/45072233</guid><author>hamztx</author><pubDate>Thu, 16 Apr 2015 10:59:43 +0800</pubDate><description><![CDATA[Leetcode201:


Given a range [m, n] where 0 

For example, given the range [5, 7], you should return 4.
m到n之间的所有数之间与，最后的结果应该是二进制数共有的前几位，例如5，6，7二进制分别为101，110，111结果为100，第一位为1其余为0。
解题思路即位找到共有的前几位二]]></description><category></category></item><item><title><![CDATA[198 House Robber]]></title><link>https://blog.youkuaiyun.com/hamztx/article/details/45071407</link><guid>https://blog.youkuaiyun.com/hamztx/article/details/45071407</guid><author>hamztx</author><pubDate>Thu, 16 Apr 2015 10:17:33 +0800</pubDate><description><![CDATA[Leetcode198：

You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is tha]]></description><category></category></item><item><title><![CDATA[mysql 启动时失败]]></title><link>https://blog.youkuaiyun.com/hamztx/article/details/44317951</link><guid>https://blog.youkuaiyun.com/hamztx/article/details/44317951</guid><author>hamztx</author><pubDate>Mon, 16 Mar 2015 23:33:39 +0800</pubDate><description><![CDATA[使用

# yum install mysql-server mysql

安装成功后，启动mysql 服务，使用

# systemctl start mysqld.service 
可是 会有如下问题Job for mysqld.service failed. See 'systemctl status mysqld.service' and 'journalctl -xn' f]]></description><category></category></item><item><title><![CDATA[在centos6.5下更新python]]></title><link>https://blog.youkuaiyun.com/hamztx/article/details/44260445</link><guid>https://blog.youkuaiyun.com/hamztx/article/details/44260445</guid><author>hamztx</author><pubDate>Sat, 14 Mar 2015 16:14:06 +0800</pubDate><description><![CDATA[CentOs6.5默认安装了python2.6.6，但是我们需要升级到python2.7.8
首先安装更新一下gcc

yum install -y gcc gcc-c++ make readline-devel wget
然后使用wget命令获取python2.7.8
wget https://www.python.org/ftp/python/2.7.8/Python-2.7.8.t]]></description><category></category></item><item><title><![CDATA[Cannot find a package matching g++]]></title><link>https://blog.youkuaiyun.com/hamztx/article/details/41790969</link><guid>https://blog.youkuaiyun.com/hamztx/article/details/41790969</guid><author>hamztx</author><pubDate>Sun, 07 Dec 2014 21:16:21 +0800</pubDate><description><![CDATA[问题：
centos下使用yum install g++命令出现Cannot find a package matching g++提示
解决办法：
在linux下c++编译器的名字是gcc-c++而不是g++
所以在安装g++时应该使用yum install gcc-c++命令]]></description><category></category></item><item><title><![CDATA[centos英文版中  中文乱码的问题]]></title><link>https://blog.youkuaiyun.com/hamztx/article/details/41790701</link><guid>https://blog.youkuaiyun.com/hamztx/article/details/41790701</guid><author>hamztx</author><pubDate>Sun, 07 Dec 2014 20:59:31 +0800</pubDate><description><![CDATA[问题：
安装centos时选择了英文版，系统显示中文时出现了乱码的现象。
解决办法：
因为英文系统不支持中文，所以需要下载中文包。


$yum -y install fonts-chinese

$yum -y install fonts-ISO8859



然后修改配置文件

$ vim /etc/sysconfig/i18n


将：
LANG="en_]]></description><category></category></item><item><title><![CDATA[is not in the sudoers file]]></title><link>https://blog.youkuaiyun.com/hamztx/article/details/41790631</link><guid>https://blog.youkuaiyun.com/hamztx/article/details/41790631</guid><author>hamztx</author><pubDate>Sun, 07 Dec 2014 20:52:45 +0800</pubDate><description><![CDATA[问题：
当使用 “sudo +命令”  时，提示用户is not in the sudoers file
解决办法：
$su -
（这里是su -因为在用命令"su"的时候只是切换到root，但没有把root的环境变量传过去，还是当前用户的环境变量，用"su -"命令将环境变量也一起带过去，就象和root登录一样）
$visudo
在所打开的文件的最后一行加上（vi的操作，需要进入in]]></description><category></category></item><item><title><![CDATA[opnet仿真过程中SEED的概念问题]]></title><link>https://blog.youkuaiyun.com/hamztx/article/details/25211661</link><guid>https://blog.youkuaiyun.com/hamztx/article/details/25211661</guid><author>hamztx</author><pubDate>Sun, 02 Nov 2014 15:25:28 +0800</pubDate><description><![CDATA[仿真配置中SEED的概念：仿真随机种子，]]></description><category></category></item><item><title><![CDATA[strtok函数]]></title><link>https://blog.youkuaiyun.com/hamztx/article/details/40709523</link><guid>https://blog.youkuaiyun.com/hamztx/article/details/40709523</guid><author>hamztx</author><pubDate>Sun, 02 Nov 2014 15:24:32 +0800</pubDate><description><![CDATA[strtok函数]]></description><category></category></item><item><title><![CDATA[C++笔记]]></title><link>https://blog.youkuaiyun.com/hamztx/article/details/39970067</link><guid>https://blog.youkuaiyun.com/hamztx/article/details/39970067</guid><author>hamztx</author><pubDate>Tue, 14 Oct 2014 19:57:41 +0800</pubDate><description><![CDATA[类：
类shen]]></description><category></category></item><item><title><![CDATA[无线网络中常用的路由算法]]></title><link>https://blog.youkuaiyun.com/hamztx/article/details/39896979</link><guid>https://blog.youkuaiyun.com/hamztx/article/details/39896979</guid><author>hamztx</author><pubDate>Wed, 08 Oct 2014 19:40:08 +0800</pubDate><description><![CDATA[OLSR优化链路状态路由：
是一种主动式的路由]]></description><category></category></item><item><title><![CDATA[1952年9月3日不存在]]></title><link>https://blog.youkuaiyun.com/hamztx/article/details/38766633</link><guid>https://blog.youkuaiyun.com/hamztx/article/details/38766633</guid><author>hamztx</author><pubDate>Fri, 22 Aug 2014 23:53:45 +0800</pubDate><description><![CDATA[英国对日历进行转换，1752年9月2日的下一天是1752年9月14日。]]></description><category></category></item><item><title><![CDATA[vector的sort 问题]]></title><link>https://blog.youkuaiyun.com/hamztx/article/details/38742863</link><guid>https://blog.youkuaiyun.com/hamztx/article/details/38742863</guid><author>hamztx</author><pubDate>Fri, 22 Aug 2014 00:16:28 +0800</pubDate><description><![CDATA[#include
#include
#include
#include
using namespace std;


struct stu{
int mark;
string name;
int age;
};


bool cmp(stu a, stu b){


return (a.mark
}


int main(){
int n;
cin >]]></description><category></category></item><item><title><![CDATA[cin问题]]></title><link>https://blog.youkuaiyun.com/hamztx/article/details/38351539</link><guid>https://blog.youkuaiyun.com/hamztx/article/details/38351539</guid><author>hamztx</author><pubDate>Sat, 02 Aug 2014 21:13:29 +0800</pubDate><description><![CDATA[string s；
while(cin>>s){
cout
}


当输入ss s]]></description><category></category></item><item><title><![CDATA[opnet点对点通信模型]]></title><link>https://blog.youkuaiyun.com/hamztx/article/details/27113551</link><guid>https://blog.youkuaiyun.com/hamztx/article/details/27113551</guid><author>hamztx</author><pubDate>Mon, 26 May 2014 22:15:47 +0800</pubDate><description><![CDATA[网络包含两个节点，一个发送节点，一个接收节点。发送节点按照某种随机的规律产生数据包（包大小和包间隔可自己定义），然后发送给接收节点。传输过程中会有一些随机的差错（误包率也可自己定义）。接收节点收到正确的包之后统计吞吐量。并可将接收吞吐量与发送吞吐量进行比较，观察误包率对接收吞吐量的影响。]]></description><category></category></item></channel></rss>