Friday, December 21, 2007

Adventures in silverlight

Typically when you are downloading XAML to show in your silverlight application, you would use a downloader and call createFromXamlDownloader.
This takes the XAML content that the downloader has downloaded and parse that into a XAML tree which you can then paste into your object hierarchy.
Here is the rub: if your downloaded XAML has event handlers for anything other than Loaded or OnLoad, and you are trying to wire it up to a javascript that you have linked in your original pages, you are in for a surprise. the events dont fire or if they do, they dont seem to call the script handlers correctly.
This may be a security thing - i am not sure. maybe you can wire handlers only to script that you have downloaded in the same downloader? Who knows.
Anyways, the only way i seem to get it to work is by getting the responsetext from the downloader and calling CreateFromXAML with that text.

All is well that ends well.

Friday, November 23, 2007

Black Friday like never before..

Got up today at 6.15 AM. This year, for some strange reason, i wanted to see what Black Friday was all about in Seattle. Reached Frys by around 6.50. There was not a single parking spot. For those familiar with the Frys parking lot in Renton, imagine how many cars would it take to fill the whole lot. Finally found a little spot to park and went in. What i saw inside knocked my breath away! every aisle in Frys had a portion of the queue. The serpentine queue extended from the checkout stands all the way through the XBox area, around the cafe, through the small electronics, into the PC components and a did a few crazy loops around the graphics cards area.

Of course buying the bulbs for the kids bathroom was out of the question. Get in the line, and you would be looking at 2 hours of shuffling towards checkout. In fact, you could do all the shopping you wanted right in the queue. Just get in the queue with an empty cart, and pick up the things you want when the queue reaches each section :-)

Anyways, did the usual rounds at the CPU and Motherboard section, left a few pools of drool there, and the remaining drool at the Camcorder section. Got out in about half an hour, happy to be alive and without the need to waste 2 hours to save 10 bucks. It also looked like people didnt care if the things they bought were on sale or even whether they saved money. I bet if people analyzed the savings they made, they might as well have gone and flipped burgers at McWhatevers to earn more than that in two hours. Some people were smart though. They pulled off whathever they wanted from the shelves and just went and sat at the cafe. They would probably chill out there for a few hours until the queue thinned out.

From Frys straight to Best Buy. No crowd there (not a real one anyway). But then the two things i was interested in either wasnt marked down or was sold out. I wanted a Blu Ray player (out of stock) and a zune (same old price as a week before).

From there to Circuit City. It was looking more like Bharat City, packed with people from good old India. I think CC would have done better had they put Bollywood movies on the display TVs, they would have sold millions of TVs.

Anyways, by about 8.30, i staggered out of there, exhausted, relieved that i had nothing to buy on Black Friday..

Never again

-g

Tuesday, November 06, 2007

Murkier, gloomier, nastier

Yeah baby, that's Seattle in Winter..

Maybe time for an IFR rating..

Trusted Certificate Authority Hell

This issue has been hounding us recently when installing appliances.
Symptoms:
· When you try to verify client certs by launching a browser and pointing to the HTTPS site which requires client certs, you are prompted to "choose a digital certificate" with an empty list of client certs, even though you can see the certificate in the MMC certificate console.

What is happening..
On the IIS, if you open the event viewer, you might see a little event which looks like this


"When asking for client authentication, this server sends a list of trusted certificate authorities to the client. The client uses this list to choose a client certificate that is trusted by the server. Currently, this server trusts so many certificate authorities that the list has grown too long. This list has thus been truncated. The administrator of this machine should review the certificate authorities trusted for client authentication and remove those that do not really need to be trusted.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp."


WTF !

After a win2k3 machine has gone through a few rounds of certificate updation (which may happen when doing windows updates), it keeps bringing in more and more trusted root certification authorities.
The list of trusted roots keeps growing until one fine day, the IIS finds that the list is too long. When performing the SSL client cert handshake, it is supposed to send a list of trusted CAs so the Browser can decide which client certs to choose from.
When the list grows too big, IIS hits this hard coded limit and finally croaks.

If someone has an idea of how to change this limit, feel free to comment..

Solution
Only way out of this?


Remove a butt load of those useless certs from no-name companies who have decided they are important enough to find a place in your trusted authorities store.

Go to the trusted root certification authorities and blow away a bunch of them, starting with those you don’t recognize and those that has Client Authentication as a purpose.



Meanwhile, don’t accidentally remove those in this list, since Windows needs them.
http://support.microsoft.com/default.aspx?scid=kb;EN-US;293781

cheers

-g

Saturday, September 15, 2007

Dead and gone by then..

Cant believe it, but Vista says my computer sucks.



According to vista, it will take me roughly 121 years to copy a few files from my dvd drive.

But for some reason, the math dont make sense to me.

cheers

Wednesday, September 12, 2007

Adam Bosworth Leaves Google...

Looks like HealthCare is a different beast altogether.
Adam leaving might not have as much to do with the complexity of the business for all you know.
But one thing is for sure - HealthCare is not for the faint hearted. It takes tremendous amount of grit and patience to succeed (if there is something like success in healthcare). The most effective driver for success in heatlhcare IT is not money. Its the motivation to do good.

So i wonder if businesses traditionally geared towards making money and doing good by the shareholders can be successful in thinking deeper about patients and their well being.
  • Developers want to build cool software
  • Businessmen want to increase share value
  • Managers want to lead bigger teams
  • Salesmen want to increase their numbers
  • Standards bodies want to create standards
  • __________ want to create systems which improve patient experience - fill in the blanks yourself.
