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-23 09:59:05
阅读次数:
257
cd /usr/src/wget
http://www.linuxvirtualserver.org/software/kernel-2.6/ipvsadm-1.24-6.src.rpmrpm
-ivh ipvsadm-1.24-6.src.rpm #会有Header V3 DSA signatur...
分类:
系统相关 时间:
2014-05-23 08:48:25
阅读次数:
323
leetcode上刷题。碰到一题实现LRU算法的题目。LRU,Least recently
used。是一种常见的cache和页面替换算法。算法和原理可以参阅相关wiki。leetcode上的这一题,时间要求很苛刻,如果达不到O(1)复杂度的话,基本上会TLE。所以,这一题如果用C++来解的话,需要...
分类:
编程语言 时间:
2014-05-22 03:34:16
阅读次数:
353
1. Post: http://localhost:11804/My/Commentfor
plain html parameter submission, like the GET in URL:Request Header:User-Agent:
FiddlerContent-Length: 3...
分类:
其他好文 时间:
2014-05-21 20:54:49
阅读次数:
346
如果你已经开始了 Windows Phone 8.1 的学习,就会发现许多在 8.0
下的控件在 8.1 中都发生了变化,以下就谈谈几个 8.1 下的新控件以及与 8.0 控件的改变。1. TextBox,
AutoSuggestBoxTextBox 终于有了 Header 属性,再也不用为 Tex...
1 #include "stdafx.h" 2 #include 3 #include 4
#include 5 #include 6 #include 7 8 #define MAX_VIDEO_BUFF 1024 9 10 struct
Header 11 { ...
分类:
其他好文 时间:
2014-05-21 20:04:15
阅读次数:
377
1、下载python3.3安装包#wget wget --no-cookie
--no-check-certificate --header "Cookie:gpw_e24=http%3A%2F%2Fwww.oracle.com%2F"
http://www.python.org/ftp/pytho...
分类:
编程语言 时间:
2014-05-21 17:23:59
阅读次数:
391
代理模式【PROXY PATTERN】
header("Content-type: text/html; charset=UTF-8");
/**
* 什么是代理模式呢?我很忙,忙的没空理你,那你要找我呢就先找我的代理人吧,
* 那代理人总要知道被代理人能做哪些事情不能做哪些事情吧,那就是两个人具备同一个接口,
* 代理人虽然不能干活,但是被代理的人能干活呀。
*/...
分类:
Web程序 时间:
2014-05-21 15:47:31
阅读次数:
339
ibm存储适用,其他存储有类似参数。 1、调整全局cache参数1、1 start and stop cache flush:这两个参数影响控制器处理cache区域的操作,在这中情况下是按照先进先出的原则往磁盘上写数据。这只对打开了写cache的情况下适用。 在一般的情况下,在决大多数时候start的值大于stop的值。但是也有少量的情况下start等于stop的值。如start=stop=80%...
分类:
其他好文 时间:
2014-05-21 13:27:28
阅读次数:
218
BSSID的值是路由器无线MAC地址,具体相信IEEE 802.11规范。
MAC地址在路由器上存储位置一半为Factory/factory分区的第四个字节(从0开始),小端字节序。
The BSSID included in the MAC Header transmitter
address field of a Beacon frame when the multiple BSSID...
分类:
其他好文 时间:
2014-05-21 09:59:36
阅读次数:
326