Silverlight - A new Technology

Saturday, March 7, 2009

What is Silverlight ?

have just passed up my first chance to build a silverlight component into a website. It was a tough choice, since everyone involved generally agreed that Silverlight was a great technology and would add a ton of bling to the site.

That being said, it has to be noted that Silverlight does not have a good layout system in place, as it only uses the Canvas layout from WPF - no flow layouts, here folks! This means that you have to position every single element absolutely. And you have to code it in javascript. And there is not built-in project template for it in VS 2008 yet, so you have to jump through some hoops to get intellisense working for you.

That's not a good way to introduce yourself to a technology, in my opinion.

Here where I think Silverlight is actually a good technology to use:

Streaming video.
This is one of the main commercial uses of this technology at the moment, and it sure beats the pants of other streaming formats.
It would greatly benefit by better tools for encoding, but Expression 2.0 looks pretty decent so far (in beta).
Displaying vector graphics with small amounts of interactivity
Lets face it, you can code any amount of logic yourself into a Canvas framework, but the power of Silverlight is in its ability to reproduce WPF, which in turn is really only useful with its vector graphics capabilities, combined with the layour frameworks.
Until we get more of WPF to work with, getting more experience with XAML's in terms of more static vector objects is a good idea.


The purpose of this tutorial is to show how simple it is to Silverlight-enhance a web page. Everything necessary to do so with the exception of the bits from the SDK are included on this page, and a link to the SDK is given along with instructions, so within just a few minutes, you should have your first Silverlight web page running!

It is normally my intent to explain everything in detail, but I'm breaking with that tradition on this page. Because I want you to be able to get a page up quickly, I'm going to bypass delving into some of the syntax this time in favor of product-to-browser.


The Bottom Line

The 'Bottom Line' on putting up your first web page containing a Silverlight canvas is that you don't need AJAX, and you don't need Visual Studio! Worst-case scenario is notepad... if you have a good color-coded templated code editor, that's great as well, but also not necessary.

The minimum need for a Silverlight-enhanced web page is 3 things:
The html file for your page data
The Silverlight.js file provided in the SDK (described below)
An XML file in the form of Silverlight XAML to specify the canvas
Of course, if you're using external css, or have any graphic elements, those would need to be included, but for now, lets ignore those.

To get the hard part out of the way first, go to the Silverlight.net Getting Started Page, scroll down to the section heading "Software Development Kit", and take the link to download "Microsoft Silverlight 1.0 Beta Software Development Kit (SDK)".

Unzip all that to someplace that you'll find easily. There's lots of good stuff in there to look at, but the one thing we're interested in right now is Silverlight.js

You'll need to have Silverlight.js somewhere in your development area that can be easily reached by your code, and easily updated when a new release is made. I think it's fairly standard to have a js folder that contains this and other Java Scripts you may use. I'm going to assume that this is the case for the following discussions.



Read more...

What is New in SQL Server 2008

Thursday, March 5, 2009

What is new ?

One of the first items noticed when reviewing Microsoft documentation on SQL Server 2008 is the new lingo classifying features and benefits into groups, or Key Areas. There are four Key Areas, Enterprise Data Platform, Dynamic Development, Beyond Relational Database, and Pervasive Insight. This article will follow these groupings in an effort to make cross referencing with Microsoft articles easier.

Enterprise Data Platform Available

The Enterprise Data Platform grouping, sometimes referred to as the Mission Critical Platform, contains the core SQL Server Engine features and benefits including Data Encryption methods, Resource Management, System Analysis, and Server Management Features.
Have your data Encryption in placeThere are several encryption options; the first is called Transparent Data Encryption. In SQL Server 2008, the entire database can be encrypted by the SQL Engine. This method encrypts all database data and log files for a database. By using this all-encompassing method, all Indexes and Tables are encrypted. Changes to programming applications are not required.The next encryption feature is Backup Encryption. SQL Server 2008 has a method of encrypting backups to prevent data disclosure or tampering. In addition, Restoring of backups can be limited to specific users.Lastly, there are new options for External Key Management. If you are involved with credit card processing or PCI (payment card industry) compliance, SQL 2008 will support Hardware Security Modules (HSM). Hardware Security Modules are third party hardware solutions used to store Keys in a location separate from the data they protect.

Yes Auditing is there

In addition to the standard auditing of logon / logoffs and permission changes, SQL Server 2008 allows for monitoring of data changes or access. Auditing is configured by TSQL statements as in this example: AUDIT UPDATE(Salary) ON Employee TO MyAuditFolder WHERE Salary>200000

Waiting for Data Compression, Here it is

Usually, data compression is associated with general hard disk savings, and with smaller physical files, backup times are reduced. While this holds true for SQL Server Data Compression, the main goal is Fact Table size reduction. The stated advantages for Data Compression include the following:Improves query performance by reducing I/O and increasing buffer-hit rates Provides compression ratios of 2X to 7X for real DW fact data Is orthogonal to other features Is available for both data and indexes According to Microsoft, while using compression will slightly increase CPU usage, overall system performance will be improved because of less IO.
Its new Resource GovernorNew in SQL Server 2008 is the Resource Governor. The Governor is used to restrict users or groups of users from consuming high levels of resources. Items that can be monitored include CPU bandwidth, timeout waits, execution times, blocking times, and idle times. If a Resource Governor threshold level is reached, the system can trigger an event or stop the process. There are a series of steps involved in utilizing the Resource Governor that will be reviewed in an upcoming article.

More Performance Data

The amount of Performance Counters in SQL Server 2008 has been expanded compared to earlier versions. IO and memory usage counters are just a couple of the items that can be collected to monitor performance. The data collected by the counters is stored in a centralized data warehouse. Microsoft states that running the default set of performance related monitors will consume less than 5% of CPU and memory resources.There is also now a Performance Dashboard tool that can read saved performance data. In addition, historical and baseline comparisons can be made and used to create action triggers. For example, if memory use exceeds a threshold for more than five minutes, a more detailed data collection can be automatically triggered.New in SQL Server 2008 is the Performance Studio. The Studio is a collection of performance tools. Together they can be used for monitoring, troubleshooting, tuning and reporting. The Data Collector component of the studio is configurable and low overhead. It supports several collecting methods including TSQL queries, SQL Trace, and Perfmon Counters. Data can also be collected programmatically. Once data is collected, there are drill-down and aggregate reporting options. Microsoft lists these six client side features of the Performance Studio:SQL Server dashboard Performance monitoring Current and historical data analysis Suggestions for potential performance tuning Data collection sets-based reports MDW-based reports

We will see more in Part - 2

Read more...

Back to TOP