自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

hpb21的专栏

理想迈进中

  • 博客(8)
  • 资源 (8)
  • 问答 (1)
  • 收藏
  • 关注

转载 java程序性能优化

一、避免在循环条件中使用复杂表达式在不做编译优化的情况下,在循环中,循环条件会被反复计算,如果不使用复杂表达式,而使循环条件值不变的话,程序将会运行的更快。 例子: import java.util.vector;class cel { void method (vector vector) { for (int i = 0; i < vect

2012-09-26 21:34:51 1123

转载 hibernate Restrictions用法 MatchMode.ANYWHERE

from:http://hi.baidu.com/gebitan505/item/b40dd54b28553209e9350418 方法说明Restrictions.eq=Restrictions.allEq利用Map来进行多个等于的限制Restrictions.gt>Restrictions.ge>=Restrictions.lt<Re

2012-09-23 16:15:23 547

原创 spring+quartz定时任务

导入spring quartz jar包配置:     com.Task                   0 0 1 * * ? *                   com.Task类;public class fenboSchedule extends QuartzJobBean { pr

2012-09-13 19:58:46 782

转载 hibernate的findByExample

from http://blog.csdn.net/c1005351789/article/details/7008222;用了这么长时间的hibernate/spring,如果不是今天用的findByExample方法到现在还不知道findByExample的机制。惭愧Class User{    String username;    String password =

2012-09-11 21:45:44 2611

转载 Hibernate的merge与update方法的区别

今天做了个测试,写了个测试用例来看看merge与update时控制台打印出来的日志有什么不一样。实体bean很简单,就id和name两个字段,接下来分别给出以下几种测试情形的控制台日志内容:1. 数据库记录已存在,更改person的name为一个新的name。 merge方法打印出的日志如下: Hibernate: select person0_.id as id0_0_,

2012-09-11 21:31:50 545

原创 mysql重复插入

long id1 = 3; long id2 = 3; Connection conn = null; try { Class.forName("com.mysql.jdbc.Driver"); conn = DriverManager .getConnection("jdbc:mysql://localhost/test?user=root&pass

2012-09-07 19:20:59 733

原创 xuggle学习-IContainer2

通过IContainer主要可以获取视频/音频文件的相关信息以及音视频信息,如起始时间,时常,比特率等等。 public static void main(String[] args) { String filename = "c:/0824.flv"; // Create a Xuggler container object IContainer cont

2012-09-05 20:32:10 2960 2

原创 xuggle学习-IContainer

IContainer可用于本地视频流或网络视频的读取。基本用法如官方:IContainer container = IContainer.make();if (container.open("myfile.flv", IContainer.Type.READ, null) <0) throw new RuntimeException("failed to open"); int n

2012-09-04 18:42:15 4937

volley实例

volley实例

2014-07-24

库封装总结:工厂方法demo

android库封装总结:采用了工厂方法模式的实现,在android开发中,比较常用的。

2014-06-30

xuggle 动态库

将该文件拷贝到本地jdk的bin目录下,以及c:/windows/system32目录下 ,然后即可运行demo代码

2013-10-08

xuggle-samples

xuggle学习官方例子,很详细,包括jar包中各种类的使用及junit,在demo包下包含音频、视频解码的详细例子。

2013-09-29

redis个人总结

从redis数据结构、项目应用、主从复制、数据存储角度结合资料总结,如何与mysql同步分析等

2012-10-24

算法作业-众数 动态规划 最近点对 排序

学算法的同学可以参考参考,虽然不是很全.主要包括众数 ,动态规划,最近点对,各种排序等

2011-05-07

apache-ant

apache antapache-antapache-antapache-antapache-antapache-antapache-antapache-ant

2010-06-04

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除