Wednesday, June 24, 2009

Fast loading web pages while surfing the Internet may have more to do with your web browser settings and preferences than your Internet connection speed.

Try these easy Firefox tweaks and you’ll see that you’re surfing the Internet from 3 to 30 times faster!


To get started, open your Firefox web browser. In the address/location bar type [about:config] and then press your Enter key. (NOTE: DON’T TYPE THE BRACKETS.)

Open Firefox Web Browser

Tweak #1:
In the Filter bar type [network.http.pipelining]. Then, double-click on this line under Preference Name in order to change the value from false to true.

Firefox Web Browser Tricks

Tweak #2:
In the Filter bar type [network.http.pipelining.maxrequests]. Then, double-click on this line under Preference Name and change the value from 4 to a higher number anywhere from 10 to 30. I set mine to 30.

Firefox Web Browser Tricks

Tweak #3:
In the Filter bar type [network.http.proxy.pipelining]. Then, double-click on this line under Preference Name in order to change the value from false to true.

Firefox Web Browser Tweaks

Tweak #4:
In the Filter bar type [network.dns.disableIPv6]. Then, double-click on this line under Preference Name in order to change the value from false to true.

Firefox Web Browser Tricks

Tweak #5:
In the Filter bar type [plugin.expose_full_path]. Then, double-click on this line under Preference Name in order to change the value from false to true.

Firefox Web Browser Tweaks

Tweak #6:
In the Filter bar type [network.protocol-handler.external.ms-help]. Now, you are going to create a new Preference Name with an Integer Value. To do this, right-click on this line under Preference Name and select New, then Integer.

Firefox Web Browser Tweaks

In the New Integer value box type in [nglayout.initialpaint.delay] and click OK. Then in the Enter Integer value box type [0] (that’s a zero) and click OK.

Firefox Tricks

Tweak #7:
In the Filter bar again type [network.protocol-handler.external.ms-help]. Now, you are going to create another new Preference Name with an Integer Value. To do this, right-click on this line under Preference Name and select New, then Integer. In the New Integer value box type in [content.notify.backoffcount] and click OK. Then in the Enter Integer value box type [5] and click OK.

Firefox Tricks

Tweak #8:
In the Filter bar again type [network.protocol-handler.external.ms-help]. Now, you are going to create another new Preference Name with an Integer Value. To do this, right-click on this line under Preference Name and select New, then Integer. In the New Integer value box type in [ui.submenuDelay] and click OK. Then in the Enter Integer value box type [0] (that’s a zero) and click OK.

Firefox Tweaks

Now, close your web browser and restart it. You’ll see how much faster web pages are loading. I sure did.

Let me know if these tweaks increase your Internet browsing speed. Know of any other tweaks or tricks? Let me know and I’ll add them.

http://www.madwahm.com/webmaster-stuff/8-easy-firefox-tweaks-for-super-fast-web-browsing/

Tuesday, June 16, 2009

Save Password for Microsoft Office Communicator


HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Communicator"SavePassword"=dword:00000001

REG_DWORD = SavePassword
You can set it You can configure this policy under both HKEY_LOCAL_MACHINE and HKEY_CURRENT_USER, but the policy setting under HKEY_LOCAL_MACHINE takes precedence

Values.
Not set = User choice (default).
0 = Users do not have the option to save password.
1 = Users have the option to save password.


Monday, June 15, 2009

A simple EJB 3 on JBoss application server

A simple EJB 3 on JBoss application server
This is a simple tutorial on how to run EJB 3 app on Jboss application server. The version I'm using is JBossAS-5.0.0 beta2. Note that this version does not work with JDK 6 (see my previous post). So you will need to set environment variable JAVA_HOME to a JDK 5 location (e.g., set JAVA_HOME=C:\jdk5) for JBoss server. This also requires us to compile EJB classes with JDK 5 for the class file to be compatible with server JVM. However, it is perfectly OK to use JDK 6 for the client.

1. project directory structure:


E:\EJB> tree /A /F
+---classes
\---sample
\---src
\---sample
Client.java
SampleBean.java
SampleRemote.java

2. create java src files under src\sample:

