<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[stevenzhou的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/steven216</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; steven216]]></copyright><item><title><![CDATA[Centos编译boost]]></title><link>https://blog.youkuaiyun.com/steven216/article/details/8682268</link><guid>https://blog.youkuaiyun.com/steven216/article/details/8682268</guid><author>steven216</author><pubDate>Sat, 16 Mar 2013 21:46:33 +0800</pubDate><description><![CDATA[1.下载最新的boost
http://www.boost.org/
2.解压文件
tar -xzvf boost_1_45_0.tar.gz 
3.编译bjam
进入boost_1_45_0目录中，运行./bootstrap.sh，完成后会得到一个bjam
4.编译boost 
./bjam --with-date_time --with-system --with-regex -]]></description><category></category></item><item><title><![CDATA[linux syslog自定义日志]]></title><link>https://blog.youkuaiyun.com/steven216/article/details/8677872</link><guid>https://blog.youkuaiyun.com/steven216/article/details/8677872</guid><author>steven216</author><pubDate>Fri, 15 Mar 2013 14:31:52 +0800</pubDate><description><![CDATA[#include 
#include 
#include 
#include 

int main( int argc, char* argv[] )
{
int logfd = open( "/root/log.self", O_RDWR | O_CREAT | O_APPEND, 0644 );
assert( -1 != logfd );

close( STDERR_F]]></description><category></category></item><item><title><![CDATA[ubuntu10.10 document viewer的pdf中文乱码问题]]></title><link>https://blog.youkuaiyun.com/steven216/article/details/8606088</link><guid>https://blog.youkuaiyun.com/steven216/article/details/8606088</guid><author>steven216</author><pubDate>Sat, 23 Feb 2013 22:36:45 +0800</pubDate><description><![CDATA[在ubuntu10.10 下用Document Viewer（ 2.24.1）查看PDF文件时中文出现乱码
1 在terminal中 修改字体设置文件的权限，输入 sudo chmod 777 /etc/fonts/conf.d/49-sansserif.conf 

2 在terminal中 输入 sudo gedit /etc/fonts/conf.d/49-sansserif.conf]]></description><category></category></item><item><title><![CDATA[解决Ubuntu wireshark找不到Interface问题]]></title><link>https://blog.youkuaiyun.com/steven216/article/details/8600033</link><guid>https://blog.youkuaiyun.com/steven216/article/details/8600033</guid><author>steven216</author><pubDate>Thu, 21 Feb 2013 19:22:00 +0800</pubDate><description><![CDATA[1.执行
sudo wireshark




2.修改权限
 (1)增加组wireshark
sudo groupadd wireshark


(2)将封包程序dumpcap换到wireshark组
sudo chgrp wireshark /usr/bin/dumpcap 



(3)修改dumpcap权限
sudo chmod 7777 /usr/bin]]></description><category></category></item><item><title><![CDATA[编译ubuntu下面的boost 1.52]]></title><link>https://blog.youkuaiyun.com/steven216/article/details/8567333</link><guid>https://blog.youkuaiyun.com/steven216/article/details/8567333</guid><author>steven216</author><pubDate>Sun, 03 Feb 2013 20:01:56 +0800</pubDate><description><![CDATA[编译ubuntu 下面的boost1.52(下载boost1.52放到/usr/share/  下面)
1.使用bootstrap.bat来编译生成b2和bjam可执行文件。因为默认的boostrap.bat中的工具是msvc，
而ubuntu不可能使用msvc的，所以我们修改boostrap.bat文件如下：

::修改前 call .\build.bat %* > ..\..\..\.]]></description><category></category></item><item><title><![CDATA[Trie 建立、插入、查找、删除操作]]></title><link>https://blog.youkuaiyun.com/steven216/article/details/8496279</link><guid>https://blog.youkuaiyun.com/steven216/article/details/8496279</guid><author>steven216</author><pubDate>Sat, 12 Jan 2013 15:04:17 +0800</pubDate><description><![CDATA[/* trie的节点类型 */
template  //Size为字符表的大小
struct trie_node 
{
bool terminable; //当前节点是否可以作为字符串的结尾
int node; //子节点的个数
trie_node *child[Size]; //指向子节点指针

/* 构造函数 */
trie_node() : terminable(false]]></description><category></category></item><item><title><![CDATA[桶排序]]></title><link>https://blog.youkuaiyun.com/steven216/article/details/8452574</link><guid>https://blog.youkuaiyun.com/steven216/article/details/8452574</guid><author>steven216</author><pubDate>Sun, 30 Dec 2012 13:35:34 +0800</pubDate><description><![CDATA[//桶排序
typedef struct node
{ 
int key; 
struct node * next; 
}KeyNode; 

