Remedy for Low Blood Pressure

February 27, 2008

• Raw beetroot juice can work wonders in controlling blood pressure. Consume it twice a day.

• Indian spikenard is very effective and must be taken in doses of 30 or 40 grains with a pinch of a little camphor and cinnamon (dalchini).

• Consume foods rich in proteins, vitamin C, and all vitamins of the B group, as they are extremely beneficial in preventing and treating low blood pressure.

• Consume salty foods and also while drinking water, put a half-tea-spoon of salt in it.

• Soak 7 almonds in water overnight. Peel them and grind so as to make a paste. Put the almonds in warm milk and consume.

Advertisements

How Good Are the Instant Foods?

February 21, 2008

·         Since they are eaten at odd hours—in between meals, after meals, before meals – establishing a regular eating pattern becomes impossible.

·         They are rich in artificial preservatives, which affect the digestive system.

·         Contain high levels of sodium, which is harmful for patients of high BP and heart disease.

·         Difficult to digest as they are generally made of refined flour, which is not easy to pass through the digestive track.

·         Most of them are rich in saturated fats and easily –absorbed carbohydrates, which contribute to obesity.

·         Since they are a poor source of fibre, constant consumption leads to chronic constipation.

·         If consumed regularly, may lead to deficiency diseases like arthritis, anemia, etc.

·         A common reason for stomach ailments like gastritis, acidity, ulcers can be attributed to those who consume packaged foods shelved for many days.


Web Server and an Application Server

February 19, 2008

Web server serves pages for viewing in a web browser while Apps server provides methods that client application can call. The web server exclusively handles HTTP requests where as apps server serves business logic to application program through any number of protocols. Web server cannot handle huge load (handles request/response up to 10,000 request/responses).An apps server is for all types of protocols such as HTTP, FTP, and SMTP so on. An apps server can handle huge request/response.

The web server handles the HTTP protocol. To process a request a web server may respond with a static html page or image, send a redirect or delegate the dynamic response generation to some other program such as CGI scripts, JSP, Servlets, ASP, Serverside javascripts, or some other server side technology. The web server does not provide any functionality beyond simply providing an environment in which the server side program can execute and pass back the generated responses. The web server may not itself support transactions or database connection pooling. It may employ various strategies for fault tolerance and scalability such as load balancing, caching, and clustering features often times erroneously assigned as features only for application server.

Application server exposes business logic to client application through various protocols. An application server provides access to business logic for use by client application program. The application program can use this logic just as it would call a method on a object. In most cases the server exposes this business logic through component API such as the EJB component model. Moreover the application server manages its own resources such as security, transactions, resource pooling and messaging.


Stay Healthy with Brown Rice

February 15, 2008

Doctors and nutritionists recommend brown rice as a source of all round nutrition.

Brown rice (hulled rice) is unmilled or partly milled rice, a kind of whole grain. It has a mild nutty flavor, is chewier than white rice, becomes rancid more quickely, but is far more nutritious. In much of Asia, brown rice is associated with poverty and wartime shortages, and in the past was eaten mostly by the sick and as a cure for constipation. Now, this traditionally denigrated rice is more expensive than common white rice.

White rice comparison

1) Brown rice and white rice have similar amounts of calories, carbohydrates, fat and protein. The difference is in their processing and nutritional content. If the outer most layer of a grain of rice is removed, the result is brown rice. If the bran layer underneath is removed, the result is white rice. Several vitamins and dietary minerals are lost in the removal and polishing process.

2) When the bran layer is removed to make white rice, the oil in the bran is also removed. A recent study has shown that rice bran oil may help lower LDL cholesterol.

3) In addition to having greater nutritional value, brown rice is also said to be less constipating than white rice. Brown rice generally allows better digestion.

Storage and preservation

Brown rice can remain in storage for 6 months under normal conditions, but hermetic storage and freezing can significantly extend its lifetime. Freezing, even periodically, can also help control infestations of Indian meal moths.

Lost In Transition

Vitamin B1 – 80%
Vitamin B6 – 90%
Vitamin B3 – 67%
Iron – 60%
Half of manganese and phosphorous is lost. Among other key sources of nutrition also lost are fatty acids and fiber.


HEALTHY JUICES

February 14, 2008

Carrot + Ginger + Apple – Boost and cleanse our system.

Apple + Cucumber + Celery – Prevent cancer, reduce cholesterol, and improve stomach upset and headache.

Tomato + Carrot + Apple – Improve skin complexion and bad breath.

Bitter gourd + Apple + Milk – Avoid bad breath and reduce internal body heat.

Orange + Ginger + Cucumber – Improve Skin texture and moisture and reduce body heat.

Pineapple + Apple + Watermelon – To dispel excess salts, nourish the bladder and kidney.

Apple + Cucumber + Kiwi – To improve skin complexion.

Pear & Banana – regulates sugar content.

