Saturday, October 25, 2014

Run MongoDB as windows service.

Run MongoDB as windows service.

Step 1 : c:\mongodb\bin>; mongod --dbpath "c:\mongodb" --logpath "c:\mongodb\log.txt" --install --serviceName "MongoDB"

         Now, mongod is created as windows services.In order to start this service("MongoDB") follow 'step 2'.

Step 2 : service can be started using the command line -------->  net start "MongoDB".



Reference link :

http://www.mkyong.com/mongodb/how-to-run-mongodb-as-windows-service/
http://stackoverflow.com/questions/2438055/how-to-run-mongodb-as-windows-service

Wednesday, September 24, 2014

https://www.linkedin.com/pulse/article/20140923052534-2022319-how-to-challenge-your-team-take-it-to-the-next-level?trk=tod-home-art-list-small_2

https://www.linkedin.com/pulse/article/20140923021544-64875646-how-successful-people-deal-with-stress?trk=tod-home-art-list-large_0

Friday, September 12, 2014

Hold execution after showing UIAlertView

// Displays a UIAlertView and returns the index of the button pressed.
public static Task ShowAlert (string title, string message, params string [] buttons)
{
    var tcs = new TaskCompletionSource ();
    var alert = new UIAlertView {
        Title = title,
        Message = message
    };
    foreach (var button in buttons)
        alert.AddButton (button);
    alert.Clicked += (s, e) => tcs.TrySetResult (e.ButtonIndex);
    alert.Show ();
    return tcs.Task;
}
Then you do instead:
int button = await ShowAlert ("Foo", "Bar", "Ok", "Cancel", "Maybe");
Source : http://stackoverflow.com/questions/19120841/yes-no-confirmation-uialertview

Friday, March 7, 2014

Xamarin studio is not showing StroryBoard Editor Option


Sometimes xamarin studio does not show up Storyboard editor option. as shown below.



Xamarin Studio has a option for Check for updates : then this window will show up, 
then select alpha channel, and install the Alpha mode, then u will get the option for open the view in storyboard editor. Bcoz xamarin studio is providing this feature only in Alpha mode.


after installing the alpha channel version we will start seeing this option.





Monday, February 24, 2014

Story : One night a King had a dream

Once in a ancient times one King saw a dream that : He became very sick, all his hair is gone, he became very thin and very old.

the next day morning he called one astrologer ( ज्योतिषी ) and told about the dream he saw ..
the astrologer heard everything and told to the king "You are going to live very long, you are going to see your son dying, you are going to see your great grand son dying also.

the King announced to hung the astrologer till death and it happened so.

Then the King called another astrologer and told about the dream he saw ..
the astrologer heard everything and told to king that "You had a very good dream, you are going to live very long, you will see your fourth generation also alive, your son, grandson, great grand son are going to rule your Kingdom" and the second astrologer got rewarded with Gold prizes and priest has been praised very much.

So what is the Moral My friends ??