onsdag, april 26, 2006

 

Debugger visualizer for MethodInfo

In his preparations on his talk "Reflection 2.0", Roy writes about a debugger visualizer for the MethodInfo class.
Neat stuff.


torsdag, april 20, 2006

 

Alien Arithmetic & Steganography

(via Tess Ferrandez)

Tess writes about this article telling how 3rd graders can be thought "alien arithmetic" (binary), and I can't agree more than it is an amazing read. Especially when you have your daughter that goes to a montessori pre-school. I don't know if this is something general for the montessori way of teaching, but at our pre-school the children get to know about numerals and basic mathematics at a very young age.
And talking about the teaching method covered in the article, the Socratic Method, it's just fantastic when you ask your child about something (that YOU think they shouldn't have a clue about) and you get a descent, totally unexpected, answer back!
Alright, my daughter's (2½ years old) F's sounds more like P's (one two three pour pive..), but you get the picture.

Also Tess recommendation of "The Code Book" (by Simon Singh) reminds me of picking my copy from the bookshelf and re-read it.
I got really inspired by the beginning of the book that covers some history of cryptography (or steganography, not to be mixed up with each other). About the same period in time, Corinna John started to write some interesting articles about how to apply this using C# and different technologies (bitmaps, media files, zip files and so on).
If you are coding in C# and liked "The Code Book", you are going to like her articles.

 

XmlSchema.IsValid is not a boolean

(via Mårten)

Solving The XSD Versioning Problem
Good post by Tim Ewald.
Not having put any deeper thoughts about it; it all seems pretty fair.
What I totally agree with him is that schema validation is not a boolean thing.
I think one have to define, before designing the XSD document, what the criterias are for an invalid XML document instance for each case. Then express as much as possible in the XSD and document all other behaviours (i.e. possible default values for missing elements from clients using an old schema etc.) in some other way (written API doc?).

onsdag, april 19, 2006

 

MSDN Update: WCF

Today was a day covered up from the beginning to the end. Starting the day at work with upgrading to the February CTP of WinFX and messing around some more with MSBuild.
Took a nice lunch at the Microsoft office building with long-time-no-see-previous-Qbranch-collegue Niklas Nihlén, which by the way now is an Microsoft Services employee.

Going cross the city just for a lunch isn't my thing, the actual reason for being at the Microsoft office was the afternoon MSDN update session with Johan Lindfors.
The focus of the day was to get deeper in WCF, so Johan decided to do a more complete solution by example, instead of just doing another HelloWorld-service-over-SOAP.
This sample covered a couple of things that I haven't had the time (yet) to investigate . I.e. how easy it is to set up monitoring and tracing in WCF, both using performance counters and trace files (using the SvcTraceViewer utility).
Also I'm very interested in seeing samples using the MSMQ transport for services.

Especially working with MSMQ on NETCF on my Pocket PC that communicates over GPRS with my WCF service. That would really be something.

Although the demo solution presented today was covering most of the features in WCF, it lacked the sample of using a WCF service with BizTalk 2006.
The last days I've been wondering how Biztalk 2006 works out, over a longer period in time, with it's strict schema validation together with the data contracts in WCF.
Data contracts supports versioning with both forward- and backward-compatibility. However, the schemas being generated by the WCF runtime for different versions of data contracts are not compatible with each other. And after all, it's the schema that is used in Biztalk. So if I deploy a new Data Contract in my service, will the already deployed Biztalk 2006 application still work with the new data being sent on the wire?
My standpoint is that if you are going to do service and data contract versioning, you should preferably support that in the schema as well as in the implementation. Not one or the other; it should be both or nothing. If you have another opinion, please leave me a comment on your thoughts.

Also Johan was mentioning that he planned to hold a WCF workshop eventually. I hope that will be (at least) on the same level as the level of today's session.

 

If it's broken, fix it you should

...is the name of the blog of a support technician at Microsoft PSS that came to my rescue when we was experiencing hard-to-find memory leaks in a .net->pinvoke scenario in a system at my former client.

I just found her blog (via Johan Lindfors) and it is for sure keeping up with the level of knowledge that I experienced during that support case. This girl is making me feel that debugging crash dumps is piece of a cake.

 

Blog.GetByName("Mr Andersson").Resume();

Oh, that was a hibernation worth to mention! I'm talking about the fact that I haven't had the time.. Ehrrm, let me re-phrase that in a honest way; I haven't prioritized posting my discoveries here in life for the past 5 months.

To make a short re-cap for myself:
November+December: Last months on my former employment. I was planning to take some vacation, but when you your client still needs you on site and your plan is to move on to a new employer, you can't just leave. I hope I managed to round it up gracefully (and that the client shares my belief in that).

Christmas Holiday: Ah, finally some nice time with the family. Uhm, actually no. As usual a very hectic time, trying to get everything and everyone (including myself) in christmas mood. And of course, on new years day, the destiny surprised us with an opportunity to move to the neighborhood where we have been seeking for an apartment for such a long time. Oh oh. Now we have just one month to pack everything...

January: At the same time I started my employment at RemoteX Technologies and, as you probably understand, you need to pay some extra attention on the new job.

February: Moving time! And of course, with alot of packing left to do, the whole family gets the flu, just one week before the date we're supposed to move.
When all things found their place in a moving box, we could count 80 boxes, still some things excluded. And why is this crazy? Well, you understand, our apartment is only 62 square meters. 80 boxes is quite a deal on that area. I don't know how all the things got there, but somehow they did.

Thanks to many friends and my beloved parents; Mission accomplished (not that I had any doubts, errhm..).
Quote from Mårten: "- That was the strangest move I ever have participated in!"

So what about the new job? Well, that have been quite nice. Starting with my new employment I moved away from developing support systems for "sysprep solutions" and into the brave new world of WCF.
"- WTF?", you say.
No, WCF, the Windows Communication Foundation, one of the "pillars" of the next upcoming version of the Microsoft .Net Framework. I promise I share some of my experiences with that in upcoming posts.

Prenumerera på Inlägg [Atom]