Lets share love

How ? copy url of this blog and share in your social network :) simple

Lets share love

How ? copy url of this blog and share in your social network :) simple

Tuesday, October 28, 2014

People to follow in Nepal for Motivation

      1.Ramesh Kharel:
Currently the Senior Superintendent of Police in Nepal Police, this man is the rare clean cop. He cracks down on crime, loathes  criminal gang activities, puts the dons on strait-jackets and fires his corrupt subordinates.








2. Mahabir Pun:
Born in Myagdi district and educated in the USA, he has been helping the villagers of western Nepal with his genuine idea of providing computers and internet for every school and medical diagnosis in the remotest areas through tele-medicine.He has been honored with the Ramon Magsaysay Award.





3. Anuradha Koirala:
She has helped to reunite families. Her organisation patrols the border along with the security forces to recognize and apprehend the innocent girls being led into India by the cunning girl-traffickers.
Her service has been recognized throughout the world as she has been honored with awards like the CNN Hero of the Year (2010) and Courage of Conscience Award (Massachusetts, 2006)

4.Binod Chaudhary
Binod Chaudhary (Nepali: बिनोद चौधरि; born 14 April 1955) is a Nepalese businessman, industrialist and philanthropist. He is the current chairman of Chaudhary Group (CG), a conglomerate that consists of nearly 80 companies. Chaudhary is also the first Nepali billionaire as listed by Forbes.



5. Dr. Upendra Mahato
Mahato (Nepali: उपेन्द्र महतो) is a businessman of Nepalese origin living in Russia, where he is the president of the Russia-Nepal Chamber of Commerce and Industry. He is the Honorary consul General of Nepal in the Republic of Belarus. He was president of Non Resident Nepalese Association, International coordination council (NRNA, ICC)


6.Gagan Thapa
Gagan Thapa is a Nepalese politician, belonging to the Nepali Congress. He is, at present, one of the most popular and influential youth political leaders in Nepal widely followed in various social networking sites. Many youth see him as the next generation Prime minister of Nepal in 10 to 15 years time. Thapa is the central committee member of the Nepali Congress. He was also the former member of the constituent assembly (2008–12)and has been elected for Constituent Assembly (2013-)Appreciated for his speeches and interviews, people now have got enough of his talking and want him to see in a active executive post.



7. Dr. Baburam Bhattarai
Dr. Baburam Bhattarai (Nepali:डाक्टर बाबुराम भट्टराई) is one of the powerful politician of Nepal who was the 35th Prime Minister of Nepal from August 2011 to March 2013. As a way out of the political deadlock since the dissolution of the first Nepalese Constituent Assembly in May 2012, he was then replaced by Chief Justice Khil Raj Regmi to head an interim government that should holdelections by 21 June 2013. He is a senior Standing Committee Member and vice chairperson of Unified Communist Party of Nepal (Maoist).

Wednesday, October 22, 2014

दिपावली किन मनाउने ?

तिहार तथा दिपावली हाम्रो एउटा धेरै नै महत्वपूर्ण चाड पर्व हो। त्यसो भए हामी किन दिपावली मनौचौ त ? यहाँ छन् की बुदा हरु।


-> आज को दिन देवी लक्ष्मी को जन्मदिन हो। 

->विष्णु ले आज को दिन लक्ष्मी लाई छुटेका हुन्। 

-> कृष्ण ले नरकसुर लै मारेका हुन। 

->पाण्डव हरु १२ वर्ष को गुप्त बास  बाट फर्केका हुन्। 

->आज कै दिन राम , सीता र लक्ष्मन रावण लाई       मारेर घर फर्केका हुन्। 

-> आज को दिन जैन , सिख तथा आर्य समाज को लागि महत्वपूर्ण मानिन्छ। 

सबै लै दिपावली को सुभकामना :) 


Monday, October 20, 2014

How to put array in string like [1,2,3,4] to 1,2,3,4

here is a simple trick :)

String listOfPhase =""

        for (int i = 0; i < phaseIds.size(); i++) {
            if (i == 0)
                listOfPhase += phaseIds[i].toString()
            else
                listOfPhase += "," + phaseIds[i].toString()
        }


NOTE : phaseIds is your array 

Sunday, October 19, 2014

How to remove div content using html() in JQuery

How to remove div content using html() in JQuery


$("#RemovingContent").children().remove();
$("#RemovingContent").html("");


RemovingContent is the div that you want to remove content of :) 


here is the complete example

<html>
<head>
    <title></title>

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>

    <script type="text/javascript">
        $(document).ready(function() {
        $('#btnChangetext').click(function() {
            //remove the div content
                $("#RemovingContent").children().remove();
                $("#RemovingContent").html("");
            //adding content to div
                $("#RemovingContent").html("<a href=www.aspnettutorialonline.blogspot.com>www.aspnettutorialonline.blogspot.com/</a>");
                //you can also add one more div to #RemovingContent
                $("<div>hello</div>").appendTo($("#RemovingContent"));
                
            });
        });
    </script>

