天生我才必有用

XapOptimizer

Posted in C# & .Net    作者:Ray    2009年三月5日

现在主要阻碍Flash、Sliverlight发展可能就是文件大小所占带宽的问题,否则肯定是RIA的网站遍地开花。

ComponentOne不愧是大公司的风范,抓紧时间就来一个Xap Optimizer,不过现在还是Beta版,要实现的功能如下:

  • Integrate XapOptimizer as part of the build process in Microsoft Visual Studio to automatically optimize your XAP files.
  • Reduce the size of your XAP files by 30-70%.
  • Obfuscate your code.
  • Use XapOptimizer with any Silverlight assembly including third party components; is not restricted to ComponentOne components.

挺诱惑人的,看来文件臃肿还是微软的老毛病。不清楚是不是微软的策略,他一直留了一些功能让第三方来支持,这个是不是就叫“做共同致富”。

有兴趣可以试试这个Beta网络版,看看效果如何?http://labs.componentone.com/XapOptimizer/

标签:

LINQPad

Posted in C# & .Net    作者:Ray    2009年二月6日

LINQPad是一款由Joseph Albahari编写的免费独立应用程序,并是C# 3.0 in a Nutshell一书中的附加程序。

基本上,LINQPad是集成了IDE和SQL的LINQ解析器。LINQPad有简单而实用的用户界面,可即时执行LINQ查询,包括LINQ to SQLLINQ to ObjectsLINQ to XML等多语句查询。

LINQPad允许用户引用自定义程序集和导入自定义命名空间来进行扩展。通过这种扩展可以支持LINQ to Entities。

除了是学习和测试工具以外,LINQPad 针对SQL数据库执行特定查询方面越来越受欢迎。

Silverlight 2 Unleashed

Posted in C# & .Net, eBook    作者:Ray    2009年一月31日

2008090101

Silverlight 2 Unleashed

by Laurent Bugnion
Publisher: Sams
Pub Date: October 15, 2008
Print ISBN-10: 0-672-33014-8
Print ISBN-13: 978-0-672-33014-8
Web ISBN-10: 0-7686-8684-9
Web ISBN-13: 978-0-7686-8684-5
Pages: 608


Overview

Silverlight is Microsoft’s new web-based User Interface (UI) technology, based on Windows Presentation Foundation (WPF), which is introducing many revolutionary concepts in the world of UI development. Silverlight uses XAML, with tools like Expression Design and Expression Blend, to create astonishing UI effects (such as gradients, compositions, and animations.) In addition to the richness of the UI elements, Silverlight 2 allows the use of C# or VB in addition to JavaScript to automate web pages. With Silverlight, you have the power of .NET on multiple platforms (IE and Firefox on Windows, Firefox and Safari on Macintosh, and Firefox on Linux). The author brings you up to speed very quickly with numerous hands-on examples.

  • Use XAML to create state-of-the-art user interfaces

  • Create XAML transforms and animations

  • Design compelling user experiences with Microsoft Expression Blend

  • Integrate media into your rich Internet applications

  • Program Silverlight with both JavaScript and .NET languages

  • Deploy Silverlight content to web pages

  • Encode videos with Expression Media Encoder

  • Make the most of Silverlight elements, resources, and styles

  • Use templates to quickly change your application’s look and feel

  • Efficiently debug Silverlight code

  • Use design tools to create graphics that import seamlessly into Silverlight

Author:

Laurent Bugnion has been a software engineer since 1996. He has worked with many programming languages and environments, including C, C++, Java, HTML/CSS/JavaScript, and, since 2002, the Microsoft .NET platform. He has been honored twice as a Microsoft MVP: first for ASP.NET and now for Client Application Development. He blogs about Silverlight and related technologies at http://blog.galasoft.ch.

标签: ,

NET 4特性聚焦:并行编程

Posted in C# & .Net    作者:Ray    2008年十月22日

作者: Jonathan Allen 译者: 朱永光

通用语言运行时(Common Language Runtime,CLR)以锁、线程和线程池的形式为并行编程提供基本的支持。不过,随着多核CPU重要性的逐步增加,大家又重燃构建高级并行编程函数库的热情。

很多人现在都投身于函数式编程的世界,由于它们具有不可变的对象,以及与生俱来的线程安全属性。基于F#语言的HaskellOCaml可以归入此类。其他例如Erlang这样倍受大家偏爱的语言,是基于消息传递和轻量级进程的。除了支持F#外,微软也尝试了几种不同的方式,以需求并行编程的准确提炼。

