在fast-cgi源码的examples文件夹下有很多例子, 下面给出echo例子, 编译运行方法同上几节.fast-cgi的API google之.http://fossies.org/dox/fcgi-2.4.0/fcgiapp_8h.html#a32f6950798054a70404ce24c...
分类:
Web程序 时间:
2014-11-27 20:14:21
阅读次数:
359
浏览器支持属性浏览器transitionInternet Explorer不支持过渡属性。Firefox4需要前缀-moz-。Chrome和Safari需要前缀-webkit-。Opera需要前缀-o-。CSS3的过渡效果,让一个元素从一种效果转换到另一种效果。 div { tra...
分类:
Web程序 时间:
2014-11-27 14:07:44
阅读次数:
221
http://www.opentk.com/doc/mathhttp://www.gamedev.net/topic/484756-fast-vector-math-library-for-net/http://www.codeproject.com/Articles/7023/Sharp-D-Ma...
分类:
其他好文 时间:
2014-11-26 11:08:40
阅读次数:
141
JSON协议使用方便,越来越流行。JSON的处理器有很多,为什么需要再写一个呢?因为我们需要一个性能很好的JSON Parser,希望JSON Parser的性能有二进制协议一样好,比如和protobuf一样,这可不容易,但确实做到了。有人认为这从原理上就是不可能的,但是计算机乃实践科 学,看实际的...
分类:
Web程序 时间:
2014-11-25 14:04:49
阅读次数:
249
package com.zcs.fast.forward.utils;import android.graphics.Bitmap;import android.support.v4.util.LruCache;import com.android.volley.toolbox.ImageLoade...
分类:
系统相关 时间:
2014-11-24 19:10:03
阅读次数:
282
A fast method to determine the number is odd or even:total & 0x1 //true, if total is oddtotal & 0x1 //false, if total is evenProblem StatementThere ar...
分类:
其他好文 时间:
2014-11-21 20:28:27
阅读次数:
151
1 FastCGI介绍 FastCGI:快速通用网关接口(Fast Common Gateway Interface/FastCGI)是一种让交互程序与Web服务器通信的协议。 FastCGI像是一个常驻(long-live)型的CGI,它可以一直执行着,只要激活后,不会每次都要花费时间去fork一...
分类:
其他好文 时间:
2014-11-21 10:36:45
阅读次数:
318
一、FAST特征点
在像素点的周围邻域内有足够多的像素点与该点处于不同的灰度区域。在灰度图像中,也就是有足够多的像素点的灰度值大于该点的灰度值或者小于该点的灰度值。
通常选取以像素点为中心的半径为3的离散化的Bresenham元形区域。
在OpenCV中,当patternSize为16时,用以下数组表示这16个点相对于圆心的坐标:
static const int ...
分类:
编程语言 时间:
2014-11-20 15:25:00
阅读次数:
218
#include
#include
#include
#include
#include
using namespace std;
/*
*快速排序问题
*/
void Fast_sort(vector& a,int beg,int end)
{
if(beg+1>=end) return;
int key = beg;
for (int i = beg , j = end; i < j;...
分类:
编程语言 时间:
2014-11-20 13:42:12
阅读次数:
201
采用分治策略找出第K小的元素!要求程序的时间复杂度为线性函数。
#include
#include
#include
#include
#include
using namespace std;
/*
*选择问题(线性时间复杂度)
*在beg和end之间查找第k个元素
*/
int Fast_find(vector &vec,int beg,int end,int k)
{
if(k>end...
分类:
其他好文 时间:
2014-11-20 13:42:08
阅读次数:
234