Friday, 8 November 2013

Thanks for being my Friend Forever

Oh! my friend what I do,
for being lifelong together with you.
I don't want you to loose anymore,
All this I need from the heart's core.

What's our relation I don't know,
But wan't to have it for far and more.
I  am the heart and you are the beat,
If you go away it seems to be cheat.

U are a rose and I am a thorn,
for your protection I am born.
If anyone tries to pluck you ever,
I would prick him then he will never.

Anything if you wan't to have,
come to me and I will manage.
I would really try to achieve,
To keep our relation over the peak.

I definitely know you are only friend of mine,
Love and Friendship is our relation's sign.
May this relation never disappear,
Thanks for being my friend's forever. 


उनसे दूर रहना ना हमको गवारा

आज होठों ने हमको फिर धोका दिया ।
 इजहारे मोहब्बत फिर पलखों ने की ॥
 दिल ने फिर उनके इशारों को समझा । 
शुरू मोहब्बत की बातें फिर हनी लगी ॥                                             

 समय कि बयाँ में हम बेहने लगे ।                                              
दरिया का हमको सहारा न था ॥                                             
कश्ती थी उनकी दरिया में लेकिन।                                             
चढ़ने का हमको इशारा ना था ॥

वाज़िब था उनका फासले हमसे रखना । 
पर दिल को हमारे ना मंजूर था ॥ 
दबे हुए क़दमों से उनतक जो पहुंचे । 
महोब्बत का हमको इक फितूर था ॥                                               

इनकार-ऐ-इज़हार समझे तो थे हम।                                               
पर ज़ुबाँ से सुनने का इरादा तो था ॥                                               
चाहते तो थे वो आपने से ज़यादा ।                                               
पर मिलना तो उनको गवारा ना था ॥ 

ख़्वाबों में उनके हम ही थे लेकिन । 
जुबां पर तो हमको उतरा ना था ॥ 
कांटो के रास्ते पर चल वो रहे थे । 
पर चेहरे पर शिकन का नाज़ारा ना था ।                                                  

दुआ थी हमारी सलामत रहें वो।                                                  
रहे दिल में उनके बस नाम हमारा ॥                                                  
बड़के उनसे कोई दूजा ना देखा ।                                                  
अब उनसे दूर रहना ना हमको गवारा ॥ 

Sunday, 6 October 2013

Bootstrap (Initialize Angular) Lesson3

Bootstrapping: It is a process of initializing angular in our application, bootstrapping is must to build any angular app and this is a first step for AngularJs Implementation.


We can do bootstrapping by two ways:

1) Manual Bootstrapping

If you need to have more control over initialization process then manual bootstrapping can be used.
angular.bootstrap(element [,modules]) api is used for manual bootstrapping.
Parameters needs to pass->
        element : DOM element which is root of angular application.
        [,modules] : Array of modules load in application.

Returns->
        Returns the newly created injector for this app. (AUTO.$injector)

   Manual bootstrapping can be done inside this statement
    angular.element(document).ready(function() {
       angular.bootstrap(element [,modules]);
     })

* We will look into modules in our next lesson

Use below url to have a look, over  manual bootstrapping process.
http://plnkr.co/edit/iop60YMInu7XxUOJfhOj

2) Automatic Bootstrapping.


   If the ng-app directive is found then Angular will:
  • load the module associated with the directive.
  • create the application injector
  • compile the DOM treating the ng-app directive as the root of the compilation. 

a) "ng-app" is a directive used for automatically bootstrapping of application, by just placing this directive inside html tag, it will directly initialize angular for that page. As shown below.
   <html lang="en" ng-app>

</html>
b) We can also assign modules to ng-app as shown below. But this module name is optional and with the help of this module we can inject multiple libraries.
<html lang="en" ng-app="MyFirstOptionalModule">

</html>
For about module knowledge please click here.

for IE7 this can be used <html ng-app id="ng-app">

Difference Between IComparable & IComparer

Difference Between IComparable & IComparer
------------------------------------------
Icomparable implements int ComareTo(Object o)
compare the current instance with another instance of same type.
IComparable is used to provide a default sort order for your objects.

IComparer implements  int Compare(object a,object b)
It is used to compare any two instances of T.
IComparer is to provide additional comparison mechanisms.

using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

