自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(22)
  • 资源 (23)
  • 收藏
  • 关注

转载 Careercup | Chapter 5

5.1 You are given two 32-bit numbers, N andM, and two bit positions, i and j. Write a method to insert M into Nsuch that M starts at bit j and ends at bit i. You can assume that the bits j through i

2014-06-30 18:04:14 670

转载 matlab中记录程序运行时间

使用Matlab运行程序的时候,我们经常需要知道或比较不同程序的具体运行时间,其程序代码如下:st=cputime;        % 程序开始运行时的cpu时间% 程序开始……% 程序结束et=cputime-st        % 计算程序运行所用的时间

2014-06-26 10:26:48 26243

原创 Linux high performance:http请求的读取和分析

#include #include #include #include #include #include #include #include #include #include #define BUFFER_SIZE 4096enum CHECK_STATE { CHECK_STATE_REQUESTLINE = 0, CHECK_STATE_HEADER, CHECK_

2014-06-25 15:33:01 681

原创 Libevent群:很值得体会的多线程编程

/* This exmple program provides a trivial server program that listens for TCP connections on port 9995. When they arrive, it writes a short message to each client connection, and closes each co

2014-06-25 11:29:20 2229

原创 Libevent群:很值得体会的bufferevent+evconnlistener

//说明,为了使我们的代码兼容win32网络API,我们使用evutil_socket_t代替int,使用evutil_make_socket_nonblocking代替fcntl/* For sockaddr_in */#include /* For socket functions */#include /* For fcntl */#include #in

2014-06-25 10:45:17 798

转载 libevent源码浅析: http库

from 转自:http://godorz.info/author/godorz/page/3/libevent自带了一个http库,用它可以很简单的实现一个http服务器,本文非常简单地分析之.evhttpevhttp库有几个主要的结构体,它们之间的联系非常龌龊:其中,结构体event, min_heap, evsignal_info, e

2014-06-22 20:34:20 1311

转载 libevent多线程使用事项

在linux平台上使用c开发网络程序的同志们一般情况下都对鼎鼎大名的libevent非常的熟悉了。但是一些新进入此领域的new new people们对此都是一头雾水。原本的迷茫再加上开源软件一贯的“帮助文件”缺失作风,让我们这些新手们显的非常的无助。幸好有一些热心的朋友们帮忙,才化险为夷啊!    前几天一直在开发一个locker server,虽然公司现有的locker server能

2014-06-22 20:27:35 1082 1

转载 libevent带负载均衡的多线程使用示例

分类: LINUX功能:主线程根据负载工作线程负载均衡算法,每隔一秒钟向特定的工作线程发送一条字符串信息,工作线程简单的把字符串信息打开出来。Makefileeventtest : eventtest.cgcc -Wall -g -levent -lpthread -o eventtest eventtest.c.PHONY : cleancle

2014-06-22 19:55:48 912

转载 用libevent多线程方式实现echo server

功能:主线程同时监听定时器事件和IO事件,工作线程简单的监听IO事件。主线程每隔一秒种向工作线程发送一条字符串信息工作线程显示该信息并回显给主线程该示例演示了主线程如何同时监听多个事件。Makefileeventtest : eventtest.cgcc -Wall -g -levent -lpthread -o eventtest ev

2014-06-22 19:36:35 851

转载 Libevent示例程序7 bufferevent使用

/* * libevent echo server example using buffered events. */#include #include #include #include /* Required by event.h. */#include #include #include #include #include #include #include

2014-06-21 11:14:00 1203

转载 Libevent示例程序6 io事件

#include #include #include #include #include #include #include #include #include #include #include static void fifo_read(int fd, short event, void *arg){ char buf[255]; int len;

2014-06-21 10:49:29 894

转载 Libevent示例程序5 echo服务器

#include #include #include #include #include #include const int LISTEN_PORT = 9999;const int LISTEN_BACKLOG = 32; void do_accept(evutil_socket_t listener, short event, void *arg);void re

2014-06-21 10:17:42 754

转载 Libevent示例程序4 信号量

shenhuayu@shenhuayu-VirtualBox ~/libevent $ gcc test.c -g -o mytest -leventshenhuayu@shenhuayu-VirtualBox ~/libevent $ ./mytest^Cgot signal.^Cgot signal.^Cgot signal.

2014-06-20 18:31:30 1168

转载 Libevent示例程序3 定时器程序续

