android手机用闪光灯做成手电筒的应用非常多,可是有的不能用。后来发现是除了把 camera
device的 flashmode设置成torch外还要打开预览:以下是代码:MainActivity.javapackage
com.android.flashlight;import android...
分类:
移动开发 时间:
2014-06-09 22:39:52
阅读次数:
284
题目描述Timy is visiting a beautiful park. There are M
rivers and N lakes(marked 1-N), any two lakes are connected by at most one
river. He knows that the...
分类:
其他好文 时间:
2014-06-09 20:57:26
阅读次数:
259
rite less, do
more.这句话想必是很多语言都提倡的。在此举三个jquery的应用体现一.绑定多个事件类型 $("div").bind("mouseover
mouseout", function () { $(this).toggleClass("over"); ...
分类:
Web程序 时间:
2014-06-09 20:47:18
阅读次数:
261
题目链接The count-and-say sequence is the sequence of
integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one
1"or11.11is read off a...
分类:
其他好文 时间:
2014-06-09 15:53:03
阅读次数:
246
DescriptionConsider a group of N students and P
courses. Each student visits zero, one or more than one courses. Your task is to
determine whether it ...
分类:
其他好文 时间:
2014-06-09 15:36:50
阅读次数:
239
今天开始刷leetcode上的题,争取校招前刷过一遍,从AC率最高的题目开始刷,不废话了,看题题目:Single
NumberGiven an array of integers, every element appearstwiceexcept for one. Find
that single ...
分类:
其他好文 时间:
2014-06-09 12:57:45
阅读次数:
260
提前下载包:1. Java SE Develpoment Kit(JDK),
版本6或者以上;http://download.oracle.com/otn-pub/java/jdk/7u60-b19/jdk-7u60-linux-i586.tar.gz?AuthParam=1401337546_b4...
分类:
移动开发 时间:
2014-06-08 22:14:08
阅读次数:
444
There is an need of kill one port is already in
use. The command is : lsof -i:8000 There will be a list of: command pid user fd
type device size...
分类:
其他好文 时间:
2014-06-08 21:47:33
阅读次数:
366
什么是单一职责原则 什么是单一职责原则? 单一职责原则的英文名称是Single
Responsibility Principle,简称SRP。SRP的原话解释是:There should never be more than one
reason for a class to change.也就是说...
分类:
其他好文 时间:
2014-06-08 19:36:12
阅读次数:
315
1068. Find More Coins (30)Eva loves to collect
coins from all over the universe, including some other planets like Mars. One
day she visited a univers...
分类:
其他好文 时间:
2014-06-08 18:49:44
阅读次数:
432