Thursday, October 25, 2012

Simple Shell


#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <signal.h>
#include <link.h>
#include <sys/wait.h>
#include <errno.h>
#include <myPipe.h>
#include <tokenize.h>
#include <myCD.h>


int main(){

    char input_line[256];   //input line
        char *command[100];    

 
while (1) {   //print consegatively the shell until the user press "exit"
//char *path[100];
//getcwd(path, 100);
//printf("\n[MY_SHELL ] %s ", path);
printf("\n[MY_SHELL ]");
        fgets(input_line,sizeof(input_line),stdin);
        input_line[strlen(input_line)-1] = '\0';
 

//if user wants to exit from the current shell

if(strstr(input_line,"exit")!=NULL) {    
exit(0);     //exit from the shell
}


//if user wants to direct to another directory
else if(strstr( input_line,"cd")!=NULL) //if user uses "cd" command to change the directory
{
myCD(input_line);//run myCD method
}

else if(strstr( input_line,"$PATH")!=NULL){
printf("path: %s \n",getenv("PATH"));
}
//if user asks for pipe function

else if(strstr(input_line,"|")!=NULL){
myPipe(input_line);//run pipe method
}
else{
 
tokenize(input_line, command);
//use the execvp function to run the process i.e the user's command
if(!fork()){
if (execvp(command[0],command) == -1)
{
  printf("Command not found\n");
}
     }else{
wait(NULL);
}
}
}
return 0;

}

myPipe



void myPipe(char *input_line){

  int temp;
  int index=0;

for(temp = 0; temp < strlen(input_line); temp++){
if(input_line[temp] == '|'){
index=temp;
break;
}
}


char one[128];
      char two[128];
  int len=strlen(input_line);

strncpy(one, input_line, index);
one[index] = '\0';


//Copying two characters from the middle of string S to D:
//strncpy(two, &string[5], 2);
strncpy(two, &input_line[index+1], (len-index+1));
two[len-index-1] = '\0';



int pfds[2];
pipe(pfds);
if (!fork()) {
close(1); /* close normal stdout */
dup(pfds[1]); /* make stdout same as pfds[1] */
close(pfds[0]); /* we don't need this */
execlp(one,one , NULL);

}
  else {
close(0); /* close normal stdin */
dup(pfds[0]); /* make stdin same as pfds[0] */
close(pfds[1]); /* we don't need this */
execlp(two,two , NULL);

}

}

tokenize


void tokenize(char *input_line, char **z)
    int x = 0; //used to continue through the array
    int a = 0;
    char *tray[100]; //to keep elements that are tokanized
tray[a] = strtok(input_line, " "); //get pointer to first token and store in 0 place in array
      
    while(tray[a]!= NULL){  //make sure a pointer is found
    a++;
    tray[a] = strtok(NULL, " "); //continue to tokenize the string
}
for(x = 0; x< a; x++){ //for loop to assign tokenz in to an array
z[x] = tray[x];
}
z[a] = NULL;
}


myCD


char *cdir[100];   
int dec;


void myCD(char *input_line){
//create a char pointer array to be passed to the chdir function
//tokenize the command enter by user
  tokenize(input_line, cdir);
//pass the first element of the pointer arrat to the chdir function
    dec=chdir(cdir[1]);
  if(dec==-1){
printf("No such file or directory\n");//continue;
    }
}


PS
myPipe, tokenize and myCD included as header files. If someone wants to make use of this code, save them in separate 3 files and run the main code


Wednesday, October 10, 2012

කුණ්ඩලීනී බලය




මේක ගැන ගොඩක් කතාවෙනවා දැකලා තිබ්බට හිතුනා මේ ගැන ගොඩක් කට්ටිය දන්නෙ නැතිව ඇති කියලා.ඒක නිසා මේ ගැන පොඩි විස්තරයක් කරන්න හිතුනා.

කුණ්ඩලීනී බලය,එහෙමත් නැත්නම් ශක්තිය කියන්නේ සිරුරේ විශේෂිත ස්ථාන කීපයක් මත එක් රැස් වෙලාය කියලා තීන ශක්ති විශේෂයක්.මේක විස්තර වෙන්නෙ නම් හින්දු තාන්ත්‍රික යෝග විද්‍යාවේ ඒත් ටිබෙට්,චීන,ජපාන යෝග ක්‍රම වලත් මේක ඉතා ගැඹුරින් විස්තර වෙනවා. හින්දු ඉගැන්වීම් වලට අනුවනම් අපේ ශරීරයේ මේ වගේ මධ්‍යස්ථාන 7ක් විස්තර වෙනවා.


