Sunday, February 08, 2009

Friday, February 06, 2009

DNA Computing.. the future wetware

An introductory tutorial is here
This too is interesting to read. But not detailed (and lengthy) as this.

Thursday, December 11, 2008

Sinhala lyrics

Before you get yourself embarrassed during the next party or the picnic ;-)
Find your favourite Sri Lankan songs in Lanka Song Book

Wednesday, November 26, 2008

ICSOC 2008

The sixth International Conference on Service Oriented Computing (ICSOC) is to be held from 1st to 5th of December in Sydney, Australia. In parallel to the main conference there is is a PhD symposium (December 1st) that will discuss the approaches, steps, best practices for PhD student that are exploring the Services Oriented Architecture.
After the main conference there is a summer school too. A good opportunity for students living downunder to learn and discuss the latest concepts and technologies in Services Oriented Computing. That will be held in Friday (5th) and Saturday (6th). The complete program is available in the main conference web site here.

Friday, November 21, 2008

Sri Lanka trail guides.

If you are a nature lower and would like to hike in Sri Lanka, have a look at the following web site.
http://www.lakdasun.com
It contains pictures, useful tips and much required trail guides with GPS way points. You may download the trail map and view it on google earth. Thanks Lakdasun team for these useful info. Keep up the good work.

Thursday, November 20, 2008

BPEL from CDL

WS-CDL and WS-BPEL both provide a way to describe how web services should collaborate. But the difference is that WS-CDL gives a global perspective the message exchange whilst the WS-BPEL provides a single participant's perspective.
As some are arguing I do not see a competition between these two specifications. Rather they must co-exist to describe services interactions properly.
Though, WS_CDL is designed to be used in conjunction with the WS-BPEL, one limitation of the WS-CDL specification is that a clear mapping with BPEL is missing. I agree that the intention of WS-CDL is not to be depend on WS=BPEL but there are advantages of having such a clear mapping.

  1. Choreographies can be defined in WS-CDL first by business partners and then generate BPEL process stubs for each party
  2. A party who’s having an internal business processes may need to publish the interface to its processes to attract business partners by generating the choreography. This could be done using a BPEL to CDL mapping.

From the engineering perspective such a mapping could be automated. Also such a defined approach would minimize the inconsistent mappings by different parties coming in to collaboration.
This paper presents how BPEL process definitions are derived from the global WS-CDL model. Authors have done this by defining a set of transformation rules.
For example

  1. Each party participated in CDL choreography a separate BPEL stub is generated
  2. One cdl:relationshipType maps to one bpel:partnerLinkType and the bpel:role with its bpel:portType is generated from the referenced cdl:roleType declaration
  3. Generate separate property files for each cdl:roleType including only those bpel:properties that are relevant for a party.
  4. BPEL basic activities are directly mapped to CDL basic activities
  5. Work units in CDL are related to scopes in BPEL


The complete mapping is available in the section 5.
The paper addresses a much required issue by not altering the existing standards or without introducing new standard, which is a plus point. The approach seems straightforward and not requiring intermediated mapping like in the approach here[4] where the mapping is into Communicating Sequential Processes. Also authors have implemented a prototype of the mapping as a proof of concepts.
Saying that, one limitation of the paper is that there is no reference on how to verify the generated BPEL stubs over the original CDL. Generated stubs may be correct for the given example or could be verified manually for simple scenarios. But it is required to have a formal mechanism to verify more complex scenarios. That is not in future work section too. And the verification need to be integrated to the BPEL stub generation or it should be done after generating BPEL stubs but before the populating them with application logic.
Also it is not clear how the mapping from BPEL processes to CDL is done. Which also an interesting issue (as far as ROAD is concerned ). May be we might be able to complete that part. We can map several processes to a common choreography by projecting them over a ROAD Self Managed Composite. In other words by overlapping several processes we might be able to define the choreography. Syntactical transformations might use the same discussed in the paper. Sure need to think and discuss more about that.

Friday, November 14, 2008

How to pronounce a word like a native?

Ever imagined how to pronounce a word correctly like a native? For example how the word for home in Sinhala language be pronounced in English properly? Is it "Gedara" or "Gethara"? Or something in between "da" and "tha" sounds? Well… now we have the chance to make the correct pronunciation available for non-Sinhala speaking community by recording them via Forvo’s web database.
Forvo’s goal is to collect proper pronunciations of every word in every language on the plant. Sounds bit dotty yeah…? But I think it’s a matter of time. I have already included some words in Sinhalese to the database and will contribute in the future as well.
So if you need to contribute for your language or like to learn how to pronounce a word in another language like French, Spanish or Japanese (as of now 195 languages are supported) properly check this out.

Adaptation categories

Static Vs Dynamic

