Monday, July 27, 2009

Sachin Tendulkar to Sunil Gavaskar… Direct Dil se!

Some articles are rare, they are worth a treasure. We always promise ourselves to note them down, to keep their record but some how they ‘conveniently’ slip from our minds.

One such article I came across was the letter from the great Sachin Tendulkar to the great Sunil Gavaskar on Mr.Gavaskar’s 60th Birthday – June 10 2009. The letter not only portrays the respect Tendulkar has for Mr. Gavaskar but also displays Sachin’s humbleness and down to earth nature. Sachin who is cricket’s ‘Master Blaster’, who can play every possible cricketing stroke in the book with immaculate perfection, who has been the undisputed best cricketer in the world for nearly two decades, who is worshiped as someone next to God in India and has broken all the possible records, showing this humble gesture is what separates the greatest from the great.

Like my first meeting with Sunil Gavaskar

I was a ball boy at the Wankhede during the 1987 World Cup. My interest in cricket really took root after we won the 1983 World Cup, and for an aspiring youngster, to be at the ground during the next edition of the Cup and watch his heroes from close quarters was an unforgettable experience.

What made it even more special was when he called me to the Indian dressing room and introduced me to the team’s superstars. I had just entered my teens and couldn’t believe my eyes. These were the men I adored, and here I was, shaking hands with them.

What’s more, he spoke highly of me and my cricketing ability to his teammates. It was a big moment, a huge inspiration.

After all, how many cricketers get the opportunity to enter the Indian dressing room before making it to the national team?

I was then a school cricketer, but from the way he treated me, it felt like I had already played for India. I could feel his affection. Twenty-two years down the line, nothing has changed. I receive that same love and affection from him even today.

In many ways, 1987 was a watershed year. I remember batting particularly well, making more than 1500 runs, so it was disappointing not to get the best junior cricketer award from the Mumbai Cricket Association.

That’s when I got a letter from him. He wrote that I should not be disappointed because bigger awards were in store. At the end, he mentioned that if I looked at the list of players who had received the award, there would be one name missing that hadn’t done too badly in international cricket!

He was referring to himself. That letter is as valuable as any other award I have ever received. That was the beginning of a long and cherished association.

Just before my Ranji Trophy debut, he gave me a pair of his pads, which I was thrilled to use. It was light and not many of my age could afford them. Though I was young, I could see that there was a special place in his heart for me, something I am as proud of now as I was then. Over the years, we have spent countless hours in Mumbai and almost every cricket ground around the world, discussing cricket.

During our first few meetings, it was one-way traffic as I hardly spoke. For one, I was in awe of him, and then, I wanted to make the most of being privy to the wisdom of Sunil Gavaskar. When our coaches told us to follow a particular routine and we asked why, the reply was:”SMG did this”. He was the ultimate example, and to our coaches and to us, if he did something, then we had to do it as well.

Whichever way you look at it, he is an institution. When he retired, for our generation, 34 Test hundreds was the ultimate ambition.

I have been fortunate to have done a few special things myself. One of my abiding memories is my 34th Test century in Dhaka. For one, I had equaled him statistically, and he was present at the ground.

It was wonderful to be hugged by him after crossing the boundary rope during a break. Seeing him standing there to receive me signified the coming together of my childhood days, my adolescence and youth. After congratulating me, he said: “Please enjoy the rare moments of becoming a member of a rare, elite club.” But for me, it was a great feeling to climb the same peak as Sunil Gavaskar.

Later, he gave me 34 bottles of champagne and I have been fortunate to receive gifts from him time and again. When I got my 35th ton at the Kotla, he wasn’t in India. But just before dinner that night, he called from Nepal to congratulate me. I had really been waiting for that call. People say he does not miss a special occasion and I can vouch for that. I’m really fortunate that I have had the wisdom of a legend to fall back on. When I got the opportunity to write this piece on his 60th birthday, I told myself: “time flies”.

He still is and will continue to remain my hero, the same person I first met in 1987. The only change is that my respect for him has increased over the years. Many happy returns, and here’s wishing you a 35th hundred!

Sachin Ramesh Tendulkar

image

Friday, July 24, 2009

AJAX for Joomla components