When the sale is done and the dust settles down, who is caring for patients, who are the ultimate consumers of healthcare?
The government?
Hospitals and care providers (who ultimately have a business to run)?
Corporations that develop HealthCare systems ?
Physicians ?
Payers / Insurance Companies?

It seems to me like increasing patient safety, improving patient experience, betterment of treatment outcomes and reduction in expenses are all a by product of the way all of the above work towards achieving their own goals.

Fortunately, there are a lot of people out there working their butts off thinking about the real issues in healthcare. The likes represented by of HISTalk, Dr. Crounse, and numerous other voices in blogosphere. Hopefully the movement will continue and break the shackles of traditional business models to provide pervasive solutions which really do good.

Thursday, September 06, 2007

What is a Touch And Go?

Touch and go is a flight maneuver of landing on a runway and taking off without stopping. This is typically performed for training purposes.
Did a couple of touch and gos at paine field yesterday, and here is the edited video.
Enjoy !

Tuesday, September 04, 2007

Beautiful San Juan Islands

Went camping near Friday Harbor last week, great place to camp, especially during a weekday when there is literally no one else around. Highly recommend Lakedale campsite, where we managed to get a secluded wooded campsite.

Fished on the lake, caught some bass, one of which was big enough to fry with some kerala fish masala (yum)

If you want to watch orca whales swim by, pop over to Lime Kiln state park.

Friday Harbor is a nice quiet little town (at least on a weekday), an hours ferry ride from anacortes.

Someday, would love to try a landing at Roche Harbor at the north end of the island, where the strip is nothing but a narrow road.

Enjoy the pics.

Tuesday, August 28, 2007

Lunar Eclipse from the Northwest

Spectacular event today morning around 2.00. I started a little late, hence missed some of the early action. Here are some of the better looking shots..

Thursday, August 23, 2007

Great photography tip here

Friend of mine sent me this one, took me a while to understand the simple tip on how Flash can improve your pictures..
http://img297.imageshack.us/img297/1096/2137a9950nf3.jpg

Thursday, August 16, 2007

Valiant effort to provide friendly messages

Our friends in the Vista team has gone a long way to make the OS friendly..
In fact, these days even when programs crash, Vista tells you in a nice way...

Today, trusty skype failed with this,


It took a while for that one to sink in..

Another little while to start imagining the possibilities...

_______ has stopped working.

Come up with your own friendly application name to insert here..

All you need is a C++ app which does

int * i = NULL ;
*i = 0 ;


Wednesday, August 15, 2007

Bite the bullet and RHIOlize..

The portland tribune has an excellent article published on how efforts to bring health information technology to share healthcare information has been stalled by different reasons such as lack of cash and privacy issues in Oregon.
http://portlandtribune.com/news/story.php?story_id=118670243207447600
The longer such efforts have reasons to stall, the more precarious the condition of the ultimate end users of such systems. It could be you or me, this week, next year or five years from now.

I just wish the hospitals would realize this, come forward and talk to the technology enablers about how this can be addressed. But of course, who wants another big project when something like a pesky time tracking system takes 6 months to install and is the top priority ?

I guess its all about buying into a vision and trusting the geeks.

Tuesday, August 14, 2007

Tuesday, August 07, 2007

Sunday, August 05, 2007

Flowers in the garden

Wednesday, August 01, 2007

Navajo Country



Pictures from scenic Navajo country.
enjoy
-g

Olympic National Park Pictures



Pictures taken from Olympic National Park, EOS 30D, 17-85 IS
enjoy..
-g

Tuesday, July 24, 2007

Levitation is easy

Tuesday, July 03, 2007

Flight over KPAE

Monday, April 02, 2007

Grand Canyon - Day 1

Grand Canyon - Day1

Better late than never they say. The trip was a couple of months ago. Beginning of April is a good time to visit the region. Moderate temperatures, high 60's everywhere, no sun-tan lotion required.

But boy was it a treat for the roaming lens!

The new EOS 30D and the Canon 17-85IS had a good time, with the 70-200 4.0 L stepping in at times to bring the distant temples closer.


Rough Itinerary


  • 2 hour flight from SEA to Phoenix
  • 3-4 hour drive from Phoenix to williams, AZ. ( good marriot facilities at most places in the area)
  • 1+ hour drive from Williams to the south rim of Grand Canyon.

Just make sure you hold your breath before you step into the vista.

The first thing you notice is the mind boggling expanse in front of you. The place will probably be crowded, but ignore everyone else. You are on a once in a lifetime journey, and dont let the others bother you.


Once you get accustomed to the sheer magnitude of the place, start looking at the details. Those temples you see in the distance? Most of them have names i am told.

After you have seen the canyon during the day, try the sunset. Though it might be a little windy, there is no sunset like this one. The sky and the canyon walls turn progressively red and dark. Its a spectacular show, never to be missed.
Watch out for the dust kicked up by the strong winds. Can get into your eyes, and your lens, especially if you change lenses on your SLR.

Once you have watched the show, head on over to the Grand Canyon Village for a great chow. They have a variety of foods from pasta, pizza, burgers salads, ice-cream, wine, beer, coffee, you name it. If you are lucky, you might even catch a moonlit night, and that would be another experience.

But for us, the day was over, and we head back to Williams (hour long drive, dont doze off) to sleep.