1) මූලාධාර චක්‍රය - කොඳු ඇට පෙළ පතුළ
2) ස්වාධිෂ්ඨාන චක්‍රය - ලිංගය පිටුපස
3) මණිපුර චක්‍රය - නාභියට යටින්
4) අනාහත චක්‍රය - හෘදය ආශ්‍රිත
5) විසුද්ධ චක්‍රය - උගුර
6) ආඥා චක්‍රය - දෙබැම
7) සහස්‍රාර චක්‍රය - හිස් මුදුනට යටින්

යෝග අභ්‍යාස ප්‍රගුණ කිරීමෙන් මේ චක්‍ර පුබුදු කරවන්න පුළුවන්.ඒකට යෝග ක්‍රම ම භාවිතා වෙනවා කියන්න බෑ,තව මන්ත්‍ර,ශ්වසන අභ්‍යාස,භාවනා ක්‍රම මඟිනුත් මේ චක්‍ර පුබුදුවා ගන්න පුළුවන්.ඒ ඒ චක්‍ර වල සිත පිහිටුවල ඒ චක්‍ර පුබුදු කිරීම කරනවා,ඒ ඒ චක්‍රයට ආවේණික වර්ණත් තියෙනවා.



1) මූලාධාර චක්‍රය - රතු
2) ස්වාධිෂ්ඨාන චක්‍රය - තැඹිලි
3) මණිපුර චක්‍රය - කහ
4) අනාහත චක්‍රය - කොළ
5) විසුද්ධ චක්‍රය - නිල්
6) ආඥා චක්‍රය - ඉන්ඩිගෝ
7) සහස්‍රාර චක්‍රය - දම්

මේ බල අවධි කිරීම හින්දු යෝගාසන අභ්‍යාස වලින් පියවර 4කින් කරනවා.

1) බල අවධි කිරීම
2) බලයට වැඩෙන්න හැරිම
3) බලය පාලනය
4) විශ්ව ශක්තිය සමඟ මුසු වීම

මේ එක එක චක්‍ර අවධි කිරීමෙන් ලැබෙන ප්‍රතිලාභ එකිනෙකට වෙනස් 

1) මූලාධාර චක්‍රය - සියලු භාෂා දැනගත හැක,රෝගී නොවෙයි
2) ස්වාධිෂ්ඨාන චක්‍රය - සතුරන් දමනය කල හැක,හැඟීම් පාලනය කල හැක
3) මණිපුර චක්‍රය - මැවීමෙහි,විනාශ කිරීමෙහි බලය ලැබෙයි
4) අනාහත චක්‍රය - සිත සමාධිගත වෙයි,දිගුකල් ජීවත් වේ
5) විසුද්ධ චක්‍රය - කථන හැකියා දියුණු වෙයි,අහසට නැඟීමේ හැකියාව දියුණු වෙයි
6) ආඥා චක්‍රය - දුර දර්ශනය,මැවීම,විනාශ කිරීම හැකියා
7) සහස්‍රාර චක්‍රය - මනස පාලනය


මේක මම ආසා එක පැත්තක් නිසා මේ ගැන ලිපියක් ලියන්න හිතුනා.කලින් ලිව්ව ප්‍රායොගික මනෝවිද්‍යාව සම්බන්ධ ලිපි 2ක වගේම මේකත් සිංහලෙන්ම ලිව්වා.අනිත් මනෝවිද්‍යාව ගැන තීන ලිපි නම් මගේ ප්‍රොජෙක්ට්ස් වලට කරපුවා.සමහර ඒවනම් මගේ ඇඟේ අමාරුවට ලියපුවා.:P.නිකන් අප්ලෝඩ් කලා අනිත් අයටත් වැඩක් වෙයි කියලා හිතලා.වෙලාව තිබ්බොත් මේකට කරන්න පුළුවන් අභ්‍යාස කීපයක් විස්තර කරන්නත් හිතන් ඉන්නවා,ඒත් ඒවා වෙනම පෝස්ට් එකකින් දාන්න තමයි දැනට බලාපොරොරොත්තුව.

