Misra’s blog

Archive for July, 2007

Different kinds of meat

Posted by mtwinkle on July 31, 2007

Ham – is the thigh and rump of any animal that is slaughtered for meat, but the term is usually restricted to a cut of pork, the haunch of a pig or boar.

Pepperoni -is a spicy Italian-American variety of dry salami usually made of pork, beef and sometimes fish.

Beef – is the culinary name for meat from bovines, especially domestic cattle.

Pork – Pig meat

Sausage – A sausage consists of ground meat, animal fat, salt, and spices, and sometimes other ingredients such as herbs, usually packed in a casing.

Turkey – A turkey is either one of two species of large birds in the genus Meleagris native to North America.

Salami -Salami is cured sausage, fermented and air-dried.

Steak -  is a slice from a larger piece of meat, typically beef. Red meat and fish are often cut into steaks. A restaurant that specializes in steaks is known as a steakhouse.

Posted in USA | 12 Comments »

Spinach Korma

Posted by mtwinkle on July 29, 2007

Spinach (finely chopped) – Steamed and then make a paste

Onion – Cut lengthwise

Tomatoes , green chillies, garlic – Make a paste

Cooked vegetables of your choice like Carrot, Peas, Beans, Cauliflower, Potato (cut these vegetables into cubes and then cook them with little salt)

2 spoon curd, tamarind, groundnut/cashews, some water – make a liquid paste.

Heat little oil in a pressure pan & add Mustard seeds/cumin seeds to it.

Fry the onions until they turn brown. Then add the paste of tomatoes, garlic and green chillies. Add some shahi paneer masala, turmeric and red chilli powder. Simmer for sometime.

Add already cooked Spinach with some buttermilk and tamarind paste to the above and simmer for sometime.

Add the cooked vegetables to the above with some coconut and cook for sometime.

Add some garam masala and kitchen king masala, salt to taste.

Pour some water, if required.

Garnish with coriander, grated ginger.

Posted in Curries | 1 Comment »

Banana (Peach) (Peanut Butter) Milk Shake

Posted by mtwinkle on July 29, 2007

Banana – Cut into slices and remove the middle black portion.

In a mixer, add sliced bananas, peaches (optional), sugar, ice cubes, peanut butter and Milk.

Enjoy!

Posted in Shakes | Leave a Comment »

Black Chana

Posted by mtwinkle on July 25, 2007

Pressure-cook the black chana with salt.

Fry Onions (cut length-wise) with little salt until they turn brown. Add fennel seeds.

Grind coconut and tomatoes and add it to onions and then add  cumin, coriander, roasted gram, green chilies, garlic and chana masala. Fry for some time before adding Chana. Cook and then garnish with cilantro  , ginger.

Add salt for taste.

Garnish with cilantro leaves and serve hot.

Posted in Curries | Leave a Comment »

Makhana Kheer

Posted by mtwinkle on July 25, 2007

Milk 6 cups
Makhana (lotus seeds) 4 cups
Sugar 1 cup
Cream 1 cup
Ghee 2 tabs
Chopped dates 2 tabs
Cardamom powder 1/2 tsp

Fry the makhana in ghee till reddish brown in colour. Set aside. Cook the milk, stirring all the time and till it is reduced to half the quantity. Add the makhana and cook till the kheer becomes thick. Reduce the heat and add the sugar, a small quantity at a time. Add the dates and allow to cool. Mix in the cream and cardamom. Serve well chilled.

Posted in Sweet dish | Leave a Comment »

Apple Kheer

Posted by mtwinkle on July 25, 2007

1 litre Milk
4 tbsp Sugar
4 medium Apples, peeled
1/4 tsp Cardamom powder
4 Almonds, sliced
5 Pistas

Vanilla creme, food color or saffron

Method
Put the milk to boil in a heavy based pan. Add the sugar and cook gently until the mixture is reduced by half.

Grate the apples. In another pan, cook both apples and sugar. When apples have softened drain. Add drained liquid to kheer. Boil milk further for 5 minutes, to thicken.

Remove from heat and allow it to cool slightly.

Add in apple and all other ingredients to the warm milk.