using System.Collections;
using System.Collections.Generic;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        List<Students> Stu = new List<Students>();
        Stu.Add(new Students("Nimish",26));
        Stu.Add(new Students("Namish", 26));
        Stu.Add(new Students("Nemish", 26));
        Stu.Add(new Students("Nmish", 26));
        Stu.Sort();

        List<Faculty> Fac = new List<Faculty>();
        Fac.Add(new Faculty("Nimish", 26));
        Fac.Add(new Faculty("Namish", 26));
        Fac.Add(new Faculty("Nemish", 26));
        Fac.Add(new Faculty("Nmish", 26));
        Fac.Sort(new Faculty_Sort_Asc());
     
    }
}

public class Students:IComparable<Students>
{
    string Name;
    int Age;
     public Students(string name, int age)
     {
        Name=name;
         Age=age;
     }

     public int CompareTo(Students stu)
     {
         return Name.CompareTo(stu.Name);
       
     }
}


public class Faculty
{
    public string Name;
    public int Age;
    public Faculty(string name, int age)
    {
        Name = name;
        Age = age;
    }
}

public class Faculty_Sort_Asc : IComparer<Faculty>
{

    #region IComparer<Employee> Members

    public int Compare(Faculty x, Faculty y)
    {
        return x.Name.CompareTo(y.Name);
    }

    #endregion
}

Saturday, 5 October 2013

Two Way Binding-Lesson 2

Simple Example of Two Way bindings in Angular


Copy below code and paste it in a html and run it.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" ng-app>
<head >
    <title></title>
     <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.min.js" type="text/javascript"></script>
</head>
<body>
    <input type="text" ng-model="FooModel" placeholder="Enter Name" />

    <p>{{FooModel}}</p>
   <p>Note when you type something in text box, at the same time</p>
   <p>text updated in  paragraph i:e You are updating text box view in return it is updating</p>
  <p>FooModel. This FooModel is also associated with paragraph so it will automatically upadated.</p>
</body>
</html>

Hope this will help you to understand some basic about Angular Two Way bindings.
Use below url to test it.
http://plnkr.co/edit/6SxUIoYqbGChz3vS8WnQ



Introduction To AngularJs-Lesson1

AngularJs is an extensible javascript framework by Google which can be used to build customized framework for our applications.

It is extensible and work well with other libraries, every features of this is fully customizable.

Below are the best Features Of AngularJS which i like at most

1) Two-Way Bindings.
2) MVC support for client side.
3) Template.
4) Dependency Injection.
5) Directives.
6) Routing

We will go through each of these concepts later on ,first of all I will like to introduce with you some basics of AngularJs.

Step 1) Download the Angular library from belowURL or for the latest API go to AngularJS
             https://ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.min.js

Step 2) Add the library reference to your HTML page.

            <script src="Scripts/angular.min.js" type="text/javascript"></script>

Step 3) Copy below code.

  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" ng-app>
<head >
    <title></title>
     <script src="Scripts/angular.min.js" type="text/javascript"></script>
</head>
<body>
    <input type="text" ng-model="FooModel" placeholder="Enter Name" />

    <p>{{FooModel}}</p>
</body>
</html>

Notice the content of HTML marked in red:
1) ng-app= This is  a bootstrap directive which initialize the angular application
2) In second line we are registering the angular javascript file.
3) In textbox we are defining a model with it's name FooModel to textbox, so this FooModel will tightly  associated with this textbox
4) Finaly inside <p> tag we are assigning FooModel value.

So above is a small example to Angular 2-way binding model.

"Once we start providing value to that input box then the model associated with it is updated and
when that value of model update ,automatically value inside <p> tag updates, so it is a small but cleam example of angular two way binding concept"

For more check Two Way Binding-Lesson2







Monday, 23 September 2013

बिचोलियों की व्यवस्था

दलालों  के दल -दल में ,महंगाई की हलचल है ।
मेहनत क़र उपजाने वाले क़े, घर में गरीबी हर पल हैं ॥ 
बैठ खाट में बने महाजन ,हेर -फेर कर खाते हें । 
भरी तिजोरी नोटों की ,सेठानी संग इठ्लातें हैं ॥ 

नेता बने उनके भी स्वामी ,बाट का कोई हिसाब नहीं । 
लगे चलाने लूट की चक्की, मेह्नत की कोई बात नहीं ॥
चले दरोगा लूटन को ,अब चोर पुरानी बात हु । 
खाकी रंग का अपना हिस्सा ,पहले से हिसाब में ही ॥ 

अफसर अपनी अफसर शाही, ठेके में दिखता है । 
दस प्रतिशत का उसका हिस्सा, अब ईमानदारी में आता है ॥ 
पत्रकार बन देते धमकी ,अपना कट ले जाते हैं । 
जात-पात के  दंगो में, भूके मानुष ही मारे जाते हैं ॥ 

