Posts

Showing posts from March, 2008

Weekend Movie.

I am legend : What a great performance by Will Smith and what an interesting movie to watch. From start to end, this movie was never boring. Especially art direction and Will Smith's performance is a big plus for this movie. This movie is an adoption of 1954 novel of same name . It was very interesting to see timesquare and main New York streets without traffic and people. The director planned very well for Will Smith's solo scenes with "Sam" which is unavoidable, so that we never felt dragging on any scenes. The story is very simple, a virus outbreak causes billions of people dead and make some monster, only less than one percent of world population survive without becoming monster because they have the natural immune against this deadly virus. Will Smith played US army doctor role, trying to resolve this crisis by his own with "Dark Seekers". Very interesting movie to watch.

Chennai Cricket Test.

Virender Sehwag played his life time innings at Chennai, scored 319 in 304 balls with 42 fours and 5 sixes. Wow...Chennai fans witnessed 3 one day innings from this hard hitter from this one test. This test match was full of batsman controlled, and bowlers wants to forget this match as soon as possible. I don't know why now pitches in India playing like this, because normally Indian pitches favourable for batsman for first 3 days and then bowlers pitch especially for spinners. But any ways scoring 319 runs at 104 strike rate is really great by Viru, added Chennai's dry and hot weather also into consideration. From South Africa side Amla and McKenzie also played good and Dravid achieved his main goal of crossing 10,000 runs mark, may be he might consider of retirement from test matches very soon. 

UML - Use Case.

Use case is important for any software development. Use case is a structured way of describing a scenario. In extreme coding style, use case may not be a structured way rather it can be in a form of story telling. But some complex application required a structured way of use case so that we can discuss and brainstorm alternative scenarios and exception handling. The main input of use case is scenario like "buy a product". This detailed scenario can be found from "Product requirement document". But it won't describe well with in system level and who is going to execute this requirement etc. Use case is the only way to capture all those missing points from requirement document. The main sections of use case are 1. Actors : Actors is nothing but users who is going to interact with system in real time. User can divide into their roles. So any given system, we can identify level of user roles well before implementation. 2. Use case text : This is the extension of a

Wasting of Powers.

      As everyboby knows India has man power and US has money power. Are they using it properly? The answer is big NO. US banks are loosing money even a basic home loans collection, such a big country and finance power house of entire world, struggling to collect their own money from own people, as a result all over the world chaos and confusion in banking system, finally US government had to interfere into banking system to clear up mess. What a bad example set here? So you can do any mistakes and finally government will rescue you, rather than changing law to strict bank loan outflow and monitor system to regulate banking systems. This is all because US has money power hence wasting something from it doesn't matter now.      In other side of world, India has man power and India is wasting man power on agriculture, which is, highly unregulated. The whole agriculture contributing 18% of country's GDP but 60% of population working in agriculture field . So almost 40% of indian p

Struts 2 Vs Struts 1

Struts2 is much different than Struts1. Struts2 is more powerful and overcome all drawbacks of Struts1. But learning curve for experienced Struts1 developers are same as newbies. In fact, Struts2 is merged version of WebWork , which intended to overcome all Struts1 drawback. Action Class : In Struts2 action class implements an Action interface, but in Struts1 it was extends an Action class. This is a major difference and Struts2 action classes are POJO (Plain Old Java Object) hence testing is easy, no need to write HTTP mock objects to test action classes. Thread Modeling : Struts1 action classes are singleton, one instance per container, all request were handled by this one instance. ThreadSafe mechanism has to take care while developing Struts1 action class. In Struts2, action classes are not singleton, as many instance can created and there is no performance penalty and garbage collection overhead. Servlet Dependency : Sturts 2 action classes are not servlet API dependent, becau

IPL and ICL - Do we need this?

Cricket is a crazy sports in India. Good and everybody needs one or more sports for time pass, passion, favorite hero's. Already Cricket draws some negative aspects since this sport is lengthy, time consuming, not promoting team work, based on individual performance, drains man powers etc. But a sport in any form required to guide youths to right direction so that they would not concentrate on other evil things such as drugs or gambling. But now the creation of Indian Premier League(IPL) and Indian Cricket League(ICL) are overdose to already addicted Indian cricket fans. Because now itself the way we are watching cricket and spending time towards to cricket is more than enough. This is utter copy of US based NBA or NFL franchise model. The money involves for this franchise from private party is huge and this money can spend for our infrastructure development or build some factories to give job opportunities for needy people. No body wants to spend money for non-profit business, but

