1、安装msmtp:wgethttp://downloads.sourceforge.net/msmtp/msmtp-1.4.30.tar.bz2?big_mirror=0rhel5.7使用下面的版本:wgethttp://downloads.sourceforge.net/msmtp/msmtp-1.4.17.tar.bz2?big_mirror=0tarjxvfmsmtp-1.4.30.tar.bz22、安装cdmsmtp-1.4.30&&configure-..
分类:
其他好文 时间:
2015-05-29 18:26:35
阅读次数:
294
WaitGroup的用途:它能够一直等到所有的goroutine执行完成,并且阻塞主线程的执行,直到所有的goroutine执行完成。 官方对它的说明如下: A WaitGroup waits for a collection of goroutines to finish. The main go...
分类:
其他好文 时间:
2015-05-29 11:39:28
阅读次数:
107
一、准备工作,依赖包安装yuminstallapr*yuminstallsqlite*二、下载svn包和安装cd/usr/local/src/wgethttp://mirror.bit.edu.cn/apache/subversion/subversion-1.7.20.tar.gztar-zxvfsubversion-1.7.20.tar.gzcdsubversion-1.7.20/./configure--prefix=/usr/local/subversion--..
分类:
系统相关 时间:
2015-05-28 14:20:41
阅读次数:
166
原文网址:http://blog.csdn.net/mr_president/article/details/7693707根据Google官网上的方法在我们实验室搭建了一个本地的Android代码镜像服务器,今天一个师弟在服务器上利用repo sync下载源代码下到99%的时候,出现了下面的问题:...
分类:
移动开发 时间:
2015-05-28 12:12:28
阅读次数:
521
The HotSpot interpreter is also a critical part of the overall HotSpot adaptive optimization story. Adaptive optimization solves the problems of JIT compilation by taking advantage of...
分类:
其他好文 时间:
2015-05-28 09:40:09
阅读次数:
131
STORAGE SERVER的状态通常有七种:
# FDFS_STORAGE_STATUS:INIT :初始化,尚未得到同步已有数据的源服务器
# FDFS_STORAGE_STATUS:WAIT_SYNC :等待同步,已得到同步已有数据的源服务器
# FDFS_STORAGE_STATUS:SYNCING :同步中
# FDFS_STORAGE_STATUS...
分类:
其他好文 时间:
2015-05-27 17:24:10
阅读次数:
410
Android 5.1源码开放有一个多月啦,但由于城墙的关系,每次想着更新最新源码学习都万般纠结,现在发现国内有开源镜像啦,这就好多啦,感谢清华开源工作团队的无私工作啊。地址:https://aosp.tuna.tsinghua.edu.cn/根据页面上的介绍,该镜像只支持源码sync,不支持sdk...
分类:
移动开发 时间:
2015-05-27 11:54:09
阅读次数:
192
个人站:http://www.cloudnoter.com/?p=137
一、快速使用
Golang的log包短小精悍,可以非常轻松的实现日志打印转存功能。不用多说,log支持并发操作(即协程安全-相对于JAVA中的线程安全而言),其结构定义如下:
type Logger struct {
mu sync.Mutex // ensures atomic writes; pro...
分类:
其他好文 时间:
2015-05-27 01:00:35
阅读次数:
155
目录1、Replication的工作原理2、如何配置Redis主从复制1、Replication的工作原理在Slave启动并连接到Master之后,它将主动发送一条SYNC命令。此后Master将启动后台存盘进程,同时收集所有接收到的用于修改数据集的命令,在后台进程执行完毕后,Master将传送整个...
开始试了很多方法,不过由于删除的效率导致tle,总之无论什么方法,能ac就是好方法
#include
#include
#include
using namespace std;
vectormapp[100000+5];
maproot;
int he[100000+5];
int main()
{
int n,m;
cin.sync_with_stdio(false);
...
分类:
其他好文 时间:
2015-05-25 10:16:44
阅读次数:
98