Palindrome PartitioningGiven a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partitioni...
分类:
其他好文 时间:
2014-08-23 21:34:11
阅读次数:
288
实现原理:用httpConnection.setRequestProperty("RANGE", "bytes= xxx-xxx");获取指定的数据块用RandomAccessFile实现文件随机访问,写入指定数据块到文件.关键事项:获取远程文件大小,根据文件大小确定下载线程个数(可固定线程数,也可...
分类:
编程语言 时间:
2014-08-23 12:38:30
阅读次数:
252
今天有个etl开发在droppartition的时候遇到了问题,因为是使用了自己的账号,而hdfs中对应partition的文件属主是hdfs的,在删除时会因为权限问题报错,切换用户为hdfs,做droppartition的错误,还是报错,看来没这么简单。查看表的hdfs属性,目录的属主不是hdfs且目录对hdfs没..
分类:
其他好文 时间:
2014-08-23 02:29:00
阅读次数:
231
New Document/* GitHub stylesheet for MarkdownPad (http://markdownpad.com) */
/* Author: Nicolas Hery - http://nicolashery.com */
/* Version: b13fe65ca28d2e568c6ed5d7f06581183df8f2ff */
/* Source: http...
分类:
数据库 时间:
2014-08-22 19:47:49
阅读次数:
362
1.禁止单个IP 2.禁止IP段$ban_range_low && $ip 另外请注意,PHP的ip2long有bug,请慎用"; //输出是 979569409 echo ip2long('58.99.011.1'),""; //输出是 979568897 echo ip2long('058...
分类:
Web程序 时间:
2014-08-22 10:43:26
阅读次数:
205
sqlserver巧用row_number和partition by分组取top数据
分类:
数据库 时间:
2014-08-22 01:30:35
阅读次数:
320
Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the ord...
分类:
其他好文 时间:
2014-08-21 22:33:34
阅读次数:
240
使用分区数据表: 分区数据表和merge数据表具有相似的作用,但是分区数据表确确实实是一个数据表 ,不像merge是列出数据表的逻辑关系,并且分区数据表可以包括像myisam以外的 的数据表。创建分区数据表: create table 里给出数据列和索引,然后用partition by 定义...
分类:
数据库 时间:
2014-08-21 22:31:04
阅读次数:
418
range的用法:>>> range(1,5) #代表从1到5(不包含5)[1, 2, 3, 4]>>> range(1,5,2) #代表从1到5,间隔2(不包含5)[1, 3]>>> range(5) #代表从0到5(不包含5)[0, 1, 2, 3, 4]列表操作:array = [1, 2, ...
分类:
编程语言 时间:
2014-08-21 21:06:44
阅读次数:
252
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.You should preserve the o...
分类:
其他好文 时间:
2014-08-21 20:58:34
阅读次数:
244