Monday, February 4, 2013

Good Morning Beach Negambo


The fisherman in the picture released all the fishes caught back to the sea. 


It was empty in Sunday morning. But certainly this view deserved more people out here. It brings such calm thoughts.



Sunday, January 15, 2012

Useful commands (Unix/Win)

Thought of creating a a list of commands that are useful in development. Purpose is to reduce googling time i know where exactly what i want that is in my blog.

1.finds all files with last modified date is greater than some date
find . -mtime -1

2. Create a list of files that were modified after a given date.
find . -mtime -2 -exec ls -l {} \;

Wednesday, January 26, 2011

Social Networking makes us less human

The modern form of madness, i.e Social Networking, is taking its way very nicely. People are more into live in a virtual life rather real. Facebook, Twitter, Second Life, BlackBerry, iPhone or what ever the things used to stay connected(so called) in a cyber space with their peers has become a major part of the life(I am not talking about the basic communication protocols that comes with those). The way of living in a real life with a real passions and styles with real expressions is no longer existed in this cyber-reality. Simply it makes you living less in your real life. Less of productivity is another concern. Family relationships can be less connected. You are more vulnerable to feel lonely even your friends count shows thousands in numbers. Those are the real facts behind this .

Its true tha the Social Networking brings us some good. Its a great technology evolution, no doubt. But the problem is the balance that people get it into their life. By means of living the life it does very few good things to us but a big damage in many ways. These facts has been explained well in the book ALONE TOGETHER written by MIT professor Sherry Turkle. She explains that people are become isolated from reality due to such social networking sites because technology is dominating our lives and making us "less human".

Therefore its time to think weather it is really imperative to get this modern-madness into our life and is that the way we really want to live our life with. Honestly for me its more like a waste of time. Its not healthy. If you want to live in a real life, face-to-face, with a great sense of hummer feeling the setting whatever you are in start get rid of Social Networking. Instead go to a gym, fab or bar or do whatever it makes you real socialized. Its really healthy and you may feel you are more living like a human.



Sunday, January 23, 2011

Next generation framework for Java based web applications

Recently I had an opportunity to work on a project developed using JBoss Seam framework.
Seam is next generation web framework that integrates JEE technologies with variety of non standard technologies into a unified, consistent, programing model. Although Seam is not much popular in the co-operate world today It will be the next generation integration framework in Java world. The idea of seam is to glue the two key components of Java EE 5 specification that is JSF 1.2 and EJB3 (JSF is the standard presentation framework for the web tire that provides both a UI component model and a server side event model. EJB3 is the standard programing model for creating secure and scalable business components that access transactional resources. EJB3 also surround JPA that defines a standard persistence model for laying a ORM layer in between application and RDMS).

In conventional JEE programing model it requires lot of ''glue" code (backing bean layer) to combine JSF and EJB layers. Simply Seam eliminates that additional layer and fits JSF and EJB together. As such and with many more programing patterns, Seam has positioned as the next generation integration framework for Java base web applications.

Seam project is an idea of the Hebernate's inventor Gavin King. As for the most software project, Seam also was started to scratch a single developer's itch that of Gavin's. Why? Gavig King was fed up with that developers are not using Hibernate properly with the stateless framework like Spring. So he identified that the missing integration between JSF and EJB in a statefule context is much needed and it would avoid further abuse of Hibernate as a JPA provider. This would allow the persistence context (Hibernate Session or JPA EntityManager) to transcend layers and would permit stateful session beans to respond JSF directly. To achieve this, Seam was came out as a stateful, yet efficient, architecture in to the JEE picture.

Even there are many features that I can write on this blog I would not because there are lot more well written article that describes in and out about Seam well. If you are further interested it is just a matter of searching(Googling).

Wednesday, September 15, 2010

Friday, February 19, 2010

Impelementing audio streaming using RTP in Java

As this post is writing its a frustrating moment. Because no stable fully functional Java API found for streaming real time audio so far.

The first attempt I tried to implement RTP streaming was with JMF. Event JMF is almost a dead project by sun as its still using lot of programers and the mailing list is stil active I decided to use it. But again It was just a failure attempt as its not funtioning well on Linux. And again as it has not update since 2001 its quit rist to continue with it. So I decided to find for some other libraries. Freedom for Meedia in Java(FMJ) is the alternative open source project that provides functionalities to capture, playback, process, and stream media across multiple platforms. But its not that much active and less of documentations and tutorial I stil did not try to write any code with tha. But by the side im keeping it in case to try out.

The xuggle, I thought first the xuggle will do the job. But agian xuggle is supporting live streaming with a flash server called octopus. But who need a central media streaming for VOIP. So bye bye to xuggle.

The next library my attention went is Quick Time For Java(QTJ). God u know what?
Quick time streaming works only on Mac OS (Classic and OS X).

At the begening I did not think implementing audio streaming using RTP in java would be a challage. But now it has become a challage.

Sunday, January 31, 2010

Oracle's Sun Acusition

One of the big news to the IT sector within the last week was the merge of Oracle and Sun, both are major players in the industry from every aspects. As I am much more to Java I am pretty interested about this interesting sudion. There are winners and losers. This would be a good for some while bad for some. Even nothing can be concluded precisely but some predictions still can be made.

With this acquisition, software that are running on Java and the developments using Java would have affected badly. Such a clue comes because Oracle is very good at earning money by selling software with licenses. Java was Open and Free. But lately if oracle decide no more free Java then the problem arises. Probably they would not go such a foolish decision. But they might create many alternative paths in order to get money out from the idea. The idea is that Java can not be given totally free any more. Therefore the license would be required for any Java related works which is bad despite oracles side.

On the one hand this would be affected badly to the R&D works that have been continuously doing by Sun. Concerning the two natures of Sun and Oracle Sun has invested more money on its research works compared to Oracle. Therefore at the bottom line the less of R&D activities means less new releases and technologies to come. The result is the existing development APIs and frameworks will get a longer time to get upgraded to their new versions. In other words the speed of Java technology evolution will get slow compared to its Sun's era.

Another aspect to taken into the discussion due to this merge is the Opensource world as Sun was engaging with large number of opensource projects. Sun was investing more money and giving sponsorships to many opensource developments. Unless Oracle sees the value of this need probably Opensource world would be collapsed. This can been seen from the press conference released by Larry that the main reason to buy Sun is Java. But it is not. The main reason is the hardware business owned by Sun. By the way he would not obviously interested on other java based opensource softwares and API's that has been developing by Sun. Therefore Opensource would fall in quite an unexpected way.

Finally, the deal that worth $7.4 billions would not be a good one for most of Java users and opensource communities. This can be clearly seen by analyzing the behaviors of Sun's and Oracle. Other point is how it can be expected to be much better from the one that was already better. Its quite unnatural. Therefore things would be affected soon and be felt soon. But not for forever as everything got to get adjusted accordingly. Therefore will definitely have a better future.