RSS 2.0 Feed
2008-03 Entries
摘要:由MVP王少葵主持翻译的《C#与.NET 3.0高级程序设计(特别版)》(人民邮电出版社)终于出版了,我参与了其中第六部分的翻译。 原作者 Andrew W. Troelsen,微软MVP,是个多产作者,在微软平台技术,尤其是.NET方面有很深的造诣。该书的早期版本曾入围2002年Jolt大奖的最后提名,并获得2003年Referenceware编程图书类的Excellence Award。 原书中来自Slashdot的评论: “本书极为全面、细致深入地探讨了C#与.NET 2.0框架的各种特性。其中对CIL的介绍和运用尤为精彩,超过了任何其他文章和图书。绝对值得拥有。”...[阅读全文]

posted @ | Feedback (6) | Filed Under [ 书籍 .NET ]

摘要:Mr.“IronRuby” John Lam在他的博客上登出了三篇贴子,其内容是他在MIX08大会上做的讲座的文字版 Microsoft Silverlight and Dynamic Languages http://visitmix.com/blogs/2008Sessions/T28/ 讲座录像的MP4版: http://msstudios.vo.llnwd.net/o21/mix08/08_MP4s/T28.mp4 (57.6MB) 讲座录像的WMV版: http://msstudios.vo.llnwd.net/o21/mix08/08_WMVs/T28.wmv (84.1MB) 演示代码可以在这里下载: http://dynamicsilverlight.net/ 在第一篇《Dynamic Silverlight Part 1: Hello, World! in Dynamic Silverlight》中,主要介绍随Silverlight 2 Beta 1一起发布的Chiron.exe命令行工具。这个工具有2大主要功能,一是可以帮你把应用的文件,资源,程序集等转换压制成.xap文件,二是提供一个简单的web服务器的功能,让你使用文件系统就能开发Silverlight应用。由于Chiron是动态生成.xap文件的,你对文件做变动后,只要刷新浏览器就可以获得新的.xap文件,不用重启Chiron或浏览器,提供了很好的交互开发体验。 在第二篇《Dynamic Silverlight Part 2: Managed JScript and flickr》中,示范了如何使用托管的JScript (与我们在浏览器中的客户端Javascript不同) 与Flickr API做交互,让用户查询相关主题的照片,并将照片显示在Silverlight中。还演示了在Silverlight中,原封不动地使用Peter Norvig(AI大师)用Python编写的Spelling Corrector(拼写纠错器),提示用户输入的主题可能有错。 在第三篇《Dynamic Silverlight Part 3: Integrating Silverlight with ASP.NET MVC 》中,示范了如何与ASP.NET MVC应用做集成。通过Chiron生成.xap文件,用IronRuby在客户端动态生成WPF元素,使用WebClient与服务器端做交互等。...[阅读全文]

