Saturday, May 31, 2008
the Millennials a.k.a Generation Y
This new generation is called Generation Y, they born between 1979 to 2002. They enjoyed most of digital advancement from birth. Here are some interesting facts about the Millennials.
97% own a computer
94% own a cell phone
76% use Instant Messaging.
15% of IM users are logged on 24 hours a day/7 days a week
34% use websites as their primary source of news
28% author a blog and 44% read blogs
49% download music using peer-to-peer file sharing
75% of college students have a Facebook account
60% own some type of portable music and/or video device such as an iPod.
Source : Wikipedia.com
As a Generation X , we have to adjust with this new Millennials, in order to comfortably work with or manage them. As a late Generation X like me, we have a added advantage that our spouse may be part of Generation Y, so naturally we have some knowledge of Generation Y's thought process and their advanced digital feeling. Here are some tips I collected from various articles and talk shows.
1. Generation Y loves to do multi tasking. This is very greatest advantage of Generation Y, we can ask any help at any time, they will listen and provide answers or some pointers. They won't say "I'm busy come after sometime". This is because they are exposed to online chat and they try to chat with 3 different people at same time talking with somebody over phone from their early teen age.
2. Networking is the greatest capability of Generation Y. They try to get in touch with their kinder garden friends to college mates. We can really utilize this from Generation Y. If we want some help with our backache or something, ask a Generation Y, with in minutes you will get email id, chat id and mobile number from their contact list, who is Physiotherapist from his/her school days.
3. Generation Y are most work-life balance aware people. They will not work for 60 hours per week, which was defined by baby boomers and we X'ers followed it. Generation Y try to complete the task early, by applying new technology or tools(or even getting some help from friends). Naturally they want to spend lot of time with their friends and parents.
4. The natural tendency of Generation Y'er is to move job very frequently. Kind of "they want to join the company which was founded by their friend(s) a month ago". This is very important if we try to manage them, we will not get job done by threatening/commading them or putting more pressure on them. If we provide a good structure of work and create a friendly environment, they will complete work early with high quality. Otherwise, they try to update resume over mobile phone and send it to their network and find a job within 20-30 mins.
5. One disadvantage of Y'er is try to move upward in company ladder very fast. They want 6 months to move from trainee to coder, 6 more months from coder to sr. engineer and other 6 months to sr. engineer to director and within 1 years they want to become VP, and 3 more years to CEO. Which is very wrong by all the principle we set within organizations. They want to move upward very soon because they getting bore on one position, so we can try to accommodate their interests by allowing them to move within internal teams.
Friday, May 30, 2008
National Spelling Bee 2008
Wednesday, May 28, 2008
BrowserPlus - Yahoo's new adventure
Here is link to Google's Andriod screen shots, really cool
http://news.cnet.com/Screenshots-Googles-Android-comes-to-life/2300-1046_3-6240422.html?tag=nefd.lede
Tuesday, May 27, 2008
Decrator Pattern
The classic example of decorator pattern is Java I/O package. We used to create a powerful reader by chaining file reader and buffered reader. So file reader got decorated by buffer reader at run time with out extending it.
BufferedReader buff = new BufferedReader(new FileReader("something.txt"));
Again back to our traditional Car example. Assume, Car came out of factory and it is ready for drive but not quite ready for fully operational. Because now Car directly going to a dealer and he/she needs to add their own accessories and some more accessories depends on customer choice. If we think about an object model here, we can clearly understand the decorator.
So Car manufacture has to create an interface ( assume an abstract class ) to satisfy both dealer specific accessories as well as customer specific ones, with out changing or extending car.Now dealer implementing all accessories by extending manufacture interface (abstract). Now dealer decided to create one more abstract class by extending manufacture interface, to give more choice to customers for highly customize the car.
//Manufacture abstract class
public abstract class Accessories {
public void addMoonRoof();
public void fixNumberPlate();
}
//Dealer concrete class
public class DealerAccessories extends Accessories {
public void addMoonRoof() { //add a basic moon roof }
public void fixNumberPlate(); { //fix number plate }
}
//Dealer abstract class for high customization
//allowing customer to choose what moon roof they want, panoramic, 3D etc
public abstract class AccessoriesDecorator extends Accessories {
public abstract void addMoonRoof();
public void fixNumberPlate(); { //fix number plate }
}
//Panoramic view moon roof
public class Panoramic extends AccessoriesDecorator {
public void addMoonRoof() { //add a panoramic moon roof }
public void fixNumberPlate(); { //fix number plate }
}
Now we have all in place, just we want to add it in car. Assume, car has one method called add Accessories(Accessories), here we can add any thing Panoramic or basic Dealer Accessories.
Saturday, May 24, 2008
Travel week 1
- Distance from Naperville - 70 Miles (~ 1.30 hours to reach there )
- Keep map or navigation system handy, there are several construction going on in and around I-80 and some exits are closed.
- No shops are available, so take sufficient amount of water bottles, food and other necessary items.
- $6.00 for entrance fees.
- There are lot of recreational activities and other beaches are there, plan to spend at least a day to see all.
Ram
Meha
Chicago skyline from West beach
Friday, May 23, 2008
Tips to save gas.
Monday, May 19, 2008
100th Post.
My first inspiration is Mr Sukumar Rajagopal, who is current Chief Knowledge Officer(CKO) and VP of Cognizant, I met him on early 2005 at our client's place, and he introduced the blog and explained it, showed his blog. That day onwards, I read his posts as well as his friend's posts, that really changed me to write more. I recommend his blog unequivocally. Thanks to Mr Sibu B Kutty, who is co-authored some posts in Sukumar's blog. He is the only one noticed first that I started writing blog and encouraged me to write more.
My second inspiration is my wife, yes almost 2 years ago she also started a blog as "home-stay-mom-hobby". Her blog is huge success (number of hits well passed over 240k in last 2 years) , I can see positive changes from her after blogging. I can clearly categorize her as BB(Before Blog) and AB(After Blog). I never knew that she was this dedicated, determined about something before blog. She never quit blogging after our 2nd kid born 6 months ago.
I will continue writing as much as I can.
Sunday, May 18, 2008
Oil Talk
Why OPEC don't want to increase oil production? Oil is under earth like water, why they don't want to cash in all free resource now? Now price is peak and if they pump all available resource now, they can make lot of cash. If OPEC agreed to increase production by lets say 3,000,000 barrels per day, I don't think price would go down $50 per barrel, because of high demand. This is good analysis to answer all these questions. Saudis don't want to push themselves or other OPEC members to increase oil production because they had bad experience of increased oil production and price fell almost 50% during 1990s.
But now situation is different and they simply missing the opportunity of cash in. What will happen if oil price goes high day by day, US try to explore more drilling and use alternative energy to satisfy their needs. India and China people would think twice to drive car because of high oil price and particularly India already has massive public transport in place, hence demand would go down. OPEC will miss the golden opportunity of selling their oil at high price, that is freely available now. Here is chart from http://education.yahoo.com/reference/factbook/countrycompare/oil/1a.html
if we see oil consumption of these 3 countries is almost 27 million barrels per day and there is lot of chances that US would cut down import because untapped resources in Alaska, all they need to do is persuade green concerned people.
Thursday, May 15, 2008
Factory Pattern (Contd.)
To achieve the above problem statement, first thing we do is convert CarBuilder class to an abstract class, we no longer use simple parametrize create car factory, we need something robust, multiple factories depends on countries.
Lets think about country based factories like India, US, Japan and so on. So definitely we need a IndiaCarFactory, USCarFactory, JapanCarFactory. Now what we have as a common with in these factories, one thing is assemble,sendToPaint,delivery so does it make sense if we implement all these methods in super class and let sub class implement createCar method and let sub class decide which car object to instantiate depends on country. That's our factory model. Here is real implementation.
public abstract class CarBuilder {
public void assemble(Car car) {
//a concrete shared assemble implementation goes here.
}
public void sendToPaint(Car car) {
//a concrete shared send to paint implementation goes here.
}
public void delivery(Car car) {
//a concrete shared delivery implementation goes here.
}
//this is going to differ based on country
abstract Car createCar(String name);
public void buildCar(String name)
{
Car car = this.createCar(name);
assemble(car);
sendToPaint(car);
delivery(car);
}
}
Here is factory implementation.
public class IndiaCarFactory extends CarBuilder {
Car createCar(String name) {
Car car = null;
if(name.equals("ford") {car = new IndiaFord(); }
if(name.equals("honda") { car = new IndiaHonda(); }
if(name.equals("chev") { car = new IndiaChev(); }
if(name.equals("toyota") { car = new IndiaToyota(); }
return car;
}
}
The same can be implement in USCarFactory and JapanCarFactory etc. So when we want to these from caller, all we need to do is
CarBuilder builder = new IndiaCarFactory();
builder.buildCar("honda");
that's it, now we have a car builder from India factory for Honda.
Factory Pattern
Factory Pattern
The definition of factory pattern in simple "encapsulate object creation" and from Gang of 4 "Define an interface for creating an object but let subclass to decide which class to instantiate".
Here is one example, we have a concrete CarBuilder class implementation and a method buildCar as follows, this class has other important methods to build a car also.
public class CarBuilder {
public void buildCar(String name) {
Car car = null;
if(name.equals("ford") { car = new Ford(); }
if(name.equals("honda") { car = new Honda(); }
if(name.equals("chev") { car = new Chev(); }
assemble(car);
sendToPaint(car);
delivery(car);
}
}
Okay, all are fine, our class is ready to support 3 types car creation and supporting methods. After some days, now we want to add Toyota into this mix, so we need to add one more condition in buildCar method, and after some time we need to add 3 more types and adding 3 more if conditions in code, looks bad as well as we are leading to ambiguous class. So now we have to remove all if conditions to some class like utility class and pass name from here to get correct class implementation. Removing all if condition from here to other class is a simple factory pattern, that is, encapsulate object creation.
public class SimpleCarFactory {
public static Car createCar(Sting name) {
Car car = null;
if(name.equals("ford") {car = new Ford(); }
if(name.equals("honda") { car = new Honda(); }
if(name.equals("chev") { car = new Chev(); }
if(name.equals("toyota") { car = new Toyota(); }
return car;
}
}
createCar method declared static so we can call this method without instantiate SimpleCarFactory class. We haven't really into real factory pattern yet. This is just a starting point.
Tuesday, May 13, 2008
Thomas Malthus theory
Thomas Malthus is an economist lived in early 19th century, wrote six editions of An Essay on the Principle of Population, mainly to focus on population growth that leads to lower wages and finally to prolong poverty. His view was very pessimistic but that leads or accelerated to Britain passed Census Act 1800, to keep check population growth for every 10 years. Now all countries has the similar law. His first edition was published on 1798 and second edition on 1830, almost 32 years after mainly to answer his first edition's criticism from noble economists.
The core of his pessimistic view as follows.
"The way in which, these effects are produced seems to be this. We will suppose the means of subsistence in any country just equal to the easy support of its inhabitants. The constant effort towards population... increases the number of people before the means of subsistence are increased. The food therefore which before supported seven millions must now be divided among seven millions and a half or eight millions. The poor consequently must live much worse, and many of them be reduced to severe distress. The number of labourers also being above the proportion of the work in the market, the price of labour must tend toward a decrease, while the price of provisions would at the same time tend to rise. The labourer therefore must work harder to earn the same as he did before. During this season of distress, the discouragements to marriage, and the difficulty of rearing a family are so great that population is at a stand. In the mean time the cheapness of labour, the plenty of labourers, and the necessity of an increased industry amongst them, encourage cultivators to employ more labour upon their land, to turn up fresh soil, and to manure and improve more completely what is already in tillage, till ultimately the means of subsistence become in the same proportion to the population as at the period from which we set out. The situation of the labourer being then again tolerably comfortable, the restraints to population are in some degree loosened, and the same retrograde and progressive movements with respect to happiness are repeated."
To give mathematical view of his theory, population growth will increase at geometric rate (1,2,4,8,16....) where food growth increase at arithmetic(1,2,3,4,5...) .
But we can completely reject his views now since our food increase is outpaced population increase and his views are mainly focused on early 19th century state. Now with this advanced technology and green revolution we can feed all human as well as coming generation. His views are targeted at one segment of people, that is, poor people. Somehow he hated them or fear that they might steal his( or his grandchildren) share of pie in future.
Sunday, May 11, 2008
Job Search 101.
Brush up fundamentals
I have decided to spent at least 2-3 months to search a good job for me with my expectations. Before starting job search, we have to brush up all fundamentals, coding exercise and puzzles etc., even though you are a 10-15 years experienced professionals, most of the companies want to test your academic level knowledge, very fundamental computer language knowledge and then your project related questions. I found one good book, Programming Interviews Exposed, this is really good book and it covered all basic data structures, algorithms and commonly asked puzzles. One more book I bought to prepare job search is Puzzles for Programmers and Pros I wouldn't recommend this book, it is nice to have. Since I took Java 2 certification in 2003, those books helped me to brush up Java fundamentals. For design patterns I used Design Patterns: Elements of Reusable Object-Oriented Software (a.k.a) Gang of Four, I can say that almost every software professional must have read this book multiple times. I found some difficulties to understand some patterns so I read Head First Design Patterns also.
Start Attending Interviews.
Once we finished all reading and have confidence, now start applying jobs and start attend interviews. Most of the companies first do a telephonic screen before asking you to come for face to face interview. We have to make sure to talk with low pitch and reply as much as short answers, because the interviewer may judge you as aggressive if you speak in high pitch and as talker if you talk most of the time, because the body language totally missed here. One web site even recommended that consider telephonic interview as face to face, so wear formal dress with suit before attending telephonic interview, but I didn't buy-in that idea. Low pitch and short answer are most important. I found some difficulties, when some interviewer asked me to write a code over phone because I have to write code in paper and explain at same time in phone. But after one or two try I'm okay.
Face to face interviews
This is most important one and face to face decides whether you are going to get an offer or not. As a candidate, our main thing is capitalize the environment and not to get nervous or stress. Most of the interviewers assist you get settle down first by asking some easy questions and later on some complex things and coding exercise. Based on my experience, some interviewers get rough and tough on you, that could be to test your character or they don't know how to contact an interview. Any ways, face to face would be most important one and basic is not to get nervous and calmly you have to explain what ever you know, how you solved an issue, your project experience etc.
My Experience
I attended 5 or 6 telephonic interviews and 2 face to faces. I got an offer with my 2nd face to face last week. I just followed what ever I explained here, stay positive is the most important thing to find a job.
Saturday, May 10, 2008
The investor vs. The speculator
"The CPI(M), which supports the ruling UPA coalition from outside, had charged the government with making a “wrong diagnosis” of the causes behind price rise and said the steps announced to control inflation would in fact stifle the high growth rate. It demanded a ban on futures trading in 25 commodities, alleging that allowing multinational companies to get into speculative trading in food grains had “resulted in price rise.”
Based on Karat statement, speculation is the main reason of price rise and as usual he blamed multinational companies. Sir, first you need to understand the difference between an investor and a speculator. I urge you to change 1947 mentality of labeling an investor as speculator. An investor is who do all basic research and home work before buy anything and a speculator is one emotionally attached and buy anything they want without doing any home work and based on price movements. These markets are now controlled by investors. If an investors thinks that market is infest by speculators, then price would automatically come down. Great example would be this decade's dot com burst. A good investor always sells when speculator comes into the play. As of now, commodities trading in India or oil future trading is not infested by speculators. It is just reflecting real state of price.
Here is Channa price for last one year contract from Multi Commodity Exchange of India(MCX) . See how our investors bring down price from peak of little over 3000 to 2400 with in last 2 months. Either it could be speculator infested effect or supply increase and demand subside, either way it is reflecting current real price.

Source :http://www.geojit.com/commodities/CommCharts.asp?index=3&Symbol=CHANA&ExpDate=2008.05.20&Exchng=MCX&SPeriod=-12&ChartType=1
Thursday, May 08, 2008
Bad Move by Indian Government.
Inflation now is a global phenomena. We can't blame anybody for this, we have to adjust ourselves to live with that. This price hike going to continue until Iraq oil flows into main market or US drilling some more in Alaska (I think Alaska will not happen because of US election year and more global warming concerned people in US) What will happen if we suspend oil future trading, now price determination would be in hands of OPEC who is both price fixer as well as producer. In that scenario, how come we trust them that they are playing a fair role of fixing price, definitely they can set what ever price they want, no question asked. In order to avoid that only we found this future trading for a stable price determination. Why we need currency future,suspend that also and let each country fix their own money value like communist China. No democracy.
Sunday, May 04, 2008
Microsoft's gamble.
Saturday, May 03, 2008
Mint. Free Online Money Management.
How to see simplicity from a complex system?
Friday, May 02, 2008
How to see simplicity from a complex system?
I want to write something about how to derive a simple workable solution from a complex system. A System can be anything, for example, Eiffel tower, what we are seeing now is a complex tons and ton of steel structure and it is very complex to build. But some human like us built it from scratch, they assembled simple steel structures to build this complex architecture. This is very basic, a multiple simple systems forms a complex system. If we see it correctly, we can make lot of simples from a complex. So nothing in this world is complex.
Why some systems make us think that it is complex, because the way it was present to us is wrong or we are jump into conclusion very fast about a system. If we see a system as it's whole integrity. it is, yes definitely it is complex. All we need to do is see the system as parts and find a simple pattern hidden in the complex system. If we understand the simple pattern that makes the complex system, we are well off and we can resolve any system.
From Generative AI to Agentic AI: 2 Weeks of Building MyNewsAI.io
From Generative to Agentic AI: 2 Weeks Building MyNewsAI.io Over the last two weeks, I set out to evolve MyNewsAI...
-
When I start thinking about future, my mind exploding without control, particularly current events and state of our economy. There is no d...
-
When I was young, i used to listen old stories from grandmother and a cousin of my grandfather. Most of the stories are from their flashback...
-
Already Microsoft getting heat from Google, that Google is capturing all critical functionalities from Microsoft office suite and developed ...