The static adaptation can be achieved via logics in the program source code. That’s in the design time where a certain predictions are reflected in program source code and the configuration settings. Dynamic adaptation is the adaptation at runtime. The latter is considered to be more difficult to achieve as it is difficult to predict what are the events are and what the actions on them are. Undoubtedly the latter with a higher research interest.

Manual Vs Automatic

The manual adaptation refers to a sort of adaptation where human intervention is involved. In contrary, the automatic adaptation is where there is no such human involvement. By referring to the existing literature we can see that the more effective adaptation strategies are based on semi-automatic, where at a certain point there is a human involvement but mostly it’s the system itself is adapting to changes. (Especially adaptation of non-functional properties)

Proactive Vs Reactive

The difference here is based on the time of the adaptation occurs with respective to a particular event in the environment. If the adaptation is before the event, then it is proactive adaptation. If the adaptation is after the event then it’s known as reactive adaptation.

Sunday, November 09, 2008

Adaptive web processes in a pervasive services oriented environment

Services Oriented Architecture provides different applications to interact in a distributed environment to perform a particular task. The concept of services orientation in software design aimed to achieve the loose coupling of applications from its underlying operating environment. Being a progression of component based software development, Services oriented computing provide interfaces to users (human or software) to utilize a particular resource in a distributed environment.
On the other hand the image of traditional computer is fading away. Mobile /embedded devices claim for a good portion of computing efforts today, with the advancement of electronic technologies. Our car, phone, watch or what ever a device that we can’t picture today, has started to or will become a computing device. This resulted in many researches on Pervasive Computing or Ubiquitous Computing.
The operating conditions in such a pervasive services oriented computing environment are always subjected to change. For example while you are travelling, you mobile phone in your pocket and the car you drive might be doing some message exchanges/queries with applications hosted in nearby restaurants, shops and motels. The operating conditions like the mobile coverage, network bandwidth, types of technologies and even the availability of services can be subjected to frequent changes. The life time of applications is determined by these varying factors of the environment. The survival is always critical. And this calls for self-adaptive software systems.
Studies about adaptable and adaptive software systems have emerged as a major research topic in the past few years. Survival in highly fluctuating environments is a critical requirement for future software systems. Concepts of self-healing, self-configuration, self-optimization and all other self-* buzzwords are popping up in pervasive services oriented software systems. Many frameworks, solutions, techniques are being introduced in the reason past.
It is interesting to study about how business processes adapts to these highly fluctuating environments. Current approaches like BPEL and WS-CDL does not address the adaptation. Although it is possible to identify sort of programmable adaptation, in above approaches, where pre-defined processes are carrying out according to limited "expected" changes, it is not the sort of adaptation that we would be looking for. It is required to define, change choreographies among different business partners at run time in order to ensure smooth continues business processes. Runtime negotiation and establishment/termination of contracts among participating entities are essential part of the adaptation.
My research would be concentrated finding techniques and designs for process adaptation in such a pervasive, services oriented computing environment. Yeah... A diverted lil bit from security:-). Though this is not a really hot topic, I belive that there are more yet to be investigated. Therefore in coming months I'd be concentrating on this.

Saturday, October 25, 2008

RESTful PHP Web Services

Samisa has written a book :-)

I'm happy to hear that for two reasons. First, the book fills a gap between PHP web developers and RESTful web services. Second,it is written by someone who really knows ins and outs of the technology.

Given Samisa's expereinces in web services I'd recommend he should write a book on SOAP+PHP as well.

The book is available here

Monday, October 20, 2008