</head>
<body>
    <div id="RemovingContent">
        it will be removed </div>
    <input type="button" value="Change div text" id="btnChangetext" />
</body>
</html>


How to keep same tab active in Twitter Bootstrap after page reload using localStorage

What is HTML Local Storage?

With local storage, web applications can store data locally within the user's browser.
Before HTML5, application data had to be stored in cookies, included in every server request. Local storage is more secure, and large amounts of data can be stored locally, without affecting website performance.
Unlike cookies, the storage limit is far larger (at least 5MB) and information is never transferred to the server.
Local storage is per domain. All pages, from one domain, can store and access the same data data.

HTML local storage provides two objects for storing data on the client:
  • window.localStorage - stores data with no expiration date
  • code.sessionStorage - stores data for one session (data is lost when the tab is closed)


// for loading same tab after page reload using localstorage
    $(function() {
        //for bootstrap 3 use 'shown.bs.tab' instead of 'shown' in the next line
        $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
            //save the latest tab; use cookies if you like 'em better:
            localStorage.setItem('lastTab', $(e.target).attr('id'));
        });

        //go to the latest tab, if it exists:
        var lastTab = localStorage.getItem('lastTab');
        if (lastTab) {
            $('#'+lastTab).tab('show');
        }
    });

Thursday, October 16, 2014

Do you know ? what to do with your life ?

i copied this article from this web page http://www.entrepreneur.com/article/238522 :)

Writer: Eric M. Ruiz

I was in San Luis Obispo, Calif., last weekend for a wedding. I took advantage of my time on the left coast to travel to Modesto to see my family. My brother and sister happened to be in town as well, so for the first time since May, all five members of the Ruiz family were gathered.
I had the chance to spend some quality time with my sister Mary, who's the youngest in the family, and she filled me in on what she’s been up to since her graduation in May.
The more we spoke, the more I could feel the anxiety in her voice as she reiterated time and time again that she had no idea what to do.
“You love business and technology and Miguel loves medicine," she said, referring to my younger brother. "What do I have?”
I understood her frustration. I had the exact same feeling of inadequacy and anxiety when I graduated. But what I wanted to make clear to my beloved sister last weekend -- and now to others out there grappling with their careers -- is that most people have no idea what they want to do.
I envy the likes of Kobe Bryant, Leo Messi and LeBron James -- not because of their celebrity status but because at an early age they figured out exactly what they wanted to do. And they started doing it.

For most people, it takes years or decades to find a calling, a passion or a field. There is no real timeline for when someone will figure things out or will finally arrive at an endeavor she will love. But the only way to get there is by trying many things. A passion or calling just doesn't manifest itself.
A person cannot simply think his way to clarity. He has to try things.
Contrary to my sister’s initial belief, I wasn’t born knowing that I wanted to work in an entrepreneurial environment or that I wanted to be a writer. And my brother Miguel did not know that he wanted to pursue medicine. But we each had inklings about our interest in these fields.
Many people have an inkling, a bit of curiosity that pushes them, say, to explore something or look it up on the Internet. 
“The possession of a particular talent is instinctively sensed by its owner, so if any of you are blessed you will be the first to know it," the Stoic philosopher Epictetus wrote centuries ago in Discourses and Selected Writings
"It is true however, that no bull reaches maturity in an instant, nor do men become heroes over night," Epictetus continued. "We must endure a winter’s training, and can’t be dashing into situations for which we aren’t yet prepared.”
So pursue that curiosity. Only then will it be possible to a passion or a field of possible career interest.
During the months after I graduated college, I read about or tried my hand at the following pursuits: online marketing, English as a second language teaching, graduate school, banking, starting a business and soccer coaching. (I’m sure I’m forgetting a few things.) I didn’t like some of them, I hated others and I failed at many.
But what spoke to me (even after a failure) was entrepreneurship and the startup world. I just had to get involved. And my devouring of book after book, podcast after podcast and setting off for meeting after meeting seemed to confirm something at a deep level inside: I really liked this field.
This was both an empowering and a humbling feeling. The more I learned, the more excited I became. But the more I learned, the more I realized that I didn't know anything.
It's that dichotomy that pushed me forward to ask questions, meet people and explore this business side of me. It’s an ongoing process, one that takes time, patience and discipline.
Only by asking questions and trying new things can people really get to where they want to be. It’s not going to be just handed to them. Be brave and get after it.
So, Mary and fellow graduates, try things. Try many things. Maybe it’s too late to be an NBA star but it's possible to discover, or rediscover, a desire, a passion, a calling, an invitation.