воскресенье, 18 октября 2009 г.

Drawing lines with AS2



Logical following of the "Drawing shapes" tutorial and "Drawing curves" tutorial here comes the last of this series the "Drawing lines" tutorial. Is it that useful to be able to draw lines? The answer is simply YES. Drawing lines can have many application when designing your Flash file and can make your Flash developer life easier in some cases, so let's get started!


http://www.actionscript.org/resources/articles/730/1/Drawing-lines-with-AS2/Page1.html

Drawing curves with AS2

Logical following of the "Drawing shapes" tutorial, here comes the "Drawing curves" tutorial. Most likely, it will be followed by a "Drawing lines" tutorial. So let's get started and draw some curves! http://www.actionscript.org/resources/articles/729/1/Drawing-curves-with-AS2/Page1.html

Drawing shapes with AS2

Drawing any shapes with Actionscript2 is very easy. In this tutorial I will show you how to draw a basic shape and then, in part 2, how to apply this knowledge into a dynamic application. http://www.actionscript.org/resources/articles/727/1/Drawing-shapes-with-AS2/Page1.html

вторник, 13 октября 2009 г.

IIS Media Services 3.0

We just released IIS Media Services 3.0, a set of extensions for Internet Information Services 7 (IIS) that provide an integrated HTTP-based media delivery platform.

This includes the new IIS Live Smooth Streaming and the separate IIS Advanced Logging package.

In addition, we released the beta of the Smooth Streaming Player Development Kit, which allows developers to easily create Smooth Streaming experiences using Silverlight. Supported features include PlayReady, DVR controls, instant replay, slow motion, multiple camera angles, alternate audio tracks, content protection, ad integration, in-stream data feeds, and more.

Since April, 2009, key broadcasters around the world have used beta versions of IIS Media Services 3.0 to successfully broadcast some of the world’s premier live events.

These include the Tour de France and the Roland Garros 2009 International French Open Tennis Tournament on France Télévisions; the IAAF Athletics World Championships and FINA Swimming World Championships on both France Télévisions and RAI; the FIFA Confederations Cup South Africa 2009 on RAI; and Champions League Soccer on BSkyB; as well as events such as the Michael Jackson Memorial on Sympatico/MSN inMusic and SKY News.

In a combined effort with Microsoft, NBC Sports and others, Wimbledon Live delivered more than 6,500 minutes of live and on-demand Smooth Streaming video via a high-definition (HD), interactive online video experience. Each Sunday this Fall, NBC and Microsoft are broadcasting Sunday Night Football on-line in HD, utilizing live DVR controls, multiple camera angles, slow motion, ad integration, analytics, and other cutting-edge features. 26 such trial deployments are currently highlighted on the Smooth Streaming Showcase.

What’s available now:

With this release, the key elements of the IIS media server platform now include:

· Smooth Streaming, adaptive streaming of media over HTTP

· Live Smooth Streaming, for live adaptive streaming of broadcast events

· Smooth Streaming Player Development Kit, for creating custom clients

· Bit Rate Throttling, meters the speed that media is delivered to a player

· Web Playlists, secure sequencing of media content

· Advanced Logging, with real-time client- and server-side logging

· Application Request Routing (ARR), providing HTTP proxying and caching

Download the latest IIS Media offerings