My (neighbor's) question

Here is my analysis on the current situation between Sri Lanka and India. I'm neither a political analyser nor typically interested about politics(well below the average). So my comments may or may not be valid. Yet I thought it is better to share them as a citizen at this critical moment in Sri Lankan history. Moreover my views are biased. They are biased as I am totally against LTTE terrorism and their ideology.

Current situation in brief

  1. SL military is gaining advantage of the land controlled by LTTE. As a result of that many people (Mostly Tamil) are displaced
  2. Tamilnadu politicians (DMK) are urging Indian Government to intervene the Sri Lankan war. If not they have threatened to withdraw their support to the central, stirring a political storm in India as the general election is just around the corner.
  3. LTTE is a banned terrorist organization in India and the first country to ban the group (even before Sri Lanka). LTTE killed Indian Prime Minister Rajiv Gandhi in 1991 and many IPKF during the period of 1987-1990
  4. SL government is backed by many parties consisting of different communities to finish the LTTE outfit once and for all. Main reasons are

    1. LTTE is responsible of killing and chasing of many Sinhalese and Muslims from North and Eastern parts of the island to create their mono ethnic homeland.
    2. LTTE have killed many moderate Tamil politicians who do not accept their ideology.
    3. LTTE have killed many Sinhalese leaders and potential leaders including former president Ranasinghe Preamadasa
    4. LTTE is responsible of destroying many assets of the country. (Katunayake Airport attack, Central Bank)
    5. More

  5. Indian government cannot ask from Sri Lanka government to stop the war against LTTE, yet they still need to get the full advantage of the waves of Tamil nationalism in Tamil Nadu, in order to win the GE (At the same time Delhi needs to tame the Tamil nationalism, in order to keep the integrity). On the other hand Pakistan and China is willing to provide unconditional support for the war against terror. These affections are not for the best interest of India in long term. Basically Delhi is in a thick soup.


What SL should do?

  1. Sri Lanka should not treat India as an enemy. The enemy should always be the LTTE.
  2. Sri Lanka should allow India to help the suffering Tamil community. We should not forget that at this moment there are people living under trees. If Tamilnadu politicians are genuine about their appeal, they should help the displaced Tamils not a terrorist organisation. SL government could facilitate this.
  3. Government should convince effectively the Tamil community about their safety (now and post war). Sinhala/Tamil/Muslim political leaders should understand the situation and should fish in troubled water for their short term political interests.
  4. Government should have a mechanism to convince ex-LTTE cadres and Mahaveer families (Those who support the cause and got benefited from LTTE) about their safety too.
  5. Government should provide facilities to those who are displaced due to war. After all we need to make sure that a “child today” is not a “terrorist tomorrow”.
  6. SL government should keep good relationship with international community, not allowing LTTE propaganda to spread lies. Government representatives and diplomats abroad should be more vigilant and active.
  7. Finally SL political parties should unite in this crucial hour. They should throw their personal agendas away. The country should always before the party.


The hypocrisy that cannot be neglected

  1. When LTTE is committing direct attacks on civilians Tamilnadu was in a deep sleep.
  2. Whenever LTTE is militarily powerful and mount attacks on an elected government, Tamilnadu was just blind
  3. Whenever LTTE killed moderate Tamil leaders and torture Tamil civilians, Tamilnadu was deaf.
  4. When tables are turned and Sri Lanka government takes the thing control into its hands (as it aught to do) and LTTE is struggling to survive, Tamilnadu becomes very unconfortable. Despite the wow of LTTE not to allow SLDF to step in tiger control areas, now the Tamil Tigers are pushed towards a defensive war.
  5. Tamilnadu knows very well that India is fighting tooth and nail to keep the Kashmir.


The solution

Still it is too early to say what would be the solution. Seems each party is just continuing what they do. If Sri Lankan government could play their cards carefully and let the Indian governments to handle their internal affairs, then the LTTE would be history. At the same time the government should lay their plans on how to address key issues in every community and pay an especial attention in developing the war torn areas.
It is quite interesting to see how Indian government eat food without burning their fingers. Though an Indian military intervention is far from reality we have to live with South Asian politicians who cannot see beyond the ballot box. Though winning an election is my neighbour's problem...

Tuesday, October 14, 2008

Sports, Politics and Nitwits

Blindly following the path of their psychopathic leader, the LTTE goons have staged a stinky protest in Canada during the Twenty20 Cricket series. The best slap over the faces of those pathetic losers, is given by the SL cricket team by winning the series. And for the best of all, the spinner Ajantha Mendis, who was the main target, (just because he is serving in the army) is the man of the series. Too much for the bunch of nitwits who cannot see the difference between sports and politics.


[Photo AP]

Friday, September 26, 2008

Petri nets. An interactive tutorial

I found a nice interactive tutorial that gives some examples of using Petri nets to model concurrent processes. Here is the famous problem with four philosophers modelled with Petri nets.

Monday, September 22, 2008

The history of social networking sites

I found following image while I was searching about the history of social networking sites.


Source is here

Friday, September 19, 2008

Web Services Ecosystems

The traditional definition of an ecosystem is something related to living things as the following found in the Merriam-Webster online dictionary,
"The complex of a community of organisms and its environment functioning as an ecological unit". Extending this to the world of web services with the concept of "a software as a service", as the backbone, today we are talking about Web Services Echo Systems.
The article by Alistair Barros and Marlon Dumas describes us, how different entities in the web services world plays different roles and how they are depending on each other forming an ecosystem. Also it shows how different entities are benefited by being part of this web services ecosystem. For example third party developers are developing services or service components and software companies acting as service brokers and integrators depending on them. Another example is how some companies address the space of interoperability and QoS issues on the basis of software as a service.
Also the paper shows unlike application servers, how business environment in an ecosystem evolve constraints. This is depending on the requirements of the demand side and the supply side
Demand side constrains on how services are
1. Discovered
2. Ranked
3. Authenticated
4. Mediated
5. Charged

While Supply side constrains on how services are
1. Published
2. Re-purposed through composition
3. Brokered
4. Re-provisioned through leasing and licensing

As we see that there are multiple entities are benefited under web services ecosystem, there are few obstacles on the way. The paper identifies three major fronts that the web services infrastructure will have to evolve

1.Flexible web services discovery:
Need to go beyond the conventional key word based searches. If the domain of the ecosystem is wider then key word based searches become unsuccessful. Instead it is advisable to use a combination of free-text and ontology-based searches.
2.Conversational multiparty interactions:
Service interactions are getting complex. Different transaction paths in a business process.
3.Service mediation and adaptation:
Services have different behaviours. Need to find cost-effective ways for service interface adaptation.

Thursday, September 18, 2008

Intellectual property and researching in a university

While I engaged in an assignment for the subject "Research Commercialization" in this semester, I searched about how the intellectual property rights are applied to our research outcomes. In many universities, we, as research PhD students or research fellows, are bound by the rules of the university. I found this intellectual property rights case in the very country that I'm studying right now. Ultimately the court decided who is the real owner of the invention. It's the researcher, though he has used the university resources. May be the result of the case is dependent on that particular context but not in any case in the future. Here you find the story in short and here you'll see more details.

Wednesday, September 17, 2008

Open source, WS-Standards and Beyond

16/09/2008 @ Swinburne University of Technology
Read this document on Scribd: Open source, WS-Standards and Beyond

Folks, if u need the animated version of this or if u have any questions, drop an email (Right now I do not have any space to upload the original PPT). Alternatively meet me at Room 404 EN Building.

Monday, September 01, 2008

Murali from Moratuwa

The University of Moratuwa, SL, where I studied as an undergrad, is on news for it's proud product of "Murali", which is nothing but an eight legged robot for detecting land mines.
North-Eastern regions of Sri Lanka are one of the heavily mined areas in the world due to the war between SL government and Tigers. The war has come to a decisive stage as government is gaining control over many regions, but land mines can be a problem for years even after the war. Therefore, this kind of a product from Sri Lankan institute should be appreciated and supported.
The most important characteristic of Murali is its ability to access areas that cannot be accessed by other means. Also Murali is capable of collaborating with other Muralis operated in a particular area upon detection of a land mine.
Read more...

Murali, or the Moratuwa University Robot for Anti-Landmine Intelligence, is a result of project funded by National Science Foundation and efforts of students lead by Dr. Thrishantha Nanayakkara.

Watch video ...


PS: Sorry if I raised eyebrows of few cricket addicts with the title.

Federated registries and crawlers

Deepal has revealed some of the things we discussed over the chat during the last weekend regarding web services discovery mechanisms.
I started to look into WSO2 registry to help with another PhD student but didn’t have much time to dig into the architecture level as I was busy during last week with my studies.
Yeah… the problem with having multiple registries in a heterogeneous environment is that it makes really difficult to find web services information, which is essential part in SOA. As web services grows from hundreds to thousands, the consumers or the clients need to have an efficient way to locate them. And publishers also need to attract clients without going through other marketing channels and gimmicks.
One such approach is discussed in this paper, which uses a crawler engine to find web services. In this approach the Crawler Engine (WSCE) actively crawls excising UBRs and search engines to collect web services information. Thus a system can maintain most up-to-date information about available web services. Web services information can be found using existing web services registries and web services portals. And also via search engines, which is becoming popular.

[Source : Eyhab, A.-M. and H.M. Qusay, Investigating web services on the world wide web, in Proceeding of the 17th international conference on World Wide Web. 2008, ACM: Beijing, China]

But using search engines too have limitations as they do not recognize web services with basic service properties such as binding information, ports, operations etc. And search engines can cache/store WSDL documents but there is no business-centric model or adhering to web services standards.

Another approach discussed in this paper is to form a federation of registries. The current search facilities offered by the latest version of UDDI do not offer any special features for finding Web service registries depending on the business domains. And it is difficult to have a design and execution autonomy for affiliated registries. The approach discusses in the paper allows peer to peer network of private, semi-private and public UDDI registries, which allow transparent access to registries in a federated environment. Following are the essential features of the approach

-Participating registries are autonomous registries that can be private or public
-Participating registries can be part of multiple federations
-Participating registries can be heterogeneous. Can have different data models and APIs
-Participating registries can arbitrary join and leave the federation. This is something that we cannot achieve with the UDDI replication support in V3
-Participating registries will have the design and execution autonomy
-The federation of registries can be formed as a market place for common interests
-The XTRO or the extended registries ontology provides a way o do complex queries across federations

So, in overall there is a requirement of adhering to a common standards as well as developing mechanisms to retrieve web services information from the repositories built upon multiple standards. IMO the latter is much better as it does not limit to a particular standard. (Lessons from the history)