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
SELECT U.USER_NAME, APP.APPLICATION_SHORT_NAME,
FAT.APPLICATION_NAME, FR.RESPONSIBILITY_KEY, FRT.RESPONSIBILITY_NAME, FF...
分类:
数据库 时间:
2014-05-22 05:25:27
阅读次数:
306
原文链接:http://www.cppblog.com/wolf/archive/2014/05/09/69089.html在MySQL
3.23.44版本后,InnoDB引擎类型的表支持了外键约束。
外键的使用条件:1.两个表必须是InnoDB表,MyISAM表暂时不支持外键(据说以后的版本有可能...
分类:
数据库 时间:
2014-05-22 04:28:39
阅读次数:
459
grep -2 -iIr "err\|warn\|fail\|crit" /var/log/*
查找日志中的所有问题grep . filename >filename1 移除空行cat site.log | grep -i unica | tail
-n 10find /path -name \*....
分类:
其他好文 时间:
2014-05-22 03:42:01
阅读次数:
306
import java.io.IOException;import
java.util.StringTokenizer;import org.apache.hadoop.conf.Configuration;import
org.apache.hadoop.fs.Path;import org.ap...
分类:
其他好文 时间:
2014-05-22 01:11:55
阅读次数:
337
1.编译时出现No rule to make target
错误,尝试删除XXX/proj.android/obj/local/armeabi/objs这个文件夹。2.android.mk正确写法LOCAL_PATH
:= $(call my-dir)include $(CLEAR_VARS)LOC...
分类:
移动开发 时间:
2014-05-21 22:59:16
阅读次数:
374
p是输入目录代码如下importosdefgetDirList(p):#b=[];filepath=piffilepath=="":returnbfilepath=filepath.replace("/","\\")iffilepath[-1]!="\\":filepath=filepath+"\\"a=os.listdir(filepath)#print(a)forxina:path=filepath+xprint(path)ifos.path.isdir(path):c=getDirLi..
分类:
编程语言 时间:
2014-05-21 01:31:14
阅读次数:
417
android手机连电脑打开usb调试,adbdevices显示unauthorized,eclipse中的DDMS中的设备一直是offline状态你是否已经拔插了手机数据线无数次,重启过无数遍手机与电脑,电脑上无数次运行adbkill-serveradbstart-server,adbshell,或者用豌豆荚,或者用各种手机连接助手,还删除..
分类:
移动开发 时间:
2014-05-21 00:56:02
阅读次数:
1520
1.HashSet内的对象无法remove:在Java中HashSet的底层的实现是通过Map来实现,将要保存的对象的hashcode值作为Key,使用一个dummy作为Value.在对象被放入Set之后,如果有操作改变影响该对象的hashcode的变量,会造成该对象无法被remove,因为remove时是通过hashcode来查找Set内的..
分类:
其他好文 时间:
2014-05-20 19:57:22
阅读次数:
294
http://qt-project.org/doc/qtcreator-3.0/creator-project-cmake.html方法1:使用qmake编辑工程文件xxxx.pro添加equals(QT_ARCH,"arm"){target.path=/tmp/$${TARGET}/binINSTALLS+=target}CONFIG(debug,debug|release){message(thisisdebugversion)}else{DEFINES+=QT_NO_DEBUG_..
分类:
系统相关 时间:
2014-05-20 18:15:36
阅读次数:
478