给定两个串,S和T,在S中找到包含T的最短子串,如果不能包含,返回空字符。Given a string S and a string T, find the minimum window in S which will contain all the characters in T in compl...
Problem:given an array that contains duplicates (except one value), find the one value that does not have a duplicate in that array. Explain the compl...
分类:
其他好文 时间:
2014-11-15 06:35:12
阅读次数:
202
public class ArgsTest { private List args; private ArgsTestCheckPoint checkPoint; public enum ArgsTestCheckPoint { IS_NAME_COR...
分类:
其他好文 时间:
2014-11-10 23:07:42
阅读次数:
223
hadoop 常用配置项——转载:core-site.xmlnamevalueDescriptionfs.default.namehdfs://hadoopmaster:9000定义HadoopMaster的URI和端口fs.checkpoint.dir/opt/data/hadoop1/hdfs/...
分类:
其他好文 时间:
2014-11-03 22:08:11
阅读次数:
289
重做日志(redo log)是由LGWR来进行控制的。Oracle对于DML操作数据的时候,并不会马上去修改数据块,而是产出redo记录,并记录到联机的redo log里,当redo Log用满,或者启动全局checkpoint,也或者alter system switch logfile; 这时都...
分类:
数据库 时间:
2014-10-31 20:27:23
阅读次数:
129
Best Time to Buy and Sell StockSay you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to compl...
分类:
其他好文 时间:
2014-10-22 21:54:00
阅读次数:
192
测试开启前的设备系统准备工作。
接口
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compl...
分类:
其他好文 时间:
2014-10-22 15:59:16
阅读次数:
324
用给自己记录用defmonitor_work_1(content):dict_1={‘service‘:‘rdc_monitor‘,‘checkpoint‘:‘rdc_monitor_log‘,‘title‘:content,‘content‘:content,‘cluster‘:‘public‘,‘grade‘:‘2‘}params=urllib.urlencode(dict_1)urllib.urlopen(‘http://alert.sae.sina.com.cn/new/‘,params)
分类:
Web程序 时间:
2014-10-21 19:49:41
阅读次数:
168
给实时索引添加了merge策略,持续更新时发现有做merge,但索引目录中的段数远远大于RealTimeIndexWriter中的段数,就是有些merge的段应该删除,目录中没有删除。而关闭searcher之后索引目录就变小了,段数也对了。
定位之后发现IndexFileDeleter构造函数中有个checkpoint(segmentInfos,false),false会将第一个commit加入...
分类:
Web程序 时间:
2014-10-18 22:21:46
阅读次数:
255
sqlserver关闭顺序SQLServer在关闭的时候主要做两件事,1是停止来自终端的相应(踢掉用户),2就是执行checkpoint(将内存中的脏数据回写到磁盘)。那么问题来了,SQLServer到底是先踢掉用户还是先checkpoint呢?下面是我做的实验.第一步:开始3502标记,将checkpoint的相关操作写..
分类:
数据库 时间:
2014-10-18 03:05:20
阅读次数:
186