package sample;
import javax.ejb.*;
@Remote
public interface SampleRemote
{
public String echo(String s);
public String add(int x, int y);
}
------------
package sample;
import javax.ejb.*;
@Stateless
public class SampleBean implements SampleRemote
{
public String echo(String s)
{
return s;
}
public String add(int x, int y)
{
return ""+(x+y);
}
}
------------
package sample;
import javax.ejb.*;
import javax.naming.*;
public class Client
{
public static void main(String[] args) throws Exception
{
//JBoss' default remote jndi: /remote
final String jndiName = "SampleBean/remote";
Context ic = new InitialContext();
System.out.println("about to look up jndi name " + jndiName);
Object obj = ic.lookup(jndiName);
System.out.println("lookup returned " + obj);
SampleRemote sample = (SampleRemote) obj;
String s = sample.echo("\nHello Sample on JBoss!");
System.out.println(sample + " echo returned " + s);
String s2 = sample.add(Integer.parseInt(args[0]), Integer.parseInt(args[1]));
System.out.println(sample + " add returned " + s2);
}
}
//JBoss' default remote jndi: /remote

3. Compile java src. I used JBOSS-5 for this.
E:\EJB\classes> javac -d . -classpath E:\jboss5\client\jbossall-client.jar;. ..\src\sample\*.java

4. start JBoss Server

5. package and autodeploy ejb-jar. We can combine the 2 steps in 1 by using E:\jboss5\server\default\deploy as the destdir:
E:\EJB\classes> jar cvf E:\jboss5\server\default\deploy\sample-ejb.jar sample\SampleBean.class sample\SampleRemote.class

6. Prepare jndi.properties and log4j.properties somewhere in client classpath, e.g., E:\EJB\classes directory:
jndi.properties:
----------------
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=localhost:1099

Note that I use JDK 5 on the client.

set classpath=e:\jboss5\client\jbossall-client.jar;e:\jboss5\lib\jboss-aop.jar;.;D:\jdk1.5\jre\lib;
--passing two arguments as below.
E:\EJB\classes> java sample.Client 3 4

about to look up jndi name SampleBean/remote
lookup returned Proxy to jboss.j2ee:jar=sample-ejb.jar,name=SampleBean,service=EJB3 implementing [interface sample.SampleRemote, interface org.jboss.ejb3.proxy.intf.EjbProxy, interface org.jboss.ejb3.proxy.intf.SessionProxy]
Proxy to jboss.j2ee:jar=sample-ejb.jar,name=SampleBean,service=EJB3 implementing [interface sample.SampleRemote, interface org.jboss.ejb3.proxy.intf.EjbProxy, interface org.jboss.ejb3.proxy.intf.SessionProxy] echo returned
Hello Sample on JBoss!
Proxy to jboss.j2ee:jar=sample-ejb.jar,name=SampleBean,service=EJB3 implementing [interface sample.SampleRemote, interface org.jboss.ejb3.proxy.intf.EjbProxy, interface org.jboss.ejb3.proxy.intf.SessionProxy] add returned 7

8. To undeploy the ejb module:
del E:\jboss5\server\default\deploy\sample-ejb.jar

Saturday, June 13, 2009

Please give way to the Ambulance

Hi Friends,
Last couple of days was hectic for me the Hyderabad city traffic. It was tough time, to ride on city roads here, as always.

However these days I could observe one common thing in all vehicle riders in Hyderabad. No one is ready to give way to any Ambulance.

Think... Think... Think... this may cause a problem to your dearer ones at some point of time. May be one of us will be in Ambulance and hoping for others to give way.

We as common Indians, may not follow driving rules/etiquette, may not allow other people to cross us, may not show concern to others' problems, may not care the traffic police, may not stop talking on mobile phone while driving.

However at least I feel we still have a bit of humanity in us to understand this and try to give way to Ambulance starting from the next drive.

It's very simple.
--> No hurry, no worry, be calm, slowly reduce your speed a bit.
--> Stay to the left if you already on left side.
--> If you are in the right lane continue to drive safely but merge carefully to the left. But, please do it only if it is safe to do so.
--> If there are three or more lanes the ambulance the ambulance will try and progress through traffic in the right-most lane.

--> Don’t make sudden movements, including sharp braking and sudden lane changes.
--> Don’t abuse other drivers around you, even if you think this will benefit the ambulance.
--> Don’t speed to get out of the way. This is dangerous.

Whenever there is a chance, discuss this in your "circle of influence" and make people responsible for a good cause.

Happy driving.

Take care...
Cheers,

Kishore