PS
This topic is pretty much easy to sarcastically drop away or have a great fun out it as the arguments in favor of this topic is so brittle. But we can't say anything that doesn't exist since we don't see them and we don't believe in them. These things would have been toppled and won't be flourished for thousands of years unless they contain a sight truth. Problem is, these things are under sacrilege of scoundrels in modern world. Conglomerate of those ill factors lead this subject so alien to people. I'm neither a believer of these things nor I disbelieve these things. It's just for the sake of knowledge. :). Just felt to make a prior statement on this because of a comment I received for my previous post. Cheers!!!



Sunday, October 7, 2012

Motivation




In many ways motivation is central to the study of psychology. You and I are constantly engaged in pur-poseful or goal-oriented behavior and underlying all such behavior are motives. Motivational concepts allow us to account for the variability in behavior, both in an individuals (Beck,1990)

Motives arouse and direct our behavior toward some goal. There are 3 major categories of motive. 
  • Biological
  • Stimulus 
  • Learned Social. 

The biological motives such as hunger, thirst, temperature regulation and sex have a definite physiological basis. The stimulus motives, such as sensory stimulation, exploration, curiosity, contact comfort and competence cause us to seek us sensory stimulation through interaction with the environment. They are internal and unlearned, but do not appear to have a specific psychological basis. The learned social motives, such as achievement, power and affiliation are determined largely by learning and focus on social experiences.

Motivated behavior is initiated and directed toward a goal and varies in intensity and persistence (Petri, 1991). Motivation, then can be thought of as the forces that initiate and direct behavior and the variables that determine the intensity and persistence of that behavior. The initiation of behavior can be prompted from within the individual or the external environment. For example, we might be hungry because of a low blood sugar level (internal cue) or because we saw a delicious looking dessert (external cue). Motivation also provides direction for our behavior. For example, when we hungry, we seek foods, rather than read our text book.




Lastly, motivation determines the intensity and persistence of our behavior. Intensity is to do with how strong the behavior is. For instance, if you are only a little hungry you might eat if food is readily available. But if there is no food in the immediate vicinity you would probably engage in some other behavior. On the other hand, if you are extremely hungry, you would most likely to watch something to eat, doing whatever to obtain your goal. How motivated we are will likewise influence our persistence. Sometimes we will persist in obtaining a goal for a long time. While at other times we will give up after a brief try.

Psychologists often measure motivation by observing what individuals do (initiation), how they make choices (direction), how strongly they engage in the behavior (intensity) and how long they engage in it (persistence). Motivation is not observed directly, but rather is inferred from the performance of subjects (Petri, 1991). For example if person subjects a horror movie over romantic comedy, we infer the person is meeting a need by doing so. Sometimes we can manipulate the level of motivation in others, such as when researches temporary deprive animals of food to increase their motivation to work for food. Parents might also motive their children by manipulating the level of reward (Praise or Money) given to certain behaviors.

Reference

Beck, R.C (1990). Motivation: Theories and Principles (3rd Edition). Eaglewood cliffs, NJ: Prentice hall
Petri, H.L (1991). Motivation: Theory and Research (3rd edition). Belmount, CA: Wadsworth 


Saturday, October 6, 2012

Google In China - A case study





 Executive Summary

Form the year 2002 onwards, Internet giant Google went many hardships in China due to government’s censorship over internet. Apart from that Google’s China rival Baidu.com was behind the scene as they intended to grab the market share which hold by the Google.com

The purpose of this case study is to study and understand how such a multi-national company went wrong unable to understand the culture in a country.

The study highlights the impact that Google had to undergo during 2002-2010 period of time in China.  As a result of the pressure that Google faced in China, ultimate decision was to pull out and established company’s search engine in Hong Kong as Google.com.hk. For not maintaining a good relationship with Chinese government let Google in a terrible position as they had to pull out from a well growing Chinese internet market, which was a huge blow in Google’s financial perspectives.

The analysis of Google in China have shown how inter personal relationships in businesses, especially in terms of China, affects the company’s profit, image and success. Understanding each country’s culture is a must and it immensely helps to provide a sound service towards its customers.


Introduction

