Category Archives: Uncategorized

SEO Beginners Guide

Search Engine Optimization(SEO) however big this term may sound .But it simply means how to write your content so that your page should appear on the first page and if you are extremely lucky than the First result in Google Search(please don’t mind but now a days search means google search). Though the topic SEO is vast and there are many advanced techniques for improving your search engine rankings.But believe me if you follow these simple suggestions I’ve mentioned and your content is original you will be on First page. If your blog is not very large to be more specific ,If your monthly traffic is less than 500000 page views and your content is original just follow this guide and believe me you will be on top. Lets begin 1.SEO is not Rocket Science some of the web Gurus will tell you that it will take years to master  this subject but believe me that’s not true. 2.Help people find what you are offering to them by using right keywords.You can use tools such as google keyword tool , to find  right keywords. 3.Write quality content :

  • Be specific :If you are writing about iPhone write it as iPhone instead of mobile.
  • Title : Write related and eye catching title that attracts users attention.
  • Link : link to other good sites that explains other things which your site is about.This will result in other sites linking to you as well.
  • Update : Make sure the  content on your site is not outdated, update it regularly.

4.Headings Headings are somewhat similar to headings in a book .Generally, there should only be one H1 tag on each page, and you can have as many h2s, h3s, and h4s as needed. Also, make sure your headings contain keywords and are relevant to the content on your website. 5.URL URL is also plays one of the most important part of your search engine Rankings.If your page urls are messy then search engines will find difficult in finding your page.Also if some keywords are present in the url then it can improve your rankings For Example:       will result in better ranking than 6.Internal links the way you link your sites content to each other decides you search engine rankings.Try to have good number of internal link within the same page as well as to other pages of your website. 7.Images Try to name your images in a way that describes it properly.Like if you have an image of Stevejobs on your website , try to name it as stevejobs.jpg instead of image01.jpg.Also in the alt tag of the image give brief but proper description of the image. like <img src=”” alt=“steve jobs image” />
1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 4.00 out of 5)
Loading ... Loading ...

Eclipse Shorcuts

Shortcuts are among the effective ways to increase your speed and efficiency .Eclipse apart from standard shortcuts like CTRL+A provides many other shortcuts using which you can increase your productivity.Below I’m listing the 10 essential eclipse shortcuts which every eclipse user should know to work more effectively.

Organize imports.Press this combination to import all missing classes which is needed to run your code.Also this will remove all unused classes.

Delete a row.No need highlight the entire text and press delete or use mouse , just press CTRL+D and you are done.

One of the most effective eclipse shortcut opens a search dialog to search form recently used resources.U can any patter like Foo* to search all files whose name starts with foo prefix.eclipse shortcut ctrl+shift+r


Search .Use this eclipse shortcut to search any class ,method ,string within text .And a lot of other things.

Another important eclipse shortcut.Highlight an object and press F3 to go to the object declaration.Select a class name and press F3 to view class definition.

6.ALT+Left/Right arrow
Used for navigating the code.Lets say you are in class A and there is an object of type B in it you pressed F3 on that and moved to class B, now you want to go to class A again simply press ALT+Right arrow if you again want to go to class B press ALT+Left Arrow.

7.CTRL+SHIFT+\ or /
Add and remove block comments around a piece of code.

Move between perspectives.

format ,use this eclipse shortcut to format your ugly looking code .

Quickfix , use this eclipse shortcut to see quickfixes available for any errors or warnings.

Though there are many more shortcuts available in eclipse but I mentioned only those which I think are a kind of must know , if u think I forgot something important let me know I will add it.

Deploying Grails app on Tomcat

Below I’m describing the steps to follow for deploying a grails web application in tomcat server instead of the default server that comes with the grails package.


1. For deploying grails app on tomcat or any other application server we have to create a web archieve [.war file].

2. Before creating the war  file do any kind of configuration changes which you want , b’coz these cann’t be changed after generating the war file.

3. Also make sure that the line   “// TODO: grails.serverURL = in file “appname\grails-app\conf \Config.groovy” is commented or is set to  appropriate url if running live  by default the                     line is commented and hence no modification is needed  for  testing on localhost.

4 .Now create the war file by type  “ grails prod war”

5. Now check the appname/target directory you will see a war file there

Ex: if app name is Gregister the a file Gregister-0.1.war will be there.

Rename the war file  from Gregister-0.1.war to Gregister[ using which you were deploying it originally].

6. Place this file in  “webapps” directory of tomcat.

7. Start tomcat.

8. Click Manage App button    tomcat manage apps

9 .Enter Login details

10. A table with name Applications is there which shows the  list of all applications . apache managerwebapps

11. In this table Click in the path column on the row corresponding to your application

Ex: /Gregister in this case. //screenshot available

12. You wil be directed automatically to the home page of the grails app and you can use the grails app similar as running using grails framework.grails workingapp

13. If the application name is not listed in the Applications table then  goto War file to deploy table on the same page

.click choose file and select the war file in web apps directory

.click deploy and refresh page and follow above steps to deploy

14. One thing to note is that this time the application runs on the port on which tomcat is installed Ex: http://localhost:8011  [here 8011 is the port on which I installed tomcat].