Wednesday, April 30, 2008

Our view of the surroundings

Other day a pizza delivery scooter entered my street. Being a blind street with just four houses, we rarely get outside vehicles. The pizza guy couldn't see the blindness as the street is too slope and the other side is an open field instead of a wall. He had to reach the end and take a U. Definitely he would have been cursing whoever designed the layout. It is haphazard, we can expect it in such hilly area.

I was wondering what kind of feelings, expression, frustration he would have had about this street. This is his first time in this street, may be in this area too. He might have registered this mistake and try out other paths. Or he might have been too time stressed with his pizza delivery and he may not have observed the street into his internal system.

While thinking about this, I recollected the first time I was in this street. It was different. I was very much relaxed. Being new to the town, I was curious to learn the surroundings, people, buildings etc. We saw the house from outside. I observed the neighborhood. It looked fresh, calm and nice.

After staying here for months, the views and the feelings about the house, street had changed. What a difference can acclimatization can bring in!

Sunday, April 27, 2008

gwtExt panel to fill the page

While using gwtExt tools, I wanted the panel to occupy the entire screen. Found that Viewport is the component to use. However I didnt see the required effect in spite of using the Viewport as per the guide. I just got a small, shrinked panel as it used to be. After couple of trial and error, the culprit turned out to be an auto-height method called by the main panel. Commenting this statement cured the problem.
// panel.setAutoHeight(true);

Friday, April 25, 2008

Phone sex

Let us learn kamasutra positions throuh mobile.






















Thursday, April 24, 2008

Circles and squares

Most convenient structure for nature is to spin out a circle. The spherical planets, stars, galaxies, and tubular-cylindrical body cells, and the beautiful circular pot-holes .. the list is end less. What makes these forms prominent? Two things comes to mind: one is fluid dynamics which forms the pebble, pot-holes, to certain extend the moon and the planets. Second means is the central attraction force. This is the force that bring the atoms into spherical, a planet, star also as spherical.

My wife pointed out a natural square structure. When the body cells are tightly placed in a tissue or somewhere, they tend to form cubical and called cubic cells. There are rare incidents of such sharp shapes. Other area I could think of is, the cliffs and edges formed in mountain ranges when the mountains torn off due to violent quakes or other means.


When it comes to artificial shapes, man made structures are predominantly squares. The house we live, the computer screen, newspaper, this blog template .. goes on. The circular pattern is adapted either out of absolute necessity (wheel, motor coil) or for aesthetic reason (like a big arch in the hall, curvy furniture,)

Looks like it is easy for human to work with squares than circles. There are exception to this rule, like home made dosa :-)

Thursday, April 17, 2008

Beauty and the reaction

What is beauty? Sure, we all have many definitions. Why do we react in certain manner towards something beautiful, as per our defn?

There is some kind of appreciation, excitement in our mind, upliftment of our mood. We also get an inclination to possess the object of beauty. Or leave out a sigh if we understand the object is beyond our current reach. What is this need for possessing? Is it owner's pride to show-off or some kind of attachment with the beauty?

As said in Selfish Gene, could beauty imply sound health? May be we opt or try to pick like wise. If that be true, our evolution path should take us to more and more beautiful surroundings, beautiful people, beautiful experience and events. Of course, that will happen only when we stop our self destructive operations.

Tuesday, April 15, 2008

Burn the IIT

Here is a view contradicting the Save the IIT post.

There will be a divide between the rich and the poor, one in power and commoners, the performers and non-performers. The performers join together to form a group and enhance their productivity. They start benefiting out of such a network. The more successful it is, more it attracts the outsiders. Pressure builds up on to the closed system and slowly they will have to join in more people. This starts diluting the system and this particular branded group will loose its charm and name.

Probably the core performers or similar set of people will start again from scratch and get into a new brand name. This will last till the next burst.

In a way, it is good for the performing good themselves. This mechanism provides a good cleansing means. A stagnant group will become stale and that itself will lead to destruction. Anything that can start fresh and build with new ideas will be more sophisticated and useful to the society as a whole.

Post your comments if you have different views.

Friday, April 11, 2008

Save the IIT

Today the court had agreed for quota in creamy colleges. There are pros and cons.

To me, it looks like this is not the way to bring social equality. For eg, let us say we want to bridge the gap between rich and poor, one yard stick could be to see that poor are able to enjoy the luxury of five star hotels. If a politician sees an opportunity in this whole deal, and he forces the hotel to open the door for the poor ... he may put hundreds of poor in the building but it is a short term benefit for all (except for the politician). It is a degradation to the hotel. In long run, the poor are going to end up in similar poor-ness state like they were before, just that now they are inside the building.