Google is an American multinational internet software corporation which was first incorporated on September 4, 1998 and the public offering followed on August 19, 2004. Google specialized in internet search, cloud computing and advertising technologies. Also Google owns the most popular video site YouTube. Google is the world’s largest search engine. It hosts and develops a number of internet-based services and generates profits from advertising by AdWords program, a system Google has developed to assist in marketing products or services.

The company founded by Larry Page and Sergey Brin, two Stanford graduate students. This program began as a college research project, which gain immense success later. The project was supposed to implement an innovative technology that would analyses webpages and retrieve the most pertinent information for any given query.

Google’s mission statement from the outset is “To organize the world's information and make it universally accessible and useful" and the company's unofficial slogan is "Don't be evil". Google’s unofficial slogan is said to recognize that large corporations often maximize short-term profits with actions that may not be in the best interests of the public. Supposedly, by instilling a Don't Be Evil culture, the corporation establishes a baseline for honest decision-making that disassociates Google from any and all cheating. This in turn enhances the trust and image of the corporation, which may outweigh short-term gains from violating the Don't Be Evil principles (Birch, 2010). 



Type          
Industry                         
Founded               
Founders          
Headquarters      
Area served  
Revenue               
Employees      
Web site                    
Public
Internet, Computer software
Melno park, California, U.S (September 4, 1998)
Sergey Brin, Larry Page
Mount View, California, U.S
World wide
US$ 37.905 billion(2011)
32467(2011)
Google.com














Case Background 


Google launched the Google.com in China in the begging of 21st century, but that was operated from outside of China, California-USA. As from financial point of view, Google saw China as a dynamic and fast growing market despite of increasing competition. China’s internet market is about 105 million in 2006 which represented only 8% of the Chinese population (Kalathil,2003). According to Google’s 2006 projections Chinese internet market was expected to grow from 105 million users to 250 million users by 2010 (Google, 2006). The main advantage with this U.S.-based version of Google.com, company was able to control an estimated 25% of the Chinese search market by 2002 and to avoid Chinese government censorship completely. (Kalathil, 2003)

Current Chinese government functions under the leadership of Communist Party., who more keen on protecting the country’s government and political situation by out coming threats. Chinese Government takes any action at any cost to prevent those situations. This is done through various ways of rules. But the ultimate purpose is crystal clear, Government needs a smooth flow within country. 

One of the government’s main concerns is the Internet. The Chinese state was able to block 90% of websites about the “Tiananmen massacre,” 31% of sites about independence movements in Tibet, and 82% of sites with a derogatory version of the name of former President Jiang Zemin. Chinese censorship was effective, though not total, and that information was available, though on a limited scale. (Human Rights Watch, 2006)

Chinese Ministry of Public Security is using a system call “Great Fire Wall” to block their citizens from seeing some overseas news reports and searching various words and pornography in search engines.


The Great Fire Wall

The “Great fire wall” or The Golden Shield program was initiated in 1998 and began operations in 2003 (McLaughlin, 2006). It has been nicknamed the Great Firewall of China in reference to its role as a network firewall and to the ancient Great Wall of China. A major part of the project includes the ability to block content by preventing IP addresses from being routed through and consists of standard firewalls and proxy servers at the Internet gateways. The system also selectively engages in DNS cache poisoning when particular sites are requested. 
The Stakeholders 

In Chinese internet market Google’s major competitors Yahoo and MSN each had entered Chinese market as Internet Services Providers (ISP) earlier. In addition, Chinese search engine Baidu.com was the major competitor that Google.com faced in China.

As for the rules in the game, when a company, whether it is a Well-financed multi-national or a domestic corporation, they have to do it in the way Chinese government want. Otherwise company can take their business elsewhere. This factor hugely matters when establishing an early position in market dominance in China. Good favors with the government vital towards long-term profitability, means any businesses wishing to operate in China must do so with the blessings of the Communist Party, the ruling party known for its pervasive corruption and widespread human rights abuses. Yet China is a country where the term free market is still being defined and where the power of ‘Guanxi’ (informal personal connections), can place western notions of business ethics on shaky ground. (Kalathil, 2003)


Case Issue

