Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1496015
  • 博文数量: 164
  • 博客积分: 2993
  • 博客等级: 少校
  • 技术积分: 1718
  • 用 户 组: 普通用户
  • 注册时间: 2011-06-24 11:42
文章分类

全部博文(164)

文章存档

2014年(1)

2013年(36)

2012年(90)

2011年(37)

发布时间:2013-07-31 16:30:09

This article explains how to write a DLL/SO in C/C++ for PythonNote: Cython can also be used to create and wrap C libraries for Python, and might be a good alternative to the approach explained in this article.Create a new file and write, for example, a function .........【阅读全文】

阅读(1612) | 评论(0) | 转发(0)

发布时间:2013-07-12 14:20:12

Nginx环境在Nginx低版本中,是不支持PATHINFO的,但是可以通过在Nginx.conf中配置转发规则实现:在nginx配置文件中添加location / {    if (!-e $request_filename) {   rewrite ^(.*)$ /index.php?s=$1 last;   break;.........【阅读全文】

阅读(9140) | 评论(0) | 转发(0)

发布时间:2013-07-02 11:07:44

$raw_data = file_get_contents("php://input");var_dump($raw_data);if( !empty($raw_data) ){    $data = @json_decode($raw_data, true);    if( $data ){        var_.........【阅读全文】

阅读(2034) | 评论(0) | 转发(0)

发布时间:2013-06-24 10:10:44

php中3DES加密技术 因为工作中要用到加密,接口中要求也是用密文传输数据,用到3des加密,就研究了一下。在网上也找了好多,但是都不可以用,没法正式运行,终于找到一个可以运行的,自己又修改了一下,记录下来,以后还可能会用到。下面安装我要调用的接口文实例:在调用PHP中的mcrypt_get_block_.........【阅读全文】

阅读(5512) | 评论(0) | 转发(0)

发布时间:2013-06-09 10:39:44

http://momentjs.comTimeagomoment("20111031", "YYYYMMDD").fromNow();moment("20120620", "YYYYMMDD").fromNow();moment().startOf('day').fromNow();moment().endOf('day').fromNow();moment().startOf('hour').fromNow();2年前1年前11小时前13小时内37分钟前Calendar Timemoment().subtra.........【阅读全文】

阅读(5218) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册