Wednesday, January 4, 2012

Convert eclipse project to java project

Open .project file located in the project root folder and following lines;

<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>

Save it and refresh the project in eclipse. That's about it.




Sunday, December 25, 2011

The Google account already has access to an AdWords account (Customer ID: )

If you are getting this error when accepting a google adwords invite then follow these steps to fix the problem;

1. Create another dummy google account, say, dummy@gmail.com

2. Sign out and sign into google adwords using your primary gmail account, say, primary@gmail.com

3. Invite dummy@gmail.com and grant an administrator role

4. Sign into your dummy@gmail.com account and accept the invite.

5. Go back to your primary@gmail.com adwords account and confirm the acceptance by dummy@gmail.com by clicking on Grant button.

6. Sign out of adowords account and sign in again using dummy@gmail.com . Delete primary@gmail.com from your adwords account.

7. Go back to your adwords invite and accept using primary@gmail.com account. This time it should go through without any errors.

To summarize, you have to transfer the ownership of your current primary gmail account to an alternate (or dummy) gmail account and then delete your primary gmail id from the adwords account.

Hope this helps you workaround this issue. It worked for me.

Sunday, August 28, 2011

Is tablet the next big revolution in India?

In spite of growing number of internet users, high talent pool and a big technology outsourcing industry, pc and internet penetration in India has been slow. The slow uptake is often attributed to lack of infrastructure. It is not just rural parts of India that lack infrastructure. For example, whitefield area in bangalore (which is a prime tech hub) still has only one broadband provider - BSNL. Every other provider - Airtel, Reliance, Tata - has refused to invest in laying cables in this part of bangalore. This is a very similar situation about 10 years ago when it was extremely difficult to get a landline connection and there were huge backlogs. The introduction of mobile phones at affordable price changed everything and India now boasts world's second largest number of mobile subscribers. Could the introduction of affordable tablets combined with 3G connectivity in India be the next game changer? I believe it could be and in next 10 years it could get 2 -5 times bigger than number of ipads sold today.

Friday, August 26, 2011

SMB tech spend to grow 4 fold by 2015

According to a recent article, TCS has signed up 240 customers for their cloud based offering for SMBs and planning to signup 100 channel partners across India to increase the total number of customers to 1000 in 1 year.

The total tech spend is expected to grow to $48.5 billion by 2015. This presents a huge opportunity for companies offering cloud based solutions in India considering 60% of SMBs do not have any tech infrastructure.

Cloud based apps, such as ours (http://www.gromor.in), offers a great jumpstart for SMBs to benefit from world class technology solution available at affordable pay-per-use model. It reduces upfront investment by as much as 90% and enables SMBs to focus on growing their core business without worrying about managing IT infrastructure.

Sunday, August 21, 2011

Adding google apps email to ipad

I recently tried adding a google apps email account by following steps at http://goo.gl/gvr9W . However, I got an error Username or password for "imap.gmail.com" is incorrect . I was able to resolve the issue after unlocking captcha as suggested at http://goo.gl/ABDHB .

Sunday, July 3, 2011

who needs another social network?

That was my first reaction to Google+. In a matter of 2 days 40 connections were added to my circles. That is when I realized that it could be a serious competitor to facebook. Here's why:
  1. Rebuilding social graph is quick and simple. Everyone I have interacted over email can be found in my gmail which makes it easy to add connections. That's viral.
  2. "Hey, look what my dog did last week!" - yes, one can now have side conversations with a relevant group of people instead of broadcasting to all. That's less noise.
  3. I can call in sick at work and still talk about my day off with my friends without worrying about getting fired from work. That's better privacy.
  4. Sure, I will accept invite from my mom. On facebook, it is awkward to let friends, family and co-workers see everything. It's not a problem on Google+ since not everyone can see all my posts. That's more freedom.
  5. It is all about sharing nearly real-time information. Older conversations are irrelevant. That will make it easy to switchover to Google+ once the social graph gets built.
Lastly, Google has a track record of challenging well established players. Just when people thought "who needs another search engine" or "who needs another email", Google surprised everyone. Can they do it again?

Saturday, April 16, 2011

Installing SSL in tomcat

Here are the steps to install SSL in tomcat.

1. Create a key pair
keytool -keysize 2048 -genkey -alias <pick a name> -keyalg RSA -keystore tomcat.keystore
default password, if not changed, is changeit
  • First and last name - type your website url, for example, www.company.com
  • Organizational unit - for example, engineering, production etc.
  • Organization - full name of your company
  • City/Locality - name of the city
  • State/Province - name of state
  • Country code - two letter country code. refer to this site
  • type yes to confirm and press ENTER
    when asked for a password for private key, select same password as the keystore otherwise you will run into this bug #38217 at the time of installation
2. Generate a certificate request (CSR)
keytool -certreq -keyalg RSA -alias <your alias> -file <your company name>.csr -keystore tomcat.keystore

3. Copy/paste the entire content of .csr and follow the steps described by your certificate provider, for example godaddy etc, to submit the csr.

4. Download the issued certificate and install it in your keystore. For example, download a zip file from godaddy, and follow these steps;
keytool -import -alias root -trustcacerts -file gd_bundle.crt
keytool -import -alias cross -trustcacerts -file gd_cross_intermediate.crt
keytool -import -alias intermed -trustcacerts -file gd_intermediate.crt
keytool -import -alias <your alias> -trustcacerts -file YourDomain.crt

5. Enable SSL in tomcat. Uncomment following connector in /conf/server.xml and add keystore details.
<Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="<path to keystore>/tomcat.keystore" keystorePass="<keystore password>" keyAlias="<your alias>" />

6. Append following snippet in WEB-INF/web.xml of your web application.

<security-constraint>
<display-name>ssl redirect</display-name>
<web-resource-collection>
<web-resource-name>Protected Area</web-resource-name>
<!-- Define the context-relative URL(s) to be protected -->
<url-pattern>/*</url-pattern>
<!-- If you list http methods, only those methods are protected -->
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>


7. Make sure redirect port of the http connector is pointing to correct ssl port
<connector port="80" protocol="HTTP/1.1" font="" connectionTimeout="20000" redirectPort="443" />

8. stop and start tomcat

9. try http://<your-domain> and it should automatically redirect you to https://<your-domain>