In the fall of 2002, this problem struck for Google. Suddenly, in early September, computer users in China could not access Google.com. The Chinese government had blocked access to the site. Users were diverted to rival Chinese search site, Baidu.com, the heavily censored Chinese search engine. Two weeks later, it again became possible to access Google.com, but government censorship had been heightened, making the search engine far slower and less reliable. Chinese users found that Google.com was down over 10% of the time; Google News was never available; and Google Images was available only 50% of the time. ( Lin, 2004)

Google Co-founder Sergey Brin and many technology professionals in China believe it was the result of an effort by a Chinese competitor, Baidu.com, to gain market share at Google’s expense through pulling strings in the government. The stoppage could also have been due to heightened internet security in anticipation of a November 2002 shift in political leadership (McLaughlin, 2006). Whatever the cause, Google was left offering users in China a slow and less-than-satisfactory version of Google.com. Moreover, Baidu.com, now Google’s chief rival in China, began to grow, blossoming from a 3% market share player in 2002 to a 63.7% market share player in fall 2006, they drag the young Chinese crowd by catering in large part to young users looking to download MP3 files. Concurrently, Google dropped its market share from 25% in 2002 to 19.2% in 2006 (McLaughlin, 2006).





The huge market potential let Google thinking in Company’s decrease in Chinese market during 2002 and 2006. So it was important to make decisions about escalating Google’s mission in China at the price of self-censoring the search engine. So in order to cope up with this problem in early 2006, Google struck a deal with China government and launched Google.cn, a version of its search engine run by the company from within China. This is a move towards transparency that distinguishes it from competitors like Baidu.com, Yahoo!, and MSN, Google.cn provides users with a brief message indicating if any pages have been censored from their search results. The message does not inform users what specific pages have been censored; it simply lets them know that censorship has occurred. The Washington Post printed a list of the words and phrases that seem to be censored by Google.cn, reporting that these words are the result of Google’s research into what they needed to censor in order to fall under Chinese legal guidelines (Worsfold, 2006).


Google’s Reaction

As the situation demands Google had to determine the extent they should self-censor Google.cn. For users of Google.com in China, searches for censored subject matter, ranging from political subjects like “democracy” and “Tibet” to religious subjects like “Falun Gong” and “Dalai Lama” to social subjects like “pornography”, would generate the same list of links as would be generated for a user based in the United States. However, if the user in China tried to open any censored links, either the user’s browser would shut down or the user would be re-directed to a non-censored site.





                                  Source: http://www.seroundtable.com/archives/060131-china.gif

Also Google had to concern on another important point related to user interests is the importance of user privacy. In early 2006, just as Google was planning to launch Google.cn, it became known that Yahoo! China had turned over private user e-mail data to the Chinese government and that this had led to the ten-year, eight-year, and four-year prison sentences of Chinese cyber dissidents Shi Tao, Li Zhi, and Jiang Lijun (Birch, 2010). In addition, Microsoft had recently shut down the blog of famous Chinese political blogger Michael Anti (a penname for Zhao Jing) at the request of the Chinese government (Birch, 2010).  Clearly any decision made by Google to enter China would have to take into account concerns about user privacy and government surveillance. In terms of expanding access to information, it was Google’s position that due to the poor quality of Google.com for users in China after 2002, Google was in fact not providing the population of China with good access to information. But despite of poor quality in Google.com, Google has kept Google.com in addition to Google.cn available for users.


Ethical Background

