Marketplace for Content, Tests and Assessment
 
 

Archive

Author Archive

Debug Maven tests running inside eclipse

March 1st, 2010 Vinay No comments

For those of us who have been running JUnit tests inside eclipse , one of the biggest feature available to us was the debug ability of the JUnit tests.
When we started working on Maven tests , the first questions which came to mind was , How am I going to debug it ?
I started with running the tests class by selecting the class in eclipse and right –> Run as Junit Test.

But this does not work. There are some variables which are being injected through pom.xml and tons of other dependency bugs which would be thrown.

So here is how to run your units tests in debug mode while running through mvn command.  There are two steps to this. You will have to first set up a remote launcher, similar to the way you might have done for remote server.

Then you will run the tests from command prompt or

Create Remote Java Application Debug Configurations Read more…

Categories: Programming / tutorials Tags: ,

Fatal error: wp-includes/vars.php on line 16

February 27th, 2010 Vinay No comments

If you are upgrading to wordpress 2.9, you might get this error Fatal error: wp-includes/vars.php .

Some people get this error when they do an automatic upgrade. I got this error when doing upgrade manually.

Reason : Some of the files were not copied correctly. You would keep your wp-config.php  and contents folder. Rest all the files and folders need to be replaced.

Free Schedule D generator with Wash Sale Calculation

February 24th, 2010 Vinay No comments

If your broker provides a .txf file for your stock transactions and you do not want to spend big bucks on turbo tax, use the simple Schedule D generator excel sheet below.

ScheduleD_Generator

Steps to generate wash sale and schedule D Read more…

Categories: Miscellaneous Tags: ,

Getting started with Spring TC server

January 28th, 2010 Vinay 2 comments

As promised in last post Good bye MyEclipse. Welcome STS -Spring source Tool Suite, I would be going into the details of Spring TC server development edition and its integration with Spring Source tool suite (STS).

Spring launched the Spring source tc server which is a layer of functional ties and capabilities over the famous Apache Tomcat server. From Spring source site

SpringSource tc Server™ is an enterprise version of Apache Tomcat that provides developers with the lightweight server they want paired with the operational management, advanced diagnostics, and mission-critical support capabilities businesses need.

More details on Spring TC server can be found  SpringSource tc Server — The Tomcat You Know

I decide to give the Spring TC server a shot. I downloaded tc Server Developer Edition(Free) edition (you will have to fill in details and then you get a link in email)

Read more…

Spring adds JSON support

January 27th, 2010 Vinay No comments

We had posted a tutorial example on JSON  Java script sometimes back. It became a pretty popular post and people gave good feedback about it.  Some how the post got deleted and with it all the user’s comment. We apologize to our users. Here is the post JSON JavaScript Tutorial.   JSON is really cool and gives a lot of power in hands of developer.

Spring 3.0 which has come up with a lot of simplification like asynchronous method invocation , have also simplified AJAX calls.  You can now now invoke server side code with JSON and Spring 3 provide support for that. Details on it can be read from Spring Source blog AJAX Simplification in Spring 3

PS: Last time I checked out the spring blog,  the above url was pointing to wrong post. They might have fixed it by now

Jquery Tutorial With Javascript

January 27th, 2010 Vinay No comments

Introduction

Today JQuery is a buzz in every tinsel town. From the day web sites began coming into the world wide web space, developers are trying hard to please their users. Javascript arrived and it added spices in it. Developers began playing with javascript and created tens of thousand useful things for the users and made things interactive. But this comes with a price. Creating and maintaining javascript application requires a lot of patience and a lot of trial and error. On the top of this if we wanted to  write  a piece of javascript that creates effects and animation, we had make sure every thing is working and sometimes struggling with table, div, span bla  bla bla. JQuery came into the picture like life savior and it made our life very much comfortable. Just have a look at the piece of code written below :-

<html>
<head>
<script src=”jquery-1.3.2.js”></script>
<script>
$(document).ready(function(){
$(”p”).click(function(){
$(this).hide()
})
})
</script>
</head>
<body>
<p>You click on me, I will come after “Introduction”</p>
</body>
</html>

You can download code examples used in this tutorial here jquery code examples

This is just beginning and it can bring a lot of fun on your website. Imagination is the only limit.

Objective

(1)   What is JQuery

(2)   Why use JQuery

