Create linux tar gz (Gzip)archive (创建压缩文件)tar -czvf
myarchive.tgz mydirectory/We use the -t option to create an linux tar archivec–
Creates a new .ta....
分类:
其他好文 时间:
2014-05-05 23:41:27
阅读次数:
403
优先级类别运算符1基本(x) x.y f(x) a[x] x++ x――new typeof
sizeof checked unchecked2单目+ - ! ~ ++x ――x (T)x3乘法与除法* / %4加法与减法+
-5移位运算>6关系运算 =7条件等= = ! =8位逻辑与&9位逻辑异或...
分类:
其他好文 时间:
2014-05-05 23:34:11
阅读次数:
359
1 Arrays.sort(points, new comparator());2 3
public static class comparator implements Comparator {4 public int compare(Point
p1, Point p2) {5 ...
分类:
编程语言 时间:
2014-05-05 23:32:10
阅读次数:
444
Number是数字值对应的引用类型var numberObject=new
Number(10);Number也重写了valueof()、toLocaleString()、和toString()方法,valueOf()方法返回对象表示的基本类型数值,另外两个方法则返回字符串形式的数值,除了继承的为t...
分类:
编程语言 时间:
2014-05-05 23:11:37
阅读次数:
377
①申请API
KEY②SelectFile>Import>Android>Existing Android Code Into Workspaceand
clickNext.导入google-play-services_lib③SelectFile>New>Other>Android
Sample ...
分类:
其他好文 时间:
2014-05-05 23:05:06
阅读次数:
344
遇到的问题:input{1,1,1}, output{1,1}, expected{1},
原因在于若temp.val==temp.next.val, 则需要temp.next=temp.next.next,
这时候就不要temp=temp.next了注意停止条件不光是temp!=null,还应该有...
分类:
其他好文 时间:
2014-05-05 22:47:08
阅读次数:
454
通过Size属性不能得到正确的窗体尺寸, 怎么办?还需要设置 MaximumSize
属性和你的 size属性尺寸一样。 this.FormBorderStyle = FormBorderStyle.FixedSingle;this.Size =
new Size(43, 386);thi...
原地址:http://digitalerr0r.wordpress.com/2013/08/27/unity-for-windows-ii-publishing-to-windows-8/Windows
8 is a new OS with a Windows Store where you can...
Zxing图片识别 从相册选取二维码图片进行解析总结
在Zxing扫描识别和图片识别的解析对象是相同的
本文分三个步骤:
1 获取相册的照片
2 解析二维码图片
3 返回结果
1) 获取相册照片
google对4.4的uri做了点改动 为了适配多种手机 需要做一个判断版本
在Activity中开启相册:
Intent innerIntent = new Intent(); // "android.intent.action.GET_CONTENT"
if (Build.VE...
分类:
其他好文 时间:
2014-05-03 17:36:19
阅读次数:
389
/**
*在js中并不存在类,所以可以直接通过Object来创建对象,但是使用这种方式创建有一
*弊端:由于没有类的约束,无法实现对象的重复利用,并且没有一种规范约定,在操作时容易带来问题。
*/
var person = new Object();
person.name = "octopus";
person.age = 25;
person.say = function(...
分类:
Web程序 时间:
2014-05-03 15:39:22
阅读次数:
371