Skip to main content

Posts

Showing posts from 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: The rest will be done by

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 deploy> -Dp

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 page2.html. Page2.html <html>     <bo

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 watching TV. One of the fri

OCPJP/SCJP - A good way to learn JAVA

    P hew !! After lot of postponing, I finally went for the OCPJP Exam (formerly SCJP) and luckily I got through it. Yes I was quite lucky enough to pass the exam, though the percentage I scored is pretty low compared to most of the people out there. But still I am quite happy with what I have. Scads of tips to score well in the exam will be easily accessible on doing some search in Google, so I am not going for anything like that. This is mostly about how I went for it and finally came out with flying colors. I thought to write this blog just to give a boost to all those people who are planning to write the exam and also those who scored less and are in the notion that they ruined it completely. If you have passed the exam, then you are good. Oracle and previously Sun made it pretty sure that only if you know the basics of the language, you will pass the exam. But nowadays you can get hold of so many dumps which will fetch you more than 95% easily. The question remains t

Nokia Lumia 920 Two Days Long Battery Test

         After waiting for nearly six months before Nokia 920 launch I finally bought it two days after launch on 12th January, 2013.  Overall I am very happy with it especially, after changing from iPhone 4.  A lot of friends are asking about performance of Nokia 920, about camera, apps and especially battery life. So I decided to do a detailed analysis of battery life for it. Thanks for the great app Battery that helped me do this.   I kept my phone on charging in the night and make sure it is fully charged before testing next day. Disabled data connection, blue tooth, WiFi. Location services on.  2nd April, 2013: Woke up and started getting ready for office,   At 7.30 - 100%  Started for the office in bus and listened to music via headphones on the way. I occasionally changed the songs in between by using volume bar.  Reached office and at 8:15, stopped the songs.  At 8:16 - 100%  Not much use afterwards had two calls around one minute each. The pho