Page copy protected against web site content infringement by Copyscape
CountersNew Postings :- Career Column :- Tips For Grads - fresh job seekers . View Point:- Niagara Falls - The massive water falls in the world. [ TOPIC GUIDE ] Interested experiences, thoughts and views to share...?? Click on 'View Point'. Tips and topics related to Career, Technology...??? Click on 'Career Column'. Wanna share fun and jokes.....??? Click on 'Fun Fountain'. Wanna shed your views on good and bad sides of politics and current affairs.....??? Click on 'Political Nuke'. © 2007 All rights are reserved. This site is best viewed in Firefox. Please post your problem with IE to prathap2k@inbox.com; QUOTE OF THE DAY :- "Simplicity of character is the natural result of profound thought"

Wednesday, August 13, 2008














Boston Common Pictures


Niagara Falls Trip


Monday, August 11, 2008























Instructions: Use arrow keys to move the player.

8 Ball Champion

Instructions: Please refresh the page to start a new game.


Hoop Shoot


9 Ball Champion




Euro 2008 Web Soccer





Tuesday, July 15, 2008

Contact me

Friday, July 11, 2008

Potential Java Code Violations.

Friends,

As a Java family member, today I would like to share some useful information regarding potential code violations that are done usually by Java Programmers. I know how much pain we take to develop the projects, but keeping this information in mind while coding helps us to nullify the code optimization which is kind of rework in project development phase.

If it makes/doesn’t sense to you then please feel free to post your views, comments and complements.

Please free to share if you find still more and not mentioned below.

Thanks and enjoy.

1. Variable naming conventions:

As per the “Variable naming convention rule” variables that are not final should not contain underscores in their names.

private String _pError; // Wrong

…….

private String pError; // Correct

Rule says final variables that should be fully captitalized and non-final variables that should not include underscores.

2. Instantiating Wrapper classes:

Try to avoid instantiating the wrapper classes.

  • Use Integer.valueOf() instead new Integer();
  • Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead.

3. Method Naming Conventions:

Method names should not contain underscores.

4. Calling overridable method in constructor.

Calling overridable methods during construction poses a risk of invoking methods on an incompletely constructed object and can be difficult to discern. It may leave the sub-class unable to construct its super class or forced to replicate the construction process completely within itself, losing the ability to call super(). If the default constructor contains a call to an overridable method, the subclass may be completely un-instantiable. Note that this includes method calls throughout the control flow graph - i.e., if a constructor Foo() calls a private method bar() that calls a public method buz(), this denotes a problem.

5. Throwing raw exceptions:
Avoid throwing certain exception types. Rather than throw a raw RuntimeException, Throwable,Exception, or Error, use a subclassed exception or error instead.

6. Usage of System.out.print(ln):

Consider using loggers rather than System.(out|err).print.

7. Logger variables:

The Logger variable declaration does not contain the static and final modifiers

In most cases, the Logger can be declared static and final.

8. Garbage collection:

Avoid calling triggering a garbage collection explicitly.

9. Method call on object which may be null:

The null check is broken since it will throw a Null Pointer Exception itself.

It is likely that you used || instead of && or vice versa.

class Foo {

String bar(String string) {

// should be &&

if (string!=null || !string.equals(""))

return string;

// should be ||

if (string==null && string.equals(""))

return string;

}

}

10. Usage of equals () comparison

Avoid using equals () to compare against null.

Inexperienced programmers sometimes confuse comparison concepts and use equals () to compare to null.

11. Empty methods in an abstract class should be abstract instead:

An empty method in an abstract class should be abstract instead, as developer may rely on this empty implementation rather than code the appropriate one.

public abstract class ShouldBeAbstract{

public Object couldBeAbstract(){

// Should be abstract method ?
return null;
}
public void couldBeAbstract(){
}
}

…to be continued…

Thursday, July 10, 2008

Java Pattern Oriented Framework (Jt 2.6)

Jt2.6 has been released. Jt is a pattern oriented framework for the rapid implementation of Java applications. Jt has been utilized in several large mission critical systems. Jt implements many well-known patterns including Data Access Objects (DAO), GoF design patterns and J2EE patterns.

Jt2.6 features several enhancements to the Jt components and a version of the Jt automated Wizard (JtWizard). The Jt Wizard is an application built on top of the Jt framework that provides automated capabilities for generating framework applications. The Jt Wizard is able to automatically generate application modules based on several design patterns including Jt Messaging, DAO, MVC and GoF. The current Jt Wizard implementation provides integration with MVC Struts and DAO Hibernate. DAO mapping files, Struts configurations files, Views (JSPs), Java classes are automatically built by the Jt Wizard. The Jt Wizard is also a reference web application implemented using the Jt framework.