Even though Google.cn available in Chinese market, in a shareholder meeting, Google’s Co-founder, Sergey Brin revealed that more than 99% of searches originating in China were still performed on Google.com (Don't Be Evil, 2005). This meant that 4 months after the launch of the censored site, nearly all Chinese users were either unfamiliar with Google.cn or were happier with the slower, unreliable, yet unfiltered version of Google. The fact that the uncensored version of Google remains so heavily used in China seems to indicate that Google could discontinue its operations in China and still offer its users an acceptable level of service. The consequences of this option would appear to eliminate Google's complicity in government’s censorship and allow Google to continue to build its Chinese market. However, that’s where Great Firewall of China comes into play. Although the data that Sergey Brin mentioned suggests that for some reason the firewall permits the majority of requests for the uncensored version of Google, there is no reason to expect this pattern to continue. It is quite possible that based on government directive or technological innovation, the government could decide to completely block Google's uncensored site. 


Moral Principles that affect due to Google’s action

Google’s decision to self-censor Google.cn attracted significant ethical criticism. The company’s motto is “Don’t Be Evil,” (No censoring) and prior to entering China, Google had successfully set itself apart from other technology giants, becoming a company trusted by millions of users to protect and store their personal information. Google’s decision to accept self-censorship let the company to reexamine itself as a company and forced the international community to reconsider the implications of censorship. Google has already, along with Yahoo and Microsoft, signs an industry code of ethics to safeguard human rights and the freedom of speech online (Birch, 2010). However, Google does continue to censor results on Google.cn.

If one concerns about the Google’s action in China with their utmost priority, which is not to censor anything and secure the private things of the user, it’s a big dilemma that whether Google acting according their Slogan “Don’t be evil”. In that case while human rights advocates ask why a powerful American company like Google won't fight abroad for the same freedoms that make America great, those in the business world may interpret the move as a sign of managerial weakness on Google's part. In Company’s point of view if Google were to end its operations in China it seems fairly certain that they would have to resign themselves to life without the Chinese market. Launching Google.cn, Google has decided not to give some of the main services such as Gmail and Blogger. While adhering to government’s policy by censoring search results, Google was able to bring public attention to China's media censorship and indirectly show their disapproval of it (Birch, 2010).


Google’s action to pull out from China

In 2009 Chinese government again block Google, citing pornography as the reason. Also the government blocked Google-owned YouTube. The things got worse when in 2010 Gmail accounts were under attacked (Lin, 2011). Those Gmail accounts belonged to human rights activists that originated in the country. It describes the attack as highly sophisticated and targeted, and Google claimed that no more censor its search results. Google started to redirect all search queries from Google.cn to Google.com.hk, Google’s Hong Kong based search engine, thereby bypassing Chinese regulators and allowing uncensored simplified Chinese search results. As a special entity recognized by international treaty, Hong Kong is vested with independent judicial power and not subject to most Chinese laws, including those requiring the restriction of free flow of information and censorship of internet materials (Birch, 2010).


Discussion 

The internet giant Google lost its business in China due to lack of their understanding of Chinese government behavior. On balance we can’t argue on Google’s operation in China as it’s a human right to things correctly and perfectly. If Google were to give imperfect facts to the society, in a long run they lose the faith of their stake holders despite of they live in China or not. That factor affects Google’s global market also. Society cannot be a better place if its full of false factors. The responsibility of giving the society lays with the government, but if its harm the system within the country, Government will decide the final outcome. When it’s come to politics, different countries use different tactics to hold their power. In case of a threatening factor which is not complying with their government policies, they are well within their limits to refuse it by any means.



Reference 

Books 

Kalathil, Shanthi. "China's New Media Sector: Keeping the State In." The Pacific Review 16.4 (2003): 489-501.
Lin, Mu. "Changes and Consistency: China's Media Market After WTO Entry." Journal of Media Economics. 17.3 (2011): 177-192.

Internet Articles

Birch, Jemma.”Google in China, A timeline” 23rd of March, 2010 file:///E:/Mkt/Google%20in%20China%20%E2%80%93%20A%20Timeline.html

Don't Be Evil. 5 May 2006. "Uncensored Google.com Serves 99% of China Queries." 19 September 2006 http://www.dontbeevil.com/2006/05/uncensored-googlecom- serves-99-of.html.

Economist.com. 13 June 2002. "Survey China." 16 September 2010
http://www.economist.com/surveys/displayStory.cfm?story_id=1164570

Google. "Company Overview." 19 September 2006
 http://www.google.com/corporate/.

Human Rights Watch. "China: Human Rights Concerns for the 61st Session of the U.N. Commission." 16 September 2006  
http://hrw.org/english/docs/2005/03/10/china10296.htm.


McLaughlin, Andrew. "Google in China." Google Blog. 19 September 2006
http://googleblog.blogspot.com/2006/01/google-in-china.html.

Worsfold, P.J.”Case Study-Google in China” 18th September 2006 file:///E:/Mkt/Case%20Study%20%20Google%20in%20China.htm

Thursday, October 4, 2012

Blue Chip Companies




Blue chip companies are in which who can stood stand still in their economic positions even in a recession.  Blue chips are nationally recognized, well-established and financially sound companies. A blue-chip stock is stock in a company that well-known and highly respected with a national reputation for quality, reliability and the ability to operate profitably in any volatile economic state. Blue chips generally sell high-quality, widely accepted products and services. As far as internationally concern  Blue Chip companies Coca-Cola, General Electricals, 3M, McDonald's Corp, Wal-Mart Stores Inc., Walt Disney Co, Microsoft Corp., General Motors Corp., Hewlett-Packard Co., Boeing Co., Kraft Foods Inc., Volkswagen, Siemens, Nokia are providing solid growth to portfolios. When it comes to Indian top blue chip companies are Reliance Industries Ltd., Infosys Technologies Ltd. and ICICI Bank Ltd. As for Sri Lanka, as at now, John Keells Holdings, DFCC, Hatton National Bank, Dialog Axiata, Commercial Bank of Ceylon and Sampath Bank are excellent counters for Blue chip stocks.

Characteristics of a Blue Chip Company
  • Financial strength, A record of profit growth and reputation for Skilled Management;
  • Established, well-known company considered to be stable and mature with a reputation for  providing high quality goods and services
  • Leader in its market niche.
  • In addition, companies are analyzed for their record of earnings over a relatively long period of time and future potential. Dividend payments, while not required, are considered.

Blue Chip companies of Sri Lanka

The best way to explain this point is to take couple of examples from list of Blue Chip companies in Sri Lanka. As far as I see John Keels Holdings and Aitken Spence PLC can be considered as 2 of Blue chip companies functioning in Sri Lanka. Aitken Spence PLC is an associate of Distilleries Company of Sri Lanka PLC (DCSL). DCSL is a company which stretches the scope in to vast business areas like 
  • Beverages - Periceyl (Pvt) Ltd., Local spirits and exclusive agent for world renowned foreign liquor brands of the prestigious Group Pernod Ricard, France such as Royal Salute, Chivas Regal, The Glenlivet, Ballantines whiskies, Martell Cognac, Absolut Vodka, Beefeater Gin, Havana Club Rum, Jacob’s Creek, Long Mountain, Montana wines and G.H. Mumm and Perrier Jouet champagnes.
  • Tele communication - Lanka Bell
  • Plantations - Balangoda Plantations PLC and Madulsima Plantations PLC 
  • Diversified – Melsta Logistics (Pvt) Ltd, Taxpro Industries, Browns Beach Hotel…etc.

Here the some companies DCSL own are Associates and Subsidiaries. As for an example Browns Beach Hotel which is also associated to Aitken Spence Hotels Chain became part of the DCSL Group in 2011. Above its mentioned Aitken Spence PLC is an associate of DCSL. 

Now let’s turn to John Keels Holdings (JKH), is the largest listed conglomerate on the Colombo Stock Exchange. It’s obvious that JKH have spread the wings to its full scale in each and every corner in numerous sectors.

  • Airline & Aviation – Partners of Jet Airways, American Airlines, Gulf Air for Passenger services and Cargo Services
  • City Hotels & Restaurants – Cinnamon Grand, The London Grill, Tea Lounge…etc.
  • Financial Services - Union Assurance, John Keells Stock Brokers, John Keells Capital
  • Foods & Beverages -  Keells Food Products PLC , Keels, Krest, Elephant House
  • Holidays & Tours
  • IT Services & BPO
  • Integrated Logistics
  • Plantations & Commodities
  • Ports & Shipping - South Asia Gateway Terminals (Pvt) Ltd. , Lanka Marine Services (Pvt) Ltd    
  • Property & Real Estate - The Monarch, The Emperor, On Three 20 and Retail Mall- Crescat Boulevard
  • Resorts & Spa - Cinnamon Lodge Habarana, Chaaya Village Habarana, Chaaya Citadel Kandy, Chaaya Wild Yala, Chaaya Island Dhonveli, Chaaya Reef Ellaidhoo
  • Retail & Loyalty - Keells Super, Nexus

P.S.

It's just I heard the term “Blue Chip Companies” few days ago in my CIMA class so sought about finding few facts about it. Then thought to share it with others as I didn't want to lavish the facts I learnt from my memory and writing always been one way of catharsis my leisure time.  Please do correct me in any case I’m wrong. All your opinions, suggestions, accuses and alleges are highly appreciated. Cheers!!!