安装Node.js环境 sudo apt-get install nodejs
sudo apt-get install npm 对于不同环境依赖 的node_module可以采用以下命令来重新生成 rm -rf node_modules
npm cache clean
npm install 如果...
分类:
Web程序 时间:
2014-10-08 01:45:24
阅读次数:
272
使用双向链表+map,实现O(1)时间内的get和set
需要注意的是:
1. set时更新tail
size为0时更新头部
size为capacity时删除头部并且更新头部
2. get时更新节点到tail的位置,同时如果是节点是头部的话要更新头部
附上代码:
class LRUCache{
struct Node{
int key;
int...
分类:
其他好文 时间:
2014-10-08 01:04:54
阅读次数:
274
相关类:org.apache.ibatis.executor.CachingExecutor相关代码: public List query(MappedStatement ms, Object parameterObject, RowBounds rowBounds, ResultHandler.....
分类:
其他好文 时间:
2014-10-07 13:46:53
阅读次数:
272
方法一:搜索当前的linux下的opencv支持的版本,我的是14.04为2.3版本.$ apt-cache search opencv安装下面三个,用来运行OpenCV程序:apt-get install libcv2.3 libcvaux2.3libhighgui2.3使用OpenCV来编写程序...
分类:
系统相关 时间:
2014-10-06 16:45:30
阅读次数:
225
float cacheSize = dirSize(new File(Environment.getExternalStorageDirectory() + AppConstants.APP_CACHE_FOLDER)) / 1024.0f / 1024.0f;tvCacheSize.setText...
分类:
移动开发 时间:
2014-10-06 02:48:19
阅读次数:
206
[root@localhost ~]# vi /etc/squid/squid.conf## Recommended minimum configuration:#acl manager proto cache_objectacl localhost src 127.0.0.1/32 ::1acl ...
分类:
其他好文 时间:
2014-10-05 11:33:28
阅读次数:
257
之前一篇文章写的是 Android 自动化测试(1)如何安装和卸载一个应用(java) ,下面再探索一下如果在普通java应用程序中,根据ID来查找对象
1、类库依赖:
The library dependencies are:
chimpchat.jar,common.jar,ddmlib.jar,guava-13.0.1.jar,sdklib.jar,hierchyviewer2lib.jar
They can all be found in the sdk/tools/lib subdirector...
分类:
移动开发 时间:
2014-10-04 23:29:37
阅读次数:
287
proxy_set_header重新封装包头,和日志格式有关系,定义在location里面proxy_cache是否开启nginx缓存,定义在location里面proxy_cache_vaild对于http的什么状态码进行缓存以及缓存的时间,定义在location里面proxy_cache_path缓存的路径,定义在server外面,location定义在serv..
分类:
其他好文 时间:
2014-10-04 04:57:06
阅读次数:
196
A method and apparatus for verification of coherence for shared cache components in a system verification environment are provided. With the method an...
分类:
移动开发 时间:
2014-10-04 01:44:35
阅读次数:
400
以下是一幅虽然信息包含量有限、但足够以最简洁的方式说明了“什么是HTTP1.1缓存策略”的图 缓存和缓存策略 web缓存(web cache)或代理缓存(proxy cache)是一种特殊的HTTP代理服务器。缓存减少了冗余数据的传输、缓解带宽瓶颈、 降低距离时延。 缓存策略就是在采用缓存...
分类:
其他好文 时间:
2014-10-04 00:33:35
阅读次数:
1704