Wednesday, October 13, 2010

Sri Lankan Milk production





Sri Lanka is an island.Plenty of greenery and sunshine are freely available.

In 2006 Sri Lanka produced 7000 Metric Tons of Powdered Milk.Main four sri lankan companies have help for these production.But the pathetic situation is sri lanka imports 68000 Metric Tons of Powdered Milk.That is too much.Why can not sri lanka made it's own requirement ? Do we need to import such massive qty from other countries ?

But this situation is much recovered in 2008 ,In 2008 Sri lanka produced 7500 Metric Tons of Powdered Milk.But Still Sri Lanka had to import 62000 Metric Tons from the other countries.

Major Powdered Milk production compaines are Nestle,Milco,Kothmale and Maliban.

But all these companies are famous for manufacturing following product(Milk food).

* UHT Tetra Milk
* Cheese
* Yoghurt
* Ice Cream
* Fresh Cream
* Ghee
* Curd
* Milk Powder
* Butter
* Sterilized Milk

Sri lanka is in front of Milk food production.In 2008 Sri lanka produced 2800 Metric Tons of Milk food.But still In 2008 Sri lanka had to import 50 Metric Tons from other countries.

Tuesday, September 14, 2010

Isurumuniya CD


Today i brought a old music cd,which contains old songs. But when i listen to that music ,i feel i was in more comfortable zone.It contains 20 songs.All those songs are song by Chitra somapala.I do not any thing about her except her voice.Her voice is close to me.At the present none of the media is doing promote on this music cd.But it really good.There fore i just feel to type some comment about this cd. This cd contains many famous songs."Isurumuniyehi","Kurulu Game","Dambulu Gale","Udarata Kandukara" and many more. I invited all the viewer, to go and listen to this cd.

Wednesday, August 25, 2010

SOA Architecture


SOA means Service Oriented Architecture.

above diagram illustrated the typical architecture.

"write once,read anywhere" concept accelerated by the SOA architecture.

Sunday, August 22, 2010

Session Bean Example ....

This is the session Bean example i have done.

public class BalanceInquiryBean extends AbstractCommonSMSBanking implements SessionBean,CommonSMSBanking{

public BalanceInquiryBean() {
super();
// TODO Auto-generated constructor stub
}
................


public void ejbCreate() throws CreateException {
// TODO Auto-generated method stub
}

public Object getAccountDetails(String PhoneNo,String PinNo,String SeqNo){
if(("D").equals(this.getDayNightMode()) ){
SMS002L2DAOImpl sms002L2 = new SMS002L2DAOImpl();
SMS002L2 sms002L2Obj = null;

..................

}




Home Interface

defines the methods that allow a client to create and find an entity bean.

Example:-

public interface BalanceInquiryHome extends EJBHome {

public Object getAccountDetails(String PhoneNo,String PinNo,String SeqNo) throws RemoteException, CreateException;


}


Remote Interface

The remote interface extends javax.ejb.EJBObject and defines the business methods that a remote client may invoke.

public interface BalanceInquiry extends EJBObject {

public Balance generateBalance() throws RemoteException, CreateException;

}

Wednesday, July 14, 2010

Software reverse engineering

Software reverse engineering involves reversing a program's machine code (the string of 0s and 1s that are sent to the logic processor) back into the source code that it was written in, using program language statements.

Software reverse engineering is done to retrieve the source code of a program because the source code was lost, to study how the program performs certain operations, to improve the performance of a program, to fix a bug (correct an error in the program when the source code is not available), to identify malicious content in a program such as a virus or to adapt a program written for use with one microprocessor for use with another. Reverse engineering for the purpose of copying or duplicating programs may constitute a copyright violation. In some cases, the licensed use of software specifically prohibits reverse engineering.

Tuesday, July 13, 2010

Acessing Printer using jsp page

Those who like or need to access Printer from there jsp page.they have to setup Printer.Next from there jsp page they have to put the following code for the button implementation.

< input type="button" value="Print this page" onClick="window.print()" >

or else your have to use

java.awt.print Package.

Sunday, July 4, 2010

Functional Programming Vs Procedural Programming

Functional Programming

Functional programming should not be confused with procedural programming. Neither is it like object oriented programming. It is something different. Not radically so, since the concepts that we will be exploring are familiar programming concepts, just expressed in a different way. The philosophy behind how these concepts are applied to solving problems is also a little different.

Functional programming is all about expressions. In fact another way to describe Functional Programming might be to term it expression oriented programming since in Functional Programming everything reduces to an expression. You should recall that an expression is a collection of operations and variables that results in a single value. Thus x == 8 is a Boolean expression. 3 + (9-Y) is an arithmetic expression. And "Hello".uppercase() is a string expression. The latter is also a function call (Or more strictly a method call) on the string object "Hello" and, as we shall see, functions are very important in Functional Programming.

Programming language :- Python

Procedural Programming

A list of instructions telling a computer, step-by-step, what to do, usually having a linear order of execution from the first statement to the second and so forth with occasional loops and branches.

A procedural program is composed of one or more units or modules--either user coded or provided in a code library; each module is composed of one or more procedures, also called a function, routine, subroutine, or method, depending on programming language.

Programming language :- C