1、一个优秀的泛型,建议不要这样写public static Map getMap(String source, String firstSplit, String secondSplit)建议可以这样写public static Map getMap(List keys, List value.....
分类:
编程语言 时间:
2014-11-20 13:26:12
阅读次数:
175
问题描述和分析:
在手机休眠状态下通过按键唤醒手机的过程中getevent获取到的event事件信息和正常状态下信息不一致,导致某应用程序出现异常。
正常状态下按下power key的log信息和其对应的event事件:
[ 45.663482] c0 [SPRD_EIC_KEYS_INFO] Pressed! Key:Power Key ScanCode:116 value:1
0...
分类:
其他好文 时间:
2014-11-20 12:00:41
阅读次数:
245
1、监控端口的几个主要Keys:net.tcp.listen[port]ChecksifthisportisinLISTENstate.0-itisnot,1-itisinLISTENstate.监控TCP端口是否监听net.tcp.port[<ip>,port]Check,ifitispossibletomakeTCPconnectiontotheportnumber.0-cannotconnect,1-canconnect.IPaddressisoptio..
Updating a DictionaryIn this problem, a dictionary is collection of key-value pairs, where keys are lower-case letters, and values are non-negative in...
分类:
其他好文 时间:
2014-11-19 07:04:07
阅读次数:
223
eclipse最常用最有用,写代码必须用到的一些快捷键。如果大家把这些快捷键都很好的运用,写代码的效率一定会有提高。当然你也可以通过菜单栏中Window–>Preferences–>General–>Keys来查看和修改快捷键绑定。编辑Ctrl+1 快速修复(最经典的快捷键,就不用多说了,可以解决很...
分类:
其他好文 时间:
2014-11-17 22:38:52
阅读次数:
249
function insert($table,$arr){ //使用implode拆分字符串 **$str = "`".implode(‘`,`‘, array_keys($arr))."`"; //注意标点符号的运用** //现在数组键名变为 ‘0‘=>‘user‘ foreach ($arr as $val) { //遍历数组键值...
分类:
其他好文 时间:
2014-11-17 19:52:08
阅读次数:
273
exists(key):确认一个key是否存在
del(key):删除一个key
type(key):返回值的类型
keys(pattern):返回满足给定pattern的所有key
randomkey:随机返回key空间的一个key...
分类:
其他好文 时间:
2014-11-17 10:40:50
阅读次数:
285
1、创建~/.ssh目录mkdir~/.ssh2、生成公匙cd~/.sshssh-keygen-trsa在这个过程中一直回车就可以了3、查看生成的文件ls会看到生成了id_rsa和id_rsa.pub两个文件4、将id_rsa.pub公匙添加到authorized_keys中catid_rsa.pub>>authorized_keys5、分配权限chmod700~/.ssh/author..
分类:
系统相关 时间:
2014-11-16 18:52:47
阅读次数:
267
window, preferrence, general, keys, command: format source, binding: XXXXX...
分类:
系统相关 时间:
2014-11-16 18:43:45
阅读次数:
179
if (!ModelState.IsValid) { List sb = new List(); //获取所有错误的Key List Keys = ModelState.Keys.ToList(); //获取每一个key对应的ModelStateDi...