The framework addresses the following goals and requirements:
A) The pattern oriented framework should implement and/or facilitate the implementation of well-known design patterns like GoF design patterns and J2EE Design patterns. The framework itself should be conceived and implemented based on design patterns (from the ground up). The framework should also facilitate and accelerate the implementation of applications based on design patterns.
B) The framework architecture should be based on a messaging design pattern: framework objects should be able to interchange information and perform computations by sending, receiving and processing messages. A messaging API provides strong encapsulation and loose coupling; framework components can be easily plugged into complex framework applications using a “lego/messaging” architecture. The framework should take full advantage of the power and simplicity of the messaging design pattern.
C) The framework lego/messaging architecture should provide transparent access to remote components: remote framework objects should be treated as local objects. Design patterns implemented by the framework (adapters, remote proxies and facades) should make this posible by hiding the complexities associated with remote APIs.
D) The framework should provide transparent integration with other technologies via framework adapters, proxies and the implementation of related design patterns. These technologies include BPM, DAO implementations, MVC implementations, EJBs, JMS, XML and Web Services.
E) The framework should be designed to be lightweight and fast in terms of performance (low overhead).
F) The framework messaging/lego architecture should improve and simplify design/development efforts. There should be a tight correspondence between UML design diagrams and the framework messaging based applications and components needed for the implementation. Ideally, the framework should provide wizards and automated capabilities for generating framework applications. Framework components should be easily added to BPM process diagrams. In future versions of the framework, it should be possible for applications to be generated directly from the UML design diagrams.
G) The framework messaging architecture should facilitate testing and debugging efforts. The framework should provide capabilities for testing components independently (each component as a unit) by sending messages and verifying the reply (output) messages.
H) In order to provide additional productivity benefits, the framework should be integrated with open source IDEs.
Most of these requirements are met by the current version of the framework (refer to list of features).

Additional features include:
* Implemented J2EE design patterns include J2EE business delegate, J2EE Session Facade, J2EE Service Locator and J2EE Value Object.
* The framework can be easily extended by implementing additional Jt adapters and helpers.
* Web Services integration via the implementation of Web Services adapters and proxies. The Jt messaging API greatly simplifies the development and deployment of web services.
* Integration with Ajax and the Struts implementation of MVC (Model View Controller)). A jBPM adapter is provided within the Jt framework. jBPM is an open source implementation of the BPM technology. A Jt application can now be modeled using a process graph. This provides users with a very powerful way of modeling business processes.
* Integration with the MVC (Model View Controller) design pattern and Ajax. Universal Jt components and adapters provide a transparent interface between the Jt framework API and these technologies. The business logic (controller piece) can be implemented using Jt framework components and/or BPM business processes.
* Integration with the Hibernate implementation of Data Access Objects (DAO). A Jt adapter provides a transparent interface between the Jt framework and Hibernate DAOs.
* JDBC integration via a JDBC adapter.
* The Command pattern implementation supports a request log, a queueing mechanism and undoable operations.
* JavaMail API integration via the implementation of a JavaMail adapter
* Integration with J2EE Enterprise Java Beans (EJBs) via Jt Adapters and proxies. EJB clients are able to gain transparent access to remote framework objects. No need to deal with the complexities of EJB application development. An implementation of the J2EE Service Locator pattern is also provided.
* Easy customization of framework applications. This is done via resource files: object attributes can be automatically loaded from a resource file.
* Java Server Pages (JSP) integration.
* Integration with the XML APIs via XML adapters, helpers and built-in bean/XML mapping capabilities.
* Built-in logging/debugging capabilities. Messages between framework objects are automatically logged. This simplifies the debugging and testing tasks.
* Built-in testing capabilities.
* Efficient and lightweight in terms of memory utilization.
* The Jt Framework provides a consistent way of handling and logging application messages, errors and exceptions.
* Proven technology. The Jt framework has been used for the development of several large enterprise applications.
* Integration with the asynchronous Java Message Service (JMS). Jt messages can be sent and received via JMS adapters.
* Cross-platform, implemented using JavaTM technology.
* Integration with the Eclipse environment.
* Runs on any J2EE compatible application server.
----
curtesy theserverside.com

Wednesday, July 9, 2008

Niagara Falls - The massive water falls in the world.

