对称加密:DES(Data Encryption Standard), 1976,
容易被破解,不安全AES(Advanced Encryption Standard orRijndael), around 2001,目前最流行
aes-128|192|256非对称加密(public-key cry...
分类:
其他好文 时间:
2014-06-07 02:16:58
阅读次数:
218
object fontname = "Wingdings 2"; object uic = true;
doc.Bookmarks.get_Item(ref lblmark).Range.InsertSymbol(-4014, ref fontname, ref
uic, ref missing)....
分类:
其他好文 时间:
2014-06-04 18:53:16
阅读次数:
866
1 innodb 自增列出现重复值的问题 先从问题入手,重现下这个buguse test;drop
table t1;create table t1(id int auto_increment, a int, primary key (id))
engine=innodb;insert into t...
分类:
数据库 时间:
2014-06-03 13:24:55
阅读次数:
503
关于index_hint
在mysql查询语句中可以通过指定index_hint来告诉优化器如何使用索引,详细可以参考这里index_hint: USE {INDEX|KEY} [FOR
{JOIN|ORDER BY|GROUP BY}] ([index_list]) | IGNO...
分类:
数据库 时间:
2014-06-03 13:05:59
阅读次数:
394
在项目中,登录时需要enter按钮提交页面所以需要监听键盘输出但是在火狐中不支持event.code所以换了中写法1:form中加入时间传入event2:监听判断是否为enter按钮。
function onKeyPressBlockNumbers(e) { var key = ...
分类:
编程语言 时间:
2014-05-31 16:55:04
阅读次数:
281
Mybatis自动生成代码,需要用到mybatis
Generator,详见http://mybatis.github.io/generator/configreference/generatedKey.htmlinsert语句如果要返回自动生成的key值,一般会在insert里加入useGener...
分类:
其他好文 时间:
2014-05-30 21:44:12
阅读次数:
593
http://hi.baidu.com/captives/item/25c8b80170a9b0ccf45ba6f8————————————————————————————————————————————————————————packagedtm.tools;importjava.io.Buffe...
分类:
编程语言 时间:
2014-05-30 19:51:52
阅读次数:
378
Design and implement a data structure for Least
Recently Used (LRU) cache. It should support the following
operations:getandset.get(key)- Get the valu...
分类:
其他好文 时间:
2014-05-30 15:09:06
阅读次数:
223
参考网址:http://blog.csdn.net/hmily7532361/article/details/18368235 在安卓中
自定义Adapter时,使用ViewHolder可缓存每个Item的View,减少一些不必要的操作,提高性能。在网上看到一种比较简洁的写法,避免每个自定义的Ada...
分类:
其他好文 时间:
2014-05-29 17:02:49
阅读次数:
291
红黑树(Red-Black
Tree)红黑树是一种BST,但是每个节点上增加一个存储位表示该节点的颜色(R或者B);通过对任何一条从root到leaf的路径上节点着色方式的显示,红黑树确保所有路径的差值不会超过一倍,最终使得BST接近平衡;红黑树内每个节点包含五个属性:color,
key, lef...
分类:
数据库 时间:
2014-05-29 16:51:27
阅读次数:
400