coeus

VE Silverlight control – SetMapView

Posted by Shailu Mishra on May 4, 2009

If you have been using VE Ajax control for a while – like me – then probably you got used to invoking SetMapView method on VEMap class. It accepts an array of VELatLong class and conveniently zooms your map to display a view port large enough to cover all the specified points.

When I switched to using VE Silverlight control for my website I found out that the CTP release of the control didn’t support SetMapView(<array of latlong>) out of the box.

Here is what I had to do to achieve the same functionality:

C# code snippet:

List<Location> allLocationCrumbs = new List<Location>();

// Populate the above defined list

// I had to make server side calls to obtain Json strings, parse them, create location objects and added them to the list

MapViewSpecification mvs = TrailMap.GetViewFromBoundingRectangle(new LocationRect(allLocationCrumbs)); // TrailMap is my local reference to map control
TrailMap.SetView(mvs.Center, mvs.ZoomLevel);

That should do the trick !

Posted in Uncategorized | Tagged: , | 1 Comment »

Virtual Earth Silverlight Control

Posted by Shailu Mishra on May 3, 2009

I recently started working on a project which involves displaying a large number of spatial points on map. I put together a website which used Virtual Earth’s Ajax SDK v6.2 The Ajax control worked fine in Firefox but the webpage became excruciatingly slow to load and interact with in Internet Explorer. Virtual Earth team released a CTP version of their Silverlight control. All the press coverage sounded promising so I decided to give it a try.

So far I am very pleased with the VE Silverlight control. Zoom, panning has been extremely smooth. I have tested my website in IE on Win7, FireFox on XP and Safari on Mac Mini and the performance is nothing to complain about even when I display over 2k spatial points.

Posted in Uncategorized | Tagged: , | Leave a Comment »

New mobile hotmail website

Posted by Shailu Mishra on February 20, 2009

I have been a hotmail user for more than 10 years now. My first email account was actually a mailcity.com account which later became lycos.com. Not many people know about this but there is a mobile version of hotmail website which was specifically designed for small screens and cHTML/xHTML compliant browsers. Since iPhone came out, hotmail users have been asking for a mobile site which would better utilize the capabilities of new generation mobile browsers such as mobile Safari, Opera, Nokia Series 60 devices and future Windows phones. Anyways, over the last eight months my team worked on building the new version of mobile hotmail website and now I am happy to say that it is available to all hotmail users πŸ™‚

Just point your browser to http://m.mail.live.com and experience the new and much improved mobile hotmail.

Note:liveside.net now has an article about this: http://liveside.net/main/archive/2009/02/22/introducing-the-new-windows-live-hotmail-mobile-beta.aspx

Β 

Posted in Computers and Internet | Leave a Comment »

Quotes from books

Posted by Shailu Mishra on December 22, 2008

The Monk who sold his Ferrari – R.Sharma

  1. Never overlook the power of simplicity
  2. …until you first empty your cup

Posted in Uncategorized | Leave a Comment »

Being a crowd member in an Indian reality show

Posted by Shailu Mishra on July 28, 2008

Interesting article focusing on member of "crowd" in Indian reality shows.
http://www.washingtonpost.com/wp-dyn/content/article/2008/01/28/AR2008012802442.html

Aparently the female fan who kissed Aditya Narayan on SRGMP 2007 was paid $25 extra for doing that. Her engagement was called off by the groom when he saw the show on TV πŸ™‚ If you see the following clip you will notice at the end that the girl isn’t really happy about it and it is pretty obvious that the whole thing was staged.

Posted in Easy Reading | Leave a Comment »

Google vs MS – from an ex-employee’s eyes

Posted by Shailu Mishra on July 1, 2008

Interesting Google vs MS culture comparison. Unlike many others this guy has been MS as well as Google employee in the past.

http://1-800-magic.blogspot.com/2008/06/back-to-microsoft.html

Posted in Easy Reading | Leave a Comment »

Microsoft Matrix Spoof

Posted by Shailu Mishra on June 30, 2008

This is for anyone who has had problems with Linux drivers

Posted in Misc | Leave a Comment »

Best wedding dance ever

Posted by Shailu Mishra on June 29, 2008

This is the best wedding videoΒ I have ever seen. Two minutes into the video and the groom completely takes control of the dance floor. I think he is one-up on his bride when it comes to dance steps πŸ™‚

Β http://embed.break.com/NTE3OTUx
http://view.break.com/517951 – Watch more free videos

Posted in Misc | Leave a Comment »

Spicy stir fry served over pasta in an Italian restaurant – really tasty

Posted by Shailu Mishra on June 24, 2008

I didn’t expect to find Stir fry vegetables on the menu in an Italian restaurant in Dublin. And to my surprise it was really yummy. I am definitely going there again before heading back to Seattle πŸ™‚

Posted in Uncategorized | Leave a Comment »

MacBook Air parody

Posted by Shailu Mishra on June 22, 2008

I think it is a bit harsh but definitely effective marketing wise πŸ™‚

Posted in Uncategorized | Leave a Comment »