Carrot + Apple + Pear + Mango – Clear body heat, counteracts toxicity, decreased blood pressure and fight oxidization.

Honeydew + Grape + Watermelon + Milk – Rich in vitamin C + Vitamin B2 that increase cell activity and strengthen body immunity.

Papaya + Pineapple + Milk – Rich in vitamin C, E, Iron. Improve skin complexion and metabolism.

Banana + Pineapple + Milk – Rich in vitamin with nutritious and prevent constipation.


Why Collections Framework in Java?

February 13, 2008

JDK 1.2 introduces a new framework for collections of objects, called the Java Collections Framework.

• It dramatically increases the readability of your collections by providing a standard set of interfaces to be used by many programmers in many applications.
• It makes your code more flexible by allowing you to pass and return interfaces instead of concrete classes, generalizing your code rather than locking it down.
• It offers many specific implementations of the interfaces, allowing you to choose the collection that is most fitting and offers the highest performance for your needs.

And that’s just for starters.
Our tour of the framework will begin with an overview of the advantages it provides for storing sets of objects.

The Java Collections advantage: An overview

Before Collections made its most welcome debut, the standard methods for grouping Java objects were via the array, the Vector, and the Hashtable. All three of these collections have different methods and syntax for accessing members – arrays use the square bracket ([]) symbols, Vector uses the elementAt(), and Hash table uses get and put methods. These differences have long led programmers down the path to inconsistency in implementing their own collections – some emulate the Vector access methods and some emulate the Enumeration interface.

To further complicate matters, most of the Vector methods are marked as final; that is, you cannot extend the Vector class to implement a similar sort of collection. We could create a collection class that looked like a Vector and acted like a Vector, but it couldn’t be passed to a method that takes a Vector as a parameter.

Finally none of the collections (array, Vector or Hashtable) implements a standard member access interface. As programmers developed algorithms (like sorts) to manipulate collections,a heated discourse erupted on what object to pass to the algorithm.Should you pass an array or a Vector? Should you implement both interfaces? Talk about duplication and confusion.

Thankfully, the Java Collections Framework remedies these problems and offers a number of advantages over using no framework or using the Vector and Hashtable.

A usable set of collection interfaces
By implementing one of the basic interfaces – Collection,Set,List,or Map -you ensure your class conforms to a common API and becomes more regular and easily understood. So,whether you are implementing an SQL database, a color swatch matcher, or a remote chat application, if you implement the Collection interface, the operations on your collection of objects are well-known to your users. The standard interfaces also simplify the passing and returning of collections to and from class methods and allow the methods to work on a wider variety of collections.

A basic set of collection implementations
In addition to the trusty Hashtable and Vector, which have been updated to implement the Collection interfaces, new collection implementations have been added, including HashSet and TreeSet, ArrayList and LinkedList, and HashMap and Map. Using an existing, common implementation makes your code shorter and quicker to download. Also, using existing Core Java code core ensures that any improvements to the base code will also improve the performance of your code.

Other useful enhancements
Each collection now returns an Iterator, an improved type of Enumeration that allows element operations such as insertion and deletion. The Iterator is “fail-fast,” which means you get an exception if the list you’re iterating is changed by another user.Also, list-based collections such as Vector return a ListIterator that allow bi-directional iteration and updating.

Several collections (TreeSet and TreeMap) implicitly support ordering. Use these classes to maintain a sorted list with no effort. You can find the smallest and largest elements or perform a binary search to improve the performance of large lists. You can sort other collections by providing a collection-compare method (a Comparator object) or an object-compare method (the Comparable interface).

Finally,a static class Collections provides unmodifiable (read-only) and synchronized versions of existing collections.The unmodifiable classes are helpful to prevent unwanted changes to a collection. The synchronized version of a collection is a necessity for multithreaded programs.


Security in Java

February 13, 2008

The security in java is implemented at four different levels.

1) Language and the compiler – The language and the compiler acts as the first level security.
• Java program has no direct access to memory.
• No arbitrary type casting.
• Strongly typed language.

2) Byte code verifier – The byte code verifier acts as the second level of security. It ensures or checks whether the byte code coming is coming from a worthy compiler or not. It ensures that the code sticks to java standard and does not violate system integrity. The byte code verifier checks that the code does not have
• Forged pointers
• Access restriction violations
• Object mismatching
• Operand stack over or under flows
• Incorrect byte code parameters
• Illegal data conversions

3) Class loader– The class loader acts as the next level of security. The class loader loads all the classes needed for the execution of a program. The class loader allocates memory spaces for each class and ensures that code does not attempt to by pass the built in class. In other words programmers cannot write their own version of an existing built in class and have it executed instead of the default one. The built in classes are always checked first.

4) Sandbox – This is the next level of security. This is applied to applications which are remotely added. This is also known as sandbox model. The first three levels of security are hidden from the user and the java developers while the fourth level is not.