对称加密: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
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
Plaster Processing Plant is key crushing
equipment used to crush the large Plaster ore into small particles. We are a
major plaster crusher manufactur...
分类:
其他好文 时间:
2014-05-31 15:52:02
阅读次数:
237
引子:
在大数据时代,总希望存在一个Key-value存储机制,像HashMap一样在内存中处理大量(千万数量级)的key-value对,以便提高数据查找、修改速度。
所以,我们会想到,Memcached和Redis这两个NoSQL数据库(严格来讲二者都不可以算作数据库)。 1、Memcach...
分类:
其他好文 时间:
2014-05-31 15:35:29
阅读次数:
293
Mybatis自动生成代码,需要用到mybatis
Generator,详见http://mybatis.github.io/generator/configreference/generatedKey.htmlinsert语句如果要返回自动生成的key值,一般会在insert里加入useGener...
分类:
其他好文 时间:
2014-05-30 21:44:12
阅读次数:
593
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
创建表的语法:1:关于表的结构的创建 表的字段有那些,什么数据类型创建表: 主键约束(primary
key) 主键不能为空(not null) 一张表只有一个主键,修改表--标识列(identity) --主键约束(primary
key)------pk_字段名 --唯一约束(unique)--...
分类:
数据库 时间:
2014-05-30 01:40:13
阅读次数:
279
红黑树(Red-Black
Tree)红黑树是一种BST,但是每个节点上增加一个存储位表示该节点的颜色(R或者B);通过对任何一条从root到leaf的路径上节点着色方式的显示,红黑树确保所有路径的差值不会超过一倍,最终使得BST接近平衡;红黑树内每个节点包含五个属性:color,
key, lef...
分类:
数据库 时间:
2014-05-29 16:51:27
阅读次数:
400