自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(305)
  • 资源 (16)
  • 收藏
  • 关注

原创 Backup DDL on Oracle DB

set trimspool on lines 500 pages 0 long 1000000000 longchunk 1000000000 EXEC dbms_metadata.set_transform_param(dbms_metadata.session_transform,'SEGMENT_ATTRIBUTES'  ,FALSE, 'TABLE') ;EXEC dbms...

2016-03-01 10:31:26 216

原创 Identifying Relationship vs. Non-identifying Relationship

Identifying vs non-identifying has nothing to do with identity. Simply ask yourself can the child record exist without the parent? It has to do with whether the primary key of the child (can include ...

2015-10-20 23:49:25 772

原创 DOS Command to remove shortcut arrow and add open command window here

@echo offecho.echo Removing shortcut arrow and adding open command window hereREG ADD "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /d "%windir%\System32\shell32.d...

2015-07-30 14:56:47 224

原创 How to Enable “Open Command Window Here” Option in Context Menu in Windows Vista

In Windows Vista and later, if you press <SHIFT> key and right-click on any folder, you get some extra options like "Open Command Window Here", etc. But if you don't press the SHIFT key, you do...

2015-07-29 19:58:12 180

原创 Command Line JMX Client

Command Line Parser: GNUCommandLine import java.util.ArrayList;import java.util.List;import java.util.StringTokenizer;import org.apache.commons.cli.CommandLine;import org.apache.commons...

2014-12-29 13:12:37 354

原创 Shell script for stress testing

ParseInstance(){  Files=`find ${JMS_UTIL_CONFIG_PATH} -name "*.jms.properties" | grep -v common | sort`  FileCount=`echo "${Files}"|wc -w|tr -d ' '`  [ $FileCount -le 0 ]  && { echo "...

2014-10-23 00:05:48 96

原创 Shell操作字符串

在做shell批处理程序时候,经常会涉及到字符串相关操作。有很多命令语句,如:awk,sed都可以做字符串各种操作。 其实shell内置一系列操作符号,可以达到类似效果,大家知道,使用内部操作符会省略启动外部程序等时间,因此速度会非常的快。 一、判断读取字符串值表达式含义${var}变量var的值, 与$var相同  ${var-...

2014-08-19 09:42:14 107

原创 Re-post: DBMS_XPLAN : Display Oracle Execution Plans

DBMS_XPLAN : Display Oracle Execution PlansThe DBMS_XPLAN package is used to format the output of an explain plan. It was introduced in Oracle 9i as a replacement for the "utlxpls.sql" script or cu...

2014-07-23 16:14:18 119

原创 Mocking JMS infrastructure with MockRunner to favour testing

From Marco Tedone (http://tedone.typepad.com/blog/2011/07/mocking-spring-jms-with-mockrunner.html) This article shows *one* way to mock the JMS infrastructure in a Spring JMS application. This al...

2014-05-19 16:00:26 175

原创 TIBCO ESB实战系列:TIBCO EMS的访问控制管理

原文:http://www.searchsoa.com.cn/showcontent_52265.htm【TechTarget中国原创】TIBCO EMS是一款基于JMS标准的消息中间件产品,具有良好的扩展性、易用性和高效性,很多客户将其作为企业内部的消息总线,在企业应用集成平台架构中担任重要的角色,因此,它的安全性也就显的非常重要,往往会影响到整个企业应用集成平台的运行。在默认情况下,TI...

2014-05-19 13:45:41 687

原创 Linux设置shell提示符的方法

转自: http://www.linuxsong.org/2010/09/setup-shell-prompt/ PS1的值由一系列静态文本或\和转义字符序列组成,如:PS1="\u@\H \w$ " 比较有用的转义序列有:\a ASCII 响铃字符(也可以键入 \007)\d "Wed Sep 06" 格式的日期\e ASCII转义字符\h 主机名\H ...

2014-05-16 16:52:42 239

原创 Something about JVM class loading and initialization

Class loading stages:LoadingLinkingVerificationPreparationResolutionInitialization Class Loader:   Class loading mechanism:parent delegation model     The delega...

2014-05-09 10:04:06 139

原创 When a class is loaded and initialized in JVM - Java

from: http://javarevisited.blogspot.hk/2012/07/when-class-loading-initialization-java-example.html Classloading and initialization in JavaUnderstanding of when a class is loaded and initialize...

2014-05-08 19:09:32 128

原创 【深入Java虚拟机】之四:类加载机制

转载请注明出处:http://blog.csdn.net/ns_code/article/details/17881581类加载过程    类从被加载到虚拟机内存中开始,到卸载出内存为止,它的整个生命周期包括:加载、验证、准备、解析、初始化、使用和卸载七个阶段。它们开始的顺序如下图所示:    其中类加载的过程包括了加载、验证、准备、解析、初始化五个阶段。在这五个阶段中,加载、验...

2014-05-08 15:12:58 93

原创 Java Reflection - Dynamic Class Loading and Reloading

From: http://tutorials.jenkov.com/java-reflection/dynamic-class-loading-reloading.html It is possible to load and reload classes at runtime in Java, though it is not as straightforward as one mig...

2014-05-08 12:04:55 131

原创 Win7 - Failed to set image as wallpaper

Problem:Right click on an image and select "Set as desktop background", it pops up a window and complains that "This image can't be set as wallpaper. An internal error occurred". Solution:Inc...

2014-04-29 12:02:50 135

原创 Optimistic Locking with Concurrency in Oracle

A very good document about optimistic locking in oracle

2014-04-16 11:37:43 75

原创 JBoss 6.0.0 Final 启动慢且占用大量内存的解决方法

1. Patch jboss.jar (Can be optional as I tested out)        -- refer to https://issues.jboss.org/i#browse/JBAS-87862. Add jboss-scanning.xml to WEB-INF of your application        -- refer to h...

2014-02-22 22:53:25 416

原创 Linux Used内存到底哪里去了

原创文章,转载请注明: 转载自系统技术非业余研究本文链接地址: Linux Used内存到底哪里去了? 前几天 纯上 同学问了一个问题: 我ps aux看到的RSS内存只有不到30M,但是free看到内存却已经使用了7,8G了,已经开始swap了,请问ps aux的实际物理内存统计是不是漏了哪些内存没算?我有什么办法确定free中used的内存都去哪儿了呢?...

2014-02-22 15:31:36 167

原创 Java 类加载与初始化

转载自:http://www.cnblogs.com/zhguang/p/3154584.html 目录类加载器动态加载链接初始化示例类加载器在了解Java的机制之前,需要先了解类在JVM(Java虚拟机)中是如何加载的,这对后面理解java其它机制将有重要作用。每个类编译后产生一个Class对象,存储在.class文件中,JVM使用类加载器(Clas...

2014-02-19 19:12:48 75

原创 Killing process via shell script

#!/bin/sh#Check input parameterif [ $# -ne 2 ]then        echo "Usage: `basename $0` {KEY_WORD} {PORT-NUMBER}"        exit -1else          echo "Key word of the process: $1"        RET=`expr match ...

2014-02-14 15:59:28 79

原创 Install Chocolatey when you access Internet via proxy

 Modify install.ps1 like below (Adding proxy): # ==============================================================================# # Fervent Coder Copyright 2011 - Present - Released under th...

2014-01-24 16:43:40 118

原创 Startup script for configuring a workstation

 @echo offping -n 100 127.0.0.1>nulif not exist H: net use H: \\Shared_Driver /Persistent:Yesdel "C:\ie\Favorites\Links\Web Slice Gallery.url" /q /f /ard "C:\ie\Favorites\Microsoft Webs...

2014-01-24 16:29:23 111

Shell skills take away

1. Empty log files in batchfind . -name "*.log" -exec bash -c ">{}" \; 2. Copy files in batchfind . -maxdepth 1 -type f -exec grep -q "pattern" '{}' ';' -exec cp '{}' /path/to/destination...

2014-01-16 17:45:59 102

原创 Building a java classpath from a windows batch file (Reposted)

A great feature introduced with the JDK 6 is the improved classpath syntax for including Jars of a specific directory. This allows you to do thisjavac -cp "lib\*" MyClass.javajava -cp "lib\*" My...

2014-01-06 16:10:24 88

原创 Shell操作数组

#pids=(123 345 678)pids=$(ps -ef | grep key_word | grep -v grep | grep -v $$ | grep -v `basename $0` | awk '{print $2}')pid_array=($pids) #ESplit into a array by " "echo "array is:${pid_array[@]}"  #P...

2014-01-03 19:20:26 150

原创 shell参数传递有空格的问题

$# 传给脚本的参数个数$0 脚本本身的名字$1 传递给该shell脚本的第1个参数$2 传递给该shell脚本的第2个参数$@ 传给脚本的所有参数的列表$* 以一个单字符串显示所有向脚本传递的参数,与位置变量不同,参数可超过9个$$ 脚本运行的当前进程ID号$? 命令执行结果反馈,0表示执行成功,其余数字表示执行不成功$_ NTc平坦软件保存之前执行的命令的最后一个参数 使用$@传...

2013-12-27 19:34:44 2171

原创 Shell Usage Sample

 Sample 1:if [ $# -ne 1 ]then        echo "Usage: `basename $0` {INTG|UA}"        exit -1else        INPUT=`echo $1 | tr '[:lower:]' '[:upper:]'`        if [ "$INPUT" = "UA" ]; then  ...

2013-12-27 19:08:44 1746

原创 用shell判断一个字符串是不是全为数字 & 取字符串的第N个字符(转)

(1)判断一个字符串是不是全为数字0102030405060708091011#!/bin/sh   # 该变量就是要判断的变量 VAR="1234908"  RET=`expr match $VAR "[0-9]*$"` if [ ${RET} -gt 0 ]; then  ...

2013-12-27 18:57:08 744

原创 javax.management.StandardMBean: When and Why. (Reposted)

Q: When is a Standard MBean not a Standard MBean? A: When it's a StandardMBean.A few month ago, we have added an Advanced JMX Example to JDK 6. This example builds up on the JMX Best Practices and ...

2013-12-26 15:34:28 153

原创 DOS批处理静默执行的方法(无窗口)

方法1:使用批处理在执行时可以隐藏命令行显示的功能来实现。创建如下的批处理: 代码示例:set ws=wscript.createobject("wscript.shell")ws.run "win.bat /start",0(其中win.bat为批处理名字)将以上代码保存为.vbe文件,双击运行即可,不会看到运行界面的。方法2:使用vbs文件。 代码示例:DIM obj...

2013-12-25 09:23:39 11135 1

原创 基本正则表达式和扩展正则表达式的区别

sed默认的匹配方式是基本正则表达式,用基本正则表达式匹配时. * ^ $ [ ] \这些字符默认为表示元字符含义,若要表示原来字面上的意思就必须转义,其它字符如,( ) + ? | { }在基本正则表达式中表示字面上的意思不需要转义,但表示元字符的意思时需要转义。而在sed使用扩展正则表达式时除了. * ^ $ [ ] \是表示元字符含义,,( ) + ? | { }也是表示元字符含义,若要表示...

2013-12-23 09:31:33 1247

原创 搞懂Oracle字符集

基本概念  字符集(Character set):是一个系统支持的所有抽象字符的集合。字符是各种文字和符号的总称,包括各国家文字、标点符号、图形符号、数字等。常见的字符集有ASCII,ZHS16GB231280,ZHS16GBK等。 字符编码(Character Encoding):是一套法则,使用该法则能够对自然语言的字符的一个集合(如字母表或音节表),与其它的一个集合(如电脑编...

2013-12-11 23:44:56 73

原创 Delete file with name start with dash

Sample file name: -a1. rm -- -a2. rm ./-a

2013-11-25 11:52:26 78

原创 Eclipse - Quick type hierarchy doesn't always work

Eclipse can retrieve type hierarchy sometimes, but sometimes can not. i.e. it doesn't work sporadically. Solution:Delete all .index files and savedIndexNames.txt located at .metadata/.plugins/o...

2013-11-15 12:58:00 216

原创 JVM调优的"标准参数"的各种陷阱(转)

From: http://hllvm.group.iteye.com/group/topic/27945开个帖大家来讨论下自己遇到过的情况吧?我在顶楼举几个例子。 开这帖的目的是想让大家了解到,所谓“标准参数”是件很微妙的事情。确实有许多前辈经过多年开发积累下了许多有用的调优经验,但向他们问“标准参数”并照单全收是件危险的事情。 前辈们提供的“标准参数”或许适用于他们的应用场景,他们或许也...

2013-11-11 19:55:02 566

原创 Java SE 6 HotSpot[tm] Virtual Machine Garbage Collection Tuning

(From: http://www.oracle.com/technetwork/java/javase/gc-tuning-6-140523.html)Java SE 6 HotSpot[tm] Virtual Machine Garbage Collection Tuning<!-- content goes here -->    ...

2013-11-11 11:05:48 345

原创 An article about TLAB

(From: https://blogs.oracle.com/jonthecollector/entry/the_real_thing) A Thread Local Allocation Buffer (TLAB) is a region of Edenthat is used for allocation by a single thread.  It enablesa threa...

2013-11-11 10:57:00 122

原创 【JVM】HotSpot JVM内存管理和GC策略总结(转)

JVM的相关知识是学习java高级特性必须要去深入学习的。平时也有一些学习和实践,不过总结比较少。今天有时间总结一下最基础的内存模型和GC策略的知识,在此记录一下。 hotspot jvm内存模型1.内存模型hotspot的内存模型很多地方都有类似总结,我也简单总结了一下,大概可以用下图表示: 关于几个分区的描述定义1.线程栈:线程创建是会为每个线程创建一个线程栈,线...

2013-11-07 23:39:55 147

原创 jstat分析VM内存

Jstat 是JDK自带的一个轻量级小工具。全称“Java Virtual Machine statistics monitoring tool”,它位于java的bin目录下,主要利用JVM内建的指令对Java应用程序的资源和性能进行实时的命令行的监控,包括了对Heap size和垃圾回收状况的监控。可见,Jstat是轻量级的、专门针对JVM的工具,非常适用。由于JVM内存设置较大,图中百分...

2013-11-07 16:41:26 87

JVM 监控 调优 工具

jvm知识点总览:jvm 内存机构、JVM监控工具、JVM调优、GC优化

2018-06-07

jar或者APK安装签名源程序

jar包签名或者APK安装签名源程序。jarsigner apksign 签名源码

2018-05-22

修改二进制文件AndroidManifest.xml文件

android反编译:修改apk生成的二进制文件AndroidManifest.xml文件。

2018-05-22

Spring+mybatis+SpringMVC+Ext+maven的项目

Spring mybatis springMVC maven 工程源码;适合学习和作为java web框架搭建借鉴。

2014-08-20

Elipse反编译插件及操作说明文档

该压缩包包含eclipse反编译插件,及jpad.exe文件,及安装使用说明文档

2013-03-25

java加密与解密的艺术

完整的java加密与解密艺术电子版本,格式为PDF

2013-03-25

aircrack-ng使用详解.pdf

aircrack-ng使用详解,教你在LINUX或BT系统下破解WEP和WPA无线网络

2009-10-21

Drools4.0官方使用手册(中文)

Drools4.0官方使用手册(中文),Drools4.0官方使用手册

2009-06-02

Velocity用户手册(中文版)

Velocity用户手册(中文版),Velocity语法的详细说明

2009-06-02

JavaService-2.0.10

JavaService用来将应用程序注册为系统服务,主要用于将JBOSS注册为系统服务

2009-06-02

CMB2091官方量产工具

CMB2091官方量产工具,可用来做USB-CDROM启动盘

2009-06-02

truezip.jar

truezip.jar 解决ZipOutputStream中文乱码

2009-04-22

slf4j相关jar包

slf4j相关jar包 hibernate3.3所需jar包

2009-04-22

Eclipse快捷键

Eclipse快捷键,挺实用的,转的别人的

2009-04-16

空空如也

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

TA关注的人

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