Google - Win or Lose Wirless Spectrum.

As I blogged about Google Android and Google's wireless auction , the auction result came out last week and Google didn't win any license. From Google's Official Blog... "This afternoon the Federal Communications Commission announced the results of its 700 MHz spectrum auction. While the Commission's anti-collusion rules prevent us from saying much at this point, one thing is clear: although Google didn't pick up any spectrum licenses, the auction produced a major victory for American consumers.We congratulate the winners and look forward to a more open wireless world. As a result of the auction, consumers whose devices use the C-block of spectrum soon will be able to use any wireless device they wish, and download to their devices any applications and content they wish. Consumers soon should begin enjoying new, Internet-like freedom to get the most out of their mobile phones and other wireless devices.We'll have more to say about the auction in the near

Unified Modeling Language(UML) - Class Diagrams.

First 2-3 years in start-up, we are always in hurry to code new features based on hallway, coffee break discussions. No documents, no design and no formal code comments also. After some point of time, our products are out there in market and everybody liked it. Now comes the documentation trouble, we have to document all, whatever we designed and developed in past, primarily in our mind. If you are designer, you no need to write 100-200 pages document describing what you did. All we need are excellent diagrams, sketches and flow from start to end. UML is the only way to achieve this. UML is not a strict language, in other words, there is no compiler out there to check our code against standards. A rough sketch can do the purpose. UML is useful on both forward and reverse engineering. The main component of UML is class diagrams, there is almost none design document without class diagrams. In class diagrams, the following notations and relationships are really important. This class diagr

BPEL - Manipulating with XML.

In BPEL everything is XML, we are passing a XML to one web service and getting response from same. All manipulating of XML data can be done in BPEL by using local variables and flow. The main purpose of BPEL is to transformation between different web service. XPath is standard way of manipulating XML data in BPEL. More advanced manipulation can be done using Java,XLST and XQuery. XPath is a simple language to navigate XML document to find a information from XML. But XPath is painful to do complex manipulation hence most of the complex logic can be done in Java or XQuery. Following is from http://www.w3schools.com/ Here is a simple XPath Query example /BookStore/book[1] - Selects the first book from BookStore element. /BookStore/book[last()] - Selects the last book from BookStore element.. /BookStore/book[last()-1] - Selects the last but one book from BookStore element.. It is not necessary to remember all systex and commands, since now almost all IDEs has plugins to develop BPEL logic

BPEL - Anatomy.

Business Process Flow Lanuage consists of 5 major strucure. They are PartnerLink - Reference to the services partcipants in the process flow and their ports/roles. Variables - List of messages exchanged between the BPEL process and each of the partcipanting web service. Flow Logic - The core of the business logic goes hers. The most used commands are receive,invoke,assign,pick,wait,throw,terminate,flow,sequence,switch,Scope,fault handlers. Falut Handlers - Catch and handle faults Compensation Logic - Undo logic. A BPEL process file can directly comparable with Java class, PartnerLink is import statement, Variables is class variable, Flow Logic is methods, Fault Handler is nothing but exception handling. The above guide can found in here .

Business Process Execute Language (BPEL)

Here comes the maturity of Service Oriented Architecture( SOA ), now increasing number of companies looking in SOA and web service as an integration components of connected application. First we need to convert existing business application to web service and publish this as WSDL , now we have multiple WSDLs out there, what about orchestrate. Do we need to code all flow in client side by invoking each web service? The answer is BPEL , BPEL is connecting all web services and orchestrate business flow. In other words, BPEL is a facade to execute multiple flows behind the scenes. BPEL was adopted by major vendors like Oracle, SAP, Microsoft and IBM. There is no vendor specific lock-in implementation issues. Since Oracle Fusion is consider as next generation middleware implementation because one stop buy for products and cost benefits, Oracle's BPEL Process Manager getting more attention, major advantage of Oracle BPEL Process Manager is, it is not stored executable files as Or

Weekend Movies

