blog宗旨:用图说话辅助文字说明:1.调用形式:在Client中使用component.method();2.使用范围:具有相同结构的聚合、组合。举例:生成条件语句:when avg(cpu) > 60% or avg(mem) > 70% for 3 min then do scale up,对...
分类:
其他好文 时间:
2015-12-16 09:34:26
阅读次数:
209
// 1.开启基于位图的图形上下文 /** * CGSize size:size * BOOL opaque:透明开关,如果图形完全不用透明,设置为YES以优化位图的存储。 * CGFloat scale:缩放比例 */ UIGraphicsBeginImageContextWith...
分类:
其他好文 时间:
2015-12-15 22:41:39
阅读次数:
146
Tween动画主要的功能是在绘制动画前设置动画绘制的轨迹,包括时间、位置等等,但Tween动画的缺点是他只能设置起点与结束点的两帧,中间过程全部由系统帮我们完成,所以在帧数比较多的游戏开发中是不太会用的。Tween一共提供了四种动画效果:Scale:缩放动画Rotate:旋转动画Translate:...
分类:
其他好文 时间:
2015-12-15 18:14:50
阅读次数:
176
/*** dp、sp 转换为 px 的工具类** @author fxsky 2012.11.12**/public class DisplayUtil {/*** 将px值转换为dip或dp值,保证尺寸大小不变** @param pxValue* @param scale* (DisplayMet...
分类:
其他好文 时间:
2015-12-15 15:55:29
阅读次数:
213
public class ZoomOutTranformer extends ABaseTransformer { @Override protected void onTransform(View view, float position) { final float scale = 1f + M...
分类:
其他好文 时间:
2015-12-14 18:08:58
阅读次数:
198
x轴缩放:CABasicAnimation *theAnimation;theAnimation=[CABasicAnimation animationWithKeyPath:@"transform.scale.x"];theAnimation.duration=8;theAnimation.rem...
分类:
移动开发 时间:
2015-12-13 20:13:30
阅读次数:
134
width - viewport的宽度 height - viewport的高度initial-scale - 初始的缩放比例minimum-scale - 允许用户缩放到的最小比例maximum-scale - 允许用户缩放到的最大比例user-scalable - 用户是否可以手动缩放Cordo...
分类:
移动开发 时间:
2015-12-10 19:02:45
阅读次数:
212
提高服务器响应能力的方法scale on 在原有服务器的基础上进行升级或者直接换一台新的性能更高的服务器。scale out 横向扩展,将多台服务器并发向外响应客户端的请求。优点:成本低,扩展架构比较简单。集群(Cluster),通俗地讲就是按照某种组织方式将几台电脑组织起来完成某种特定任务的这样一...
分类:
其他好文 时间:
2015-12-09 13:24:54
阅读次数:
207
一:对CPU进行简单测试:计算圆周率echo "scale=5000; 4*a(1)" | bc -l -q转自:http://wushank.blog.51cto.com/3489095/1585927
分类:
系统相关 时间:
2015-12-08 14:34:23
阅读次数:
188
source from:https://computing.llnl.govFactors determines a large-scale program's performance 4 * Application related factors: 5 * algorith...
分类:
其他好文 时间:
2015-12-08 08:40:48
阅读次数:
175