void inc_sort(int keys[],int size,int bucket_size)
{ 
KeyNode **bucket_table=(KeyNode **)malloc(bucket_size*sizeof(KeyN]]></description><category></category></item><item><title><![CDATA[计数排序]]></title><link>https://blog.youkuaiyun.com/steven216/article/details/8452571</link><guid>https://blog.youkuaiyun.com/steven216/article/details/8452571</guid><author>steven216</author><pubDate>Sun, 30 Dec 2012 13:34:49 +0800</pubDate><description><![CDATA[void counting_sort(int *ini_arr, int *sorted_arr,int n,int l)
{
int *count_arr = (int *)malloc(sizeof(int) * l);
int i, j, k;
for(k=0; k
count_arr[k] = 0;

for(i=0; i
count_arr[ini_arr[i]]++;]]></description><category></category></item><item><title><![CDATA[快速排序]]></title><link>https://blog.youkuaiyun.com/steven216/article/details/8451044</link><guid>https://blog.youkuaiyun.com/steven216/article/details/8451044</guid><author>steven216</author><pubDate>Sat, 29 Dec 2012 17:18:09 +0800</pubDate><description><![CDATA[//快速排序
int PARTITION(int array[],int p,int r)
{
     int x = array[r];
    int i = p - 1;

for(int j = p; j 
{
if (array[j] 
{
++i;
swap(array[i],array[j]);
}
}

swap(array[i + 1],array]]></description><category></category></item><item><title><![CDATA[堆排序]]></title><link>https://blog.youkuaiyun.com/steven216/article/details/8446502</link><guid>https://blog.youkuaiyun.com/steven216/article/details/8446502</guid><author>steven216</author><pubDate>Fri, 28 Dec 2012 10:48:57 +0800</pubDate><description><![CDATA[// Console.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include 

using namespace std;

//array 是待调整的堆数组，i是待调整的数组元素的位置，nlength是数组的长度
//本函数功能是：根据数组array构]]></description><category></category></item><item><title><![CDATA[合并排序]]></title><link>https://blog.youkuaiyun.com/steven216/article/details/8275174</link><guid>https://blog.youkuaiyun.com/steven216/article/details/8275174</guid><author>steven216</author><pubDate>Sun, 09 Dec 2012 16:21:05 +0800</pubDate><description><![CDATA[#include "stdafx.h"
#include 
#include 

using namespace std;
using namespace boost;

/**
* 合并两个排好的序列
* @param A
* int数组
* @param p
* 起始位置
* @param q
* 中间位置
* @param r
* 终止位置
* @param]]></description><category></category></item><item><title><![CDATA[插入排序]]></title><link>https://blog.youkuaiyun.com/steven216/article/details/8274945</link><guid>https://blog.youkuaiyun.com/steven216/article/details/8274945</guid><author>steven216</author><pubDate>Sun, 09 Dec 2012 14:44:47 +0800</pubDate><description><![CDATA[int main()
{
int a[10] = {7,2,5,1,6,9,4,8,0,3};

for(int i = 1; i 
{

int iKey = a[i];

int j = i - 1;

while(j >= 0 && a[j] > iKey)
{
a[j + 1] = a[j];
--j;
}

a[j +1] = iKey;
}

f]]></description><category></category></item><item><title><![CDATA[相关设置]]></title><link>https://blog.youkuaiyun.com/steven216/article/details/8268812</link><guid>https://blog.youkuaiyun.com/steven216/article/details/8268812</guid><author>steven216</author><pubDate>Fri, 07 Dec 2012 11:43:33 +0800</pubDate><description><![CDATA[1、修改UltraEdit 无法显示中文问题


解决办法就是打开UltraEdit安装路径下的Uedit32.ini（如果没有这个文件，那说明你的UltraEdit版本的ini不是放在安装路径下的，得去C:Documents and Settings(登录用户名，默认是Administrator)Application DataIDMCompUltraEdit里面找一下），在[Settin]]></description><category></category></item><item><title><![CDATA[常用技巧]]></title><link>https://blog.youkuaiyun.com/steven216/article/details/6788781</link><guid>https://blog.youkuaiyun.com/steven216/article/details/6788781</guid><author>steven216</author><pubDate>Mon, 19 Sep 2011 08:51:58 +0800</pubDate><description><![CDATA[1、修改UltraEdit 无法显示中文问题
解决办法就是打开UltraEdit安装路径下的Uedit32.ini（如果没有这个文件，那说明你的UltraEdit版本的ini不是放在安装路径下的，得去C:Documents and Settings(登录用户名，默认是Admin]]></description><category></category></item><item><title><![CDATA[SourceAnywhere for Vss 配制BCompare比较工具]]></title><link>https://blog.youkuaiyun.com/steven216/article/details/6617581</link><guid>https://blog.youkuaiyun.com/steven216/article/details/6617581</guid><author>steven216</author><pubDate>Tue, 19 Jul 2011 17:04:25 +0800</pubDate><description><![CDATA[Tools--->options--->External Programs ---->Application for diff/merge           ...Beyond Compare 3BCompare.exe     Arguments for Diff files]]></description><category></category></item><item><title><![CDATA[调整excel列宽]]></title><link>https://blog.youkuaiyun.com/steven216/article/details/6614303</link><guid>https://blog.youkuaiyun.com/steven216/article/details/6614303</guid><author>steven216</author><pubDate>Mon, 18 Jul 2011 15:00:07 +0800</pubDate><description><![CDATA[void AdjustColWidth(const CString& strName){ _Application ExcelApp; Range range,col; COleVariant  varTmp((long)DISP_E_PARAMNOTFOUND,   VT_ER]]></description><category></category></item><item><title><![CDATA[map 效率问题]]></title><link>https://blog.youkuaiyun.com/steven216/article/details/6329009</link><guid>https://blog.youkuaiyun.com/steven216/article/details/6329009</guid><author>steven216</author><pubDate>Sun, 17 Apr 2011 11:41:00 +0800</pubDate><description><![CDATA[<br />当关乎效率时应该在map::operator[]和map-insert之间仔细选择<br /><br />class Widget {<br />public:<br />Widget();<br />Widget(double weight);<br />Widget& operator=(double weight);<br />...<br />}<br /><br />map<int, Widget> m;<br />m[1] = 1.50;<br /> <br /><br />表达式m]]></description><category></category></item><item><title><![CDATA[vector 删除问题]]></title><link>https://blog.youkuaiyun.com/steven216/article/details/6328509</link><guid>https://blog.youkuaiyun.com/steven216/article/details/6328509</guid><author>steven216</author><pubDate>Sat, 16 Apr 2011 22:21:00 +0800</pubDate><description><![CDATA[int main(int argc, const char* argv[]){vector v;v.push_back(1);v.push_back(2);v.push_back(3);vector::iterator iterBeg = v.begin();vector::iterator iterEnd = v.end();while(iterBeg != v.end()){iterBeg = v.erase(iterBeg);}vector().swap(v);system("pause");retu]]></description><category></category></item><item><title><![CDATA[使应用程序只能运行一个实例]]></title><link>https://blog.youkuaiyun.com/steven216/article/details/3490092</link><guid>https://blog.youkuaiyun.com/steven216/article/details/3490092</guid><author>steven216</author><pubDate>Wed, 10 Dec 2008 13:39:00 +0800</pubDate><description><![CDATA[BOOL CSingleDocApp::InitInstance(){ HANDLE hSep = ::CreateSemaphore(NULL,1,1,m_strAppName); if(GetLastError() == ERROR_ALREADY_EXISTS) {        CloseHandle(hSep);  HWND hWnd = ::GetWindow(::GetD]]></description><category></category></item><item><title><![CDATA[移动/缩放窗口]]></title><link>https://blog.youkuaiyun.com/steven216/article/details/2685282</link><guid>https://blog.youkuaiyun.com/steven216/article/details/2685282</guid><author>steven216</author><pubDate>Mon, 21 Jul 2008 15:45:00 +0800</pubDate><description><![CDATA[ void CDlgLogin::OnLButtonDown(UINT nFlags, CPoint point) { m_btnZoom.GetWindowRect(&m_rect);    ScreenToClient(&m_rect); if(m_rect.PtInRect(point)) {  m_bZoomWindow = TRUE; } else {     m_bMoveWind]]></description><category></category></item></channel></rss>