Monthly Archives: August 2005

Virtual Earth Tiles

I have been working with Virtual Earth some more. I wrote recently about the tiles that make up the map image and have made some new discoveries.

When you create a new map, the tiles collection has the tiles in the order of their placement in the grid, by column, as opposed to by row, like a <table> object builds a grid. So in a map of 12 tiles, map.tiles[0] through map.tiles[11] are placed like this.

049
159
2610
3711

However as you pan (scroll) around the map image, VE just keeps adding tiles to the end of the collection based on your movement. Therefore, when you stop scrolling, the tiles will no longer be in any order that you can count on, which is not good if you have code depending on the above order.
To rectify this you can use two methods of the map control to jiggle the tiles back into “proper order”.
Capture the onEndContinusPan event of the map and then use the SetCenter method followed by the _UpdateMap method.


map.onEndContinuousPan = function(e)
{
map.SetCenter(e.latitude,e.longitude);
map._UpdateMap();
}


I had originally tried to just create a new map when the panning ended, but I was unable (by hook or by crook) to get the compass control, zooming controls, etc to interact with the new map.
Thanks to ViaVirtualEarth for the lesson on how to capture map events.

www.acehaid.org

Code Camp 4 (Waltham) Agenda is forming

The agenda for Code Camp 4 is coming together as people send in their sessions. I can see we will have some travelling speakers again, like Raj Das coming from Chicago (yeah!).

I sent Thom Robbins a gaggle of talks to choose from and he selected four. Eeek! 😉

I will be doing

ADO.NET 2.0 and SQL Server 2005

Web Service Security Basics – Demystifying the cryptography tools used in WSE, Indigo and Beyond (just a new title for my favorite talk)

Programming with Virtual Earth

Overview of WSE 3.0

Better get crackin’….

Register Here

www.acehaid.org

VSNet Remote Debugging Firewall Ports after recent patch

I had to do some work in a VS2003 web service today. I have a remote web server and when I went to debug the service, I got the error message “the RPC server is unavailable.” I suspected a firewall issue, though I did not know if I needed to attack the firewall on the client side or the server side. Luckily, my first attempt did the trick. I was reminded (thanks KBAlertz) of this MSDN document that I remember going through when moving to XP SP2 last year. I looked at my firewall and saw that the ports which I opened up via this document were not listed. So I just redid them and voila, all is well again.

How to Enable Remote Debugging on Windows XP Service Pack 2

www.acehaid.org

ASP.NET 2.0 and IIS as non-admin

I have been using the file server method with ASP.NET 2.0 since the beginning. I thought it was time to run in IIS. Note that all of my .NET 1.0 and 1.1 development has been against a remote server. I have never had to use ASP.NET 1.x on a machine iwth a local IIS, so there are some bad lessons I never had to learn. Though I have always heard the remote web server development process was supposedly much more difficult.

So, now I ask, should I be embarrassed that I have spent the past 3+ hours trying to get asp.net 2.0 and IIS on a Windows XP box running as non-admin? Should I give up and get on with my life? I have seen many references to it being really easy with.NET 2.0. Hmmmm…

Sadly, I can’t really give up. Not when I’ve seen referenes to the fact that ASP.NET 2.0 was supposed to make this easy to do. Or perhaps those references are related to the file server approach.

www.acehaid.org

Visual Studio Comic Strip Ads

I’m definitely curious what people think of the comic strip ads for Visual Studio that have been “playing” on sites like DevSource and elsewhere. In it, some poor developer is swamped with work and, in once strip, frustrated because he has a date with Katie that he is going to be late for. Suddenly, a meteor like visual studio logo flies by his window  and crashes into earth, and we gat a “hallelujah, the crops are saved!” type epiphany from the developer. It’s definitely a new form of advertising to developers! It doesn’t personally speak to me, but as an over 40 female, I’m a tiny slice of the developer market profile. Maybe I can get DevSource to take a poll! Leave any comments here

www.acehaid.org

I had a dream…

Last night I had a hard time getting to sleep as I worried about all of the commitments I have made and how I am going to accomplish them. (Somehow it always works out though) This happens every time I am so terribly irresponsible to do something like – shock! – go for a bike ride on a nice summer Saturday afternoon. No, it shouldn’t be this way, but, oh well.

So when I finally did get to sleep, I dreamt that I was attending a huge event in a huge room with a LOT of developers (think keynote address at PDC for size). In this room, we were each given documentation for a new piece of technology. The first part of the documentation was pure reference material — how it works — and the 2nd part was a big hands on lab. I was *still* plowing through the documentation while many people were asking very specific questions about the coding, since they were somehow already into the hands on lab. They were being heralded because they were pointing out very helpful problems with either the lab or the technology itself. I think we were into day 2 or 3. Finally I turned to the woman sitting next to me and asked where she was at in the process. She was reading the docs too, but she had teamed up with other people in the room and other members of her team were deep into the labs. I told her, “well, I have always worked alone. I’m not used to teaming up with people. I guess I’ll just have to live with my slower pace.” Uggh. For 20+ years, this is the way I have worked. I can’t imagine working any differently or god forbid, having employees. I defnitely can’t imagine paying someone to be on vacation when I never get to take one! (yes, perhaps I would have more time that way…) I’m sure the other part of this is that while diving specifically into things like ADO.NET 2.0, WSE3.0, etc., I have still not actually built a ASP.NET 2.0 website, for example, and therefore I have not been a great source of feedback. I think it’s part of the keeping up with the Joneses thing, and I should be happy with what I am able to do and equally happy that there are also plenty of people with the time and energy to provide lots of great feedback on things like .NET 2.0, Indigo, Avalon, etc.

Well, it’s raining, so I don’t have to worry about being tempted to go on a bike ride on this Sunday morning. Back to work, I guess! The hard part is what on earth do I select to start with? I suppose whatever is due the soonest, as always…

www.acehaid.org