It’s on July 4th 2008; Since it’s a long weekend I planned to visit Niagara, the place for ultimate scenic beauty of the worlds biggest water falls. I started my journey, at 3:30 Am from NJ; It took almost 7 hours to reach out. It was hot sunny day and I wasn't intended to spend much time under the sun. Finally I inquired tourist’s information center for the available package details. I picked out two of them, i.e. "Maid of the mist" and "Cave of the winds".




"Maid of the Mist", is a boat ride program which takes us almost into the basin of the magnificent water falls where water rushes with high speed and force and shakes up the boat. It’s a thrilling experience and nice relaxation for 30 minutes, when water rushes all around and soaking mist under hot sun.

After finishing the cool boat riding with fantastic and thrilling experience, I kept my camera busy to capture some beautiful snaps from the “Observation Point”.

Cave of the Winds

The Cave of the Winds trip took me closer to the waters of Niagara Falls than I thought possible. I ride an elevator 175 feet (53 meters) deep into the Niagara. Then, clad in a bright yellow poncho and wearing the special footwear provided, I followed a tour guide over a series of wooden walkways to the famous "Hurricane Deck". As I stand at the railing, I was a mere 20 feet (6 meters) from the billowing torrents of Bridal Veil Falls. The rushing waters loom above me, dousing me with a generous spray as I face the thundering Falls head-on. Rainbows are usually visible day and night. A deck has been built 150 feet from the base of the Falls especially designed for thrilling experience under water.

Horse Shoe Falls

Next in my schedule was “The Horseshoe Falls”. This is considered to be the most impressive of the three falls that make up Niagara Falls. As per the records 90% of the water of the Niagara River flows over Horseshoe Falls, while the other 10% flows over the American Falls. The most enthralling aspect is the falls will be illuminated with different colored lights from Canada side. That is absolutely fantastic view and good food for photographers.

Fire works on July 4h.

Since it was July 4th, America’s Independence day, the firework was one of the most joyful items in my schedule. It started at 10 PM and was till 15 minutes. After that I returned to Hotel and had a sound sleep with beautiful memories on the day.


All right are reserved. © Copyright 2008.

Thursday, June 19, 2008

Indian SE

There is a good barber in some city in US. One day a florist goes to him for a haircut. When he is about to pay the barber, the latter replies: 'I am sorry, I cannot accept money from you. I am doing community service.' The florist is happy and leaves the shop.

The next morning when the barber goes to open his shop, there is a 'Thank You' card and a dozen roses waiting at his doorstep.

This event is repeated till an Indian software engineer goes for a haircut. When he pays him, the barber tells him, 'I am sorry, I cannot accept money from you. I am doing community service.' The next morning, when the barber opens his shop, he finds a dozen Indians waiting for a free haircut.

The Myth

Mr.Bal Thackeray's cry for creation for Hindu Suicide Squads' has received strong condemnation by major political parties even by its close ally BJP while in the wake of serious threats by terrorists as per military and intelligence quarters. Whatever may be the tone and tenor of Thackeray, his dream will be a vain as the Hindu society while as it stands today is a multi-fragmented with different ideologies focusing their muscle strength against its rivalry group - may be it a political party or power group. The situation is different in the other two viz.Muslims and Christians who remained as mighty blocks who can at times play as a tilting-pawn in the formation of governments either in a particular State or at the Center. Hindus have no unity and cannot change India as Hindu country for another half-century or at least a real secular country with minimum Hindu ideology as existing in Christian or Muslim countries. I feel even if BJP wins in all states and capture power at the center with the help of Shiv Sena, it is not dared to form Hindu Suicidal Squads as millions of innocent Muslims form integral part of our society leading their life peacefully in their respective roles more than 60 years even while accepting the hard truth that all Muslims are not terrorists but all terrorists are Muslims. But it is the duty of Government to see that the Indian Muslim youth are not encouraged by external fundamentlistic Islamic outfits towards terrorism. So far so good the dream of Thackeray remains a myth.
-- Kamalnath.

Monday, June 16, 2008

Tips For Grads - fresh job seekers

Summer is almost over, It's blossoms time for college folks and might be started thinking "What to do next?".
The following tips may not be the pep talk to those who think the above question, but i feel it helps a bit at least. For those not thinking about the above question at all then it's a piece of crap.

Here are the book marks that you need to really think of...
1. Prioritize your list of goals:
Sounds cheesy, but if you do not know where you want to be in the future, how will you get there? Be specific as well as realistic. (i.e marrying Aiswarya rai, may not be possible in near future).

