Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.Fo...
分类:
移动开发 时间:
2014-12-11 20:46:47
阅读次数:
232
由于目录下全是琐碎的小文件而且目录结构具深,使用rm -rf /backup ,速度是每秒钟40-60M,我去,10T的数据得删多长时间啊!网上找资料,可以通过rsync来实现,mkdir /tmp/nullrsync--delete-before-a-H-v--progress--stats/tm...
分类:
系统相关 时间:
2014-12-11 20:46:05
阅读次数:
237
由于目录下全是琐碎的小文件而且目录结构具深,使用rm-rf/backup,速度是每秒钟40-60M,我去,10T的数据得删多长时间啊!网上找资料,可以通过rsync来实现,mkdir/tmp/nullrsync--delete-before-a-H-v--progress--stats/tmp/null//backup/photos/
测试了删除速度,刚开始时候每秒..
分类:
系统相关 时间:
2014-12-11 19:21:56
阅读次数:
307
在项目中,我们经常需要通过网络请求去服务端获取相应的数据,以便于在客户端进行展示。而这个过程是需要网络的,因此就有了等待的过程。对于网络快的童靴,那么等待的时间就短;而对于网络慢的童靴,那么等待的时间就长。因此为了消除童靴们等待的焦虑感,我们需要显示一个progress dialog来提示童靴们,数据正在获取中,请稍候片刻。
先上效果图,效果图如下:
那么如何实现...
分类:
移动开发 时间:
2014-12-11 15:51:07
阅读次数:
238
openstackicehouse版本glance上传镜像的命令是:glancep_w_picpath-create--name“win2k8_x86_100GB”--disk-formatqcow2--container-formatbare--is-publicTrue--progress</home/XXX.qcow2
分类:
Web程序 时间:
2014-12-10 14:27:02
阅读次数:
500
在Android3.0之后,Google对UI导航设计上进行了一系列的改革,其中有一个非常好用的新功能就是引入的ActionBar,他用于取代3.0之前的标题栏,并提供更为丰富的导航效果。一、添加ActionBar1、不需要导入ActionBar,因为在android3.0或者以上版本中,Actio...
分类:
其他好文 时间:
2014-12-10 09:14:49
阅读次数:
202
主题Theme就是用来设置界面UI风格,可以设置整个应用或者某个活动Activity的界面风格。在Android SDK中内置了下面的Theme,可以按标题栏Title Bar和状态栏Status Bar是否可见来分类:[html]view plaincopyprint??android:theme...
分类:
移动开发 时间:
2014-12-09 22:53:47
阅读次数:
285
Material Theme提供了一下功能:1、系统widgets可以设置调色板2、系统widgets的触摸反馈3、Activity过渡动画 你可以根据你品牌的色彩来定义Material Theme,可以使用Material Theme的色彩为status bar、action bar着色。参考下....
分类:
其他好文 时间:
2014-12-09 21:08:15
阅读次数:
187
1.<scriptsrc="
2.<scripttype="text/javascript">
//路径配置
require.config({
paths:{
echarts:‘http://echarts.baidu.com/build/dist‘
}
});
//使用
require(//通过动态加载使用echarts
[
‘echarts‘,
‘echarts/chart/bar‘,//使用柱状图就加载bar模块,按需加载
‘..
分类:
其他好文 时间:
2014-12-08 15:49:13
阅读次数:
221
【题目】
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
For example,
Given [0,1,0,2,1,0,1,...
分类:
移动开发 时间:
2014-12-08 15:32:44
阅读次数:
233