You can download all of the IIS media server platform components, and the Smooth Streaming PDK, using the Web Platform Installer button on the IIS Media page (http://www.iis.net/media).

Key new features:

See these blog posts to learn more about the key new features that are part of this release:

· IIS Live Smooth Streaming: http://blogs.iis.net/jboch/archive/2009/10/09/rtw-of-live-smooth-streaming-is-now-live.aspx

· IIS Advanced Logging: http://blogs.iis.net/vsood/archive/2009/10/12/iis-advanced-logging-1-0-released.aspx

· IIS Smooth Streaming Player Development Kit – Beta 1: http://blogs.iis.net/vsood/archive/2009/10/09/iis-smooth-streaming-player-development-kit-1-0-beta-1-released.aspx

Give the IIS Media server platform a try, and let us know what you think on our Forum.

воскресенье, 11 октября 2009 г.

Поля readonly в C# (Csharp)

Использование константы, как переменной, которая содержит значение, которое нельзя изменить - это то, что C# (Csharp) разделяет с другими языками программирования. Хотя константы не всегда соответствуют всем требованиям. Часто случается так, что переменную нужно получить в результате расчетов, а потом сделать ее "только для чтения". В C# (Csharp) именно для таких случаев предусмотрен тип переменных readonly.
Переменные поля readonly имеют большую гибкость, нежели const, потому что позволяют перед присваиванием производить различные вычисления значения, которое должно быть "только для чтения". Правило использования таких полей говорит, что вы можете присваивать им значение только в конструкторе, и нигде более. Одной из основных особенностей таких полей, является то, что они могут пренадлежать и экземплярам класса, а не быть статическими. Это позволяет получать различные значения полей только для чтения в разных экземплярах классов. Это значит, что в отличие от полейconst, если вы хотите сделать поле readonly статическим, то должны явно обьявить его таковым.
В качестве примера можно рассмотреть случай, когда в зависимости от купленной лицензии - меняется функциональная часть программы. При более дорогой лицензии - программа позволяет работать с большим количеством документов (если у нас MDI-приложение). Тогда в конструкторе мы определяем по какой лицензии работает пользователь, и в зависимости от ее типа, присваиваем обявленной переменной, с типом readonly, значение количества допустимых документов.
В описанном выше примере, примерный код будет выглядеть так:

public class MdiEditor
{
public static readonly uint MaxDocuments;
static MdiEditor()
{
MaxDocuments = CheckMaxNumDocs();
}
}
В данном конкретном примере, мы обьявляем нашу переменную как статическую, и используем ее в экземпляре класса при каждом запуске программы. Функция CheckMaxNumDocs какраз должна проверить тип лицензии по которой работает пользователь, и венрнуть количество максимально допустимых документов, с которыми может работать пользователь с данной лицензией.
Полями readonly могут быть обьявлены различные типы данных, в подтверждение этому покажу и такой код:

public class NextSample
{
public readonly DateTime CurrentDate;
public NextSample()
{
CurrentDate = new DateTime(2008, 2, 6);
}
}
В итоге получаем текущую дату CurrentDate, которую изменить дальше по коду - нельзя.
Поля readonly представляют собой куда более гибкий инструмент, нежели const, потому что это вычисляемое поле. Удачного применения и спасибо за внимание.

Create PDFs in ASP.NET - getting started with iTextSharp

The .NET framework does not contain any native way to work with PDF files. So, if you want to generate or work with PDF files as part of your ASP.NET web application, you will have to rely on one of the many third party components that are available. Google will help you to find one that fits your budget, as well as a range of open-source free components. One of the free components is iTextSharp, which is a port of a well known Java utility, iText.

The main problem with iTextSharp is that it lacks documentation. There are some basic tutorials available, but most programmers have to resort to trying to wrestle with the documentation provided for the Java version - iText - to get going with the component, or you may want to purchase the book iText In Action. However, this only provides guidance in Java. Many of the code samples are transferable to C# without a lot of modification, but if you are relatively new to C#, you may frequently become frustrated with undocumented or inexplicable differences in classes and method names between the two versions. As a final resort, you can always use Reflector to pick the dll apart and examine its innards. So, as part of a series of How To articles, here's how to get started using iTextSharp with code samples in C#. http://www.mikesdotnetting.com/Article/80/Create-PDFs-in-ASP.NET-getting-started-with-iTextSharp

пятница, 9 октября 2009 г.

Как создать график в WPF при помощи WPFToolkit



Описание доклада

Мы рассмотрим возможности библиотеки DataVisualization из WPF Tookit. На примере покажем как нужно подготавливать данные для графиков и как можно настраивать полученные при помощи данной библиотеки графики. http://www.techdays.ru/videos/1456.html