2. Decide what you want:
Before you start passing your resume to every bright smile that you meet, figure out what kind of career you actually want and how much your desired company offers for those positions. What are the characteristics of your perfect job? Put these in order of importance; location, salary and schedule. Evaluate jobs accordingly by researching companies that fit your criteria.

3. Networking:
Having hundreds of friends on your Orkut or Face book or My Space account is great for your social life, but can be even better for your career search. One of these "friends" may have the perfect job connection for you. At various surveys revealed that 40% of recent grads found their current job through networking.

4. The career center;
Even through you have graduated, you still have access to your school's career center, which has staff dedicated to helping grads figure out exactly what their next move should be. Some univ have a web site which is accessible to everyone.

5. Be persistent:
Send your resume out the second you see a job posting. Don't wait until after lunch. And make a detailed schedule outlining when to follow up with a potential employer.

6. Say thank you:
Remember, after an interview always send a thank you note. No note, no job.

Tuesday, June 10, 2008

Chotu

Edison, if you ask any telugu desi in US, immediately he/she says, its US – Koti.

We couple were passing through the Oak tree road, which is central place for all our Indian stores and restaurants.

After few months I visited that place, felt like as if we were in Koti. Since its nice spring evening, we were solicited by cool breeze carrying nice chat masala flavors causing me to restrain hardly my mouth water. That’s it, with in fraction of seconds my nose dominated my tongue and brain. Immediately I started searching for the restaurants those serve chat masala, primarily ‘Pani Poori’.

Before jumping further, I would like to take a minute to give a brief introduction about this nosh that predominantly occupied big share of Indian snacks time.

“Panipuri or Gol Gappa or Gup chup is a popular street snack in the Indian sub-continent. It comprises a round, hollow "puri", fried crisp and filled with a watery mixture of tamarind, chilli and potato. The name panipuri literally means "water in fried bread".


Pani is a hindi word for water and puri (or poori) is an Indian bread that is made by frying dough in oil. I overheard as puchka in Eastern Indian states like Bihar, Jharkhand and West Bengal and in Bangladesh. Since the bread is served with special spiced water, it is known as pani poori and as it is round and fluffy it is called “gol gappa.”

It is available all the way from a road side cycle puller stalls to big restaurants now.

I finally found one restaurant which is famous for Indian snacks items. I entered and picked up a table and waited for the waiter (A young Indian boy of 25 or 26 age working part time and student from a university). After 5 min he came and provided a menu. I just picked up “Cutlet Ragada” and other few dishes. I was very happy that after long time I was going to have my favorite snack.

Meanwhile I remembered my days when I was in Hyderabad. I tasted this from all levels of vendors. There are few standard places where I was a regular customer. I used to visit every weekend with my close pals. As usual one day I went to one of my regular places (Malakpet, Hyderabad) at 9pm where the known vendor “Chotu” was busy with some customers. When we reached the place immediately “Chotu” asked us “Gup chup sir?” I said yes. He immediately kept leaf bowls
(i.e. disposable) in our hands with pealed onion pieces.

He started serving “gup chups” counting in his mind to almost 15 to 20 people for how much is served. Amidst his work, he talks about cricket score (That was cricket world cup season). After that we ordered for few more varieties like ‘Ragada and dahi papdi” as other did already. Believe me, he maintain the same taste whenever I go. It’s simply marvelous. Finally he came back with the figure exactly how much we need to pay. I saw that confidence in his face with his calculation. “Remember they do not charge and expect tips”.

If we cut the scene there, I looked at my watch and wondered to know that 15 minutes waited for my order. Finally he served the dish. I am shocked; I found only one single cool (Coolest is the best to say) cutlet with few Spoons of tamarind and mirchi sauce and few boiled “Chenna Dal” and onion pieces all in separate bowls. I asked him what he served and got the reply that “It’s Ragada”. Holly cow! I began to mix the things given myself to make the “Ragada”. I do not know how to mix the things in proportionate to get the good taste. I failed to attain the taste how I used to get at Chotu’s.

Somehow I finished it as I got it after longtime. I enjoyed it as if in Hyderabad. After few minutes the waiter came and asked “extending your order sir?” I replied “No more thank you.” Within next minute he gave the bill and this time I shocked to find an entry which was not ordered by me and total payment was calculated wrongly. After request he removed unrelated entry and corrected the total payment. I paid the amount including tax and tip and came out.

I just compared for a while the key points of Chotu’s business skills. He is simply great with features like “Good taste, service and low cost” as his thumb rules.

Trust me there are so many young talented people like Chotu in india still on road side who has ample of business skills but no degree from any top notch institutes.

This article is dedicated to those like “Chotus”