最先公布的产品是并行LINQ(Parallel LINQ),也即所谓的PLINQ。类似对SQL的处理一样,并行的版本通过语言本身来处理,而无需开发人员的努力。通过把AsParallel附加到查询上,就能正常工作了。不过正如SQL一样,在这里通常还是需要设定很多额外的选项。

下一个出现的是结构化并行性语法(Structured Parallelism),这种技术会让人想起OpenMP。不过它不像OpenMP那样,使用编译器指令标记;微软的解决方案是基于匿名委托。最直观的反应就是代码只需作细微的修改;在“for”语句内的代码块,可以作为参数传递到“Parallel.For”函数中。

如果代码无法轻易地表示为查询或迭代循环,则可以选择任务并行库(Task Parallel Library)。乍看之下,它似乎是另外一种线程池,但它却支持任务之间的父子关系。

为了对应用程序进行更好地控制,微软提供了协调一致的数据结构(Coordination Data Structures)。它们为未来提供了线程安全的集合以及改良过的同步对象。

摘自:InfoQ

标签:

Microsoft Silverlight 2 RTM 正式发布

Posted in C# & .Net    作者:Ray    2008年十月14日

Microsoft Silverlight是一个跨浏览器的、跨平台的插件,为网络带来下一代基于.NET的媒体体验和丰富的交互式应用程序。Silverlight提供灵活的编程模型,并可以很方便地集成到现有的网络应用程序中。Silverlight可以对运行在Mac或Windows上的主流浏览器提供高质量视频信息的快速、低成本的传递。

包括以下新功能

  • .NET Framework支持完整.NET Framework的一个兼容子集
  • 内置了一些控件,包括DataGrid、ListBox、Slider、ScrollViewer、Calendar等等很多控件
  • 支持换肤和模板
  • Deep Zoom,能实现更具交互性和导航的超高分辨率图像应用
  • 更好的网络支持。开箱即支持对REST、WS*/SOAP、POX、RSS和标准的HTTP服务的调用
  • 广泛的.NET Framework语言支持,包括Visual Basic、C#、JavaScript、IronPython和IronRuby
  • 支持内容保护,包含基于PlayReady技术的Silverlight DRM
  • 提高了服务器可伸缩能力,广泛的广告商支持,包括新的流式和渐进式下载功能,出众的搜索引擎优化技术,以及内容流内的广告支持

安装路径:http://www.microsoft.com/silverlight/resources/install.aspx?v=2.0

标签:

XamlPadX 3.0

Posted in C# & .Net    作者:Ray    2008年十月2日

XAML是类似MXML的一种设计UI的XML语言,主要使用在.Net 3.5中,是WPF中的主要核心部件。微软想通过使用Xaml来实现开发Windows程序的一次重大改进,让UI和代码的分离。设计人员像学习HTML那样学习XAML,然后通过XAML来设计Windows应用程序的UI。而开发人员就在设计人员的UI基础上进行程序撰写。想法非常的不错。

如有兴趣学习和测试XAML,可以使用XAML PadX来进行XAML的简单编辑及预览。

下载地址:http://blogs.msdn.com/llobo/archive/2007/12/19/xamlpadx-v3-0.aspx

具体说明:http://msdn.microsoft.com/en-us/library/ms742398.aspx

XAML的说明:http://msdn.microsoft.com/en-us/library/ms752059.aspx

标签: ,

Microsoft.NET Framework 终于开源

Posted in C# & .Net    作者:Ray    2008年一月17日

终于抵制不了Open Source的吸引,Microsoft. Net Framework也开源了。

微软在MS-RL协议下终于公开了.NET Framework源代码,可以自由查看,但不允许直接进行修改。

第一批开放的源代码包括:

.NET基本类库: System,System.CodeDom,System.Collections,System.ComponentModel, System.Diagnostics, System.Drawing, System.Globalization, System.IO, System.Net, System.Reflection, System.Runtime, System.Security, System.Text, System.Threading

ASP.NET: System.Web, System.Web.Extensions

Windows Forms: System.Windows.Forms

Windows Presentation Foundation: System.Windows

ADO.NET和 XML: System.Data
System.Xml

详见

Programming ASP.NET AJAX: Build rich, Web 2.0-style UI with ASP.NET AJAX

