Skip to main content

Posts

Showing posts from August, 2013

Installing Veloeclipse Velocity Editor in Eclipse

      V elocity has nowadays gained a lot of respect in web development and you will for sure find this language in most of the places. In such a scenario, if the language is not detected by Eclipse then that becomes a huge drawback and also difficult to work. There are scads of plugins available but I used Veloeclipse and it is working good. So you can as well go ahead and try this velocity editor. Steps to install Veloeclipse in your Eclipse: Step 1: I am hoping you have your Eclipse open. Go to Help --> Install New Software. A new window appears. Step 2: In the new window you will find an Add button. Click on it and you will get one more window. Here you will have two options. Fill them as shown. Name: veloeclipse Location: http://veloeclipse.googlecode.com/svn/trunk/update/ Step 3: Once you click OK on the previous screen, you will get a new window which will have an option to select. Select the box and click Next . Step 4: T...

Installing 3rd party jar file to Repository using Maven

   S ometimes the requirement comes when you have to use a third party plugin in your project which is not present in any public repositories. In such a scenario it is advised to deploy this jar file into your repository and then use it as a normal dependency in your Maven project. This is helpful as the jar file becomes available to a lot of projects in future and if any further development work on the same project is done in future, then the dependency is resolved easily. It's just a matter of running a maven command and you are ready to go. In case you want to install this plugin into your local repository(.m2 folder) then the command would be different from the normal deployment into your public repository. For Local Maven Repository(.m2 folder): mvn install:install-file  -Dfile=<path to the jar file> -DgroupId=<groupId you want to provide>  -DartifactId=<Unique name of the plugin> -Dversion=<version of the plugin you want to...

How to create a Hyperlink that links to a particular part of a webpage

Well this requirement is quite well known. Its many time a requirement when you want to set up a link in a web page which points to a particular topic of the same web page or some other web page. The looks like a very tough job to achieve but believe me it is as easy as filling a glass with water. I will quickly guide you through the steps to achieve this task. Note: You must be the owner of the page. Or at least you should be able to embed an html snippet in the destination page where your link should point. Lets take a simple example and demonstrate how this works. Say I have two html pages viz., page1.html and page2.html . I intend to have a link in page1.html which would point to a particular topic in page2.html. Page1.html <html>     <body>         <a href="file:///C:/Users/satyamr/Desktop/page2.html">Link</a>     </body> </html> This Link now takes me to the top of pa...

Terrified Surprise !!!

       'R onny...... Ronny.... Wake up'. I could hear a fading voice calling my name to wake up. I somehow opened my eyes and looked at my watch. It was 10:50 PM. Then I could figure out that it was my roommate waking me up to have dinner. My eyes did not like this disruption and forced me to close them again. Within seconds this friend of mine started calling me again and this time handed me my dinner. With no choice left, I woke up and had my dinner. There is a small incident before this one which needs to be depicted before I proceed further. Four friends including me decided to share an apartment as we worked in the same company, were friends for the past 6 months and this would indeed save some bucks for us to enjoy. Once, there was a long vacation of 3 days (Once you join office, 3 days will be like 1 month holiday) and everyone was planning for some trip or the other. But for us it was a normal holiday which meant sitting back home and watchi...