Monday, June 29, 2009

Lenovo T61 Bluetooth

Lenovo t61 running Vista, when start up, show 3 Bluetooth peripheral devices cannot install properly.

The hardware ID is BTHENUM\{00000004-0000-1000-8000-0002ee000002}_LOCALMFG&000f.

After Google, I find following message from

http://forums.lenovo.com/lnv/board/message?board.id=T_Series_Thinkpads&message.id=15948


 

Hi All,

 
 

PROBLEM SOLVED, you might be missing the

D20032-002-001.exe Windows Vista WIDCOMM Bluetooth Driver version: 6.0.1.3400

 
 

 
 

I am using a T61 with a corporate image, and could never get the last Bluetooth peripheral to work in device manager.

After the installation of the "Windows Vista WIDCOMM Bluetooth Driver version: 6.0.1.3400" you will see that it relates to the "Bluetooth Imaging Responder"

 
 

 
 

 
 

Download these drivers here>>

 
 

http://support.gateway.com/support/drivers/getFile.asp?id=21018&dscr=Windows%20Vista%20WIDCOMM%20Bluetooth%20Driver%20version:%206.0.1.3400&uid=226882449

 
 

Hope this helps.

 
 

Cheers

 
 

Monday, May 04, 2009

TOMCAT return 403

Tomcat return 403 for http://127.0.0.1:8080/thgsrp/images/uploaded/watchfront.jpg.

The resource is there, I found the reason in tomcat setting server.xml

<Host appBase="webapps" name="localhost">

<Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_log." suffix=".txt" timestamp="true"/>

<Valve className="org.apache.catalina.valves.RemoteAddrValve"

allow="10.1.*.*,192.168.*.*,127.0.0.1"/>

</Host>


 

After add 127.0.0.1 in the allow IP address, the problem solved.

Wednesday, March 25, 2009

GWT Internationalization

I find a good explain about GWT internationalization at http://markmail.org/message/kkve5qmokt6lixub

Below is the notes get from the post:


 

Here are my own notes to set up Internationalization (i18n) in GWT.


 

1. In myApp.gwt.xml


 

<inherits name="com.google.gwt.i18n.I18N"/>

<extend-property name="locale" values="en"/>

<extend-property name="locale" values="sp"/>

<extend-property name="locale" values="fr"/>


 

2. Create 3 properties files in the client folder:


 

MyMessages_en.properties

MyMessages_fr.properties

MyMessages_sp.properties


 

3. Here is the content of MyMessages_en.properties (the other two

files should be identical):


 

enBtn = English

spBtn = Espa&ntilde;ol

frBtn = Fran&ccedil;ais


 

4. Create 3 Button Widgets in the EntryPoint module


 

MyMessages myMessages = (MyMessages) GWT.create(MyMessages.class);


 

Button enBtn = new Button();

enBtn.setHTML(myMessages.enBtn());


 

Button enBtn = new Button();

enBtn.setHTML(myMessages.frBtn());


 

Button enBtn = new Button();

enBtn.setHTML(myMessages.spBtn());


 

5. Create the MyMessages.java in the client folder:


 

package com.myApp.client;


 

import com.google.gwt.i18n.client.Messages;


 

public interface MyMessages extends Messages {

    String spBtn();

    String enBtn();

    String frBtn();

}


 

6. Here is the ClickListener for one of the buttons:


 

enBtn.addClickListener(new ClickListener() {

    public native void onClick(Widget sender) /*-{

     var currLocation = $wnd.location.toString().split("?");

     var currLocale = "?locale=en";

     $wnd.location.href = currLocation[0] + currLocale;

     $wnd.location.replace(currLocation[0] + currLocale);

     }-*/;

});


 

7. Don't forget this meta tag in the main html file:


 

<meta name="gwt:property" content="locale=en">


 

8. Here is how to manually check that the locale are indeed changed:


 


http://localhost:8888/com.myApp.myProject/myProject.html?locale=en

or


http://localhost:8888/com.myApp.myProject/myProject.html?locale=sp

or


http://localhost:8888/com.myApp.myProject/myProject.html?locale=fr


 

Well. That's it. I believe there are enough information in this post

