Tuesday, June 14, 2011

This file does not have a program associated with it

While typing web addresses on the Run Command and as well clicking links in the documents, chat etc. was giving me this error .

This file does not have a program associated with it.Create an association in the Folder Options control panel.

I browsed a hell lot of pages on the google but didn't find a solution .
Finally , something worked out of my thinking .So I am writting it here .
I just enabled access to internet explorer in the Set program access and defaults menu of windows start.

Monday, June 13, 2011

Speed up windows system

Speed up your windows system

Speed of your system depends on
1 Speed of CPU
2 RAM size  - Bigger the RAM size , bigger can be the system's speed and lesser is the paging required.
3 Swap size - Extensive paging activity can slow your system's speed.A good swap size is considered to be 3 GB or 4 GB.
4 I/O speed - How much speed is your hard disk read and written.

1 Using the Run on your start menu
Run
Prefetch- Delete all files
Temp - Delete all files
%temp% - Delete all files

2 Programs  ,  Accessories,  System Tools , Disk Cleanup 
This will delete files from several folders .Be sure to uncheck Recycle bin if you do not want to empty recycle bin.

3 Run antivirus full scan


4 Remove icons from Program , startup which are not required.
There may be some software required to be at system tray as per your organization policy if you are using a company's laptop or desktop.


5 Remove all the unwanted software's that are not required by uninstalling them.
E.g. I don't use gtalk, yahoo messenger  .So I have uninstalled them.

6 Run msconfig , startup. Uncheck what are not required during the system startup.You may also do the same by using software like CCleaner by going to tools -> startup and disabling.


7 Run services.msc. Identify the services which are not required.Normally, the services that are not required are the software services  that are used by you while developing a software etc.
So change the startup type for such services  to be manual.Do not change the setting of services if you are not aware of what they do.
E.g I have changed the startup type to manual for IBM HTTPserver and MQ Series which I am very well aware what they do.


8 Right click on task bar , properties , start menu , Customize , Advanced , disable most of the links which you don't need often by selecting the radio button -Don't display this item.
I only use Control panel, run command here , So I have disabled rest of them.
Number of programs on start menu = 0
Unchecked Internet and Email  on "Show on start menu"


9 Right click on system tray .Properties , Taskbar , customize , Always hide which are not required.


10 You may use a software to remove windows log files , temporary system and temporary application files  like CCleaner. Run analyze first before cleaning the files.

11 Right Click on My computer , properties ,  Advanced ,  Performance , settings , Advanced ,  Check your virtual memory initial size and max size .It should be 2 GB and 4 GB.

12 Defragment your disk.Do not perform defragmentation unless its really required because it will take a lot of time(more than 8 hrs, depends on size of disk ) to complete .Be sure you have continuous power while performing defragmentation.

Sunday, May 8, 2011

Use phone as a modem to access internet via GPRS on PC

First  make sure GPRS service is activated by your service provider before attempting to connect to internet.


Install PC suite software on Personal computer from the link http://www.nokia.co.in/support/download-software/nokia-pc-suites/compatibility-and-download#
This will provide all the required drivers for recognising the phone hardware.I am using Nokia 2730 Classic phone.

Connect phone to PC with the cable provided .I connected my phone to PC with the data cable to a USB port on PC.

In your phone , go to Menu-> Settings -> Connectivity ->Packet Data -> Packet data settings ->Edit active access pt -> Packet Data acc. pt. Write here airtelgprs.com

Now in your PC , go to start ->settings->control panel->network connections->make new connection->
for dialing to internet->my connection manually->connection name ->AIRTEL->phone number->*99***1# ->user name and password blank.

Then try connecting to the internet via PC.That should work.

Optional setting.->
In your phone , go to Menu-> Settings ->Configuration -> Default Config Sett.Choose here Mobile Office.
go to Menu-> Settings ->Configuration ->Preferred access pt. as Mobile Office.

My bookmarks

Wednesday, February 16, 2011

Building EJB 3.0 applications with WebSphere Application Server

Building EJB 3.0 applications with WebSphere Application Server


http://www.ibm.com/developerworks/websphere/techjournal/0712_barcia/0712_barcia.html





This document can be used as aid to the above article and totally based on author experience.

Challenges Faced.





1.Faced some problems in creating Derby schema .

For that i referred to the links.

http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/tdat_derby_setup.html

Above link is not working , now .
You may use the below link
http://www-01.ibm.com/support/knowledgecenter/#!/SSHSCD_6.3.0/com.ibm.worklight.deploy.doc/admin/t_setting_up_your_apache_derby_database_manually.html


http://www-01.ibm.com/support/docview.wss?uid=swg21321121

Starting the derby database :
To start the Network Server, run the startNetworkServer.bat file, which is located in the WAS_HOME/derby/bin/networkserver directory.

To create new database, from the "ij" command prompt, type the following command:

CONNECT ';create=true';
(e.g. "CONNECT 'employeeData;create=true';")
Just to connect write CONNECT 'employeeData';  Do not forget to add semicolon at the end of line.
Then you may run the commands directly or run a file with commands using RUN 'file name';





2.Installing the websphere ejb 3.0 feature pack.

I have already installed websphere fix pack 35 So websphere version was 6.1.0.35 .

I was under the impression that websphere ejb 3.0 feature pack is already included .

I was getting error javax.persistence could not be resolved .



Being a novice in AST , I thought javax.persistence API should be there in AST .

I updated my Application server toolkit to get rid of the error but no success.

http://www-01.ibm.com/support/docview.wss?uid=swg24027126

After doing some investigation , I found that I need to install websphere ejb 3.0 feature pack as AST is using Websphere libraries.



I downloaded websphere ejb 3.0 feature pack .(http://www-01.ibm.com/support/docview.wss?rs=177&uid=swg21287579)

Now websphere ejb 3.0 feature pack Installer was giving me error that you need to include

the fix pack 35 for websphere ejb 3.0 feature pack.

It took me a lot of time to search for fix pack 35 for

websphere ejb 3.0 feature pack as google was

leading me to the websphere fix pack 35 page .

The information there was very confusing for me.But finally I found the fix pack 35 for ejb 3.0 feature pack in the fix central that was just around 80 MB.





And was able to install websphere ejb 3.0 feature pack on top of websphere 6.1.0.35.

http://www-933.ibm.com/support/fixcentral/


Conclusion :Fix pack 35 for websphere 6.1 , Fix pack 35 for websphere 6.1 feature pack ejb 3.0 , and websphere feature pack ejb 3.0 all are different things.


3.Publishing my code directly to WAS from AST .



I have configured the WAS server in AST and was able to stop/start the correct server.

But was not able to publish my content to WAS.

In order to get rid of this problem , I exported my code as ear and deployed to WAS which worked fine.