Wednesday, March 26, 2014

Future - Who creates it, an alien??

So today I got this weird thought; Who creates future? Is it getting build, thought, visualize, conceptualize as I am writing this post? If yes, how can I be part of it OR will I be only consumer of it when it comes. 

Lets simplify with simple example. To watch a movie at home, as I remember, I used to rent a bulky VHS cassette then CD came, DVD n now Blu-Ray. We enjoyed each time new thing came and forgot old one. I am sure, currently tons of people working to bring next version or 'future' of movie watching at home. 

So lets come back on question how can I be part of future? I don't have definitive answer. Yes I know, one way is to join company/group of people who are working on their futuristic vision or if you have your own future vision create your team. These examples are good for materialistic world and may require either extraordinary talent or money.

Till now I didn't get clear answer so lets change question, am I ready for future? I have answer of it.
Only way to be ready for your future is to be current in your present. Simplification:

  • Stay up-to-date in your area of work/interest. Gather the knowledge, spend quality time, think about deep to understand. So ready for next..
  • Be aware about surrounding so you won't get shock
  • If you behind in your present, its hard to catch up as things pile up quickly
  • Keep your ToDo list as minimum as possible so no struggle for next
Summery: I may not be part of other's future but certainly I can ready for mine

I didn't intend to create a heavy loaded lecture post after so many days of gap on blog but it happens in search of my quest... As my 4 year old son says, 'Thats Ok daddy' :) 


Tuesday, April 23, 2013

SharePoint: Content Query Webpart - OOB, Custom Fields, Custom Style with Table format

Objective: Quick tips for Content by Query Webpart (CQWP)

Out of Box:
  1. You can display consolidated data from different lists, libraries, blogs, task lists etc.
  2. Best way to implement is with Content Type. Ex: To fetch data from multiple lists with same columns, first create Site content type, assign to all those lists and in CQWP select the content type.
  3. By default, you can pick two columns; one as Title and other as Description. you can also set one of default styles available like below:


Adding Custom Fields:
General requirement is to display more columns from list or library in webpart. Its small trick -
    1. Add out of box CQWP webpart on page and assign the lists, content types etc.
    2. Now export the webpart to your local machine.
    3. Open the webpart either in SP designer or visual studio or as matter of fact in Notepad and search for "CommonViewField" property like below screen.
    4. Add your list columns which you wants to display addition to Title & Description(both added earlier so no need to repeat here):
    5. TIPS:  Here you have to use internal name. In my example, my column names are "Request Set Status" and "File Number".
    6. Save your webpart, import it back to SharePoint and add to page. You can delete your earlier out of box webpart which we added in step 1.

Adding Custom Style Sheet:  Once you added your own fields, I am sure you want to change the display/style of data. Here you go to change style:
  1. Go to site style library(under view all site content) and first take copy of ItemStyle.xsl as backup before you play with it.
  2. Now open the ItemStyle.xsl in either designer, visual studio or even notepad. This xslt contains all the out of box styles so don't get scare by its long complicated look.
  3. Create a copy of entire template section of name "Default" and in your copied section change name as suited to your need. Here I changed to "CustomStyle". Don't forget to change in Match attribute as well other wise it will reflect in all styles
  4. Now, add your additional columns(added in step 6 of earlier part of custom field) in the Item section as below. I have marked columns with horizontal yellow line.
  5. TIPS: Here you can notice that the columns internal names are slightly different format. That's how SharePoint except :) . So be careful here.
  6. You can play with HTML tags, CSS to give your own style,color etc
  7. To implement Table header and footer, you need to do couple of steps. As you can see in above picture, I have marked few lines with vertical yellow color. That will help in setting up table headers. You can change header as per your need in Header variable section.
  8. After completing all changes in ItemStyle.xsl, upload back to Style Libray.

Happy Learning!





Microsoft Reference Link: http://msdn.microsoft.com/en-us/library/aa981241(v=office.14).aspx

Monday, October 29, 2012

Sharepoint : Hide the left navigation or Quick Launch

Easiest way to hide the left navigation or Quick launch on SharePoint page:-

For an individual page: Add the CSS on page either via HTML(for SP2010) or via Content Editor Web Part.
For SP2010 users, I strongly recommend to add in text file and refer that in your Content Editor Web Part, that way for future addition or change you no need to edit page.

 /*--- Hide left navigation --*/
style>
body #s4-leftpanel 
 {
          display: none;
 }
 .s4-ca
 {  
          margin-left: 0px;
 } 
/style>

You can also add in Page layout to be replicated on multiple existing pages.


 Happy Learning!

Tuesday, February 23, 2010

Five Myths About India


India's 7.9% economic growth in the third quarter of 2009 vividly illustrates a dramatic transformation in the country's image, from a land of elephants and snake charmers to that of an IT powerhouse and an emerging economic giant. While both sets of perceptions are valid, they hide far more than they reveal. Indeed, when it comes to the Indian economy, what most people believe to be true contains more fiction than fact. We highlight below five common myths about India and discuss why the reality on the ground is quite different.

Myth No.1: The information technology sector has been the primary driver of India's economic growth.