to start the ball rolling for anyone interested to learn how to

internationalize his/her GWT application.


 

Cheerio.


 


 

Thursday, March 19, 2009

Saving and deleting audit journal receivers

This topic describes how to save and delete audit journal receivers, explains why it is important, and provides step-by-step instructions.

Purpose:

To attach a new audit journal receiver; to save and delete the old receiver

How to:

  • CHGJRN QSYS/QAUDJRN
  • JRNRCV(*GEN) SAVOBJ (to save old receiver)
  • DLTJRNRCV (to delete old receiver)

Authority:

*ALL authority to journal receiver; *USE authority to journal

Note: Select a time when the system is not busy to save and delete audit journal receivers.

You should regularly detach the current audit journal receiver and attach a new one for two reasons:

  • Analyzing journal entries is easier if each journal receiver contains the entries for a specific, manageable time period.
  • Large journal receivers can affect system performance, in addition to taking valuable space on auxiliary storage.

Having the system manage receivers automatically is the recommended approach. You can specify this by using the Manage receiver parameter when you create the journal.

If you have set up action auditing and object auditing to log many different events, you may need to specify a large threshold value for the journal receiver. If you are managing receivers manually, you may need to change journal receivers daily. If you log only a few events, you may want to change receivers to correspond with the backup schedule for the library containing the journal receiver.

You use the CHGJRN command to detach a receiver and attach a new receiver.

System-Managed Journal Receivers: If you have the system manage the receivers, use the following procedure to save all detached QAUDJRN receivers and to delete them:

  1. Type WRKJRNA QAUDJRN. The display shows you the currently attached receiver. Do not save or delete this receiver.
  2. Use F15 to work with the receiver directory. This shows all receivers that have been associated with the journal and their status.
  3. Use the SAVOBJ command to save each receiver, except the currently attached receiver, which has not already been saved.
  4. Use the DLTJRNRCV command to delete each receiver after it is saved.

Note: An alternative to the above procedure could be done using the journal message queue and monitoring for the CPF7020 message which indicates that the system change journal has completed successfully.

Thursday, January 29, 2009

Sun Tech Day 2009

I attended the Sun Tech Day on 21 & 22 January in Singapore. It is an event worth to attend.

Saturday, November 08, 2008

Word can edit blog directly

Just select new, then choice 'New Blog Post'.

Monday, August 11, 2008

How to Remote Desktop to the Console on Windows 2003

Start the remote desktop client from the command line or the Start/Run dialog with this command:

mstsc /console

Saturday, February 16, 2008

display excel from TOMCAT site

when display a excel file from a tomcat server, the web page show the text format of the excel file. In order to display it correctly, add following code in the web.xml in conf directory.


mime-mapping
extension xls extension
mime-type application/vnd.ms-excel MIME-TYPE
/MIME-MAPPING


also, you need add your site as intranet in web explorer, which meaning the security for your site is very low.

Sunday, February 10, 2008

set Xerox C450 as Iseries printer

first, create a Workstation customizing object source in library/source.object

the source is http://docs.google.com/Doc?id=dgts9g23_10g594d9cr .

sencond, run CRTWSCST command to generate Workstation customizing object from the source file.

third, run WRKCFGSTS, create a new printer, set 'Manufacturer type and model' as '*WSCSTA4', and set 'Workstation customizing object' as the object created in sencond step.

after printer created, run

CHGWTR WTR(printer) FORMTYPE(*ALL *NOMSG)

to prevent form type error message.

Thursday, January 24, 2008

using Fat jar plugin

I am using fat jar plugin in eclipse to generate executable jar file.
seet http://sourceforge.net/projects/fjep.

Sunday, January 13, 2008

Solve installation problem of Adobe flash cs3 professional on Windows Vista

when installing flash cs3 professional on Windows Vista, after double click 'Setup.exe', the setup program run a short period then disappear.

When I check event log, I see the message 'Internal Error 2739'.

I search the solustion by Google and found the solution on http://www.adobeforums.com/webx/.3bc3ddab

the step to fix the problem is

