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
欢迎转载,转载请注明出处,徽沪一郎。概要本篇主要阐述在TaskRunner中执行的task其业务逻辑是如何被调用到的,另外试图讲清楚运行着的task其输入的数据从哪获取,处理的结果返回到哪里,如何返回。准备spark已经安装完毕spark运行在local mode或local-cluster mod...
分类:
其他好文 时间:
2014-07-07 14:20:42
阅读次数:
267
I Can Guess the Data Structure!Time limit: 1.000 secondsThere is a bag-like data structure, supporting two operations:1 xThrow an element x into the b...
分类:
其他好文 时间:
2014-07-07 13:26:22
阅读次数:
296
有一张图能非常清晰的表示出Oracle物理结构与逻辑结构的区别;如下图:对上图的解释:每个数据库都必须由一个或多个表空间组成。(一对多关系)每个表空间都必须由一个或多个数据文件(data file)组成。(一对多关系)每个表空间都可以包含一个或多个段。(一对多关系)每个数据文件都必须由一个或多个操作...
分类:
数据库 时间:
2014-06-30 23:54:32
阅读次数:
485
在很多时候我们返回值使用json会更方便一点,下面我把我常用到的返回值封装代码贴出来。 public class ApiJsonResult { public T Data { get; set; } public ApiJsonError Error { ge...
分类:
其他好文 时间:
2014-06-30 23:40:54
阅读次数:
233
总结:新搭编译安装的 nginx+php+mysql环境,运行之前开发的项目遇到了没有安装pdo的问题
1.进入到php5的源码包里面,ext下面,找到pdo_mysql文件夹
首先执行:/usr/loca/php5/bin/phpize
2.进行编译。
./configure --with-php-config=/usr/local/php5/bin/php-config --with-...
分类:
数据库 时间:
2014-06-30 10:05:01
阅读次数:
216
数据项中引入模型/视图架构,可以方便的将数据与表现层分开。
-------------------------------------
为每个视图都提供了一个默认的委托——可以使用自定义的委托来替换显示没一项,并为可编辑项提供一个合适的编辑器。
-------------------------------------
模型:用于存储数据项(data item)。
纯粹的视图部件:Q...
分类:
其他好文 时间:
2014-06-30 09:39:25
阅读次数:
1128
Linux下Memcached的安装步骤,如果出现/usr/local/memcached/bin/memcached: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory异常在/etc/ld.so.conf中加入/usr/local/lib这一行,保存之后,再运行:/sbin/ldconfig –v更新一下配置即可。...
分类:
系统相关 时间:
2014-06-30 09:20:50
阅读次数:
320
// Private Data Storage
pm.addIQProvider("query", "jabber:iq:private",new PrivateDataManager.PrivateDataIQProvider());
// Time
try {
pm.addIQProvider("query", "jabber:iq:time",Class.forName(...
分类:
移动开发 时间:
2014-06-30 00:41:31
阅读次数:
310
网上的文章都知道在HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer 目录下有控制隐藏驱动器隐藏控制面板的键值,通过修改这些键值来控制是否可以改变windows的配置或者权限,或者掩藏或者显示什么。(必须要重新启动)那么谁来控制这个开关呢?...