自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 资源 (2)
  • 收藏
  • 关注

原创 UML工具网址

www.umlchina.comwww.uml.org.comwww.rational.comwww.uml.net.cn

2012-06-30 11:34:23 657 2

原创 快速排序实例

#include "stdafx.h"#include #define cutoff (3)int array[] = {34,8,64,51,32,21};void insert_sort(int array[],int size){ int temp,p; printf("insert sort example...\n"); for(p =1;p {

2012-06-27 15:10:01 672

原创 堆排序实例

// heapBuild.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #include int array[]  = { 150,80,40,30,10,70,110,100,20,90,60,50,120,140,130};typedef s

2012-06-25 15:26:27 897

原创 插入排序、Shell排序和归并排序实例

#include "stdafx.h"#include int array[] = {34,8,64,51,32,21};void print_array(int array[],int size);void insert_sort(int array[],int size){ int temp,p; printf("insert sort example...\n")

2012-06-25 15:24:11 571

原创 Heap数组实现

#include "stdafx.h"#include #include int array[]  = { 150,80,40,30,10,70,110,100,20,90,60,50,120,140,130};typedef struct Heap{ int Capacity; int Size; int *Elements;}Heap;Heap* Initi

2012-06-19 16:18:27 1010

Fast TCP设计原理

Fast TCP采用延时队列作为拥塞信号。现有的TCP采用丢包来判断是否拥塞,所以平均的发送数据的速率依赖于丢包概率,导致有两个缺点:低丢包率需要保持高传输速率;丢包提供的拥塞等级的信息太少,但是延时可以知道一个连续的状况,可以提供更多有关网络状况的信息。

2014-08-28

Nginx文件上传模块配置

Nginx是一个高性能的HTTP和反向代理服务器,也是IMAP/POP3/SMTP代理服务器,是由俄罗斯人lgor Sysoev开发,支持模块加载和卸载,其中upload_module和upload_progress_module就是第三方开发的模块,并没有加入到Nginx的源码中,upload_module是上传文件到服务器的模块,upload_progress_module是监听和报告文件上传进度模块。其大概的思想是,客户端通过file表单向Nginx发送http请求,请求中附带名为X-Progress-ID的随机数来标明上传文件的id,请求头如:http://hostname/upload?X-Progress-ID=id。upload_progress_module通过该id来标示上传文件的状态,客户端可以通过http://hostname/progress?X-Progress-ID=id来请求查看文件上传进度状态,将其封装成JSON格式,返回给客户端。我们要做的工作就是要将这两个模块加入到Nginx中,提供文件上传的服务。

2014-04-22

空空如也

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

TA关注的人

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