java.io.IOException: This archive has already been finished
at org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream.finish(ZipArchiveOutputStream.java:406)
at com.xunge.AESFileEnc...
分类:
编程语言 时间:
2015-06-15 18:41:13
收藏:
0 评论:
0 赞:
0 阅读:
400
算法:两种方式(递归/循环)实现二分查找...
分类:
编程语言 时间:
2015-06-15 18:41:01
收藏:
0 评论:
0 赞:
0 阅读:
139
作死就打地鼠...
分类:
编程语言 时间:
2015-06-15 18:40:23
收藏:
0 评论:
0 赞:
0 阅读:
149
[JAVA]利用google的barcode4j生成二维码和条形码
1.barcode4j介绍
barcode4j是一款开源的条形码生成库,该库由Java语言编写。能够生成很多种编码的条形码,比如:code-39,code-128等等;
2 .在官方网站上下载http://barcode4j.sourceforge.net/相应的文件...
分类:
编程语言 时间:
2015-06-15 18:39:53
收藏:
0 评论:
0 赞:
0 阅读:
478
------- android培训、java培训、期待与您交流! ----------反射反射只要知道其类对象就可以获得其内部所有属性对象和方法对象。只要知道其类的实例对象就可以获得其类对象。Class类。不同于关键字class,他是对java中各个类的封装,是对所有类的抽象描述,而某一个具体的类....
分类:
编程语言 时间:
2015-06-15 18:37:32
收藏:
0 评论:
0 赞:
0 阅读:
235
地址:http://terrier.org/docs/v3.5/dfr_description.htmlThe Divergence from Randomness (DFR) paradigm is a generalisation of one of the very first models ...
分类:
编程语言 时间:
2015-06-15 18:37:22
收藏:
0 评论:
0 赞:
0 阅读:
354
这个程序主要还是靠钩子实现,然后利用manuResetEvent同步控制关机线程 。关机线程用重定向实现using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using ...
分类:
编程语言 时间:
2015-06-15 18:37:03
收藏:
0 评论:
0 赞:
0 阅读:
141
Find the total area covered by two rectilinear rectangles in a 2D plane.Each rectangle is defined by its bottom left corner and top right corner as sh...
分类:
编程语言 时间:
2015-06-15 18:36:02
收藏:
0 评论:
0 赞:
0 阅读:
216
主要代码:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.T...
分类:
编程语言 时间:
2015-06-15 18:32:42
收藏:
0 评论:
0 赞:
0 阅读:
133
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.For example, given the following matr...
分类:
编程语言 时间:
2015-06-15 18:32:02
收藏:
0 评论:
0 赞:
0 阅读:
180
第一、四个用途用途一:定义一种类型的别名,而不只是简单的宏替换。可以用作同时声明指针型的多个对象。比如:char* pa, pb; // 这多数不符合我们的意图,它只声明了一个指向字符变量的指针, // 和一个字符变量;以下则可行:typedef char* PCHAR; // 一般用大写PCHAR...
分类:
编程语言 时间:
2015-06-15 18:26:02
收藏:
0 评论:
0 赞:
0 阅读:
123
本篇博客是转过来的。 但是略有改动感谢 http://my.oschina.net/noahxiao/blog/101558摘要从使用场景的角度出发来介绍对ReentrantLock的使用,相对来说容易理解一些。场景1:如果发现该操作已经在执行中则不再执行(有状态执行) a、用在定时任务时,如果任务...
分类:
编程语言 时间:
2015-06-15 18:24:22
收藏:
0 评论:
0 赞:
0 阅读:
209
以下两段程序的输出是什么?程序1:#include "stdio.h"class Base { public: int Bar(char x) { return (int)(x); } virtual int Bar(int x) { ...
分类:
编程语言 时间:
2015-06-15 18:24:12
收藏:
0 评论:
0 赞:
0 阅读:
260
题目:模拟窗口卖票,四个窗口同时对外开放售票,需要按顺序售出。要求:输出每一张票的售出时间和售出窗口,不能出现票未售出或者被售出多次的情况。using System;using System.Collections.Generic;using System.Linq;using System.Tex...
分类:
编程语言 时间:
2015-06-15 18:24:02
收藏:
0 评论:
0 赞:
0 阅读:
208
Given an array of integers, find out whether there are two distinct indices i and j in the array such that the difference between nums[i] and nums[j] ...
分类:
编程语言 时间:
2015-06-15 18:23:43
收藏:
0 评论:
0 赞:
0 阅读:
1558
利用移位、加减法实现整数开平方算法的方法(转)本算法只采用移位、加减法、判断和循环实现,因为它不需要浮点运算,也不需要乘除运算,因此可以很方便地运用到各种芯片上去。我们先来看看10进制下是如何手工计算开方的。先看下面两个算式,x = 10*p + q (1)公式(1)左右平方之后得:x^2 = 10...
分类:
编程语言 时间:
2015-06-15 18:19:03
收藏:
0 评论:
0 赞:
0 阅读:
165
方法一:在dos或Windows命令行下运行:regsvr32 ocxname.ocx 注册示例:regsvr32 netshare.ocx //注册netshare.ocx控件regsvr32 /u netshare.ocx //解除netshare.ocx控件的注册如果netshare.ocx....
分类:
编程语言 时间:
2015-06-15 18:18:22
收藏:
0 评论:
0 赞:
0 阅读:
874
Given a complete binary tree, count the number of nodes.Definition of a complete binary tree from Wikipedia:In a complete binary tree every level, exc...
分类:
编程语言 时间:
2015-06-15 18:16:52
收藏:
0 评论:
0 赞:
0 阅读:
565
Python之print详解http://www.jb51.net/article/55768.htmprint的一些基本用法,在前面的讲述中也涉及一些,本讲是在复习的基础上,尽量再多点内容。eval()在print干事情之前,先看看这个东东。不是没有用,因为说不定某些时候要用到。复制代码 代码如下...
分类:
编程语言 时间:
2015-06-15 18:14:12
收藏:
0 评论:
0 赞:
0 阅读:
350
BM25算法的全称是 Okapi BM25,是一种二元独立模型的扩展,也可以用来做搜索的相关度排序。Sphinx的默认相关性算法就是用的BM25。Lucene4.0之后也可以选择使用BM25算法(默认是TF-IDF)。如果你使用的solr,只需要修改schema.xml,加入下面这行就可以BM25也...
分类:
编程语言 时间:
2015-06-15 18:13:22
收藏:
0 评论:
0 赞:
0 阅读:
3138