#!/usr/bin/env python# -*- coding: utf-8 -*-#查找IP地址归属地#writer by keery_log#Create time:2013-10-30#Last update:2013-10-30#用法: python chk_ip.py www.goog...
分类:
编程语言 时间:
2014-08-08 12:25:55
阅读次数:
284
1、关键类Lucene的搜索过程中涉及的主要类有下面几个:(1)IndexSearcher:运行search()方法的类(2)IndexReader:对索引文件进行读操作,并为IndexSearcher提供搜索接口(3)Query及其子类:查询对象,search()方法的重要參数(4)QueryPa...
分类:
其他好文 时间:
2014-08-08 12:21:45
阅读次数:
215
url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和delete也可以使用,但仅部分浏览器支持。timeout: 要求为Number类型的参数,设置请求超...
分类:
Web程序 时间:
2014-08-08 09:32:15
阅读次数:
272
解题报告
题意:
略
思路:
单点更新,区间乘积。
#include
#include
#include
#define LL long long
using namespace std;
LL mul[501000];
void update(int root,int l,int r,int p,int v)
{
int mid=(l+r)/2;
if(l==r)...
分类:
其他好文 时间:
2014-08-08 08:29:05
阅读次数:
239
解题报告
题意:
求区间内最大值和最小值的差值。
思路:
裸线段树,我的线段树第一发。
#include
#include
#include
#define inf 99999999
#define LL long long
using namespace std;
LL minn[201000],maxx[201000];
void update(LL root,LL l,LL...
分类:
其他好文 时间:
2014-08-07 23:16:35
阅读次数:
282
解题报告
题意:
略
思路:
线段树单点增减和区间求和。
#include
#include
#include
#define LL long long
using namespace std;
int sum[201000];
void update(int root,int l,int r,int p,int v)
{
int mid=(l+r)/2;
if(l...
分类:
其他好文 时间:
2014-08-07 23:11:02
阅读次数:
378
解题报告
题意:
略
思路:
单点替换,区间最值
#include
#include
#include
#define inf 99999999
using namespace std;
int maxx[808000];
void update(int root,int l,int r,int p,int v)
{
int mid=(l+r)/2;
if(l==...
分类:
其他好文 时间:
2014-08-07 23:09:25
阅读次数:
256
一、环境准备首先肯定是配置开发环境,这里暂时不作详细描述。需要的环境有jdk1.7,MyEclipse,SVN,ant,以及MyEclipse下的两个插件subclipse 和IvyDe,下载地址http://subclipse.tigris.org/update_1.8.x和http://www....
分类:
数据库 时间:
2014-08-07 21:53:00
阅读次数:
316
insert into xbxsselect * from [192.168.1.100].[scmis].[dbo].mdxsdelete from [192.168.1.100].[scmis].[dbo].mdxsinsert into dbxsselect * from [192.168.....
分类:
其他好文 时间:
2014-08-07 21:48:20
阅读次数:
213
fl: 是逗号分隔的列表,用来指定文档结果中应返回的 Field 集。默认为 “*”,指所有的字段。 defType: 指定query parser,常用defType=lucene, defType=dismax, defType=edismax q: query。 q.alt: 当q字段为空时...
分类:
其他好文 时间:
2014-08-07 19:24:30
阅读次数:
343