DCSIMG
November 2006 - Posts - public: class Alon : IArchitect, IAzure, ICPP, ISmartHome, IHomeServer

Syndication

November 2006 - Posts

לכל מי שרוצה לפתח למדיה סנטר, נקודת ההתחלה היא פה. ה SDK מאפשר לפתח תוכן למדיה סנטר באחת משלושה טכנולוגיות:

  1. HTML
  2. XBAP
  3. MCML

בנוסף לכלים השונים תוכלו למצוא מידע, כיצד להתחיל, ודוגמאות רבות.

תהנו!

Posted by Alon Fliess | with no comments

Here are some answers that I received from Aaron Stebner

1) How MCE choose the online-spotlight location (In XP, we could change the system locale, what happen in Vista), Is there a way to change it?

I believe that the same algorithm is used in Windows Vista for selecting the Online Spotlight location.  Developers should not need to worry about changing  locales at all for Online Spotlight scenarios though.  If a developer is creating an Online Spotlight application, they can work with the Windows Media Center partner team to coordinate which locale(s) the application should be offered in.

I am not sure about this answer, I have understood from other people in Microsoft that the Media Center choose the Online Spotline server by the machine IP address, but I have no official answer yet.

2) How can I test an Online-Spotlight software? (Is there a beta site that we can upload a software and set the MCE to get the online content from there?)

Developers who are working on applications that will appear in Online Spotlight should work with the Windows Media Center partner team for beta testing applications before they are released live on Online Spotlight.

3) Can I mixed an ActiveX control in MCML application? How? Can I use flash in MCML application?

No, you cannot embed ActiveX controls in an MCML application.

4) Can Flash applet read all remote control keys?

Hosted HTML applications can listen to and handle many but not all remote control keys.  You should be able to find a complete list in the Media Center SDK.

5) Does XBAP application hosted in MCE have the same IE hosting sandbox restrictions?

Yes, my understanding is that the same restrictions apply in IE as in Windows Media Center.

6) I understood the XBAP app and HTML based app will run on extender using Remote  Desktop technology while MCML based application will be rendered on the Extender. Am I correct?

Yes, you are correct here.  MCML applications are currently the only ones that render in full fidelity on Extenders.

Posted by Alon Fliess | with no comments
Noam, Yosi, Udi and me sat together and had an argument about a service definition. We all agreed that calling a function/method is not a service and it does not matter if the call is stack based or XML message based. But we had different definitions.
This is my point of view:
A service is software hosted on a service host that gives value or functionality that can not be part of the client software. The client & service has to partly understand each other to get the value.
For example:
Suppose we have a weather service that get a Lat/Lon location and return the temperature. The client can be a Vista side-bar gadget that shows the temperature. Later the service evolves and now it returns the temperature and the humidity. The old client continues to get the temperature while a new client can show both values. If we configure the new client to use an old service, the new client will show only the temperature and ignore or give a default value to the humidity.
You can implement such service using WCF, however it is much harder than a function based contract which will probably lead to the same coupling that we have found in asmx based services.

It’s good to be the king, or just to be an MVP when it comes to events. We had Tapas Bar dinner. The food was fine, disserts were great and so the wine and beer. We sat together: yosi, Noam, Roy, Udi, and me and three other MVPs from Romania. Roy got lots of complements about his performance today (as a lecture and a singer). We have left the restaurant without Udi, which had to stay and explain his point of view in the ORM vs. Data Access Layer dilemma. As yossi foreseen,

Posted by Alon Fliess | with no comments

The first day (PreCon) is over. Most of the time I spent in the .Net 3.0 overview. The WCF lecture was good, although I did not learn much. The only new thing was the WCF configuration tool that help you configure everything using form based UI. The lecture on WF was the usual WF introduction and so the CardSpace. In the CardSpace lecture we have seen the integration of CardSpace with IE7 and ASP.Net web site as well as a plug-in for FireFox on Mac that implement the client side of CardSpace.
The WPF lecture started in too slow pace and was again a marketing lecture. Only in the second half the lecture became more interesting. It was the first lecture that I’ve seen that talked about the essential of WPF such as eventing, commands, virtual & logical treesand so on. Since I spent the last two month studying WPF, I had not seen any new things but I liked that he chose to show those area of WPF. The only problem was again – only XAML and no code.
At the end of each session we went to see and help roy in his songs (see yosi blog) I was the camera man, Noam was the photographer and yosi was the “change the slide” man. Roy was great, and the songs were very funny.

 

Posted by Alon Fliess | with no comments

תמיד כאשר לומדים משהו חדש צריך לנקוט שתי גישות משלימות.

  1. תתחילו מהקל אל המסובך והקשה.
  2. תתחילו מהמקום שאתם מכירים ויודעים ותפתחו את הידע משם.

לגבי סעיף 1, זה די ברור אבל כאשר חושבים על סעיף 2 ומסתכלים על כל האתרים ומאמרים שמלמדים WPF מסתבר שלרוב המתכנתים כולל המנוסים הכלל אינו מתקיים ולכן הכניסה ל WPF נראת קשה ומאיימת. ברוב המאמרים מסבירים לכם ש WPF כותבים ב XAML ובמקרה הכי טוב אומרים לכם ש XAML זו שפה שמאפשרת להגדיר סוגים ומופעים של אוביקטים עם תכונותיהם, האוביקטים שהם מכילים, הקשרים בניהם ואפילו המאורעות שהם יגיבו עליהם. הבעיה ש XAML מהווה רמת אבסטרקציה גבוהה מאוד ובאמצעות מבנה מסויים, ואוסף של Type Converters, Attached properties ועוד מושגים מסובכים ניתן להגדיר סריליזציה חכמה של אובייקטים ב XML. תוסיפו לזה מערכת Meta-Class חכמה המאפשרת לבנות תבניות של Types ב XML ותקבלו מנגנון חזק מאוד אבל מסובך נורא אשר קשה לקרוא לו "עקום לימוד" אלא צוק שצריך לטפס עליו.

לא כך היא הגישה של צ'רלס פצולד בספר Application = Code + Markup. בספר הכל מתחיל במקום שאנחנו המתכנתים יודעים ללמוד ומרגישים בבית - בקוד. עד עמוד 456 (מתוך 1000) אין תזכורת ל XAML, אלא רק קוד. וכך ניתן ללמוד את שכבות האבסטרקציה השונות. בהמשך לומדים גם XAML אבל אז הדברים ברורים יותר.

אז אם אתם באמת רוצים ללמוד WPF, קחו קורס (אני חיב לציין זאת, בכל זאת CTO של סלע) או שתקחו עותק של הספר. הוא לא מושלם אבל הוא בהחלט נותן את הבסיס החשוב שאחריו עקום הלימוד יהפוך להיות שטוח יותר. ואם אתם כבר קוראים את הספר, נסו הכל ותגבו את הספר בקריאה נוספת מה SDK ומהאינטרנט.

בנוסף חווית הפיתוח ב WPF חזקה יותר שעושים זאת בויסטה.

את הדוגמאות לספר ניתן להוריד מהלינק הזה: http://www.microsoft.com/mspress/companion/0-7356-1957-3/

תהנו!