Sunday, 1 August 2010

Should you invest in ULIPS?



Recently there were several changes to the ULIP’s.But one should keep in mind that it’s core has not changed. They still remains as a long term investment cum insurance plans which always miss sells to customers. I always heard people talking that their investments are mainly in equity's which even give them insurance coverage for free. Yes they were being told like that by the agents. Final result will be that these huge entry loads ranging from 30 to 40% makes their investment un viable and this leads to false education regarding the entire equity investment. Let’s try to see who all and when all and what all things we should consider before investing in ULIPS.

Who should choose ULIPS?

A person who invests in ULIPS should be willing to invest in Equity’s. Choosing debt funds in ULIPS will be a tragedy as despite the high charges of ULIPS the returns from debt instruments will be too low, which may always result in a loss of your investments. The advantage of ULIPS is on the switching feature. So for the one who know the dynamics of markets he can switch from equity and debt as the BULL and BEAR side of market comes in to play.

Which type of plan is good for you?

The main problem of ULIPS is that the insurance converge is too low. Imagine getting 2 Lakh coverage when the total premium for first 3 years is 2 Lakhs and more. So to get the most of it, one should try to choose the plans which will give enough coverage as required for a longer period. Some even cover till 90 yeras of age.
Another problem is with the amount getting after the death of the insurer. Some ULIPs give either the fund value or the some assured..choosing which one is higher. Here a normal user should choose the fund which will give both the fund value and Sum Assured.

Conclusion

To enjoy the benefits of ULIPS, one should invest for at-least 10 years. Coz for the first 3 years the load charge are huge and negligible there after. Also should opt for plans which will have a good coverage as per your requirement. So if you are an investor who want a plan to save for your childrens college education in 10 years time...ULIPS are for you. For others please choose Mutual Funds or direct investments in Stocks.

Friday, 29 January 2010

Deploy an application in context root on Tomcat


How to Deploy an application in context root on Tomcat?

Suppose my web application with name MyApp, I created a WAR file and deployed in Tomcat. Now you can access the application as http://localost:port/MyApp/…

How can you change the context root in URL to some thing else?

Solution

Very Simple ,

1. Go to Tomcat Installation dir/conf/server.xml

2. Under Add (or Edit if is already existing) See image for xmls

Now your URL will be http://localhost:port/

You can change path to anything you want

See image for xmls

3. AND remove the ROOT webapp, or it will use that instead.

Wednesday, 20 January 2010

3 most commonly faced challenges to use Tapestry service (IOC)

  1. How to initialize one tapestry5 service at startup? Use Eager Load for this. eg: bind(MyServiceInterface.class, MyServiceImpl.class).eagerLoad();
2. How to use a tapestry5 service inside another T5 service which is eager loaded
Pass the service through the contructor, which will prevent from getting null pointer exceptions.
3. How to use multiple versions of a same service concurrently?
Can be done by using withId and withMarker attributes.
eg:@Target(
{ PARAMETER, FIELD }) @Retention(RUNTIME) @Documented public @interface Clustered {  }  @Target( { PARAMETER, FIELD }) @Retention(RUNTIME) @Documented public @interface InProcess {  }   public class MyModule {   public static void bind(ServiceBinder binder)   {     binder.bind(JobScheduler.class, ClusteredJobSchedulerImpl.class).withId("ClusteredJobScheduler").withMarker(Clustered.class);     binder.bind(JobScheduler.class, SimpleJobSchedulerImpl.class).withId("InProcessJobScheduler").withMarker(InProcess.class);   } }

Wednesday, 28 October 2009

How to make tata indicom plug to surf run on Ubuntu 9.04

1.First just plug your Tata indicom USB to your Laptop system

2.Then go to Root terminal

You can access it from Applications->System Tools->Root Terminal

3.In the terminal simply enter wvdial

4. If wvdial is not installed please get it installed with dependencies (see my other post related to this)

5.if your modem has been detected you would get a error message like this

Modem intialized

Invalid Phone number

Invalid username

Invaild password

if you get a error message like this then you need to configure wvdial

5.For that go to root terminal and type

sudo gedit /etc/wvdial.conf

wvdial.conf is generally stored in etc folder

Now the file would be opened in geditor

Just cut and copy the below code

[Dialer Defaults]
Modem = /dev/ttyACM0
Baud = 460800
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2
+FCLASS=0
ISDN = 0
Modem Type = USB Modem
Phone = #777
Username = internet
Password = internet
stupid mode = 1



and then save it




After saving it go to root terminal and type wvdial

now the modem would connect itself to internet after a series of messages on your root terminal

You would generally get these messages Primary DNS address ,ip,Secondary DNS Address..

There you are.........online.....from linux..........wireless...........priceless too.. :)

How to install missing wvdial in ubuntu 9.04

Wvdial is the most used utility used from linux to configure wireless modems. Unfortunatly it doesnt come preloaded on Ubuntu 9.04.

This note refers to Ubuntu 9.04 running on a PC that has no access to the internet via LAN or WiFi and the modem we have is not recognized by the system (like many 3G CDMA or HSPA modems).
So this is a strange and difficult case!

At first I downloaded the following packages (from a pc connected to the internet, any O.S.):

1. http://packages.ubuntu.com/jaunty/i386/libxplc0.3.13/download
2. http://packages.ubuntu.com/jaunty/i386/libwvstreams4.4-base/download
3. http://packages.ubuntu.com/jaunty/i386/libwvstreams4.4-extras/download
4. http://packages.ubuntu.com/jaunty/i386/libuniconf4.4/download
5. http://packages.ubuntu.com/jaunty/wvdial/download


Note that above are all for an i386 pc.

I down loaded all on my xp OS, and then paste them to the ubuntu 9.04 after mounting my xp drive into /var/cache/apt/archives/ directory using sudo nautilus from terminal. Then I installed all packages by double clicking each icon (of .deb package) in above order (1,2,3,4 and finally 5). I ignored all informative messages. Finally I had to run wvdialconf, edit the /etc/wvdial.conf file and be connected with sudo wvdial.

To see what all entries i gave on wvdialconf to get it configured for tata indicom plug to surf...see my other post.