1. Michael Clayton : Great Movie. This movie revolving with 3 main characters Micheal Clayton (Geroge Clooney) : A gambling addict working in a well known law firm, scratching his seat for 17 years at same position, nick named as Miracle Worker. Arthur Edens (Tom Wilkinson) : A mental breakdown top notch lawyer, try to cover up a big organization (U-North) from 3 Billion dollar lawsuit. Karen Crowder (Tilda Swinton): A cut throat chief counsel working at U-North, her primary job is to rescue her company from the law suit. As movie starts, I didn't understand first 2-3 scenes, after flashback started everything is clear. This story is based on 4 days happening between this 3 characters. Micheal wandering around for money to settle his unsuccessful bar business, he got an emergency call to Milwaukee to support his colleague and his long time friend Arthur's mental break down. At same time Karen found that Arthur is helping people who sued her company. After that, story becomes wi

Exchange Trading Funds (ETF)

Stock investment getting tougher day by day. One single reason would be selecting diverse portfolio. Earlier diversification means, select 5 stocks from US market, 1 from defense, 1 from blue chip, 1 from health care, 1 from technology and 1 from fastest growing stock either technology or pharmacy. If you could spent 8-10 hours per week, you can manage your portfolio efficiently. But due to economy changes and fast adoption of global economy's, diversification becomes very complex and our portfolio should expose to international market stocks and the money we are planning to put in for investment should be more than what we could afford. If we are still maintaining, old way of diverse portfolio, we are prone to loosing money. Due to this factors, last summer after US market hits new highs, lot of part time investors like me sold all US based stocks and settled with mutual funds and ESPPs, which turned out to be wise decisions. Now it is good time to start again since US market is v

Up in the air : A special work.

The current space mission STS 123 to International Space Station(ISS) by Space Shuttle Endeavour is special one. This mission provides first module of Japanese Experiment Module (Kibo) and Canadian Special Purpose Dexterous Manipulator . Dexter is fully automated robotic arm which reduce some of the space walk activities. It would save lot of time and effect for astronauts since some actives can be done by this robotic arms rather than spacewalks. Dexter also duped as Canadaarm. The Japanese Experiment module is largest planned module for US side. This module final assembly will be completed on 2010. Already ISS is the most expensive object ever build by mankind[Source:Wikipedia], after all these additions it would become more expensive and greater scientific achievement .

Spike of Oil Price.

Many of us, still remembers the scary Goldman Sachs Oil price predication back in March 2005, at that time oil price was $50-$55, some body even ridiculous about this predication. what a losers??. After 3 years now, Oil price spikes to $110 per barrel and no signs of price decrease for foreseeable future. US economy is now in recession, due to declining demand, oil price should come down, but it is not happening. The main reason would be, as George Bush said during previous state of union address, US people are addicted to oil and they have no choice also because of poor public transportation infrastructure. Now what is happening is people are driving to shopping mall but not buying anything because they want to save some money for gas. With combination of credit market meltdown, oil price and decline home equity, things are looking very gloomy and positive signs are far away, may be summer of 2009 unless oil price come down and stimulus rebate checks going towards shopping not to p

Manage situation before it controls you...

Most of the times in our life we are in good situation, but often due to law of nature, sometimes we are in bad situation. When ever a situation controls you, you might loose control of yourself. A situation in this context is blanket term. A situation can be good, bad, confrontation, anger, sad or happy. All uncontrolled situation can be bad for our health and wealth. When we start with our career at young age, lets say 21 years of old, we don't know what is even situation is. We just come and go after completing our tasks and enjoy our life. After getting married and having kids, we have to know how to manage situation cleverly and efficiently otherwise we have to carry enormous burden on our own, even sometimes our family also have to share the burden for us. Most of us, try to play our game by the principle "don't drop ball". Don't drop ball is good and very honest way of doing our day by day job and reaching high on our career. But if we are stick with don

Recession then Shopping spree then Boom.

Actually when recession is around the corner, most of the bellwether technology firm's executives become an impulsive shopping buyers and their shopping spree would increase as sky high. As of now, Microsoft is trying to buy Yahoo, Digg.com and they already bought Danger ( a start up mobile software company ). Microsoft may not continue to pursuit to buy more companies after Yahoo, since their shopping budget for this recession may run out with expensive Yahoo purchase. Then all other bellwether jumps into shopping such as Google, IBM and Oracle. This is good for start up companies, because most of the acquired company's top executives and top tier software engineers, would quit because of sudden culture change and unable to adjust with new management etc. They come out to start a new start up or join with already booming innovative start ups. This is really boost for these start ups, which are struggling with funding as well as attrition now. This is starting of next boom cycl

Finally Apple opened iPhone.

