Pages

Tuesday, May 26, 2009

how to close dos window for batch file

START "C:\WINDOWS\PROGRAM.EXE"
EXIT

source: http://www.msfn.org/board/lofiversion/index.php/t31603.html

Thursday, April 02, 2009

DB2 version

use following:

db2licm -l

DB2 driver version

Use following command to find DB2 driver version :

D:\%PATH_TO_JAR%>java -cp db2jcc.jar com.ibm.db2.jcc.DB2Jcc -version
IBM DB2 JDBC Universal Driver Architecture 3.50.152

Wednesday, October 17, 2007

Char Encoding in Eclipse

  • Set the global text file encoding at Windows->Preference->General-> Workspace
  • To set the encoding on the individual file rather than using the global preference setting, go to File > Properties > Info.
Ref: http://publib.boulder.ibm.com/infocenter/eruinf/v2r1m1/index.jsp?topic=/com.ibm.iru.doc/concepts/cirerwp.htm

Tuesday, January 02, 2007

Char Encoding setting in Textpad

Char encoding can be configured in Textpad at :

Configure Menu --> Preferences --> Document Classes --> Default --> Default encoding --> UTF-8

For more information visit :
http://www.webmasterworld.com/forum21/11759.htm

Monday, May 29, 2006

Automatically insert DateTime in notepad

Automatically insert timestamp everytime a file is opened:
    1. Open notepad
    2. On the first line of the file type this:
    .LOG


    3. Hit ENTER to insert one carriage return.
    4. Save the file

    Now... everytime you open the file in notepad, a timestamp will be inserted.

NOTE: .LOG is case sensitive so make sure to have all letters capital.

Source: http://www.tech-recipes.com/windows_tips909.html

Thursday, May 25, 2006

command prompt at right click of windows explorer

Again finding the solution on google for which I have visited google earlier 10 times.

AW, if you want to add command prompt at right click then follow the instructions:
NOTE: Do it at your own risk.
  1. Go to the HKEY_CLASSES_ROOT\Folder\shell node in the registry (note that Folder includes drives and directories).
  2. Create a new key (from the right-click menu), and call it "DOS prompt".
  3. Under that new key, create a sub-key named "command".
  4. Under that new key (i.e under HKEY_CLASSES_ROOT\Directory\shell\DOS prompt\command), edit the (Default) String value and give it the following value: "c:\winnt\system32\cmd.exe %1" (or whatever the path to cmd.exe is on your system).
  5. Now, you can open a DOS window by right-clicking on any directory name in the Windows explorer.

Source: http://www.everything2.com/index.pl?node_id=996250

Monday, May 15, 2006

Tab on command prompt

Autocompletion facility by using tab on DOS command prompt is very useful.
Obviously it must be created by some lazy worker like me ;-)

AW, following is the way to configure your system to work with tabs on cmd:

You can expand the full name of a file or directory using a character of your choice.

  1. Close all Command Prompts
  2. Start the Registry Editor
  3. Open HKEY_CURRENT_USER\Software\Microsoft\Command Processor
  4. If not present, add Key: CompletionChar
  5. If you like to use TAB-Key for expand: set value (REG_SZ): "9"


Above mentioned text is copy-paste from following site:
http://www.onecomputerguy.com/dostips.htm

Sunday, May 14, 2006

How to minimize Outlook

Visit the following link to learn how to minimize the Outlook:

http://email.about.com/od/outlooktips/qt/et012405.htm

I went for Hideout only on the basis of review available on the above mentioned site.

Monday, March 13, 2006

JBoss as windows service

To run Jboss as windows service visit following site:

http://wiki.jboss.org/wiki/Wiki.jsp?page=RunJBossAsAServiceOnWindows

But it seems to me that this site information is not complete.

This site suggests that one should use JavaService.exe as following:
JBossService.exe -install JBoss
{JDK_HOME}\jre\bin\{hotspot|server|classic}\jvm.dll
-Djava.class.path={JDK_HOME}\lib\tools.jar;{JBOSS_BIN}\run.jar
-start org.jboss.Main
-stop org.jboss.Main -method systemExit
-out {JBOSS_BIN}\stdout.log
-err {JBOSS_BIN}\stderr.log
-current {JBOSS_BIN}
-depends mysql
-manual


But the parameter required by JVM, at least in my case should be more:

{JDK_HOME}\jre\bin\{hotspot|server|classic}\jvm.dll
-Xmx1300m -Xms1300m
-verbose:gc [might be optional]
-Xloggc:gc [might be optional]
-Djava.endorsed.dirs={JBOSS_BIN}\server\default\lib\endorsed
-Djava.class.path={JDK_HOME}\lib\tools.jar;{JBOSS_BIN}\bin\run.jar

Parameters after -err can be avoided.

Friday, January 27, 2006

Accessing FTP through IE

follow the link if you need to pass username and password to ftp server and you are trying to access the server through Internet Explorer

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q135975#XSLTH3150121123120121120120

Tuesday, October 11, 2005

finally 'final' is not required unnecessary

Ahhh.. good I got this information else I was living in a myth that final may improve performance.

http://www-128.ibm.com/developerworks/java/library/j-jtp04223.html

Monday, October 10, 2005

Increasing memory of Program in Eclipse

If you are running any java program from Eclipse and you are getting OutOfMemory error then you have to increase the memory for that program.

For that go to run -> arguments -> VM arg-> Xmx256M

Note: Dont put -vmargs, what we generally put as Eclipse would take of it.

Friday, October 07, 2005

Eclipse "workspace in is use"

Today again I spent an hour to find the solution for this frequent occuring problem for which I already knew the solution.

AW if while starting the eclipse, one gets "wrokspace is in use" error then try following:

1) run eclipse with -clean option.
eclipse -clean

2) If step one does not solve the problem then try to delete .lock file avaiable in /.metadata/.lock

3) If neither works then open the Task Manager (Ctrl + Shift + Esc), terminate the eclipse(if running) and javaw processes and the go to step two.

If still it does not solve the problem then log a bug with eclipse with complete log.

And if you find any other solution to fix this problem then do reply me.