码迷,mamicode.com
首页 > 其他好文
删除Ngnix 日志
删除Ngnix日志的脚本#!/bin/bash#初始化LOGS_PATH=$(pwd)/logsYESTERDAY=$(date -d "yesterday" +%Y-%m-%d)#按天切割日志mv ${LOGS_PATH}/access_log ${LOGS_PATH}/access_${YEST...
分类:其他好文   时间:2015-06-11 18:59:37    阅读次数:159
ARC自动引用计数学习笔记
1.在 ARC 中,所有*outlet*属性都推荐使用 weak,这些 view 对象已经属于 View Controller 的 view hierarchy,不需要再次定义为 strong(ARC 中效果等同于 retain)。唯一应该使用 strong 的 outlet 是 File's Ow...
分类:其他好文   时间:2015-06-11 18:58:12    阅读次数:96
protobuf 原理
Protobuf 的优点 Protobuf 有如 XML,不过它更小、更快、也更简单。你可以定义自己的数据结构,然后使用代码生成器生成的代码来读写这个数据结构。你甚至可以在无需重新部署程序的情况下更新数据结构。只需使用 Protobuf 对数据结构进行一次描述,即可利用各种不同语言或从各种不同数.....
分类:其他好文   时间:2015-06-11 18:59:02    阅读次数:153
<context:component-scan>使用说明
在xml配置了这个标签后,spring可以自动去扫描base-pack下面或者子包下面的java文件,如果扫描到有@Component @Controller@Service等这些注解的类,则把这些类注册为bean注意:如果配置了那么标签就可以不用再xml中配置了,因为前者包含了后者。另外还提供了两...
分类:其他好文   时间:2015-06-11 19:00:09    阅读次数:118
典型用户与场景
典型用户:1. 王恒 / 范柱威2. 21岁 / 42岁3. 2000元-3000元 / 500-1000元4.年轻的用户比例大,同时影响也大5.一天晚上王恒寂寞难耐,想通过软件结交好友,打发寂寞的时间,于是乎在网上找到了这个软件;范柱威则是想通过软件来寻找更好的工作。6. 办公室或家里 / 网吧7...
分类:其他好文   时间:2015-06-11 18:57:36    阅读次数:161
使用Qmake在树莓派上开发Opencv程序
Qt 安装 PC 端 下载安装即可 https://mirrors.ustc.edu.cn/qtproject/official_releases/qt树莓派:Qt开发套件和opencv安装sudo apt-get install qt4-dev-toolssudo apt-get install ...
分类:其他好文   时间:2015-06-11 18:57:43    阅读次数:292
hdu 5237 二进制
很无聊的模拟题。。。mark几个有用的小程序:字符->二进制ASCII码 1 string tobin(char c) 2 { 3 string t; 4 for(int i=0; i<8; i++) 5 { 6 t=char(c%2+48)+t; 7 ...
分类:其他好文   时间:2015-06-11 18:58:23    阅读次数:125
向量卷积与多项式乘法
对于两个离散序列f[n],g[m],可以将卷积定义为 s[k]=∑f[j]g[k-j] 回忆我们学过的多项式乘法,比如(x2+2x+1)(3x+2) 一般的计算方式是 (x2+2x+2)(3x+2) = (x2+2x+2)*3x+(x2+2x+2)*2 = 3x3+6x2+6x+2x2+4x+4 合...
分类:其他好文   时间:2015-06-11 18:58:22    阅读次数:183
How does browsersync work?
How Does BrowserSync Work?BrowserSync starts a small web server. If you’re already using a local web server or need to connect to a live website, yo.....
分类:其他好文   时间:2015-06-11 18:57:40    阅读次数:127
麻省理工学院公开课-第二讲:渐进符号、递归及解法
http://blog.csdn.net/julius819/article/details/8267060http://www.cnblogs.com/banli/archive/2013/05/21/3089900.html
分类:其他好文   时间:2015-06-11 18:55:29    阅读次数:148
[LintCode] Max Tree
Max TreeGiven an integer array with no duplicates. A max tree building on this array is defined as follow:The root is the maximum number in the arrayT...
分类:其他好文   时间:2015-06-11 18:58:01    阅读次数:228
No.26 Remove Duplicates from Sorted Array
Remove Duplicates from Sorted ArrayGiven a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new lengt...
分类:其他好文   时间:2015-06-11 18:55:25    阅读次数:113
3proxy 这个代理工具太好用了
vi /etc/3proxy.cfg#nserver 8.8.8.8daemonservicelog /var/log/3proxy.log Dlogformat "- +_L%t.%. %N.%p %E %U %C:%c %R:%r %O %I %h %T"rotate 7#auth nbname...
分类:其他好文   时间:2015-06-11 18:54:53    阅读次数:1164
NSMutableArray初始化崩溃问题
现象:@property(nonatomic, copy) NSMutableArray *array;self.array = [NSMutableArray alloc] initWithCapacipty:5];[self.array addObject:@"hello"];//大师们为什么上...
分类:其他好文   时间:2015-06-11 18:56:00    阅读次数:252
No.80 Remove Duplicates from Sorted Array ||
Remove Duplicates from Sorted Array||Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted arraynums=...
分类:其他好文   时间:2015-06-11 18:54:11    阅读次数:125
策略模式学习笔记
策略模式定义:将可变的部分从程序中抽象分离成算法接口,在该接口下分别封装一系列算法实现,并使它们可以相互替换,从而导致客户端程序独立于算法的改变。 策略模式区别于模板方法模式: - 策略模式强调整体算法,即将整个算法交由用户实现。(采用组合方式) - 模板方法模式强调部分算法,即整体算法不变情...
分类:其他好文   时间:2015-06-11 18:56:01    阅读次数:117
poj2196---Specialized Four-Digit Numbers
#include #include int main(){ int i,sum,sumOfH,sumOfd,tmp1,tmp2,tmp3; for(i=2992;i<10000;i++) { sum=0; sumOfd=0; sumOfH=...
分类:其他好文   时间:2015-06-11 18:55:40    阅读次数:135
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!