Because of fierce competition from RIM Blackberry and Google's open source mobile software Android, Apple first time ever opened it's one of product for outside Apple developers to develop software for iPhone. Even without these feature, iPhone is huge success for Apple, now it is 28% smart phone market share in US (Source : WSJ). The cool about iPhone is, one device for many purpose and easily sync up with Mac calendar, contacts and iTunes. Apple software very frequent software updates now improved iPhone's endurance. Earlier it was very unstable and "freeze" a lot. 

GOP Steady and Dems still ...

Yesterday after major primaries, GOP finalized their president nominee for 2008 general election. McCain officially started his campaign yesterday. This is good for Republican party, from now on, Republican can rally behind McCain and promote him as next US President. But in other hand, Dems are still up in the air. They don't know who will win nomination and probably they have to wait until National convention. I think both Obama and Hillary are very tough fighters and capable of running this country, but now for the sake of party, one has to agree for vice president nominee. Based on one statistics, even if Obama or Hillary wins all the remaining contest, they can't fulfill mandates delegates for nomination. So Dems super delegates come into play to choose their nominee. One more controversy is brewing from FL and MI that their voice has to be heard since Dems top leaders rejects FL and MI delegates all together because both the states conducted primaries earlier than party g

We are the champions.(this time outside india)

After a long long long time, Indian cricket shines in Australia. Well deserve and much needed victory for young Indian cricket team. I have to emphasis one incident here, my opinion that is the turning point of this series. This was 4 th match between India and Australia, Ishant Sharma as a rookie gave lot of runs in first 2 overs, Hayden just blasting him for fours and third over also not too good, that time, captain Dhoni had a chat with rookie, after that he just changed line and length, here you go, Sharma took 4 wickets and India won the game. After that he was a most dangerous blower for Aussies . I would recall previous incidents from Indian cricket, seamers came and went as unnoticed, if they gave some expensive overs, that's it, his career ends there. Our impatient captains and selectors sacked them and turn their concentration on finding spinners because they don't want to take risk by loosing matches, they had a very short term goals, which really hurts Indian

Weekend Movies.

This weekend we watched 2 movies both of them are based on New York and crime movies. American Gangster and The Brave One. American Gangster I can give 8/10 to this movie. Good storyline and screenplay and most scenes were filmed very naturally and costume also modified to fit into 1960s timeline. All the locations in the film were authentic and real places in and around New York city. One of my favorite hero is Denzel Washington and he was amazing in this film, he just lived as "Frank Lucas" character.He was really acted well in the scene where he burnt down $50k coat because that was the turning point of the movie, after he wore that coat to boxing match, everybody knows that he was rich and running a gangster. Russell Crowe is another brilliant guy also acted as equivalent to Denzel . Director handled the scenes excellently by separating them the whole movie, that is, big plus for this movie. In other hand, movie was little slowed in the middle because of unnecessary fa

FOW - Future Of Web Apps.

As Future Of WebApps Miami Conference wound down yesterday, there were lot of discussions about future of web apps.  One thing loud and clear is, cost of innovation come down hence there won't be any limitations for innovation, in other words innovation no longer tied to company's balance sheet or tough economy conditions.  1. Kevin Marks - Google engineer's thought on Social Graph API which consolidate data across disparate social network sites. 2. End of emails - FOW see the death of emails. Because everybody now using social networks and it's message box for communication since email not going to provide much influence to younger generation.    3. Joe Smarr's take on Google's upcoming OpenSocial release and his thoughts on future of web apps. 4. Most scalable blog site wordpress Mullenweg's scaling and spamming . 5. Openness,happiness and sunny future of web apps?

Any other logic?

Yesterday a friend mine asked to help with her MS assignment, it is java so I got interested and solved it. But I was not satified with the logic which I provided, Is any other logic for this? The aim is to print all possible 3 and 2 letter word from String "GOLD". public class TestChars { public static void main(String []args) { String str = new String("abcdef"); char[] chara = str.toCharArray(); int count = 0; int countForTwo = 0; for(int i = 0; i < str.length(); i++) { for(int j = 0 ; j < str.length(); j++){ if(i != j) { System.out.println("" + chara[i] + chara[j]); countForTwo++; } for(int k = 0; k < str.length(); k++) { if( i != j && j != k && i != k) { System.out.println("" + chara[i] + chara[j] + chara[k]); count++; } } } } System.out.println("" + count); System.out.println("" + countForTwo); } } BTW, Cricker match getting interested now, " Noxious Weed " really undesirable for Aussies