Given a pattern and a string str, find if str follows the same pattern.Here follow means a full match, such that there is a bijection between a letter...
分类:
其他好文 时间:
2015-12-16 12:13:33
阅读次数:
194
学习RTX 的时候发现RTX的配置文件可以MDK的图形界面来配置,感觉这个非常好,直观、方便、健壮,可以避免程序员写入错误的数据。 参考: µVision User's Guide->Utilities->Configuration Wizard keil 的 配置向导 configuration ...
分类:
其他好文 时间:
2015-12-16 12:14:16
阅读次数:
208
当初新建项目IMyYa 提交到svn 目录下file:///H:/svn/truck/IMyYa现在svn 目录版本库中调整为file:///H:/svn/truck/Win8/IMyYa 与之前不同多加了个目录 Win8提问:我要在我的项目副本 如何切换到 Svn版本库中?解决:1.右键 项目点击...
分类:
其他好文 时间:
2015-12-16 12:10:51
阅读次数:
173
一、UIPageViewController概念控件为我们提供了一种像翻书效果的一种控件。我们可以通过使用UIPageViewController控件,来完成类似图书一样的翻页控制方式。二、使用UIPageViewController控件先假象一下,一本书大概可以分为:1.每一页。2.每一页中相应的...
分类:
其他好文 时间:
2015-12-16 12:11:01
阅读次数:
378
很长一段时间内我们都通过translateZ()或者translate3d()hack来骗取浏览器触发硬件加速,具体做法就是为元素添加没有变化的3D变形,比如元素在2维空间可以通过添加以下CSS来硬件加速transform: translate3d(0, 0, 0);所谓硬件加速就是创建了一个被传递...
分类:
其他好文 时间:
2015-12-16 12:08:29
阅读次数:
103
Invalid result location value/parameter(struts2),该问题在myeclipse8.6一下的版本不会出现,但是在myeclipse9.0中就会出现该错误。有的解决办法就是直接右键struts.xml然后选择MyEclipse下的“Removed All V...
分类:
其他好文 时间:
2015-12-16 12:08:01
阅读次数:
183
浏览器兼容性问题大汇总Ø JavaScript 31. HTML对象获取问题 32. const问题 33. event.x与event.y问题 34. window.location.href问题 35. frame问题 36. 模态和非模态窗口问题 37. firefox与IE的父元素(pare...
分类:
其他好文 时间:
2015-12-16 12:06:50
阅读次数:
167
从二月份用测试版本build 3012开始用sublime text 3,虽然很多插件在sublime text 3不工作了,因为sublime text 3修复了2的一些bug、提升了性能并集成了不少常用插件的功能,当时没什么要求够用了,就这样傻傻地裸插件空手写代码用了快5个月。上月27号Subl...
分类:
其他好文 时间:
2015-12-16 12:07:40
阅读次数:
181
String相关函数1)substring()它有两种形式,第一种是:String substring(int startIndex)第二种是:String substring(int startIndex,int endIndex)2)concat() 连接两个字符串例:String s="Wel...
分类:
其他好文 时间:
2015-12-16 12:07:58
阅读次数:
263
属性声明 - 暴露成员变量属性是组件暴露给外部世界的调用接口,调用者通过设置不同的属性值来定制组件的行为与外观:在Angular2中为组件增加属性接口非常简单,只需要在Component注解的properties属性中声明组件的成员变量就可以了:1 //EzCard 2 @Component({3 ...
分类:
其他好文 时间:
2015-12-16 12:08:00
阅读次数:
171
String str = " asd "; String ntr = ("A" + str).trim().substring(1);//将头部加一个字符再用trim来去空格,再去截取 System.out.println("str=\"" + str + "\""); ...
分类:
其他好文 时间:
2015-12-16 12:05:11
阅读次数:
195
1 public class SingleInstance 2 { 3 private static SingleInstance singleInstance = null; 4 private static readonly object locker = new object(); 5 pr....
分类:
其他好文 时间:
2015-12-16 12:06:39
阅读次数:
151
摘要:最近在做Qt串口通讯部分。 在验证串口通讯部分是否可行,是否可行时,通过虚拟端口、单片机来测试。本文主要写单片机的串口通讯,下篇将写通过单片机发送一个字符串,Qt编写的通讯界面接收时,这个过程是如何进行的。--------------------------------------------...
分类:
其他好文 时间:
2015-12-16 12:04:39
阅读次数:
166
Rotate an array of n elements to the right by k steps.For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4].Note:...
分类:
其他好文 时间:
2015-12-16 12:06:56
阅读次数:
232
相信每一个 App 开发者,在开发过程中,都会有一些代码被反复用到,比如:复制文本,打电话,发短信,发邮件,给应用添加评论等等。在项目之间复制这些代码段,实在不是一个好办法,所以大家可能会把这些代码放到一个类似 Utility 类中,或者一个库(Class Library)中。本文也是帮你完成同样....
分类:
其他好文 时间:
2015-12-16 12:04:43
阅读次数:
676