Sprinkle cardamom, pistas and almonds, vanilla creme, food color on top.

Serve hot or cold.

Posted in Sweet dish | Leave a Comment »

Chatpata Chana

Posted by mtwinkle on July 25, 2007

Garbanzo beans 1 can

Red onions thinly sliced 3/4th cup

Finely chopped fresh coriander leaves 2 table spoons

Green chilies slit thinly lengthwise 2 number

Amchur powder 1 teaspoon

Cumin powder 1 teaspoon

Garam masala powder 1 teaspoon

Salt to taste
Juice of 1 lemon

Drain the water from the garbanzo beans can.

Add the amchur powder, cumin powder, garam masala, salt and lemon juice and mix well.

Add the green chilies and the onions and the coriander leaves. Toss well. Let it stand for 1 hour.

Serve cold.

Posted in Curries | Leave a Comment »

Types of auto insurance coverages

Posted by mtwinkle on July 24, 2007

Fault or no-fault coverage

If you live in a no-fault state, your own insurance company pays for any loss or injuries to you, no matter who causes the accident. With no-fault, most claims can be settled quickly, without litigation over who’s at fault. However, no-fault can limit your right to sue to recover damages. Individual states set the coverage and place limits on your rights to sue.

In fault states, the person at fault in the accident or the insurance company pays. With a fault system, your right to sue is not restricted (nor is the other party’s right to sue you). To find out what the regulations are in your state, contact your local Farmers agent.

Collision

Collision coverage pays for damage to your vehicle that results from a collision with another vehicle or object. Generally, the coverage reimburses you the amount needed to repair or replace your damaged vehicle, minus the deductible. This coverage is normally required if your vehicle is leased or if you have an outstanding loan on the vehicle.

Comprehensive

Comprehensive coverage protects your investment in your vehicle by paying for losses resulting from fire, theft, falling objects, riots, storms, earthquakes, floods, collision with a bird or animal and other natural occurrences. Like Collision coverage, Comprehensive coverage generally includes a deductible. Comprehensive coverage is normally required if your vehicle is leased or if you have an outstanding loan on the vehicle.

Deductible


The deductible is the amount of the loss you agree to pay or absorb in the event of a claim or accident. Let’s say you have a $250 deductible. If you have a fender-bender, and the bodywork costs $1150, you will pay the deductible – $250, and your insurance company will pay the balance – $900. With auto insurance, deductible amounts typically range from $50 to $1,000 per claim. Choosing a higher deductible reduces the cost of your insurance.

Bodily Injury

Bodily Injury coverage pays for any person(s) injured or killed in an accident where you are at fault. Coverage includes medical expenses and lost wages. These coverage’s are subject to the limits and conditions of your policy. Most states require drivers to carry Bodily Injury coverage.

Property Damage

In a collision where you are at fault, Property Damage covers your liability for damaging another person’s personal property, such as an automobile, house or fence.

Medical Payments

This coverage pays medical bills and funeral expenses for you or a passenger injured while riding in your vehicle. Coverage extends to you or a family member when riding as a passenger in someone else’s vehicle or when struck by a vehicle when on foot. Costs are covered up to the amount specified by the policy.

Personal Injury Protection (PIP)

Personal Injury Protection (PIP) pays a broader range of medical costs than does Medical Payments coverage. PIP covers lost wages and the replacement of the services of someone injured in an accident. Personal Injury coverage is generally required in states with no-fault and available in some other states.

Uninsured Motorist/Underinsured Motorist

Uninsured Motorist coverage protects you, members of your household and your passengers in an accident with a motorist who has no insurance or is underinsured. Uninsured Motorist protection also covers you if you’re injured by a hit-and-run driver. The coverage also applies to you and the members of your household as pedestrians. Coverage includes payment of medical costs, lost wages and pain and suffering. It is required in many states. In some states or insurance policies, Underinsured Motorist protection is separate from Uninsured Motorist coverage.

In addition to basic auto insurance, consider these optional services to provide added protection for your vehicle:

Emergency roadside assistance and towing service
Windshield glass repair service
Car rental reimbursement

Posted in USA | 4 Comments »