AJAX (which stands for Asynchronous JavaScript and XML) combines a powerful set of technologies for Web 2.0 sites. Using Ajax technology, you can make the user experience far more interactive than previous Web site implementations. In the past, changes to parameters or the selection of buttons on a Web page required the changes be sent back to the Web server for an update. The browser would have to wait for the entire modified page to be returned to display the revisions. Using that process, user interaction with a Web application was fairly clunky.

The first piece in the application is the Joomla component. A Joomla component can be directly queried so that it will provide output without any menus or the other user-interface items that usually surround it. Therefore, the component only must output a single line of text that the Ajax application will display. If the component is working properly, you will see the single line of text output by the component in the browser window. If you view the source of the window, the HTML code will show nothing except the exact text. By setting the format to raw, Joomla executes the specified component and returns only the output that it has generated. This method is exactly how the Ajax Web page requests information for display.

The Ajax Web page will call upon the component for the product information and then display this information in an alert window. This file will be more complicated because it includes three steps of the Ajax process: user interaction, information request, and information receive/display. The user interaction consists of a simple on MouseOver event that will be constructed to execute a JavaScript function. In this case, the event will be set up to activate when the user places the mouse cursor within the area specified by a paragraph or

tag. With a basic implementation complete, you could now create a more powerful example. Most real-world Ajax solutions require a combination of dynamic content generation and Ajax interactive technology to allow more information to be retrieved from the same system.

Given the exciting nature of the Ajax technology, it is easy for developers to overlook the shortcomings. Aside from the complexity that Ajax can add to a Web development project, there are a number of very real problems that will be encountered as Ajax use grows: Ajax Search Engine Optimized (SEO) invisibility, Information harvesting, and possible security risks. Since Ajax has begun to spread like wildfire, entire sites are using Ajax for everything from menu display to core information presentation. While it is easy to get caught up in the excitement of a new technology, it is important to recognize where that technology can be best applied. However, all of the content that is displayed by the Ajax widgets is invisible to search engines. A search engine spider will not execute the code contained in an Ajax JavaScript link.

Many software products like AJAX Listing, AJAX recommend, AJX Register and AJAX Scroller for Joomla components.

Thursday, July 23, 2009

PHP Smarty

What is Smarty?

Smarty is a template engine for PHP. More specifically, it facilitates a manageable way to separate application logic and content from its presentation. This is best described in a situation where the application programmer and the template designer play different roles, or in most cases are not the same person.

For example, let's say you are creating a web page that is displaying a newspaper article.

  • The article $headline, $tagline, $author and $body are content elements, they contain no information about how they will be presented. They are passed into Smarty by the application.
  • Then the template designer edits the templates and uses a combination of HTML tags and template tags to format the presentation of these variables with elements such as tables, div's, background colors, font sizes, style sheets, svg etc.
  • One day the programmer needs to change the way the article content is retrieved, ie a change in application logic. This change does not affect the template designer, the content will still arrive in the template exactly the same.
  • Likewise, if the template designer wants to completely redesign the templates, this would require no change to the application logic.
  • Therefore, the programmer can make changes to the application logic without the need to restructure templates, and the template designer can make changes to templates without breaking application logic.
  • One design goal of Smarty is the separation of business logic and presentation logic.
  • This means templates can certainly contain logic under the condition that it is for presentation only. Things such as including other templates, alternating table row colors, upper-casing a variable, looping over an array of data and displaying it are examples of presentation logic.
  • This does not mean however that Smarty forces a separation of business and presentation logic. Smarty has no knowledge of which is which, so placing business logic in the template is your own doing.
  • Also, if you desire no logic in your templates you certainly can do so by boiling the content down to text and variables only.

One of the unique aspects about Smarty is the template compiling. This means Smarty reads the template files and creates PHP scripts from them. Once they are created, they are executed from then on. Therefore there is no costly template file parsing for each request. Each template can take full advantage of PHP compiler and cache solutions such as eAccelerator

Some of Smarty's features:

  • It is extremely fast.
  • It is efficient since the PHP parser does the dirty work.
  • No template parsing overhead, only compiles once.
  • It is smart about recompiling only the template files that have changed.
  • You can easily create your own custom functions and variable modifiers, so the template language is extremely extensible.
  • Configurable template {delimiter} tag syntax, so you can use {$foo}, {{$foo}}, , etc.
  • The {if}..{elseif}..{else}..{/if} constructs are passed to the PHP parser, so the {if...} expression syntax can be as simple or as complex an evaluation as you like.
  • Allows unlimited nesting of sections, if's etc.
  • It is possible to embed PHP code right in your template files, although this may not be needed (nor recommended) since the engine is so customizable.
  • Built-in caching support
  • Arbitrary template sources
  • Custom cache handling functions
  • Plugin architecture

