# #增加交换分区需要先模拟出虚拟磁盘 #从Linux内核的造零器zero,写到newdisk文件中,指定文件块大小1M,一百个块 [root@chy002 ~]# dd if=/dev/zero of=/tmp/newdisk bs=1M count=100 记录了100+0 的读入 记录了100... ...
分类:
系统相关 时间:
2017-11-03 21:43:21
阅读次数:
227
1、编写java代码,指定lib和native方法。package com.taven.myapplication; package com.taven.myapplication; import android.support.v7.app.AppCompatActivity;import and ...
分类:
移动开发 时间:
2017-11-03 15:29:36
阅读次数:
189
转自:https://www.beibq.cn/book/n2uy1/810 SharEDITor :http://www.shareditor.com/ ...
分类:
其他好文 时间:
2017-11-03 13:07:10
阅读次数:
99
由于ios10版本以后UILocalNotification被标为弃用了,所以要添加新的本地通知推送功能,下面提供一些代码参考。 一、先在AppDelegate.cs上注册本地通知推送功能。 同时用到一个处理函数,代码如下: 1 public class UserNotificationCenter ...
分类:
移动开发 时间:
2017-11-02 19:04:37
阅读次数:
261
指针是柄双刃剑,用的好,就会威力倍增;用的稍有闪失,就会造成悲剧。 自从c++11引入智能指针shared_ptr后,我们似乎再也不用担心new的内存没有释放之类的问题了,但是,这样就万无一失了吗? 答案显然不是的,在智能指针与常规指针转换的过程中,我们仍需要注意一些坑。 1.常规指针转换为智能指针 ...
分类:
编程语言 时间:
2017-11-01 23:53:41
阅读次数:
518
测试环境:Tengine2.1,centos6.9官网有说明,支持动态共享加载模块编译配置,指定加载为动态共享模块:wgethttp://tengine.taobao.org/download/tengine-2.1.0.tar.gz
./configure--prefix=/App/nginx--with-http_p_w_picpath_filter_module=shared
make将objs/modules下面的..
分类:
Web程序 时间:
2017-10-31 23:59:51
阅读次数:
526
解压: unzip android-ndk-r15c-linux-x86_64.zip unzip boost_1_65_1.zip cd boost_1_65_1/ ./bootstrap.sh vim tools/build/example/user-config.jam cp tools/bu ...
分类:
移动开发 时间:
2017-10-31 13:01:21
阅读次数:
200
一直对编译的过程概念很模糊,总结记录一下方便以后复习。 Linux下gcc编译器使用: gcc编译流程: 1、预处理 gcc -E hello.c -o hello.i 对包含的头文件和宏定义进行处理 2、编译 gcc -s hello.i -o hello.s 检查代码的规范性,是否有语法错误,把 ...
分类:
系统相关 时间:
2017-10-31 11:09:22
阅读次数:
237
工作需要在客户的服务器配置https nginx版本为1.12.2 server { listen 443; ssl on; ssl_certificate code.crt; ssl_certificate_key code.key; ssl_session_cache shared:SSL:1m ...
分类:
Web程序 时间:
2017-10-30 17:08:38
阅读次数:
182
创建连接 ln -s /usr/lib/libevent-2.1.so.6 /usr/lib/libevent-2.1.so.6 如果还不行就下面解决 执行下面语句查看链接地址 LD_DEBUG=libs memcached -v 2>&1 > /dev/null | less 执行结果中 sear ...
分类:
系统相关 时间:
2017-10-30 14:58:17
阅读次数:
219