posted @ | Feedback (1) | Filed Under [ ASP.NET/IIS .NET IronPython/IronRuby/F# WPF/SilverLight ]

摘要: 【原文地址】Programming Silverlight with Dynamic Languages     介绍 这个快速入门例程展示了如何创建使用了托管代码和动态语言的基于微软的Silverlight的应用,以及如何在Visual Studio 2008中调试应用。 Visual Studio 2008之Siverlight工具Beta 1版本包含了动态语言运行时(DLR)和三门动态语言(IronPython, IronRuby, 和托管JScript)的快照。Visual Studio 2008目前还不提供动态语言的项目模板,但你可以使用Chiron.exe 工具来建造,运行和调试你的应用。 DLR和动态语言目前在Codeplex网站,尚处于开发之中。你可以在那里找到有关的详细信息,包括新的版本,源代码,和另外的Silverlight例程。新的版本会经常地发布出来。 查看源码   本文讨论了下述主题: 创建一个基于Silverlight的动态语言应用,并用Chiron.exe运行该应用 创建一个.xap部署文件 访问托管程序集中的类库 使用Chiron.exe和Visual Studio调试基于Silverlight的动态语言应用 软件要求 (可从 Silverlight下载网站获取): Silverlight 2 Beta 1版本 Visual Studio 2008 Visual Studio 2008之Silverlight 工具Beta 1版本 用动态语言创建基于Silverlight的应用 一个使用动态语言的基于Silverlight的简单应用包括下列组成部分: 根目录的HTML或.aspx文件,作为浏览器的入口点 app.xaml文件,定义了你的基于Siliverlight应用的用户界面 app.py, app.rb, 或app.jsx 文件,内含在运行时处理事件的动态语言代码。对动态语言来说,这个文件是不被编译成一个程序集的,动态语言的代码是在运行时在客户端计算机上编译和执行的 注 动态语言引擎和DLR程序集是包含在由Chiron.exe 生成的.xap 文件中,并下载到客户端计算机的。你不需要在你的项目中包含它们。 使用动态语言创建和运行基于Silverlight的应用 为你的应用创建一个文件夹. In the application folder, create two folders named app and assets. Use the assets folder for bitmaps and......[阅读全文]

posted @ | Feedback (4) | Filed Under [ ASP.NET/IIS .NET WPF/SilverLight ]

摘要:已经可以直接观看或下载了: http://sessions.visitmix.com/ Luciano Evaristo Guerche先生在博客里列出了一些录像的直接链接: Mix 2008, 65 presentations so far (WMV direct links)http://weblogs.asp.net/guerchele/archive/2008/03/07/mix-2008-65-presentations-so-far-wmv-direct-links.aspx   跟Silverlight有关的录像, Keynote I (第一天的主题演讲)Dean Hachamovitch, Ray Ozzie, Scott Guthriehttp://msstudios.vo.llnwd.net/o21/mix08/08_WMVs/KYN0801.wmvBuilding AOL's High Performance, Enterprise Wide Mail Application With Silverlight 2Eric Hoffman, Marc Katchay, Stefan Galhttp://msstudios.vo.llnwd.net/o21/mix08/08_WMVs/BT01.wmv Building Rich Internet Applications Using Microsoft Silverlight 2, Part 1Joe Stegman, Mike Harshhttp://msstudios.vo.llnwd.net/o21/mix08/08_WMVs/CT01.wmvBuilding Rich Internet Applications Using Microsoft Silverlight 2, Part 2Joe Stegman, Mike Harshhttp://msstudios.vo.llnwd.net/o21/mix08/08_WMVs/CT02.wmvCreating Rich, Dynamic User Interfaces with Silverlight 2Karen Corbyhttp://msstudios.vo.llnwd.net/o21/mix08/08_WMVs/T20.wmvEncoding Video for Microsoft SilverlightBen Waggonerhttp://msstudios.vo.llnwd.net/o21/mix08/08_WMVs/BCT07.wmvExploring Moonlight: Novell's Implementation of Silverlight on LinuxMiguel de Icazahttp://msstudios.vo.llnwd.net/o21/mix08/08_WMVs/T31.wmvFrom Flash to Silverlight: A Rosetta StoneRick Barazzahttp://msstudios.vo.llnwd.net/o21/mix08/08_WMVs/T30.wmvIntegrating Media in Silverlight ApplicationsEd Maiahttp://msstudios.vo.llnwd.net/o21/mix08/08_WMVs/BCT05.wmvInternationalizing XAML Applications......[阅读全文]

posted @ | Feedback (1) | Filed Under [ ASP.NET/IIS .NET WPF/SilverLight ]

摘要:Jesse Liberty,the Silverlight Geek,正在silverlight.net上发表一个《Silverlight教程系列》。目前已经发表了四篇,看上去很不错: 教程0: 路线图教程1: 控件教程2: 数据绑定教程3: 样式和模板...[阅读全文]

posted @ | Feedback (2) | Filed Under [ AJAX/ATLAS WPF/SilverLight ]

摘要:【来源】silverlight.net网站上 的 《Silverlight Overview》文章   功能 Silverlight 1.0 Silverlight 2 Beta 1 ......[阅读全文]

posted @ | Feedback (1) |

摘要:IE8带来了一堆改进和新功能,这些改进包括CSS 2.1 兼容,开发者工具,更好的AJAX开发支持等,详见 How do I make my site 'light up' with Internet Explorer 8? http://www.microsoft.com/windows/products/winfamily/ie/ie8/readiness/DevelopersNew.htm 比较关心的是涉及AJAX开发的,更为详细的文档在这里 Better AJAX Development http://code.msdn.microsoft.com/Release/ProjectReleases.aspx?ProjectName=ie8whitepapers&ReleaseId=581 这些改进包括: 1.AJAX导航支持(前进,倒退按钮工作了!) 2.DOM储存(简洁的API,每个域可在本地保存10M的数据) 3.网络连接事件(online以及offline事件,还可以通过window.navigator.onLine来监测连接状态) 4.把per host的并发连接数从2增加到6 5.XMLHTTPRequest改进,包括添置了timeout属性,以及ontimeout事件,以允许开发人员中止请求 更为激动人心的是对跨域请求(XDomainRequest-XDR)的支持!不再需要通过同源服务器来作为代理服务器,只要异域返回 XDomainRequestAllowed=1的header就可以(譬如通过Response.AppendHeader("XDomainRequestAllowed","1") ): // 1. Create XDR object xdr = new XDomainRequest(); // 2. Open connection with server using POST method. xdr.open("POST", "http://www.contoso.com/xdr.txt") // 3. Send string data to server. xdr.send("data to be processed") 以前曾在博客里谈到如何通过URL的hash来在来自不同域的网页之间通讯,绝对是比较丑陋的方案: http://blog.joycode.com/saucer/archive/2006/10/03/84572.aspx IE8现在支持跨文件消息通讯(Cross-Document Messaging-XDM)!通过onmessage事件和postMessage方法,两个来自不同域的网页可以进行通讯: 窗口A:(来自contoso.com) // 1. Create event handler for message event. <document.onmessage = HandleMsg()> // 2. Post message to a secure page B. window.postMessage("Hello world", "https://lucernepublishing.com") 窗口B:(来自lucernepublishing.com) // 3. Create event handler for message event. <document.onmessage = HandleMsg()> // 4. Create event object off window. var e......[阅读全文]

posted @ | Feedback (3) | Filed Under [ ASP.NET/IIS AJAX/ATLAS ]

摘要:1. Microsoft Silverlight Tools Beta 1 for Visual Studio 2008 http://www.microsoft.com/downloads/details.aspx?FamilyID=e0bae58e-9c0b-4090-a1db-f134d9f095fd&DisplayLang=en 内含: Silverlight 2 Beta 1 Silverlight 2 SDK Beta 1 KB949325 for Visual Studio 2008 Silverlight Tools Beta 1 for Visual Studio 2008 Silverlight控件示范页: http://silverlight.net/Samples/2b1/SilverlightControls/run/default.html 这里有一个贴子,列出了可以单独下载的组件的详细链接: http://silverlight.net/forums/t/10586.aspx Mr. “IronRuby” John Lam 有一个贴子,展示如何在Silverlight中使用IronRuby(还没有下载链接): Dynamic Silverlight Part 1: Hello, World! http://www.iunknown.com/2008/03/dynamic-silverl.html   2. Expresssion Blend 2.5三月份预览版: Microsoft Expression Blend 2.5 March 2008 Preview http://www.microsoft.com/downloads/details.aspx?FamilyID=32a3e916-e681-4955-bc9f-cfba49273c7c&DisplayLang=en   3. 这次MIX08大会主题演讲还宣布了IE8 Beta1的发布,可以在这里下载: http://www.microsoft.com/windows/products/winfamily/ie/ie8/readiness/Install.htm 其中的2个新功能是Activities和WebSlices! 这里有个演示: First Look at IE8 Activities and WebSlices http://visitmix.com/blogs/Joshua/IE8-Activities-With-Jane-Kim/   4. ASP.NET 3.5 Extensions Preview 2 (包括 ASP.NET MVC Preview 2): http://www.microsoft.com/downloads/details.aspx?FamilyID=a9c6bc06-b894-4b11-8300-35bd2f8fc908&DisplayLang=en   5. ASP.NET MVC Preview 2的单独下载: http://www.microsoft.com/downloads/details.aspx?FamilyID=38cc4cf1-773a-47e1-8125-ba3369bf54a3&displaylang=en...[阅读全文]

posted @ | Feedback (6) | Filed Under [ ASP.NET/IIS .NET WPF/SilverLight ]