Posted in C# & .Net, eBook    作者:Ray    2008年一月12日

programming-asp-net-ajax.jpg

TITLE : Programming ASP.NET AJAX: Build rich, Web 2.0-style UI with ASP.NET AJAX [ILLUSTRATED] (Paperback)
AUTHOR : by Christian Wenz (Author)
PUBLISHER : O’Reilly Media publisher
ISBN : 0596514247
EDITION : 1st
PUB DATE : September 18, 2007
LANGUAGE : English
DOWNLOAD : EMULE

DESCRIPTION:

Delivering rich, Web 2.0-style experiences has never been easier. This book gives you a complete hands-on introduction to Microsoft ASP.NET AJAX 1.0, the new framework that offers many of the same benefits for Ajax development that ASP.NET provides for server-side development. With Programming ASP.NET AJAX, you’ll learn how to create professional, dynamic web pages with Ajax in no time. Loaded with code and examples that demonstrate key aspects of the framework, this book is ideal not only for ASP.NET developers who want to take their applications a step further with Ajax, but for any web developers interested in ASP.NET AJAX, no matter what technology they use currently. That includes JavaScript programmers who would like to avoid the headaches of writing cross-browser code. Programming ASP.NET AJAX offers you: A high-level overview of the ASP.NET AJAX framework Functional code that you can cut and paste for use in your own applications The essentials of JavaScript and Ajax to help you understand individual technologies used by the framework An organization that reflects the framework’s packages, including Extensions, Control Toolkit, the Futures CTP, and the AJAX Library Sidebars throughout the book that identify and propose solutions to potential security breaches Ways to use the standards-based AJAX Library with other platforms, such as PHP A complete chapter on the UpdatePanel control for making individual parts of a web page independently updateable — one of the framework’s most important elements Released previously as Programming Atlas to cover the beta version of the Microsoft framework, this edition is fully up-to-date and expanded for the official 1.0 release of ASP.NETAJAX. Written by Christian Wenz — Microsoft MVP for ASP/ASP.NET and AJAX Control Toolkit Contributor — Programming ASP.NET AJAX contains many hard-to-find details, along with a few unofficial ways to accomplish things.

Mono 1.2.6 发布

Posted in C# & .Net    作者:Ray    2007年十二月14日

微软开发框架的开源版本现在能够在更多现有.NET应用程序上运行.该项目由 Novell支持,允许为Windows框架编写的应用程序在Linux和其它非微软平台上运行.最新版本全面支持.NET 1.1,并部分与.NET 2.0兼容,包括支持Windows Forms.

Mono 按ECMA标准ECMA-335定义的标准执行.NET,ECMA-335指定通用语言基础构架(Common Language Infrastructure)、一个C#编译器和与微软相似的类库,虽然这些并非ECMA标准的工作范围.Mono可在Linux、Mac OS X、Solaris和Windows上运行,并被第三方应用到其它平台上,包括Symbian OS.

新的版本更新包括以下内容:

  1. Native Windows.Forms driver for MacOS X allows Winforms-based applications to run without an X server.
  2. Support for the ASP.NET AJAX APIs and controls.
  3. Support for FastCGI deployments: ASP.NET can now be deployed on a multitude of servers that implement the FastCGI protocol (lighttpd for example) in addition to Apache.
  4. Windows.Forms now supports the WebControl on Windows and Linux using Mozilla.
  5. Runtime will now consume much less memory for 2.0-based applications due to various optimizations in generics support as well as including many new performance improvements and an updated verifier and an implementation of CoreCLR security.
  6. C# compiler is quickly approaching full 3.0 support, most of the basics work right now (except support for System.Query.Expression AST generation).
  7. Mono 1.2.6 can now be used as an SDK for creating Silverlight 1.1 applications on all platforms. This allows developers to create applications that target Silverlight without requiring a Windows installation.

其实免费的东东也很不错的。点击下载

标签: , ,

Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition (Pro Series)

Posted in C# & .Net, eBook    作者:Ray    2007年十二月9日

Apress.Pro.C.Sharp.2008.and.the.dot.NET.3.5.Platform.4th.Edition.Nov.2007.eBook-BBL

csharp4.jpg

书名:Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition (Pro Series)
作者:Andrew Troelsen (Author)
出版社:Apress publisher
ISBN:1590598849
EDITION:4th
出版日期:November 12, 2007
语言:English
下载emule

(全文…)

标签: , ,