Softwares….which are making my Life easy…

Posted by mtwinkle on July 21, 2007

Mozilla Firefox- Web Browser

Thuderbird- Email client, RSS feeds, Integrated Gmail account

Google Homepage – RSS feeds

Emurse – Online Resume

Roboform – To manage passwords

WordPress – Blogging

Google Notebook – Task management

Scrapblog – For picture slideshows

Deli.icio.us – for Bookmarks

Google Calendar

Scrapbook extension for FF – webpage management

Tuneup Utilities

Vmware

WindMerge

WinRAR

Google Desktop ( ToDo, scratchpad, weather)

Skype

Real Player

Posted in Organizing | 2 Comments »

Java EE

Posted by mtwinkle on July 20, 2007

Java EE application model

Portability, security and developer productivity are the key features of this model. This model partitions the work needed to implement a multi-tier service into two parts: the business and presentation logic to be implemented by developer and the standard systme services provided by the Java EE platform.

What is a servlet?

javax.servlet

javax.servlet.http

All Servlets must implement the Servlet interface, which defines life-cycle methods.

GenericServelt class

HttpServlet class – provides methods such as doGet and doPost for handling HTTP-specific services.

Servlet Lifecycle

The lifecycle of a servlet is controlled by the container in which the servlet has been deployed.

1. If an instance of the servlet does not exist, the web container

a. Loads the servlet class.

b. Creates an instance of the servlet class.

c. Initializes the servlet instance by calling the init method.

2. Invokes the service method, passing request and response objects.

If the container needs to remove the servlet, it finalizes by calling the servlet’s destroy method.

What are the different scope objects?

1. Context

2. Session

3. Request

4. Page

What the the different synchronization techniques to control concurrent access to shared resources?

Life cycle of a JSP page

Translation and Compilation

If an error is encountered during this phase, the server will return JasperException and a message.

After the page has been translated and compiled, the JSP page’s servlet follows the servlet lifecycle.

jspInit , _jspService, jspDestroy

Explain include directive

The include directive is processed when the JSP page is translated into a servlet class. The effect of the directive is to insert the text contained in another file– either static content or another JSP page–into the including JSP page. You would probably use the include directive to include banner content, copyright information, or any chunk of content that you might want to reuse in another page. This is a static include.

 

<%@ include file="filename" %>

Explain jsp:include

The jsp:include element is processed when a JSP page is executed. The include action allows you to include either a static or a dynamic resource in a JSP file. The results of including static and dynamic resources are quite different. If the resource is static, its content is inserted into the calling JSP file. If the resource is dynamic, the request is sent to the included resource, the included page is executed, and then the result is included in the response from the calling JSP page. The syntax for the jsp:include element is:

<jsp:include page=”includedPage” />

How is JSF page different from the JSP page?

A JavaServer Faces page is different from a JSP page in that it is represented by a tree of UI components, called a view.

JSF lifecycle

The life cycle handles both kinds of requests: initial requests and postbacks. When a user makes an initial request for a page, he or she is requesting the page for the first time. When a user executes a postback, he or she submits the form contained on a page that was previously loaded into the browser as a result of executing an initial request.

When the life cycle handles an initial request, it only executes the restore view and render response phases because there is no user input or actions to process. Conversely, when the life cycle handles a postback, it executes all of the phases.

Restore View

Apply Request Values

Process Validations

Update Model Values

Invoke Applications

Render Response

What is Message Drive bean?

MDB is an enterprise bean which is used to process messages asynchronously. it normally acts as a JMS message listener.

Difference between MDB and a session bean?

Clients do not access MDB’s through interfaces. ie. Unlike session bean, MDB has only a bean class.

How is message driven bean similar to session bean?

a. MDB’s retain no conversational state for a specific client i.e they are stateless.

b. All instances of a MDB are equivalent, allowing the EJB container to assign a message to any MDB instance. The container can also pool these instances to allow streams of messages to be processed concurrently.

How does a client accesses a MDB?

By sending messages to the message destination for which the MDB class is the MessageListener. You assign a MDB’s destination during deployment.

Posted in Architecture | Leave a Comment »