India is indeed a global powerhouse in information technology and IT-enabled services. Yet the IT sector is little more than a tiny, though highly visible, niche in the Indian economy. The total revenue of this sector added up to $72 billion in 2008. Translated into value-added terms, the IT sector contributed only about 4% to India's gross domestic product last year. Its contribution to employment is even smaller: About 2 million people are directly employed, and an additional 8 million jobs are created indirectly. Those are tiny numbers in a country with a labor pool of 700 million people.

The fact that India's IT sector is just a niche is actually a blessing rather than a curse. Notwithstanding IT's annual growth rates of 25% or more, the bulk of the recent growth in India's economy has come from manufacturing and other services. Only the manufacturing sector has the scale to create jobs for hundreds of millions of people, most with relatively limited education. If India is to realize its potential as an economic superpower, it will have to keep following China's path by becoming one of the world's factories. The IT sector gives India a good brand image, but most Indian jobs will have to come from manufacturing.

Myth No.2: India is decades behind China.

Most visitors to India and China form their impressions about these countries by comparing such cities as Mumbai, New Delhi, and Bangalore with Shanghai, Beijing, and Guangzhou. The difference between the two countries' urban centers is truly stark. China's top cities now look more modern and sleeker than New York or London. By contrast, India's premier cities are still vivid examples of the third world. Yet most people overlook the fact that, even though China is clearly ahead of India, the former looks stronger than it is while the latter is stronger than it looks.

In 2008, China's GDP was just a bit more than three times that of India. If India's GDP grows at 8% to 9% a year over the next decade—a reasonable prediction based on analyses by Goldman Sachs (GS), the U.S. National Intelligence Council, and other analysts—India's GDP in 2020 will be almost the same as China's in 2008. Of course, China would have powered ahead by then, but the fact remains that India's economy is about 12 to 14 years, not decades, behind China's. This is exactly the difference from 1978, when Deng Xiaoping launched China's reforms, to 1991, when India jumped onto a similar train.

Myth No.3: India's democratic politics will prevent a rapid build-up of the country's infrastructure.

Given its fiercely democratic political system, any Indian government will find it impossible to relocate quickly a few million people from a city's center to make way for gleaming office towers and elevated expressways. Note, however, that infrastructure consists of more than beautiful roads and buildings. It also includes ports, airports, power generation and transmission systems, telecommunications, airlines, and railways.

The only aspect of infrastructure that India's democratic politics hinders in a major way is the beautification of cities. The number of people who need to be relocated to build interstate highways, intrastate expressways, and most other infrastructure components is minimal and thus largely unconstrained by democratic politics.

From 1995 to 2007, China spent about 8.5% of GDP on infrastructure. During this period, India spent only about 4.2%. Today, though, the situation is radically different. India is currently spending about 8% of GDP on infrastructure and has plans to increase the figure to about 9%.

Ugly and crowded cities, while an eyesore, are unlikely to derail the ongoing manufacturing revolution, which needs interstate highways and intrastate expressways far more than easy-to-navigate city centers. In short, given its political system, India is more likely to become a manufacturing power long before its cities begin to look modern.

Myth No.4: Uncontrolled population growth is a major burden for India.

China's one-child policy has clearly achieved a major reduction in birth rates and population growth. In contrast, when one thinks of India, the enduring picture is one of cities overflowing with poor and teeming masses. Hence the question on many people's minds: How can India sustain uncontrolled population growth?

Notwithstanding the utter inability of India's democratic political system to impose any type of birth control policy, it is critical to remember that, as people become richer and better educated, they choose to have fewer children. Fertility rates (i.e., average births per woman) in India are declining rapidly—from 4.65 in 1980 to 3.25 in 2000, to 2.68 in 2007. A similar steep decline has occurred in the population growth rate—from 2.15% a year during the 1980s to 1.5% a year from 2000 to 2005 and 1.35% a year since then. If current trends continue, as is almost certain, fertility rates in India should drop to about 2.0 within the next 10 years, and the population's annual growth rate should fall to about 0.6% a year, similar to China's today.

In short, population growth in India is a self-correcting problem that is getting addressed on its own at a rapid rate. In any case, in a democratic country such as India, it is far easier and wiser for the government to focus on how to make the economy grow at, say, a 9% rather than an 8% rate. Over 10 years, that can be as effective a mechanism for population control as any other.

Myth No.5: India's education system is world class.

In launching the "Race to the Top" fund for educational reform in the U.S., President Barack Obama encouraged schools to develop internationally competitive standards so that American students can take on "folks in Beijing and Bangalore." President Obama is right on the money in noting that, in today's era, labor markets are global and that kids in Los Angeles are competing against not just their peers in Chicago but also those in Beijing and Bangalore. It would, however, be incorrect to conclude that India's education system is anywhere close to world class.

India is not just a large country but also one of the world's most diverse, with extremely high levels of income and educational disparities. The elite engineering and business schools (the Indian Institutes of Technology and the Indian Institutes of Management) are tougher to get into than Harvard or MIT and have produced a disproportionately large number of CEOs and senior executives for some of the world's biggest corporations.