Choose Start > All Programs > Accessories.
Right-click the Command icon, choose Run As Administrator, and authenticate.
Navigate to Windows\System32. At the prompt, type regsvr32 jscript.dll and press Enter. When a dialog box with the message "DllRegisterServer in jscript.dll succeeded" appears, click Ok.

then run the setup program again.

Thursday, January 10, 2008

WebSphere Development Studio Client for iSeries JVM Crash

follow the link http://www-1.ibm.com/support/docview.wss?rs=2044&context=SSCM72&dc=DB520&uid=swg21255195&loc=en_US&cs=UTF-8&lang=en&rss=ct204%204rational

to solve the problem.

screen shot as bellow:
Microsoft Windows XP [Version 5.1.2600](C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\wangzj.HOURGLASS>cd C:\Program Files\IBM\SDP70\jdk\jre\bin
C:\Program Files\IBM\SDP70\jdk\jre\bin>javaw.exe -Xshareclasses:destroy
C:\Program Files\IBM\SDP70\jdk\jre\bin>

Wednesday, July 18, 2007

Tuesday, July 10, 2007

Display web site logo on the address bar

first, Creating a 16x16 pixels tiny windows icon(.ico), you can create it online by access http://www.html-kit.com/favicon/.

then, Saving the icon as 'favicon.ico' and put in the root directory of your web site.

Friday, June 15, 2007

Prepare web server for Intranet

Prepare web server for Intranet

1. Configure Website

Starting IIS manager, create a new web site ‘Intranet’.

Select ‘Web site’ -->'New’-->'Web site…’, System show ‘Web Site Creation Wizard’


Click ‘Next’.


Click ‘Next’


Click ‘Next’


Click ‘Next’


Click ‘Next’


Click ‘Finish’




Setting access right for site as below



Install java


  1. download java SDK from http://java.sun.com/javase/downloads/index.jsp

  2. Followed the screen instruction to install downloaded exe file.

  3. Edit environment variables ‘Path’, add ‘C:Program FilesJavajre1.6.0_01bin’.



Install Tomcat

  1. Download Tomcat from http://tomcat.apache.org/download-60.cgi

  2. Followed the on screen instructions to install downloaded exe file.

  3. Launch http://localhost:8080/ in explorer to confirm Tomcat installed successfully.



Install Tomcat & IIS connector


  1. Download Tomcat connector ‘isapi_redirect.msi’ from http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.15/.

  2. Run download msi file.

  3. Download last ‘isapi_redirect.dll’ and replace the one created in step 2.

  4. Add two environment variables ‘TOMCAT_HOME’ and ‘JAVA_HOME’.










Tuesday, May 15, 2007

Setup Java Web Start

When I request to start java program by request the jnlp file, the web server return the contains of the file, intead the program.

I look to the document in Sun's web site and found the reason that I need set the MIME type for JNLP.

Following is the document I read.

http://java.sun.com/developer/technicalArticles/WebServices/JWS_2/JWS_White_Paper.pdf

Friday, May 11, 2007

Link Apache 2.2 and Tomcat 5.5 on Windows

1. Download & install Apache 2.2
2. Download & install Tomcat 5.5
3. Download Tomcat connector, my file is 'mod_jk-apache-2.2.4.so', rename it to 'mod_jk.so' and save in 'modules' directory under Apache installation directory.
4. create a file called 'workers.properties', Below is the contents.

# workers.properties.minimal -
#
# This file provides minimal jk configuration properties needed to
# connect to Tomcat.
#
# The workers that jk should create and work with
#
worker.list=ajp13w
#

# Defining a worker named ajp13w and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009
#

# Defining a load balancer
#
worker.wlb.type=lb

worker.wlb.balance_workers=ajp13w
#

# Define status worker
#
worker.jkstatus.type=status


5. add following text at the bottom of httpd.conf file

# add by wangzj for tomcat
# Load mod_jk module
LoadModule jk_module modules/mod_jk.so
# Where to find workers.properties
JkWorkersFile "C:\Program Files\Apache Software Foundation\Jakarta Isapi Redirector\conf\workers.properties"
# Where to put jk shared memory
JkShmFile "C:\Program Files\Apache Software Foundation\Jakarta Isapi Redirector\log\mod_jk.shm"
# Where to put jk logs
JkLogFile "C:\Program Files\Apache Software Foundation\Jakarta Isapi Redirector\log\mod_jk.log"
# Set the jk log level [debug/error/info]
JkLogLevel info
# Select the timestamp log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
# Send servlet for context /examples to worker named worker1 JkMount /examples/servlet/* worker1
# Send JSPs for context /examples to worker named worker1
JkMount /examples/*.jsp worker1
# send context /THG to worker named ajp13w

JkMount /THG/* ajp13w


6. that is all.

Tuesday, January 23, 2007

Using Eclipse

for last release Ganymede

1. Download Eclipse IDE for Java EE Developers (163 MB) .


1. Download Eclipse 3.21. from http://www.eclipse.org/downloads/.
The download file is eclipse-SDK-3.2.1-win32.zip.

2. Extract to C:\Eclipse by winzip

3. Run Eclipse.exe, and create workplace at 'C:\Documents and Settings\wangzj\My Documents\My Eclipse Workplace'

4. install plugin
goto 'Help', then select 'Software Updates',
then select ' Find and Install',
then choice 'Search for new features to install' and click 'Next' button,
then choice 'Callisto Discovery Site' and click 'Finish' button,
after a while, choice plugins, then followed the instruction on screen to download and install plugins. for develop gwt, need wtp.

5.

Thursday, November 23, 2006

Windows NT/XP command line

An A-Z Index of the Windows NT/XP command lineADDUSERS Add or list users to/from a CSV file
ARP Address Resolution Protocol
ASSOC Change file extension associations
ASSOCIAT One step file association
AT Schedule a command to run at a later time
ATTRIB Change file attributes
BOOTCFG Edit Windows boot settings
BROWSTAT Get domain, browser and PDC info
CACLS Change file permissions
CALL Call one batch program from another
CD Change Directory - move to a specific Folder
CHANGE Change Terminal Server Session properties
CHKDSK Check Disk - check and repair disk problems
CHKNTFS Check the NTFS file system
CHOICE Accept keyboard input to a batch file
CIPHER Encrypt or Decrypt files/folders
CleanMgr Automated cleanup of Temp files, recycle bin
CLEARMEM Clear memory leaks
CLIP Copy STDIN to the Windows clipboard.
CLS Clear the screen
CLUSTER Windows Clustering
CMD Start a new CMD shell
COLOR Change colours of the CMD window
COMP Compare the contents of two files or sets of files
COMPACT Compress files or folders on an NTFS partition
COMPRESS Compress individual files on an NTFS partition
CON2PRT Connect or disconnect a Printer
CONVERT Convert a FAT drive to NTFS.
COPY Copy one or more files to another location
CSVDE Import or Export Active Directory data
DATE Display or set the date
Dcomcnfg DCOM Configuration Utility
DEFRAG Defragment hard drive
DEL Delete one or more files
DELPROF Delete NT user profiles
DELTREE Delete a folder and all subfolders
DevCon Device Manager Command Line Utility
DIR Display a list of files and folders
DIRUSE Display disk usage
DISKCOMP Compare the contents of two floppy disks
DISKCOPY Copy the contents of one floppy disk to another
DNSSTAT DNS Statistics
DOSKEY Edit command line, recall commands, and create macros
DSADD Add user (computer, group..) to active directoryDSQUERY List items in active directory
DSMOD Modify user (computer, group..) in active directory
ECHO Display message on screen
ENDLOCAL End localisation of environment changes in a batch file
ERASE Delete one or more files
EXIT Quit the CMD shell
EXPAND Uncompress files
EXTRACT Uncompress CAB files
FC Compare two files
FDISK Disk Format and partition
FIND Search for a text string in a file
FINDSTR Search for strings in files
FOR Conditionally perform a command several times
FORFILES Batch process multiple files
FORMAT Format a disk
FREEDISK Check free disk space (in bytes)
FSUTIL File and Volume utilities
FTP File Transfer Protocol
FTYPE Display or modify file types used in file extension associations
GLOBAL Display membership of global groups
GOTO Direct a batch program to jump to a labelled line
HELP Online Help
HFNETCHK Network Security Hotfix Checker
IF Conditionally perform a command
IFMEMBER Is the current user in an NT Workgroup
IPCONFIG Configure IP
KILL Remove a program from memory
LABEL Edit a disk label
LOCAL Display membership of local groups
LOGEVENT Write text to the NT event viewer.
LOGOFF Log a user off
LOGTIME Log the date and time in a file
MAPISEND Send email from the command line
MEM Display memory usage
MD Create new folders
MODE Configure a system device
MORE Display output, one screen at a time
MOUNTVOL Manage a volume mount point
MOVE Move files from one folder to another
MOVEUSER Move a user from one domain to another
MSG Send a message
MSIEXEC Microsoft Windows Installer
MSINFO Windows NT diagnostics
MSTSC Terminal Server Connection (Remote Desktop Protocol)
MUNGE Find and Replace text within file(s)
MV Copy in-use files
NET
Manage network resources
NETDOM Domain Manager
NETSH Configure network protocols
NETSVC Command-line Service Controller
NBTSTAT Display networking statistics (NetBIOS over TCP/IP)
NETSTAT Display networking statistics (TCP/IP)
NOW Display the current Date and Time
NSLOOKUP Name server lookup
NTBACKUP Backup folders to tape
NTRIGHTS Edit user account rights
PATH Display or set a search path for executable files
PATHPING Trace route plus network latency and packet loss
PAUSE Suspend processing of a batch file and display a message
PERMS Show permissions for a user
PERFMON Performance Monitor
PING Test a network connection
POPD Restore the previous value of the current directory saved by PUSHD
PORTQRY Display the status of ports and services
PRINT Print a text file
PRNCNFG Display, configure or rename a printer
PRNMNGR Add, delete, list printers set the default printer
PROMPT Change the command prompt
PUSHD Save and then change the current directory
QGREP Search file(s) for lines that match a given pattern.
RASDIAL Manage RAS connections
RASPHONE Manage RAS connections
RECOVER Recover a damaged file from a defective disk.
REG Read, Set or Delete registry keys and values
REGEDIT Import or export registry settings
REGSVR32 Register or unregister a DLL
REGINI Change Registry Permissions
REM Record comments (remarks) in a batch file
REN Rename a file or files.
REPLACE Replace or update one file with another
RD Delete folder(s)
RDISK Create a Recovery Disk
RMTSHARE Share a folder or a printer
ROBOCOPY Robust File and Folder Copy
ROUTE Manipulate network routing tables
RUNAS Execute a program under a different user account
RUNDLL32 Run a DLL command (add/remove print connections)
SC Service Control
SCHTASKS Create or Edit Scheduled Tasks
SCLIST Display NT Services
ScriptIt Control GUI applications
SET Display, set, or remove environment variables
SETLOCAL Begin localisation of environment changes in a batch file
SETX Set environment variables permanently
SHARE List or edit a file share or print share
SHIFT Shift the position of replaceable parameters in a batch file
SHORTCUT Create a windows shortcut (.LNK file)
SHOWGRPS List the NT Workgroups a user has joined
SHOWMBRS List the Users who are members of a Workgroup
SHUTDOWN Shutdown the computer
SLEEP Wait for x seconds
SOON Schedule a command to run in the near future
SORT Sort input
START Start a separate window to run a specified program or command
SU Switch User
SUBINACL Edit file and folder Permissions, Ownership and Domain
SUBST Associate a path with a drive letter
SYSTEMINFO List system configuration
TASKLIST List running applications and services
TIME Display or set the system time
TIMEOUT Delay processing of a batch file
TITLE Set the window title for a CMD.EXE session
TOUCH Change file timestamps
TRACERT Trace route to a remote host
TREE Graphical display of folder structure
TYPE Display the contents of a text file
USRSTAT List domain usernames and last login
VER Display version information
VERIFY Verify that files have been saved
VOL Display a disk label
WHERE Locate and display files in a directory tree
WHOAMI Output the current UserName and domain
WINDIFF Compare the contents of two files or sets of files
WINMSD Windows system diagnostics
WINMSDP Windows system diagnostics IIWMIC WMI Commands
XCACLS Change file permissions
XCOPY Copy files and folders