static int ScreenshotIndex=0; //判断是否是retina屏 if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)]){ // 开启图像上下文 UIGraphicsBeginIma...
分类:
移动开发 时间:
2015-08-26 15:37:26
阅读次数:
189
public class MainActivity extends Activity {
AlphaAnimation animation_alpha;
RotateAnimation animation_rotate;
ScaleAnimation animation_scale;
TranslateAnimation animation_translate;
AnimationSet anim...
分类:
移动开发 时间:
2015-08-26 14:02:21
阅读次数:
208
1. 基本使用:$ bc 1+4> 4-1> 2*4> HERE538能够使用内置的变量 last 引用上一次的结果:$ echo "5-4;last+6" | bc17last 也能够用 点号取代:$ echo "5-4;.+6" | bc172. 浮点数运算:能够使用scale指定小数点之后的....
分类:
系统相关 时间:
2015-08-25 14:13:13
阅读次数:
213
之前介绍过docker的单机安装、多主机网络互通、如何半自动化更新与回滚代码,现在在介绍如何进行集群与autoscale。集群通信软件这部分功能使用Python语言编写,基于TCPSocket与SSL加密通信。我们来看下效果展示:查看所有节点信息:(软件名是cdocker,分为客户端与服务端,服务..
分类:
其他好文 时间:
2015-08-25 12:41:24
阅读次数:
302
利用transform 可以实现旋转、缩放、倾斜、移动属性有:translate、scale移动:translateX(10px); //水平方向移动10pxtranslateY(50px); //垂直方向移动50pxtranslate(10px); //水平方向移动10pxtranslate(1....
分类:
Web程序 时间:
2015-08-20 12:43:07
阅读次数:
199
现在先来说一下scale(缩放比例)的使用:调用方法:overridePendingTransition(R.anim.scale_in,R.anim.scale_out);R.anim.scale_in表示要进入的Activity界面的xml文件,R.anim.scale_out表示离开的Activity界面的xml文件,在xml文件中可配置相关属性,即可实现相关的动画效果..
分类:
移动开发 时间:
2015-08-20 10:52:21
阅读次数:
156
【编者按】软件开发和采购人员经常会对现有软件开发方法、技巧和工具产生一些疑问。针对这些疑问,Kevin Fall 整理了五个软件方面的话题:Agile at Scale,Safety-Critical Systems,Monitoring Software-Intensive System Acqu...
分类:
其他好文 时间:
2015-08-20 10:19:30
阅读次数:
270
原文:http://agiledon.github.io/blog/2013/02/27/scalability-system-architecture-lessons/最近,阅读了Will Larson的文章Introduction to Architecting System for Scale...
分类:
其他好文 时间:
2015-08-19 22:49:14
阅读次数:
181
【编者按】软件开发和采购人员经常会对现有软件开发方法、技巧和工具产生一些疑问。针对这些疑问,Kevin Fall 整理了五个软件方面的话题:Agile at Scale,Safety-Critical Systems,Monitoring Software-Intensive System Acquisition Programs,Managing Intellectual Property in...
分类:
其他好文 时间:
2015-08-19 20:34:55
阅读次数:
127
1 text-size-adjust: 100%; font-size<12px 不推荐none,因为none会导致页面缩放失效 属性是为解决移动设备上横屏问题而出现的,取消横屏切换时字号变大 另外,桌面谷歌27以上已经不支持这个属性了,可用transform:scale(0.875)替代不...
分类:
移动开发 时间:
2015-08-19 20:03:15
阅读次数:
146