(3)   How JQuery works

(4)   Creating effects with JQuery

(5)   JQuery with server side technologies (ASP.net)

(6)   Future of JQuery Read more…

JSON Javascript Tutorial

January 27th, 2010 Vinay No comments

Introduction : Before we begin our journey of JSON, let’s write down a small piece of code .

<html>
<head>
<script language=”javascript”>
var objTest = {
“TestName” : “SCJP 5 Mock Test”,
“Description” : “This has questions for SCJP 5 mock test”,
“Rating” : 4
};
</script>
</head>
</html>

Our first reaction would be “Hey, wait. This is java script code. What is new in this?”. Welcome to the world of JSON. Read more…

ASP.NET 4.0 and AJAX Tutorial

January 27th, 2010 Vinay No comments

Introduction

AJAX, ‘Old wine in a new bottle’. Puzzled!  Absolutely right. AJAX was with us for a long time, until we realized its true potentials. Lets take a very close example and we use it in our everyday life. Google? Yes, very true. Google was very early mover in AJAX arena and showed the world, web applications close to desktop applications. People were so fascinated with desktop applications that there was an urgent need of such ‘Avatar’.  Suppose you are in the middle of filling a user registration page. You fill all the necessary information and hit the register button. Err..it says “Username already exists. Please try again”. You tried once, twice, thrice and so many times and after page refreshes it is showing the same message. Well, application does not have any choice but to display this error message. But now we can take off the pain and show something interactive, a user may like. Major websites will allow you to enter the username, but at the same time they will be able to tell you if this username has been taken out and without page refresh. That is AJAX. Most close example. Try typing words in Google search box and it will show you an array of suggestions. This is just a tip of iceberg. Believe me, you can create a very rich web based application by allowing AJAX to come into your life.

Topics We Will Cover

(1)    What is AJAX
(2)    Why to use AJAX
(3)    AJAX nomenclatures
(4)    AJAX with ASP.NET 4.0 (.NET 4.0 framework is still in beta but a lot to offer)
(5)    Future of AJAX  Read more…

Categories: Programming / tutorials Tags: , ,

SEO Guide for starters from Google

January 26th, 2010 Vinay No comments

When a newbie starts on his website or blog , the first thing they want to know is how to bring their site in  first page of google ? What are the steps to achieve this ?

Some developers and webmasters have the notion is that Google is against SEO. It considers SEO to be an illegal activity. Well that is not the case.  Google is against the black hat SEO not white hat SEO.  The proof lies in the pudding so here is the official SEO Guide for starters from Google.

This guide outlines the simple basic steps for developers which will help in better indexing of their site which in turn leads to a better probability of coming up in google search pages.

Good bye MyEclipse. Welcome STS -Spring source Tool Suite

January 22nd, 2010 Vinay 3 comments

I had been using myEclipse for couple of years and was happy with features and convenience they provided especially the hot deploy feature. The license fees is $30 per year which wasn’t bad.

Recently I downloaded MyEclipse7 which had some new features and like advanced java script tooling, JSF views and enhancements.  It was a huge file and after installation when you start myeclipse, it takes a good amount of time to fire up.

I have a machine which is pretty good with 2GB of RAM and this was not the kind of sluggish performance which I expected. I am assuming the high boot up time is that they have introduced many new features and capabilities, UML upgrades . Now even if you are not using them , it takes time to load them up all the libraries. Perhaps they should have allowed the users to customize the options based on need instead of pushing everything in their face. Read more…

Google SEO Quiz

January 21st, 2010 Vinay No comments

Well well well !!

Skill-Guru has a pretty good SEO quiz to test your SEO skills and understanding. Now Google has come up with its own quiz.

Take this Google SEO quiz to find out how good you are at SEO.  It has got 40 questions and you do not get to see the correct answers immediately. Correct answers will be published after some time.

List of tests at Skill-Guru

January 21st, 2010 Vinay No comments

This post is added for the convenience of the users to see the list of all the tests in skill-guru. The tests are posted under specific category

Hibernate Interview Questions

Spring Interview questions

Java Interview questions

JMS interview questions

SCJP 5 mock test

SCJP 6 mock test

SCBCD mock test

Gang of Four Design patterns quiz Read more…

Get Adobe Flash playerPlugin by wpburn.com wordpress themes