shenhuayu@shenhuayu-VirtualBox ~/libevent $ gcc test.c -g -o mytest -leventshenhuayu@shenhuayu-VirtualBox ~/libevent $ ./mytesttimeout_cb called at 1403256637: 2.001 seconds elapsed.timeout_cb c

2014-06-20 17:31:50 532

转载 Libevent示例程序3 定时器程序

from http://blog.chinaunix.net/uid-25885064-id-3399135.html

2014-06-20 17:06:48 572

转载 Libevent示例程序2 socket程序

#include #include #include #include #include #include #include #include #include #include static short ListenPort = 8080; static long ListenAdd

2014-06-20 15:54:16 855

原创 Libevent示例程序1

1、获取版本#include event.h>#include stdio.h>int main(){    const char *version = event_get_version();    printf("%s\n",version);    return 0;}

2014-06-20 15:10:09 646

原创 Libevent基础

1,libevent是一个事件触发的网络库

2014-06-20 14:58:49 661

转载 SIFT特征匹配算法简介

鉴于自己的毕设是与视频检索有关,而在图像和视频检索领域中,D.Lowe和他的“亲儿子”——SIFT( Scale Invariant Feature Transform )算法是不能错过的经典论题,我在之前闲逛过的一个技术博客站点中找到了介绍这一经典算法基本概念的文章,原文地址:http://www.dakaren.com/index.php/archives/639.htm   1、SI

2014-06-11 14:22:05 1344

转载 转一些SIFT代码链接

sift创始人的代码:David Lowe's SIFT code:http://www.cs.ubc.ca/~lowe/keypoints 美国加州大学洛杉矶分校(University of California at Los Angeles) Andrea Vedaldi 博士研究生给出的基于David Lowe 发表的论文给利用Matlab和C语言混合编程给出的Sif

2014-06-11 14:07:43 681

转载 Sift特征 参考资源

sift = scale invariant feature transform—— 尺度不变特征变换,具有尺度,旋转,仿射,视角,光照不变性。。关于sift的特征介绍,已经有很多的blog对其进行简介了,见参考的blog。我也没有将2004年那篇原文精细看完,这里只是提供在opencv中如何实现 sift关键点的检测。Code:[cpp] view plaincopypr

2014-06-11 11:04:21 651

转载 SIFT特征简介

SIFT,尺度不变特征转换(Scale-invariant feature transform,SIFT),是用于图像处理领域的一种描述子。这种描述具有尺度不变性,可在图像中检测出关键点。是一种局部描述子。目录1简介2SIFT算法大致有四个步骤:1简介编辑SIFT由David Lowe在1999年提出,在2004加以完善[1-2]。SIFT在图像的特征描述方面当之无愧可

2014-06-11 10:58:37 901

OGG+TDT(4.8)添加表字段及添加表.docx

IBM CDC实时数据同步

2021-05-18

JavaSE回顾总结(狂神说java).xmind

avaSE回顾总结,学习笔记

2021-02-09

Flink_HBase阿里巴巴电商业务中的应用

Flink_HBase阿里巴巴电商业务中的应用,这个资源共享出来,提供大家学习一下。

2019-01-04

2018最新BAT+面试题目

2018最新BAT+面试题目,共享出来,大家可以参考一下。

2019-01-04

程序员面试宝典完整版.pdf

程序员面试宝典完整版.pdf 讲述了程序员面试相关内容

2014-06-02

阿里巴巴2011实习生招聘技术岗位笔试题.pdf

阿里巴巴2011实习生招聘技术岗位笔试题.pdf

2014-06-02

阿里巴巴2010校园招聘技术岗位笔试题(南京站).pdf

阿里巴巴2010校园招聘技术岗位笔试题(南京站).pdf

2014-06-02

C++ 面向对象程序设计.pdf

C++ 面向对象程序设计.pdf 讲述了C++ 面向对象程序设计相关内容

2014-06-02

Shell脚本学习指南.pdf

Shell编程经典教程 .pdf 讲述了linux下shell编程相关内容,内容详实 实例很多

2014-06-02

Shell编程经典教程 .pdf

Shell编程经典教程 .pdf 讲述了linux下shell编程相关内容,内容详实 实例很多

2014-06-02

Linux高性能服务器编程.pdf

详细地讲解了Linux下的服务器编程及多线程编程

2014-05-29

操作系统内核精析

详细讲述了操作系统的内核,并有全面的程序代码

2013-04-18

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除