自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(79)
  • 资源 (41)
  • 收藏
  • 关注

原创 也学习Java/JVM/GC (三)

GC算法目前HotSpot的GC算法是针对分代的GC算法,主要包括串行GC、并行GC、CMS GC和G1。一、串行GC串行GC可以在JVM的启动参数上加-XX:+UseSerialGC这个非标准化参数实现。

2016-10-28 09:37:44 1687 3

原创 ibatis迁移到mybatis注意事项

1、resultMap中的id在ibatis中为在mybatis中为2、别名在ibatis中为在mybatis中为type="com.aaa.bbb.App" />3、在ibatis中的parameterClass对应mybatis中的 parameterType4、在ibatis中的resultClass对应mybatis中的 re

2016-10-27 17:43:33 1761

原创 git push命令简化

git命令简化在开发过程中,git是当前必不可少的版本管理工具,但是在git提交代码的时候,总是要经过add,commit,push三个步骤,比较复杂,如果使用的是linux操作系统,可以简化如下:function gpush() { if [ $# -lt 2 ]; then echo -e "\e[31mSorry, mis

2016-09-30 09:07:45 1975

原创 也学习Java/JVM/GC (二)

二、JVM的堆结构及参数配置对于开发人员来说,最多接触的就是程序启动参数的设置。程序的启动参数对系统具有至关重要的影响。其中包含堆大小的设置、年轻代大小、年老代大小,Perm区等大小,以及垃圾回收算法,年轻代的垃圾回收算法,年老代垃圾回收算法等。1、JVM的堆结构如下图所示: 从上图可见,JVM的堆分为eden、s0、s1、old generation和perm五个部分。一般情况下,JVM进行内

2016-09-22 16:42:18 620 1

翻译 FFmpeg 参数详解(二)

5、参数选项如果没有特殊声明,所有的数字参数以一个字符串代表数字的形式作为输入接收,所有的数字参数都会带着一个SI前缀单位,例如’K’, ’M’或者’G’。如果 ‘i’被追加到SI单位的前缀上,完整的前缀会被当做i的二进制倍数解释,倍数需要乘以1024,而不是乘以1000。追加 ‘B’到前缀的倍数是8。下面几个参数的用法都是作为数字的后缀,例如’KB’,’MiB’,’G’和’B’。

2016-09-21 15:15:12 5877

翻译 FFmpeg 参数详解(一)

1、ffmpeg语法结构:ffmpeg [global_options] {[input_file_options] -i input_file} ... {[output_file_options] output_file} ...2、描述ffmpeg可以从直播的音视频源抓取输入作为一个非常快速的视频和音频转换器。它也能用高品质的多想过滤器转换在任意采样率和动态调整尺寸之间的视频

2016-09-13 18:08:44 22275

原创 ImageMagicK编译--合成图片为gif

tar xvfz ImageMagick-6.6.9-5.tar.gzcd ImageMagick-6.6.9-5export CPPFLAGS=-I/home/admin/ImageMagick_build/includeexport LDFLAGS=-L/home/admin/ImageMagick_build/lib./configure --prefix=/home

2016-08-17 10:03:03 1729

原创 spring 配置文件路径使用

1、在同一个工程中的文件可以通过classpath:db-config/datasource/datasource.xml来加载配置文件。2、如果使用二方包的情况下,比如一个web工程,一个dal工程,而配置文件都在dal工程中,需要像下面这样引用配置文件:classpath*:db-config/datasource/datasource.xml3、如果在dal的二方包中

2016-08-17 09:35:59 1555

原创 ImageMagick编译

首先下载ImageMagick源码包tar xvfz ImageMagick-6.6.9-5.tar.gzcd ImageMagick-6.6.9-5export CPPFLAGS=-I/home/admin/ImageMagick_build/includeexport LDFLAGS=-L/home/admin/ImageMagick_build/lib./conf

2016-08-10 20:04:28 2225

原创 也学习Java/JVM/GC(一)

也学习Java/JVM/GC一、JVM 的内存结构;二、内存分配;三、GC的日志;四、内存回收(GC);简言java 程序可以使用2种方式启动,client模式和server模式。server模式尽可能的加快运算速度,server模式的目的是服务于长期运行的服务端系统,与启动速度和占用内存这两个方面来比较,server模式更倾向于服务的运算速度。clie

2016-08-09 22:24:41 444

原创 jgit pull 分之代码

import java.io.File;import java.util.ArrayList;import java.util.List;import org.eclipse.jgit.api.CreateBranchCommand;import org.eclipse.jgit.api.Git;public class GitTest { public static Git gitResult

2016-05-04 15:53:19 3902

转载 mysql 批量删除数据库中的所有数据

select CONCAT("truncate ", table_name, ";") from INFORMATION_SCHEMA.TABLES where TABLE_SCHEMA='clouddrive_00'来自:

2014-04-18 09:40:47 2130

转载 shell查询执行脚本的路径

代码如下:#!/bin/bashbasepath=$(cd `dirname $0`; pwd)echo $basepath来源:http://sexywp.com/bash-how-to-get-the-basepath-of-current-running-script.htm

2014-01-16 17:44:57 844

原创 spring事务处理的几种方式

一、声明式事务1、使用配置文件建立一个事务性的服务接口package x.y.service;public interface FooService { Foo getFoo(String fooName); Foo getFoo(String fooName, String barName); void insertFoo(Foo foo); void

2013-10-12 17:46:10 861

原创 设计模式之单例模式

最近一直在看设计模式,为了能够对设计模式有个较深的理解,同时能够把设计模式深入到自我日常开发的理念中,特做此记录!单例模式:在jvm中只存在唯一的一个类实例,在全局中只存在一个访问点。为什么有这样的类:对于一些设备或产品只希望只有一种访问方式,例如对于注册表的修改,如果同时存在多个实例,注册表不知道会被改成什么样子;还有比如对于win的共享桌面,如果存在多个人能够对桌面同时共享,会

2013-09-09 08:45:46 732

原创 常用svn命令

日常开发常用的svn命令如下:1、从代码库中拉下代码,即checkout      将代码checkout到当前目录:svn co url      将代码checkout到指定目录:svn co url directory2、把新建的文件提交的svn代码库,这需要两个步骤       首先把文加加入svn管理:svn add filename       其次提交文件:s

2013-09-05 09:01:31 28998

原创 html select元素无法选择

在编写jsp或者类似html文件时,如果不小心用label包含着select便会发生错误,造成select的option无法选择测试用例如下: test *name - 1 2 3

2013-07-26 08:47:24 6475

转载 ubuntu 12.04卸载 vmware

在ubuntu 安装玩VMware 9 后,始终卸载不掉,一直提示:The vmware installer could not shut down all running virtual machines. if you have ACE VMs open, please shut them down or suspend them now and press 'Retry' to co

2013-07-23 08:55:20 7420

原创 python ftp上传文件代码

主要使用ftp命令完成上传操作,上传过程中需要注意中文乱码问题#!/usr/bin/python#coding=utf-8from ftplib import FTP #引入ftp模块import osftp = FTP("ip") #设置ftp服务器地址ftp.login('username', 'password') #设置登录账户和密码ftp.re

2013-07-19 15:03:19 5486

转载 python 遍历目录

第一种方式import osdir = '/home/donghuixiedh/workspace'def readfile(dir): for f in os.listdir(dir): file = os.path.join(dir, f) if os.path.isdir(file): readfile(file) elif os.path.isfile

2013-07-18 20:09:53 4229

原创 python读写二进制文件

需求python读取一个二进制文件,然后写入另一个文件,在这里关键是判断文件长度的语句:os.path.getsize('file')#!/usr/bin/env pythonimport osf1 = open("wxPython4.jpg", "w")#f1.write(data)count = os.path.getsize('wxPython.jpg')data = "

2013-07-18 19:37:18 4428

转载 ubuntu 下 更改eclipse的提示背景颜色

转自:http://blog.csdn.net/ningxialieri/article/details/8128590

2013-05-16 13:31:20 805

原创 mvn eclipse:eclipse 引入本地jar包失败

使用 mvn eclipse:eclipse构建工程时,引用本地自己写的一个工程,发现怎么都引用不成功查看.classpath文件时发现引用的文件是以这种形式出现的而查看引用别的jar包都是这样kind是不同的最后发现需要把maven 的eclipse plugin设置一个参数 "useProjectReferences",这个参数默认值为true

2013-05-03 17:09:42 6088

转载 Error Code: 1267. Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT

Mysql查询报错Error Code: 1267. Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '='0.001 sec提示两个表的编码不一致,需要进行转换将比较等式一边进行字符串转换,如改为“CONVERT(table-co

2013-01-04 18:30:01 29679 2

转载 java-concurrent之CyclicBarrier

功能:任务有多个阶段,并且在每一阶段只有所有的任务都完成时才会进入下一个阶段,类似游戏的关卡,rpc的人物当所有人到达同一地点时才会启动下一关卡。CyclicBarrier有两个构造方法CyclicBarrier(int parties),参数parties线程计数器,当所有线程都调用await()时启动下一轮任务。CyclicBarrier(int parties, Runnab

2012-12-22 19:42:11 622

原创 java-concurrent之CountDownLatch

功能:保持一个或多个线程等待(CountDownLatch的await方法)直到CountDownLatch计数为0(调用CountDownLatch的countDown方法)时才开启等待的线程。例如:学校的期末考试有10科,只有当每一科都结束后才能够汇总成绩。CountDownLatch正适合这样的需求,在汇总成绩时一直await,知道CountDownLatch计数到0为止,表明所有考试都

2012-12-22 15:51:48 1419

转载 ibatis传入list对象

在使用ibatis的时候经常需要传入list对象,sql语句如下。 <![CDATA[ select * from person where id in ]]> #list[]# 这个是简单的sql语句,对于list中是别的对象的,比如List这个参数传进来时需要这样使用 <![CDATA[ select * from person where id

2012-12-08 19:51:37 12532 1

原创 Btrace检测list参数、结果

使用Btrace时我希望监控到传递的list参数值,这时调用println(str(list1));这样的语句就可以打印list中的所有值,代码如下:import java.util.ArrayList;import java.util.Arrays;import java.util.Collections;import java.util.List;/** * TODO Comm

2012-11-01 12:58:18 3252

转载 BTrace使用

详见http://drizzlewalk.blog.51cto.com/2203401/471200

2012-10-31 14:24:31 654

转载 linux递归删除svn

#!/bin/sh function processFile {    if [ -d $1 ]; then         for currentFile in $1/*         do             if [ -d "$currentFile" ]; then                 contain=$(echo "$currentFile"

2012-10-30 22:34:28 1224

转载 debian中shell脚本无法使用source的原因及解决方法

现象: shell脚本中source aaa.sh时提示 source: not found原因: ls -l `which sh` 提示/bin/sh -> dash这说明是用dash来进行解析的。改回方法: 命令行执行:sudo dpkg-reconfigure dash在界面中选择no再ls -l `which

2012-10-07 21:23:57 6076

转载 解决maven传递依赖中的版本冲突

找到javaeye上的一篇文章来排除项目重复依赖的问题,感觉这个插件不错,现摘录原文如下传递依赖是maven最有特色的、最为方便的优点之一,可以省了很多配置。如a 依赖 b,b 依赖c  默认 a也会依赖 c。但是 也会带来隐患,如版本冲突。当然maven也考虑到解决办法,可以使用exclusions来排除相应的重复依赖。但是我们还会遇到一个严重的问题,那就是,我怎么知

2012-08-23 11:40:59 4245

转载 解决eclipse-helios中Errors running builder JavaScript Validator的问题

最近下载了eclipse-jee-helios-win32.zip版,使用起来没感觉到什么变化,就是以前的Web项目上在打开的时候,总是在验证的时候弹出错误:Errors occurred during the build.Errors running builder 'JavaScript Validator' on project '##'.java.lang.NullPointerExc

2012-08-14 09:32:10 2273

原创 运行jtester测试Caused by: java.lang.UnsatisfiedLinkError: no attach in java.library.path错误解决

1、首先利用eclipse Install new Software安装testng插件,地址为:http://beust.com/eclipse这是可能提示安装插件错误安装不上,这时按照eclipse的提示地址下载插件jar包,然后放到eclipse目录下的dropins下,重新启动eclipse这样变能运行testng测试了。2、运行的时候报错,如下:java.lang.Ill

2012-06-23 12:26:40 10289 1

原创 简单安装jbpm 5.2 或5.3

安装jbpm时不带下载的eclipse,只使用自己的eclipse。1、下载jbpm-5.2.0.Final-installer-full.zip包或jbpm-5.3.0.Final-installer-full.zip包,解压到指定目录,解压后的文件夹为jbpm-installer。2、运行命令ant install.demo.noeclipse3、运行命令 ant start.de

2012-06-12 13:16:13 2257 2

原创 maven常用命令

下面是在工作中经常使用到的maven命令:1、打包:mvn clean package2、打包并安装到本地仓库:mvn clean install3、利用maven下载源代码:mvn dependency:sources4、构建成eclipse工程:mvn eclipse:eclipse5、清除eclipse结构:mvn eclipse:clean6、查看maven的依赖树

2012-06-11 15:04:29 13154

原创 maven创建工程

利用maven搭建web工程命令为:mvn archetype:create -DgroupId=com.aaa.bbb -DartifactId=ccc-ddd -DarchetypeArtifactId=maven-archetype-webapp其中com.aaa.bbb为groupId为项目中的包路径;artifactId为ccc-ddd利用maven搭建java工

2012-06-11 14:51:01 911

原创 手动安装jbpm 5.2

JBPM的官方文档给出了JBPM的自动安装过程(运行ant install.demo完成),自我感觉没有必要去按照它的步骤进行,让我们对安装的过程不清不楚。而且,jbpm还必须在指定目录安装eclipse,这不是我想要的,我只想使用我已有的eclipse。下面是我用jbpm5.2的安装过程(5.3应该类似),仅供参考。前提条件:jdk(我的版本 1.6)和ant(1.8.4),并设置环境变量。

2012-06-08 17:15:09 4173 3

原创 ASMfier工具使用

ASMfier完成类似TraceClassVisitor的功能,可以直接打印出asm的字节码。使用方法如下java -cp E:\study\asm\asm-4.0\lib\asm-4.0.jar;E:\study\asm\asm-4.0\lib\asm-util-4.0.jar org.objectweb.asm.util.ASMifier java.lang.Runnable添加as

2012-06-06 09:51:43 2868

原创 asm工具类TraceClassVisitor使用

ASM是java字节码操纵和分析的框架。下面介绍一下asm  org.objectweb.asm.util包中工具类TraceClassVisitor的使用。TraceClassVisitor能够将java字节码以文本的方式展现出来。示例如下:import java.io.PrintWriter;import java.io.UnsupportedEncodingExcept

2012-06-06 08:47:06 5103

Spring Framework 2.5 Reference 中文版.pdf

Spring Framework 2.5 Reference 中文版.pdf

2014-01-14

jdk-6u29-windows-x64.exe

jdk1.6,64位 windows版本

2013-11-11

jdk-1.6.38

jdk-1.6.38,64位,linux版本

2013-07-26

jsTree lang plugin

jstree language-plugin功能演示,详细展示了jstree language的功能!

2012-06-02

jsTree-hotkeys plugin

jstree hotkeys-plugin功能演示,详细展示了jstree hotkeys的功能!

2012-06-01

jsTree crrm-plugin之create

jstree crrm-plugin create函数功能演示,详细展示了jstree create函数各个参数的功能!

2012-05-06

jsTree例子3-ui

使用jsTree的插件小例子,这个例子描述了ui插件

2012-05-01

jsTree例子3-UI-plugin

使用jsTree的插件小例子,这个例子描述了ui插件

2012-05-01

jsTree例子2-theme-plugin

使用jsTree的插件小例子,这个例子描述了theme插件

2012-04-14

jsTree例子

使用jsTree的插件小例子,这个例子描述了html_data,json_data,xml_data插件

2012-04-09

zookeeper C API

使用doxygen生成的zookeeper.h 的API文档

2011-11-30

Pro Spring 2.5

Pro Spring 2.5 spring知识点概括,入门

2011-11-21

深入浅出_Google_Android(PDF格式高清中文版)

深入浅出_Google_Android(PDF格式高清中文版).pdf,文档内容高清,很适合初学者

2011-10-25

spring开发指南--夏昕

夏昕的spring 开发指南,简单移动,适合上手

2011-10-23

installer_r13-windows.exe

android sdk 安装程序,点击安装后会下载所有的android版本

2011-10-14

Eclipse BPEL的源代码

这是Eclipse BPEL的源代码,包含BPEL流程的构件原理,语法检查等。

2010-07-15

hibernate-entitymanager-3.3.2.CR1

hibernate-entitymanager-3.3.2.CR1 赚点积分!

2010-06-27

hibernate-entitymanager-3.3.2.CR1

hibernate-entitymanager-3.3.2.CR1 赚点积分!!

2010-06-27

SPSS v17.0 中文教程

结构清晰合理!!适合学习使用!!欢迎下载

2010-06-26

Web Services Platform Architecture: SOAP, WSDL, WS-Policy, WS-Addressing, WS-BPEL, WS-Reliable Messaging, and More

Overview The Insider's Guide to Building Breakthrough Services with Today's New Web Services PlatformUsing today's new Web services platform, you can build services that are secure, reliable, efficient at handling transactions, and well suited to your evolving service-oriented architecture. What's more, you can do all that without compromising the simplicity or interoperability that made Web services so attractive. Now, for the first time, the experts who helped define and architect this platform show you exactly how to make the most of it.Unlike other books, Web Services Platform Architecture covers the entire platform. The authors illuminate every specification that's ready for practical use, covering messaging, metadata, security, discovery, quality of service, business-process modeling, and more. Drawing on realistic examples and case studies, they present a powerfully coherent view of how all these specifications fit togetherand how to combine them to solve real-world problems. Service orientation: Clarifying the business and technical value propositions Web services messaging framework: Using SOAP and WS-Addressing to deliver Web services messages WSDL: Documenting messages and supporting diverse message interactions WS-Policy: Building services that specify their requirements and capabilities, and how to interface with them UDDI: Aggregating metadata and making it easily available WS-MetadataExchange: Bootstrapping efficient, customized communication between Web services WS-Reliable Messaging: Ensuring message delivery across unreliable networks Transactions: Defining reliable interactions with WS-Coordination, WS-AtomicTransaction, and WS-BusinessActivity Security: Understanding the roles of WS-Security, WS-Trust, WS-SecureConversation, and WS-Federation BPEL: Modeling and executing business processes as service compositionsWeb Services Platform Architecture gives you an insider's view of the platform that will change the way you deliver applications. Whether you're an architect, developer, technical manager, or consultant, you'll find it indispensable.Sanjiva Weerawarana, research staff member for the component systems group at IBM Research, helps define and coordinate IBM's Web services technical strategy and activities. A member of the Apache Software Foundation, he contributed to many specifications including the SOAP 1.1 and WSDL 1.1 specifications and built their first implementations. Francisco Curbera, IBM research staff member and component systems group manager, coauthored BPEL4WS, WS-Addressing, and other specifications. He represents IBM on the BPEL and Web Services Addressing working groups. Frank Leymann directs the Institute of Architecture of Application Systems at the University of Stuttgart. As an IBM distinguished engineer, he helped architect IBM's middleware stack and define IBM's On Demand Computing strategy. IBM Fellow Tony Storey has helped lead the development of many of IBM's middleware, Web services, and grid computing products. IBM Fellow Donald F. Ferguson is chief architect and technical lead for IBM Software Group, and chairs IBM's SWG Architecture Board.

2010-05-25

Fat Jar Eclipse Plug-In

我用的是Eclipse,它自带的打包方法在打包一些图片等资源时不是很爽。可以使用这个插件。 安装方法解压后将plugins文件夹下的net.sf.fjep.fatjar_0.0.24文件夹拷到eclipse安装目录的plugins 下。 用此工具可以方便的将eclipse中的工程打包成jar文件。如果是要打成可执行的jar请注意选取主类。 你的项目=〉Export..=>向导里有fat jar =>...

2010-05-10

orderbooking.pdf

oracle关于BPEL的一些例子,从简单到复杂的介绍BPEL流程的建立,适于学习的BPEL开发手册

2010-04-26

Expert Spring MVC and Web Flows

这是spring开始的一段,我给粘过来了 I can still remember the time I first realized what the Spring Framework was and how it could help me. I was tasked with building a web application that will register new businesses with the local government, and being a Java shop this meant the standard set of frameworks at the time: Struts, JavaServer Pages (JSP), and Hibernate. Having built many applications with these technologies, we dove right into development.When beginning a new application, I always want to improve a few things from the last product development cycle. This time around, it was time to get serious about two things, unit testing and good object-oriented design. Sure, I had written plenty of unit tests before, but I had never begun a project by writing tests first. And although I’ve been studying and developing with OOP for many years now, I continue to learn new techniques that help the design of the application retain sustainability in the face of change. So, off we went developing the application, writing tests for the domain model, creating a service layer (a façade for the web layer to integrate with), and beginning the build-out of the Struts layer. Each layer in the system seemed to progress nicely, but that’s exactly when we ran into trouble. As integration between layers began, we noticed that it became harder and harder to write good tests for the system. The application was using the Service Locator pattern to integrate the service layer and the web layers together. This pattern was implemented using a static lookup, which proved impossible to change for our unit tests. The question soon became, “How do we integrate these components such that both writing tests and running in production is simple and efficient?”

2010-04-04

commons beanutils 1.8.0 jar 包

commons-beanutils-1.8.0.jar工具包

2010-03-08

bepldev、oracle BPEL的详细文档

oracle BPEL的详细文档。具体介绍了BPEL的语法,并且带有详细的例子

2010-03-06

struts-1.2.9-bin.zip

struts1.2.9,包含所有jar包。

2010-01-02

BPEL Cookbook - 2006

一本介绍BPEL的书籍,同时介绍了用JDeveloper来开发BPEL流程。

2010-01-01

business-process-execution-language

一本全面介绍BPEL的书籍,里面讲解了BPEL的语法语义,以及相关的例子,是学习BPEL的好书籍。

2010-01-01

xalan.2.5.1.jar

安装omii-bpel时提示需要这个。gggg

2009-12-01

ibatis 源代码

面试的时候被问到了,你看过ibatis的源代码么?没看过,被鄙视了,特此上传。

2009-10-26

eclipse3.4,3.5的BPEL插件

eclipse3.4,3.5的BPEL插件,直接存起来,省的每次都去更新,太费事了!

2009-08-04

eclipse3.4汉化包

看到了许多人都要分数才能下载,自己这个不要分的,供大家分享!!!

2009-06-18

weblogic-eclipse插件

刚下载的,别人不用再花分数下载了!!感谢提供下载的人。

2009-04-06

spring in action

通读易懂的spring佳作,去问问有经验的spring开发者,这本书的质量怎么样,与大家共享一下,希望能得几个资源分,谢谢

2009-03-20

空空如也

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

TA关注的人

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