cURL cURL是 URL命令行工具, 即 command URL,
可以通过命令行模拟各种应用协议的发包, 包括FTP HTTP HTTPS,官方网站 http://curl.haxx.se/luacurllua
curl是基于curl的库libcurl(http://curl.haxx.s.....
分类:
其他好文 时间:
2014-05-26 13:49:03
阅读次数:
688
当 Lua 调用 C 函数的时候,使用和 C 调用 Lua 相同类型的栈来交互。C 函数从栈中获取她的参数,调用结束后将返回结果放到栈中。为了区分返回结果和栈中的其他的值,每个 C 函数还会返回结果的个数(the function returns (in C) the number of results it is leaving on the stack.)。
// lua...
分类:
编程语言 时间:
2014-05-24 19:37:41
阅读次数:
372
用信号量实现进程互斥示例:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
union semun {
int ...
分类:
其他好文 时间:
2014-05-22 13:15:44
阅读次数:
231
HDU 题目分类
模拟题, 枚举
1002 1004 1013 1015 1017 1020 1022 1029 1031 1033 1034 1035 1036 1037 1039 1042 1047 1048 1049 1050 1057 1062 1063 1064 1070 1073 1075 1082 1083 1084 1088 1106 1107 1113 1117 1...
分类:
其他好文 时间:
2014-05-22 11:59:02
阅读次数:
198
代码如下:import cv2
videoCapture = cv2.VideoCapture('car.avi')
fps = videoCapture.get(cv2.cv.CV_CAP_PROP_FPS)
size = (int(videoCapture.get(cv2.cv.CV_CAP_PROP_FRAME_WIDTH)),int(videoCapture.get(cv2.cv.CV_C...
分类:
编程语言 时间:
2014-05-22 11:38:22
阅读次数:
338
经过三个月,自己写的网站(后台运营支撑平台)上线了。投入使用,运行良好。最近网站门户也完活了,现在即将上线,但是发现了一个问题,前后台会有些文件来往,就是前台要用到后台的文件资源。
由于前后台是分服务器部署的,两个不同的域名,所以解决此问题,很棘手。没办法,想了用java jcifs ,但是时间紧,没用过,所以搁浅。最蠢的办法,前后台合并!
合并后,遇到了两个奇葩问题
1。后台页面不能连续快...
分类:
其他好文 时间:
2014-05-22 10:20:50
阅读次数:
268
本来是想试试在lua里写个简单的scheme解释器,看能精简到什么程度,至少要能跑通一个打印fibonacci数列的测试。结果就写出来个只包含lambda/if两个special
form,以及+-=和print几个内置过程的解释器,只有区区60行代码~ 爱不释手,过个半小时就把代码翻出来臭美下.....
分类:
其他好文 时间:
2014-05-21 14:28:02
阅读次数:
357
本篇博文主要介绍利用Ameoba实现MySQL的读写分离功能,而MySQL官方的mysql-proxy需要自己编写复杂的lua脚本才能实现同样的功能,故个人还是倾向使用amoeba哦;===================================================================1简介2准备2.1时间同步2.2配置MySQL主从复制..
分类:
数据库 时间:
2014-05-20 18:25:03
阅读次数:
322