History of INDIA

History of India
Stone Age before 3300 BCE
• Mehrgarh Culture • 7000–3300 BCE
Indus Valley Civilization 3300–1700 BCE
• Late Harappan Culture • 1700–1300 BCE
Vedic Civilization 2000–600 BCE
Iron Age 1200–1 BCE
• Maha Janapadas • 700–300 BCE
• Magadha Empire • 684–424 BCE
• Nanda Empire • 424-321 BCE
• Maurya Empire • 321–184 BCE
• Sunga Empire • 185-73 BCE
• Kanva Empire • 75-26 BCE
• Kharavela Empire • 209–170 BCE
• Kuninda Kingdom • 200s BCE–300s CE
• Indo-Scythian Kingdom • 200 BC–400 CE
• Chera Kingdom • 300 BCE–1200 CE
• Chola Empire • 300 BCE–1279 CE
• Pandyan Kingdom • 250 BCE–1345 CE
• Satavahana Empire • 230 BCE–220 CE
• Indo-Greek Kingdom • 180 BCE–10 CE
Middle Kingdoms 1CE–1279 CE
• Indo-Parthian Kingdom • 21–130s CE
• Western Satrap Kingdom • 35–405 CE
• Kushan Empire • 60–240 CE
• Indo-Sassanid Kingdom • 230–360 CE
• Vakataka Empire • 250–500 CE
• Kalabhras Kingdom • 250–600 CE
• Gupta Empire • 280–550 CE
• Pallava Kingdom • 275–800 CE
• Kadamba Empire • 345–525 CE
• Western Ganga Kingdom • 350–1000 CE
• Vishnukundina Empire • 420-624 CE
• Huna Kingdom • 475-576 CE
• Chalukya Empire • 543–753 CE
• Harsha Empire • 590-647 CE
• Shahi Kingdom • 565-670 CE
• Eastern Chalukya Kingdom • 624-1075 CE
• Pratihara Empire • 650–1036 CE
• Pala Empire • 750–1174 CE
• Rashtrakuta Empire • 753–982 CE
• Paramara Kingdom of Malwa • 800–1327 CE
• Yadava Empire • 850–1334 CE
• Solanki Kingdom • 942–1244 CE
• Western Chalukya Empire • 973–1189 CE
• Hoysala Empire • 1040–1346 CE
• Sena Empire • 1070–1230 CE
• Eastern Ganga Empire • 1078–1434 CE
• Kakatiya Kingdom • 1083–1323 CE
• Kalachuri Empire • 1130–1184 CE
Islamic Sultanates 1206–1596 CE
• Delhi Sultanate • 1206–1526 CE
• Deccan Sultanates • 1490–1596 CE
Ahom Kingdom 1228–1826 CE
Vijayanagara Empire 1336–1646 CE
Mysore Kingdom 1399–1947 CE
Mughal Empire 1526–1858 CE
Madurai Nayak Kingdom 1559 –1736 CE
Thanjavur Nayak Kingdom 1572–1918 CE
Maratha Empire 1674–1818 CE
Sikh Confederacy 1716–1799 CE
Sikh Empire 1799–1849 CE
Company rule in India 1757–1858 CE
British India 1858–1947 CE
Partition of India 1947 CE
The known history of India begins with the Indus Valley Civilization, which spread and flourished in the north-western part of the Indian subcontinent, from c. 3300 to 1300 BCE. Its Mature Harappan period lasted from 2600-1900 BCE. This Bronze Age civilization collapsed at the beginning of the second millennium BCE and was followed by the Iron Age Vedic period, which extended over much of the Indo-Gangetic plains and which witnessed the rise of major kingdoms known as the Mahajanapadas. In one of these kingdoms Magadha, Mahavira and Gautama Buddha were born in the 6th century BCE, who propagated their Shramanic philosophies among the masses.

