Thursday, November 08, 2007

Your potential, their T-shirts

Back to the Live event yesterday, I recalled old joke, prepared by me for Lior (Microsoft MARCOM) after Blogference, but never sent him. Today, using Microsoft Live Services, I can collaborate this image with him, while wearing Microsoft's T-shirt with slogan "The Jewish people are Live".

image

I'll probably, print this slogan (about T-shirts, not about Jewish people) one day on white T-shirt for my own...


I even prepaired images suitable for printing on material (TIFF, 300 dpi, black and white background). Download it, if you want to print such T-shirt for your own (or for me :) )

Visual Studio Windows Live Tools - November CTP

For all those, who want to incorporate Windows Live into their applications, new Windows Live Tools from Visual Studio will be great place to begin. Download November CTP on Microsoft Connect.

via LiveSide

Windows Live Tools

Wednesday, November 07, 2007

Windows Live Messenger Web API

A couple of hours after Windows Live has been announced, you can chat with me directly from my (or your blog. Enter and see the left side for Windows Live Messenger Web Control.

Want too? That's simple. First, allow others to see your presence. Then choose the control to use. Now (for those, who are using CS) add it into News section or other place in your blog (Spaces for sure).

image

New branded YourName@live.com is available

After a long wait, Microsoft Live is officially available. So, if you are in USA, you already can register new @LIVE.COM email address and have a new fresh start

Monday, November 05, 2007

Release dates: Visual Studio 2008, .NET framework 3.5 and Microsoft Sync Framework

Great news: VS2008 RTM and the final version of .NET framework 3.5 will be available by the end of this month (November). That's what was committed by Soma today at TectEd in Barcelona. This is really cool and means, that RC version is almost similar to RTM.

The other great news, is that there is new product "Microsoft Sync Framework" - a synchronization platform, that works with Live services and Popfly will be available aside this package. \

So what is "Sync Framework"?

· The first CTP of the Microsoft Sync Framework demonstrates Microsoft’s ongoing investments in synchronization and builds on the synchronization functionality available in Visual Studio 20008. With Visual Studio 2008 developers can rapidly take advantage of offline synchronization capabilities to sync-enable applications and services easily with rich designer support. 

· The Microsoft Sync Framework extends the support featured in Visual Studio 2008 to also include offline and peer-to-peer collaboration using any protocol for any data type, and any data store.

· This is part of Microsoft’s long term commitment to providing synchronization for partners and ISVs who can embed the Sync Framework into their applications easily to create rich sync-enabled ecosystems that allow any type of data to follow their customers wherever they go

What is Popfly Explorer?

· Web developers and Popfly users need an easy way to add Silverlight gadgets built in Popfly to their Web pages, as well as publish HTML Web pages directly to Popfly

· To enable this kind of easy customization, Microsoft today announced that Popfly Explorer will provide deeper integration into Visual Web Developer Express. Now developers can now design Web pages using HTML, CSS, JavaScript and publish those pages directly to Popfly (server-side code is not supported)

· The Visual Studio/Visual Web Developer 2008 integration makes it easy to add Popfly mashups built in Silverlight to your Web page. Making your personal Web site look cool just got a lot easier

 

Have a nice day and be good people.

Sunday, November 04, 2007

Poster of .NET Framework 3.5 namespaces

Many thanks to Paul Andrew, Kit George and Brad Abrams for creation of this useful wall poster for your convenience. Read Brad's and Paul's posts about it. Download the full size PDF version.

image

Thursday, November 01, 2007

WBXML support in C# or let's make it smaller

Dear visitors, 03 01 6A 00 00 01 41 42 03 57 42 58 4D 4C 20 50 72 6F 67 72 61 6D 6D 65 72 00 01 43 03 48 65 6C 6C 6F 2C 20 57 6F 72 6C 64 21 00 01 01. Do you know what I'm talking about? Those 45 bytes string means following 208 bytes XML

<hello-world>
<greeter>WBXML Programmer</greeter>
<greeting>Hello, World!</greeting>
</hello-world>

Basically, XML is very easy language. It's easy to understand, parse and use. However, XML is very inefficient for transport. In order to send this small XML file, you have to transfer more, then 200 bytes, when actually meanful information is two strings. This is not critical issue, when we are working in LAN environment. However it becomes very critical while working with mobile customers. That's the reason of inventing WAP Binary XML (or WBXML).

This language uses name tables (tokens) to convert nodes and attributes into one byte value and this way it saves a lot of unnecessary information to be transferred. WBXML specification is very easy, however .NET (even Compact) framework lack of XmlDocument, that supports this content format.

Is it common enough to lean and use? Well, this is tricky question. From one hand, all of mobile content providers (even those, who dealing with mobile synchronization) widely uses this format. From the other hand, if you are no really "in" mobile (or any other bandwidth efficient) programming, you do not need it.

I think, that one of most important things in programming (in general) is to be efficient, so I decided to write XmlDocument derived class to provide WBXML support.

How to use it?

- First create name tables (you do not have to, if you are using only one token)

Dictionary<int, Dictionary<byte, string>> tokens = new Dictionary<int, Dictionary<byte, string>>();

Dictionary<byte, string> token = new Dictionary<byte, string>();
token.Add(1, "hello-world");
token.Add(2, "greeter");
token.Add(3, "greeting");

tokens.Add(1, token);

- Then create new WBXmlDocument instance with those tables

System.Xml.WBXmlDocument doc = new System.Xml.WBXmlDocument(tokens);

- Now you can either use is as normal XmlDocument

doc.LoadXml("<hello-world><greeter>WBXML Programmer</greeter><greeting>Hello, World!</greeting></hello-world>");

- And then create it's binary representation

byte[] bytes = doc.GetBytes();

- Or load incoming byte array

doc.Load(bytes);

- And get your XmlDocument

string xml = doc.DocumentElement.OuterXml;

Pretty easy, isn't it?  Download WBXmlDocument.cs

Please note:

  • This is not final version
  • It tests not enough
  • There are known issues with attributes parsing
  • It does not implements full specification (I did it for my own needs)
  • Each company might have their own protocol, that can bi slight different from official specification (SyncML for example)
  • You can know token tables only if you'll get full specification of target protocol. Private tokens are not transferred according the protocol

If you want to help and enhance this solution, feel free to do it, however, know, that I release the source under restrictive CPL. You can use this code or code, derived from this code in either open source, free or commercial application, however, you should clearly provide my name "Tamir Khason" and link to my blog http://blogs.microsoft.co.il/blogs/tamir/ or my private web site http://khason.biz within any distribution of the software. For more information, contact me.