बने सिपाही दर्जे के, देश के खातिर मरते हैं । 
उनके उप्पर बैठे अफसर, दल्लों से वादा करते हैं ॥ 
सबको अपने हिस्से की चिंता , रात और दिन सताती है । 
कितना खा ले चोर बाजारी, मन की भूख न मिट पाती है ॥ 

 मौत लगाई गले उन्होने , जो बोवन को बीज चले । 
बड़ी कीमतें पल -पल में , कहाँ बटे किसके हिस्से॥ 
दूध मलाई खता था वो, अब रोटी कपडा बना उसका सपना ।  
पूंजीवादी सोच के आगे, तबाह हुआ उसका अपना ॥ 

बड़ा प्रतिशत दल्लों का, कारीगरों का अब निशान नहीं । 
उत्पादन करने से बेहतर, बिचोलियो का काम सही ॥ 
कहाँ थमेगी महंगाई, जब उत्पादन पे बोझ बड़े । 
पूंजीवादी व्यवस्था में ,भक्षक से बिचोलिये खडे ॥ 

(निमिष)

Sunday, 22 September 2013

क्यूँ छोड़ा तूने वो शायर

मैं  हूँ ऒस की बूँदे ,में तुझको ही पाना चाहूँ । 
धूप पड़े जो मुझपे ,कैसे खुदको बचाऊँ ॥ 

चम् -चम्  चमकी तू है ,प्रेम का हूँ मैं सागर । 
आजा मिल ले मुझसे ,तुझपे हूँ में कायल ॥ 

रुकजा थम जा लगा ले ,मुझको अपने होठों से । 
फिर मिलें ना जो हम तुम , कैसे कटेंगी ये रातेँ ॥

बातें करले मुझसे, होजा मुझमें शामिल । 
चलना तू मेरे संग, बनकर मेरा साहिल ॥ 

सुनले मेरे दिल की, धड़कन की ये ग़ज़लें । 
रो भी ना सकूँगा मैं तॊ , जो टूटेंगी तेरी कसमें ॥ 

हर पल तेरे पीछे , सिसकी सी गूंजेगी । 
पूछेंगे सब तुझसे, लाज में तू  डूबेगी ॥ 

हँस ले चाहे कितना, पर टीस तेरे भी मन में । 
उठ कर तुझसे पूछे , क्यूँ छोड़ा तूने वो  शायर ॥  

निमिष चन्दोला 

मेरा घर ही मुझको अपना कहने से कतराता है

कहाँ गए वो कोयल तोते , कहाँ गई वो गौरैया । 
कहाँ गया पनघट का पानी , कहाँ गयी वो शीतलता ॥ 

      पाने को तो जग सारा  था, पर पा ना सका में घर प्यारा।
      मित्र विरादर दूर हुए सब, दोष मरदे मुझपे सारा ॥ 

में पथ का बस बंजारा था, बात नहीं मुझको आती। 
रुक-रुक कर बस आगे बढ़ता ,छू-छू  कर घर की माटी ॥ 

       जग-जग कर हैं   रातें काटी, ताप-ताप  कर  कट काटा योवन । 
       दूर मंजूरी कर-कर  मैंने, काटा है अपना जीवन ॥ 

लौटन की आस को में, सारी नींद गवा बैठा । 
पड़े किनारे सड़को के में, लिखा रहा जीवन रेखा ॥ 

        बात अजब यह सपनों की थी, सपनों के थे पंख बड़े। 
        सपनों की चादर ओडेय़, रहा में चलता तिमिर तले ॥ 

आज दोबारा जब लौटा हूँ , देखा मैने क्या पाया । 
माटी ना स्वीकारे मुझको, अनजान बनी अपनी छाया ॥ 

        रह-रह के पहचान बनता ,सोच के मन घबराता है । 
        मेरा घर ही मुझको अपना कहने से कतराता है ॥ 

निमिष चन्दोला  

Sweet LiL Toddler

My sweet little toddler running on her knee, 
smiling every moment enjoying her feast.

Crawling every where with her anklet chime,
after her arrival my life is full of rhymes.

She wake up like an angel & smile like her mom,

active as her grand mum & beauty of our home.

When I see into her big black eyes, I forget all prevailing pains in life.
Come on baby give me a hug, it helps me fight all odds & tough.

Am your father & Am your friend,
to play with my little one I wish to be toddler again.

NIMISH