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-07-11 20:36:27
阅读次数:
234
It's quite simple to run django on nginx on windows. Here are some key steps to follow -1. Download nginx/windows fromhttp://nginx.org/en/download.htm...
npm 管理模块npm安装模块默认为 shell 的当前目录。如果要装成全局的,使用 npm install xss -gnpm help install里的描述是:Packages are dropped into the node_modules folder under the prefix....
分类:
其他好文 时间:
2014-07-11 19:11:53
阅读次数:
602
Map接口 实现Map接口的类用来存储键(key)-值(value) 对。Map 接口的实现类有HashMap和TreeMap等。Map类中存储的键-值对通过键来标识,所以键值不能重复。HashMap: 线程不安全,效率高. 允许key或value为nullHashTable:线程安全,效率低. ....
分类:
其他好文 时间:
2014-07-11 18:56:07
阅读次数:
335
exists keydel key1 key2Redis 的vauleredis 提供五种数据类型:string,hash,list,set 及sorted set。string 是最基本的类型,而且string 类型是二进制安全的。意思是redis 的string 可以包含任何数据。比如jpg 图...
分类:
其他好文 时间:
2014-07-11 12:38:31
阅读次数:
239
Keytool 是一个Java 数据证书的管理工具 ,Keytool 将密钥(key)和证书(certificates)存在一个称为keystore的文件中。在keystore里,包含两种数据:(1)密钥实体(Key entity)——密钥(secret key)又或者是私钥和配对公钥(采用非对称加...
分类:
编程语言 时间:
2014-07-11 11:47:42
阅读次数:
243
BASH中的case结构,可以用于进行多项分支。case "$var" incondition1) ;;condition2) ;;*) default statments;;esac例如:#!/bin/bashecho "Hit a key, then hit return"read...
分类:
其他好文 时间:
2014-07-11 10:44:58
阅读次数:
230
MySQL-Front 出现“程序注册时间到期 程序将被限制模式下运行”解决方式在用mysql-front的时候遇到显示:程序注册时间到期程序将被限制模式下运行。可以在“帮助”菜单下的点“登记”-->把以下的key复制试试,留下以后需要。注意:是整十行一起复制。 gNBpPFgyOw9Rwt/ozs...
分类:
数据库 时间:
2014-07-11 10:42:17
阅读次数:
268
Example XHTML page
以上例子展示,通过 xmlns 来指定命名空间,通过 xmlns:prefix 来指定 前缀,一但指定的前缀,就得在当前元素,以及子元素使用。
有时候为了避免不同语言间的冲突,也需要使用命名空间来限定特性,如下面的例子所示。
Example XHTML page
Hello world!...
分类:
编程语言 时间:
2014-07-11 00:51:47
阅读次数:
339
HashMap简介 HashMap是基于哈希表实现的,每一个元素是一个key-value对,其内部通过单链表解决冲突问题,容量不足(超过了阀值)时,同样会自动增长。 HashMap是非线程安全的,只是用于单线程环境下,多线程环境下可以采用concurrent并发包下的concurrentHash.....
分类:
编程语言 时间:
2014-07-10 16:27:05
阅读次数:
248