dispatch_sync: ?Submits a block to a dispatch queue like dispatch_async(), however ? dispatch_sync() will not return until the block has finished. ? ?Calls to dispatch_sync() targeting the curr...
分类:
其他好文 时间:
2015-06-13 13:02:02
阅读次数:
233
安装git软件后,有些目录里会出现带有?的图标,右键菜单上会有“Git-Sync”或者"Git-Commit"等命令;正常的应该是“Git-Clone” "Git-Create repository"等命令,这个时候,可以把资源管理器的查看文件属性打开,显示隐藏文件,目录里的.git隐藏文件就出现了,删除后,所有的问号都消失了,正常的Git菜单也恢复过来了。...
分类:
其他好文 时间:
2015-06-12 19:31:59
阅读次数:
712
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1
/ 2 2
/ \ / 3 4 4 3
But the following is not...
分类:
其他好文 时间:
2015-06-12 10:13:12
阅读次数:
166
记使用WaitGroup时的一个错误最近重构服务器代码时,不当使用了WaitGroup,碰到了个错误,记录下.package mainimport (
"fmt"
"sync"
"time"
)func main() {
var wg sync.WaitGroup
wg.Add(1) f1 := func() {
time.Sleep(t...
分类:
其他好文 时间:
2015-06-12 06:32:19
阅读次数:
133
背景介绍:目前我们线上的前端服务器数量比较多,超过200多台,每次发布新应用的时候,都是将软件包放在一台专门的Push服务器上,再由所有的前端服务器通过rsync自动同步。但随着前端服务器的数量越来越多,Push服务器的带宽已经成为了瓶颈。而BitTorrent Sync这种P2P方式的同步则是一种...
分类:
系统相关 时间:
2015-06-11 22:40:31
阅读次数:
361
1、删除redhat原有的yum源# rpm -aq | grep yum|xargs rpm -e --nodeps2、下载新的yum安装包 这里我们使用CentOS的yum源# wget http://mirror.centos.org/centos/6.0/os/i386/Packages/....
分类:
其他好文 时间:
2015-06-11 10:52:28
阅读次数:
109
Folderpairs - Edit folderpair -Sync options -Instant syncSelect this for instant sync on change. Only detects changes on local device.Use with care!Se...
分类:
其他好文 时间:
2015-06-09 23:34:37
阅读次数:
307
First of all the full version is required.The full version works as a Tasker plugin - when you configure a new task in Tasker you are presented with a...
分类:
其他好文 时间:
2015-06-08 23:04:24
阅读次数:
163
问题 网上说:http://wenda.haosou.com/q/1386389928069965 昨晚这个问题真的费了我不少时间(晚上9到凌晨2点),网上找解决方案,然后一个个尝试,没有成功。准备放弃了,却又是预示即将发生转变。今天运行出现这个问题了:Authentication wit...
分类:
数据库 时间:
2015-06-06 16:27:50
阅读次数:
187
首先准备两台机器:client:192.168.1.10,server:192.168.1.20都安装:yum install -u nfs-utils rpcbind编辑server的nfs配置文件: vim /etc/exports /tmp/data 192.168.1.20(rw,sync)...
分类:
其他好文 时间:
2015-06-05 00:25:40
阅读次数:
122