使用正则表达式String str = "AaaBbbCcc";
String[] strArr = str.split("(?<!^)(?=[A-Z])");
for(String s : strArr){
System.out.println(s);
}...
分类:
其他好文 时间:
2015-05-20 11:19:34
阅读次数:
123
http://technologyworkroom.blogspot.sg/2013/05/tasker-how-to-read-out-whatsapp.htmlTasker can read out incoming or stored WhatsApp Messages, I used Tas...
分类:
移动开发 时间:
2015-05-19 18:24:41
阅读次数:
285
在没加atl 的fpga 时 i2c1上的tvp5150 vpss驱动加载没问题,加了之后出现超时I2C: timed out in wait_for_bb: I2C_IRQSTATUS=1000http://www.tuicool.com/articles/6BnIJ3 /* * PSP_...
分类:
其他好文 时间:
2015-05-19 14:24:26
阅读次数:
382
问题代码如下
links = open("new")
out = open("out.txt","w+")
for link in links:
out.write(link+"\n")
问题原因:
当没有使用flush()或close()时,要写入的内容依然在缓冲区中,没有写入文件,如果中途终止,文件里就会没有内容。
解决方法:
links = open...
分类:
编程语言 时间:
2015-05-19 13:11:32
阅读次数:
464
1 int arr[] = {2, 3, 1}; 2 for (int x : arr) { 3 System.out.println(x); 4 }
分类:
其他好文 时间:
2015-05-19 12:12:29
阅读次数:
101
不挂断的执行命令,后台执行加上&。一般用法 nohup command [&] 缺省情况下该作业的所有输出都被重定向到一个名为nohup.out的文件中也可以指定输出文件 nohup command > myout.file 2>&1 &>myout.file 标准输出重定向到myout.fi...
分类:
其他好文 时间:
2015-05-19 00:40:36
阅读次数:
117
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. For example,If n = 4 and k = 2, a solution is:[ [2,4], [3,.....
分类:
编程语言 时间:
2015-05-18 22:47:14
阅读次数:
150
public class FormatOutput { public static void main(String[] args) { for(int i=1;i<=9684;i=i+4) { System.out.println("f "+...
分类:
其他好文 时间:
2015-05-18 22:23:24
阅读次数:
136
上一篇文章讲述了如何部署Owncloud单机版《企业私有云Owncloud(2)-单机版安装和配置》,只是做个demo,不适用于真实的企业应用,一方面是性能问题,大量用户访问会造成前端WebServer资源不够处理;另一方面,易出现单点故障,中间任何一个component故障,owncloud都无法继续..
分类:
其他好文 时间:
2015-05-18 21:05:48
阅读次数:
208
package seven;public class Sevenzerothree { int i=47; //定义成员变量 public void call(){ System.out.println("调用call()方法"); //定义成员方法 for...
分类:
其他好文 时间:
2015-05-18 20:34:26
阅读次数:
113