Later, successive empires and kingdoms ruled the region and enriched its culture - from the Achaemenid Persian empirearound 543 BCE, to Alexander the Great in 326 BCE. The Indo-Greek Kingdom, founded by Demetrius of Bactria, included Gandhara and Punjab from 184 BCE; it reached its greatest extent under Menander, establishing the Greco-Buddhist period with advances in trade and culture.


The subcontinent was united under the Maurya Empire during the 4th and 3rd centuries BCE. It subsequently became fragmented, with various parts ruled by numerous Middle kingdoms for the next ten centuries. Its northern regions were united once again in the 4th century CE, and remained so for two centuries thereafter, under the Gupta Empire. This period, of Hindu religious and intellectual resurgence, is known among its admirers as the "Golden Age of India." During the same time, and for several centuries afterwards, Southern India, under the rule of the Chalukyas, Cholas, Pallavas and Pandyas, experienced its own golden age, during which Indian civilization, administration, culture, and religion (Hinduism and Buddhism) spread to much of Asia.



Kerala had maritime business links with the Roman Empire from around AD 77. Muslim rule in the subcontinent began in 712 CE when the Arab general Muhammad bin Qasim conquered Sindh and Multan in southern Punjab,setting the stage for several successive invasions between the 10th and 15th centuries CE from Central Asia, leading to the formation of Muslim empires in the Indian subcontinent, including the Ghaznavid, the Ghorid, the Delhi Sultanate and the Mughal Empire. Mughal rule came to cover most of the northern parts of the subcontinent. Mughal rulers introduced middle-eastern art and architecture to India. In addition to the Mughals, several independent Hindu states, such as the Vijayanagara Empire, the Maratha Empire, the Ahom Kingdom and various Rajput kingdoms, flourished contemporaneously, in Western, Southern and North-Eastern India respectively. The Mughal Empire suffered a gradual decline in the early eighteenth century, which provided opportunities for the Afghans, Balochis and Sikhs to exercise control over large areas in the northwest of the subcontinent until the British East India Company gained ascendancy over South Asia.

Beginning in the mid-18th century and over the next century, India was gradually annexed by the British East India Company. Dissatisfaction with Company rule led to the First War of Indian Independence, after which India was directly administered by the British Crown and witnessed a period of both rapid development of infrastructure and economic decline.

During the first half of the 20th century, a nationwide struggle for independence was launched by the Indian National Congress, and later joined by the Muslim League. The subcontinent gained independence from Great Britain in 1947, after being partitioned into the dominions of India and Pakistan.


Stone Age





Bhimbetka rock painting, adhya Pradesh, India.




Stone age writings of Edakkal Caves in Kerala, India.

Isolated remains of Homo erectus in Hathnora in the Narmada Valley in Central India indicate that India might have been inhabited since at least the Middle Pleistocene era, somewhere between 200,000 to 500,000 years ago.Most traces of the out of Africa migration along the shores of the Indian Ocean seem to have been lost. Due to flooding in the post-Ice Age period, recent finds in Tamil Nadu (at c. 75,000 years ago, before and after the explosion of the Toba volcano) indicate the presence of the first anatomically modern humans in the area.


The Mesolithic period in the Indian subcontinent covered a timespan of around 25,000 years, starting around 30,000 years ago. More extensive settlement of the subcontinent occurred after the end of the last Ice Age, or approximately 12,000 years ago. The first confirmed permanent settlements appeared 9,000 years ago in the Rock Shelters of Bhimbetka in modern Madhya Pradesh, India.

Early Neolithic culture in South Asia is represented by the Mehrgarh findings (7000 BCE onwards) in present day Balochistan, Pakistan. Traces of a Neolithic culture have been found submerged in the Gulf of Khambat in India, radiocarbon dated to 7500 BCE. The Edakkal Caves has one of the earliest exmples of stone age writing. Late Neolithic cultures sprang up in the Indus Valley region between 6000 and 2000 BCE and in southern India between 2800 and 1200 BCE.

The north-western part of the Subcontinent has been inhabited continuously for at least two million years.The ancient history of the region includes some of South Asia's oldest settlements and some of its major civilizations.The earliest archaeological site in the Subcontinent is the palaeolithic hominid site in the Soan River valley.Village life began with the Neolithic site of Mehrgarh,while the first urban civilization of the region began with the Indus Valley Civilization.

Bronze Age

Trip To Kanthalloor