Here the point is not against getting the poor inside the hotel. It is about the process. Instead it has to be cultivated at the root level. See that there are abundance, prosperity, skill usage etc so that people can climb up on their own to excel. That would be a way to bring people up and match with the rich. A tedious, abstract, theoretical process, but that is the way to go.

Coming back to quota for education, it is nothing different from the above scenario. Weaker strata needs more infra structure to build their basic knowledge. Upon stepping onto the fundamental level, they will have to climb up and compete with all others. The purpose of creamy college is to provide environment to nurture supreme intelligence. That ought to be honored.

Check out Burn the IIT.

Thursday, April 10, 2008

A day in the hotel

I got this from the comments section of http://travel.timesonline.co.uk/tol/life_and_style/travel/article3681312.ece

“WHILE WE were docked in Monaco, a guest left her hat in a taxi. She had no idea which taxi she had used. All she knew was that the driver had been listening to a football match on the radio. I contacted the radio station and asked them to make an appeal, in the hope that the driver was still listening. He was - and the hat was returned.” Gabor Szarvas, chief concierge, Crystal Cruises

Wednesday, April 09, 2008

Compare two properties files

I had two properties files and the parameter names were almost same in those two files. I had to go through them to find difference in the values. Searching for any utility didnt get a positive result. So, implemented the following logic.

Load both the file data into a hash map

(the param will be the key; we will end up having two hash maps)

for loop into sorted keys of first map

{

if (key exist in second map)
{

if
(firstMap.valueof(key) == secondMap.valueof(key))

{


key = firstMap.valueof(key) in both maps

}
else

{


key differs in the maps with firstMap.valueof(key)


and secondMap.valueof(key)



}

}

else

{

key exist only in first map


}

}

for loop into sorted keys of second map

{

if (key not exist in first map)

{

key exist only in second map


}

}

Monday, April 07, 2008

Food on-demand

This idea occurred while having lunch in a restaurant. What if I want a dish made out of a particular recipe? It would be nice if a restaurant promotes that idea. Food on-demand could work like this :

  • I go to their website and place a recipe. I could give a url to a recipe or type in my own recipe.
  • Restaurant reviews it and does a feasibility study. Return back to the requester with the cost estimate, date of availability etc
  • Both the parties decide on a suitable date and time, may be an advance is paid to the restaurant for planning the work
  • The person happily munches on the meal he wanted to have (probably the recipe out of his/her childhood memory). Optionally the person can leave a comment on the dish and level of satisfying his/her expectations.

Here is my list of items I would like to get it done in that way :

  • There are so many tasty dishes made out of plantain flower. My wife avoids them due to the complexity involved in preparing them. Very rarely we get in restaurants. If we have 'On-demand food', I could pass a recipe like this.
  • In Foster city area, I had tasted a potato pizza. (I think the restaurant name is Lake View). They did not use the potato wedges. Instead cut them into small cubes and slightly fried. It was very nice. From then on, whenever I have to order, I use to check for that pizza; unlucky me .. never ate that again. Few times, I tried convincing pizza restaurants to try that toppings and none dare to. They wanted to follow the direction they know.
  • There are many dishes I had in my childhood. Today I don't have them, may be I don't get those materials around. Or I don't know where to get. Food on demand would address them.

Wednesday, April 02, 2008

Why did cave men draw?


Upon pondering about cave painting, questions arises on the purpose of such paintings.

Did they want to show case their bravery and valor?
Were they preparing a draft plan for their upcoming hunting season?
Or a dad teaching archery at the board room?
Just a bored guy scribbled something on the wall?
May be a lady showing off her man's capability ..
an encrypted message for the future gen???

Interesting thou.

Tuesday, April 01, 2008

LIC, wake up

Why are public service sucks? Is it for all or specially designed torture technics for me alone?
I had a loan from lic. After facing difficulty in managing the EMI and payment, I decided to close the loan. With lot of effort, I managed to pay lump sum in two batches. After that they mentioned that a request to close the loan ought to be raised and they would tell me the final settlement. I did the same and paid the last payment of 2k+. Relaxed a bit of closing a hefty loan. Next month came a surprise from lic; they were trying to use the cheques to collect further money. Upon failing to encash, they started adding up penalties.


Sick folks. Will definitely consider settling the issue thru consumer court.