Yet one cannot overlook the fact that adult literacy in India runs at only about 61%, far below the 91% figure for China, the 90% figure for Indonesia, and the 89% figure for Brazil. During the past five decades, China has placed far greater emphasis on primary and secondary education. In contrast, India has placed far greater emphasis on tertiary education. The manufacturing revolution, which is now in full swing and must continue, will need high school graduates and vocationally trained people far more than highly trained engineers and scientists. As in the U.S., transformation of the educational system and rapid upgrading of the infrastructure will be two of the most desperate needs for India's economy over the coming decade.

Courtesy to: Srini Pallia

Friday, January 8, 2010

Test Cricket is Still Alive

Since the T20 big shows i.e. ICL, IPL, Worldcup introduced to world cricket many cricketing fan including me would have saw end of Test cricket in few years time. T20 was short format and everyone started falling into it. After few months I started realising its not cricket which I had been following for 18 years.
Even though longest version takes your valuable time but it has own beauty. Its not just playing few good shots and becoming hero or blowing fews overs.
Recently finished two test matches caught my attention and again proved, why 5 days format of cricket called as toughest. First was Pak vs Aus.. Pak couldn't believe they are going to win test match in downunder and bundled in 4th inning. The reason was test matches is not only about your technical skills, it also checks your mental strength, your ability to be compose and concentrate on goal for 5 continous days. I tell you no other sports in this world demand such kind of ability from a sports person.
Secondly I saw End vs SA.. each day of this match was bringing new excitment. SA was fighting to level home series and Eng was for clinching it. What else you can ask from a test match where result was not decided untill Styne bowled last delivery and Swann defended that to draw.
I sure to see more such matches and keep enjoying it!

Thursday, October 29, 2009

"The Golf Balls" - Set priorities of life

When things in your life seem, almost too much to handle,
When 24 Hours in a day is not enough,
Remember the mayonnaise jar and 2 cups of coffee.

A professor stood before his philosophy class and had some items in front of him.
When the class began, wordlessly,
He picked up a very large and empty mayonnaise jar and proceeded to fill it with golf balls.

He then asked the students, if the jar was full. They agreed that it was.

The professor then picked up a box of pebbles and poured them into the jar. He shook the jar lightly.
The pebbles rolled into the open areas between the golf balls.

He then asked the students again if the jar was full. They agreed it was.

The professor next picked up a box of sand and poured it into the jar.
Of course, the sand filled up everything else.
He asked once more if the jar was full. The students responded with a unanimous 'yes.'

The professor then produced two cups of coffee from under the table and poured the entire contents into the jar, effectively filling the empty space between the sand. The students laughed.

'Now,' said the professor, as the laughter subsided,
'I want you to recognize that this jar represents your life.
The golf balls are the important things - family, children, health, Friends, and Favorite passions –
Things that if everything else was lost and only they remained, Your life would still be full.

The pebbles are the other things that matter like your job, house, and car.

The sand is everything else --The small stuff.

'If you put the sand into the jar first,' He continued, 'there is no room for the pebbles or the golf balls.
The same goes for life.

If you spend all your time and energy on the small stuff, You will never have room for the things that are important to you.

So ... ...

Pay attention to the things that are critical to your happiness.
Play With your children.
Take time to get medical checkups.
Take your partner out to dinner.

There will always be time to clean the house and fix the disposal.

'Take care of the golf balls first --
The things that really matter.
Set your priorities. The rest is just sand.'

Thursday, July 23, 2009

Economics: The Great Shift of 2009

I was thinking from while now to write something on so talked world economics, got some thing interesting. Every once in a while, we stumble upon a chart or table that says it all… here’s one hot off the press:





Oh my, where do we begin? So many to talk, lets put in points

1. Obviously, Wal-Mart is no longer No. 1. That title now goes to Royal Dutch Shell. The American consumer is out, and a global oil conglomerate is in… ’nuff said
2. There’s a clear sea change in American business. AIG, Lehman and Bear Stearns fell off the list from 2008-2009. Nike, Google and Amazon moved up
3. The world is increasingly less Amero-centric. An American company is not No. 1 for the first time in over a decade. In the whole list for 2009, 140 companies are American, the lowest number on record
4. The world is increasingly more Sino-centric. Look at China National Petroleum and Sinopec. Both Chinese companies are by far the biggest movers up from 2008-2009. Sinopec, an oil and gas company, also marks China’s first foray into Fortunes’ top 10. China now has 37 companies in the list of 500, its largest presence ever
5. Oil is still where it’s at. In spite of all the price drama over the last year, seven of the top 10 firms are oil companies
6. In the face of the worst global economic environment of our lifetimes, the world’s biggest companies are still making lots of money. The 2008 top 25 pulled in $4.88 trillion in revenue. This year, they made $5.38 trillion
7. And GE… what a black box. The world’s producer of everything was one of very few companies to retain the same position from 2008-2009. And despite the infamous GE Capital, the finance arm that apparently threatened to torpedo the whole company, GE ended up increasing revenues by nearly $7 billion.