StringTokenizer Usage 复习

新写的排序EPC list的方法,利用StringTokenizer和Collections.sort,复习+备份用哈。

/**
* Example SOAP response:
*
* <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://[......]<p class="read-more"><a href="http://neoremind.com/2010/03/stringtokenizer-usage-%e5%a4%8d%e4%b9%a0/">继续阅读</a></p>

cvs同步时描述图标的解释

The synchronize view shows the synchronization state of resources in your workspace compared to those in the repository. This state is shown by using icons and can also be configured to show the state as text appended to the resource name. A description of the icons is shown in the table below:

[……]

继续阅读

异步消息处理的办法——MDB

在我们的产品中,最核心的模块就是关于EPCIS事件的捕获(Capture),原理上很简单,RFID设备捕获到一个event,然后将event放入WMQ中的Queue,我们的server上有一个MDB用于实时监听该Queue,如果发现了新的message,则处理,最终存入DB的EVENTSCHEMA下。

通常测试中可以模拟这样一个事件的产生,下例中TEST.xml就是一个event事件:

submitEvent.sh -queue myeventq -source TEST.xml.

submitEvent.sh脚本:

SCRIPT_DIR=`dirname $0`
i[......]<p class="read-more"><a href="http://neoremind.com/2010/03/%e5%bc%82%e6%ad%a5%e6%b6%88%e6%81%af%e5%a4%84%e7%90%86%e7%9a%84%e5%8a%9e%e6%b3%95%e2%80%94%e2%80%94mdb/">继续阅读</a></p>

JMS概述

JMS (Java Message) is an API for accessing enterprise message systems.
WAS support JMS v1.1 as part of Java EE 5 specification.
JMS allows Java EE application to asynchronously send and receive business data and events.
JMS supports two style of asynchronous messaging:
Point-to-point (queue)
Pu[……]

继续阅读

Ant+Shell脚本更新XML文件节点值

刚刚team member有需求要通过Ant脚本更新XML配置文件里的某个值为true或者false。 记录一下实现的过程: 1. 编写shell脚本,文件名为SNMAPIUpdate.sh

#!/bin/sh
if [ $# -ne 2 ];then
echo "usage[......]<p class="read-more"><a href="http://neoremind.com/2010/03/antshell%e8%84%9a%e6%9c%ac%e6%9b%b4%e6%96%b0xml%e6%96%87%e4%bb%b6%e8%8a%82%e7%82%b9%e5%80%bc/">继续阅读</a></p>

IBM有关Product Maintenance的术语

1. Terminology

Term 
Definition
PMR  
“Problem Management Record”. Problem reported by a cu[......]

继续阅读

Google.cn从此消失

今天由于懒惰再一次选择了work from home,习惯的打开google.cn发现竟然被重定向到了com.hk,并且鲜明注明了“欢迎您来到谷歌搜索在中国的新家”。

再也无法忍受万恶的GFW,因为它使广大中国网民无法接触世界最新最流行的互联网服务facebook/blogspot/twitter/youtube/flickr等等,虽然国内都有对应的山寨网站,但是还是原装的好啊;再也无法忍受审查过滤带来的缩水结果,互联网是开放的,在此不便发表评论,为了我站点不被和谐。。

纪念下这历史的时刻。[……]

继续阅读

Javascript压缩工具

常用的一个是dojo shrinksafe( http://shrinksafe.dojotoolkit.org/ ),还有一个是yui compressor( http://developer.yahoo.com/yui/compressor/ ),yui compressor效果更好。

其实两个工具都是基于Rhino(http://mozilla.org/rhino) 这个开源项目的,不同于其他压缩工具是基于正则表达式来进行JavaScript代码匹配来进行压缩,Rhino是一个JavaScript的解析器,是 解释需要压缩的JavaScript代码后再进行比如变量替换,消除空行,消[……]

继续阅读

AIX重置密码

AIX系统中用户试图登录的最大尝试次数为3,也就是说如果3次输入了错误的密码,那么非常抱歉,这个用户会被锁住。 1. 解锁的办法: $sudo su – #smit System Management Move cursor to desired item and press Enter. Software Installation and Maintenance Software License Management Devices System Storage Management (Physical & Logical Storage) Security &[……]

继续阅读

如何加强B/S App的用户体验

How Improve End User Experience! 这个话题经常是PVT工程师考虑的问题。近日得到一份MBPS同事Share的PPT,里面关于WEB应用程序的性能调优做了很全面的BestPractice传授。受益匪浅,记录一下我看懂的东西吧。

Typical causes:
Front-end bottleneck (traffic cant get to the application)
Internal bottleneck (application is making itself wait)
Back-end bottleneck (application w[……]

继续阅读

CQ又搞什么东东

这两天CQ又挂了,必须使用备份服务器,还开了个PMR个CQ dev team。查看About发现已经是7.1了啊。 lIBM Rational ClearQuest Version: 7.1.1.0 Build: 7.1.1_PATCH_TESTFIX_CRM.D100303 全是dojo widget,炫是炫,但是UE没有提高多少,原来可以一下copy的defect号现在必须手工点开再拷贝,真该给他们开个PMR在RETAIN上。

[……]

继续阅读

WAS Jacl脚本分析-启动MDB监听器

写WAS的Jacl脚本是一件极其费神的事,API匪夷所思的诡异,直接导致门槛之高,幸好IBM即时的转变成了Jython风格的脚本,但是对于我们的产品,基本上还是Jacl的脚本在Install环节做配置工作。作为了解,记录下分析start MDB Listener的脚本该如何写。

proc startListenerPort {cname nname sname command} {
 
global AdminControl
global AdminConfig
 
set lPorts [$AdminControl queryNames type=ListenerPort,cel[......]<p class="read-more"><a href="http://neoremind.com/2010/03/was-jacl%e8%84%9a%e6%9c%ac%e5%88%86%e6%9e%90-%e5%90%af%e5%8a%a8mdb%e7%9b%91%e5%90%ac%e5%99%a8/">继续阅读</a></p>

我的作品-嫣然足迹

抱歉的通知您,由于个人原因该网站已经停止运营,请大家见谅,历史见证下吧 🙂

俗话说生命在于折腾,经过了三个月利用业余时间的鼓捣后,嫣然足迹公开使用啦!访问地址

http://yaner.me  
 
嫣然足迹是一个提供地理位置信息服务的网站。通过嫣然足迹,你可以标记自己想留下点儿什么的任何地方,加上一个标题、时间戳、你想留下的文字,打造属于自己的个性足迹集合,同时还可以分享到各大SNS网站。嫣然足迹基于谷歌地图,地图实时更新,方便搜索。
 
互联网是个神奇的地方,遍地开花的应用很欢乐啊,除了上校内开心,玩微博论坛,现在还可以玩足迹。虽然网站比较简陋功[……]

继续阅读

Dojo实现Ajax之提交表单与异常处理

现在web2.0的基础是Ajax技术,而Ajax技术的核心便是XMLHttpRequest,在这之上有很多框架,比如jQuery、Prototype、Dojo等等。IBM最广泛应用的便是Dojo了,最近也在常识用Dojo开发,下面介绍了一个实际应用的RIA项目,为WPC Team开发RFT Log解析器,UI界面如下图。

下面着重记录下开发中遇到的问题:
1. 打开首页显示“加载中…” 提示的实现。

dojo.addOnLoad(function(){
showBusyIcon();
// 页面加载处理程序
hideBusyIcon();
});
 
funct[......]<p class="read-more"><a href="http://neoremind.com/2010/03/dojo%e5%ae%9e%e7%8e%b0ajax%e4%b9%8b%e6%8f%90%e4%ba%a4%e8%a1%a8%e5%8d%95%e4%b8%8e%e5%bc%82%e5%b8%b8%e5%a4%84%e7%90%86/">继续阅读</a></p>

jsId, dijit.byId() and dojo.byId()的区别

请看下面的dojo的代码片段:

<div id="centerPane"><div id="centerPane"
dojoType="dijit.layout.ContentPane"
jsId="cPane">
Hello Word!
</div></div>

dojo.byId()
dojo.byId() 与平时我们在js代码中使用的document.getElementById() 是一样的,根据DOM节点的ID获取该节点对象。例如:

dojo.byId("centerPane").style.height = '300px';

设置centerPane Div的高度为300px;[……]

继续阅读