码迷,mamicode.com
首页 >  
搜索关键字:cache buffer free    ( 18053个结果
Problem LRU Cache
Problem Description:Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.ge...
分类:其他好文   时间:2014-07-07 16:41:12    阅读次数:237
lru cache java
http://www.acmerblog.com/leetcode-lru-cache-lru-5745.htmlacm之家的讲解是在是好,丰富import java.util.LinkedHashMap;public class LRUCache { private int capacit...
分类:编程语言   时间:2014-07-07 15:32:24    阅读次数:281
UBUntu 软件 源配置方法
最近公司产品需要增加一个功能,就是版本自动更新,使用apt-get 实现。apt-get 软件源配置的方法,参见本人资源里的共享。下面是代码中作为升级的一部分。  FILE *fp; char buffer[256]; char source_ok[] = "Reading package lists..."; if(0 > system("mv -f /etc/apt/sources....
分类:其他好文   时间:2014-06-30 08:37:47    阅读次数:228
android图片缓存框架Android-Universal-Image-Loader(二)
这篇打算直接告诉大家怎么用吧,其实这个也不是很难的框架,大致使用过程如下: // 获取缓存图片目录 File cacheDir = StorageUtils.getOwnCacheDirectory(activity, "imageloader/Cache"); ImageLoaderConfiguration config = new ImageLoaderConfigur...
分类:移动开发   时间:2014-06-30 08:13:12    阅读次数:289
Linux下Nginx的安装步骤
Linux下Nginx的安装 如果出现:error: 'ngx_http_file_cache_node_t' has no member named 'length'异常,可能是ngx_cache_purge-2.1.tar.gz版本太旧导致...
分类:系统相关   时间:2014-06-30 00:11:43    阅读次数:401
LeetCode: LRU Cache [146]
【题目】 Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set. get(key) - Get the value (will always be positive) of the key if the key exists in the cache, otherwise return -1. se...
分类:其他好文   时间:2014-06-29 22:45:26    阅读次数:358
Protobuf详解
Protobuf详解按:新公司前端后端,使用的数据化方式是protobuf(ProtocolBuffer)。一,什么是Protobuf官方文档给出的是:alanguage-neutral,platform-neutral,extensiblewayofserializingstructureddataforuseincommunicationsprotocols,datastorage,andmore.二,Protobuf的优点..
分类:其他好文   时间:2014-06-29 21:08:01    阅读次数:347
在Emacs中生成LaTeX公式
苹果系统下面有个LaTeXiT软件,可以方便地生成LaTeX公式,然后拖拽到别的程序中直接使用。在Windows下这方面的工具就比较少了。不过如果装有CTeX中文套装和Emacs的话,倒不妨自己做一个简易的版本。思路很简单:开一个Emacs buffer,编辑好公式,执行自编的texify函数调用相...
分类:其他好文   时间:2014-06-29 19:38:44    阅读次数:581
[转] KVM scalability and consolidation ratio: cache none vs cache writeback
http://www.ilsistemista.net/index.php/virtualization/43-kvm-scalability-and-consolidation-ratio-cache-none-vs-cache-writeback.html?limitstart=0 In the...
分类:其他好文   时间:2014-06-29 19:37:42    阅读次数:265
[转] Barriers and journaling filesystems
http://lwn.net/Articles/283161/ Journaling filesystems come with a big promise: they free system administrators from the need to worry about disk corr...
分类:其他好文   时间:2014-06-29 18:51:33    阅读次数:246
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!